• 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.

Auto load problem

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

  • Auto load problem

    Hello,
    I've created an app that uses tree grid with three levels along with a regular grid to display the details. On the third level when a row is clicked, I call an RPG program that loads a table (WEBIFSP) with a directory listing of an IFS folder. Then, the app shows the section with the details grid, but it displays "No Results". If I click the refresh button, all my data is there. The autoload box for the grid is checked but doesn't load the data automatically. How do I make it show the data without clicking the refresh button?
    Thanks,
    Bruce

  • #2
    Hello,
    I found the Utility-refresh option that is allowed on a When shown event for the section. After adding it, my data was visible without clicking the refresh button. The refresh option wasn't allowed on a row click. It would be helpful if the documentation had a list of which sections allow you to choose the refresh option. I didn't think to add it under the hidden "Section Events" when shown until a co-worker suggested it.
    Thanks,
    Bruce

    Comment


    • #3
      Even though the approach you found is working it is an unusual work around. All you need to do is tell the grid to refresh itself when the data is ready. You can go about this in a few ways. I would suggest the following:
      • Create a new app variable named "loadDetailGrid" or similar
      • Link the "refresh" widget property of your grid to this app variable
      • In your back end program that loads the data into WEBIFSP
        • SetAppVar('loadDetailGrid':'true'); // this will cause the grid to refresh

      Comment

      Working...
      X