JB999
JB999

Reputation: 507

Oracle Apex Counter to display new rows

I have a page where the users will be adding items to their list. In here, they have an 'add row' button which - just like the name - it adds a new row for the user to include another item. In order to make a new row visible I have:

Sometimes it works perfectly....most of the times it doesn't.

Pic 1: Counter now equals 2 (I clicked the add row button once which converted it from 1 to 2) and in theory row number 2 should be displayed now...but it isn't. Only the first one it's being shown: enter image description here

Second row server side condition is: :ROW_COUNTER > 1

Does anybody know how to fix this?

Thanks!

Upvotes: 0

Views: 394

Answers (1)

whatever
whatever

Reputation: 75

Im just gonna guess here and say that it shouldnt be working because you use server side condition for a dynamic change.

Server side conditions only trigger on page initialization and not when you change something dynamically by pressing a button. This should mean that your conditions wont be met until you either refresh or submit the page, depending on your ROW_COUNTER session settings.

--> https://www.foxinfotech.in/2020/02/oracle-apex-using-server-side-conditions.html

Try working with a Dynamic Action. You can execute PLSQL code there too.

Upvotes: 1

Related Questions