• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Event delayed updating of variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Event delayed updating of variable

    Hello,
    I wrote an RPG program that loads accounting periods to app variables. So variable PER01 = 202410, PER02 = 202411, PER03 = 202412, etc. When I click a cell on my grid I have it linked to an event that sets the AcctPeriod variable to the value I loaded into PER01, etc. The problem is the AcctPeriod variable doesn’t update inside the event. At step #1 in the setPER03 event, I set the AcctPeriod to PER03 and change the Appbar title to show the new value, but the Appbar title shows the previous AcctPeriod value. I viewed this in the developer console and the AcctPeriod value was updated but the Appbar title and the filter keep using the old value. Im trying to let the user click on a cell and set the filter so that it will only retrieve records for the correct account and period.
    Thanks,
    Bruce

    dataurl154810.jpg
    dataurl154812.jpg
    ?
Working...
X