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

How to read an edit grid?

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

  • How to read an edit grid?

    Is there a way to read the contents of an edit grid

  • #2
    Not sure exactly what you mean. Are you looking to read the entire contents of an edit grid through an RPG program?

    Comment


    • #3
      Either thru rpg program or script?

      Comment


      • #4
        I guess this all depends on what you are trying to accomplish. Any button based (EXNABBTN) RPG program will have access to the grid rows that are selected. You can see how to access these but looking at the examples given for EXNABBTN based programs. Note only rows that are selected (via Checkbox Selection) will be passed down. However, if you set your grid to "Local Data" then it will send down all rows to the RPG program.

        As far as thru a script, this would get you all of the rows:

        Code:
        var myWidget = getWidget('MY_WIDGET_NAME'),
              store  = myWidget.getStore();
        
        // loop through all rows...
        //
        store.each(function(rec){
          // do something to each record...
          //
        });
        success();
        Attached Files

        Comment

        Working...
        X