DataGrid - one row on top of another
Posted: Sat Sep 07, 2013 11:07 pm
As you might expect. I'm at eh last 10% of the project an I've run into a nasty snag.
Here’s the scenario:
I have 2 stacks. Main and MeasurerLib.
Main has an on PreOpenStack script that populates a datagrid on card 2 of the MeasurerLib stack.
Card 1 of the main stack has a button that opens the MeasurerLib stack to card 1 as modal.
The MeasurerLib stack has 2 cards.
Card 1 has a set of fields that the users can populate. It also has 2 buttons. A Save button that populates the datagrid on card 2 with the information from the fields and an edit button that navigates to card 2 where the datagrid lives. There is a cancel button on card 2 that navigated back to card 1.
The on PreOpenStack script works fine. The datagrid on card 2 of the MeasurerLib stack gets populated.
The problem is that if I navigate to card 1 of the MeasurerLib stack from the button on card 1 of the main stack and fill in the fields and click the save button. The row of the datagrid that was populated from the stack script isn’t recognized. The new text is simply populated right over top of the existing text. So there are 2 lines of text I the same row.
However, if I first navigate to card 2 of the MeasurerLib stack where the datagrid is and back to card 1 before filling in the fields and clicking the save button viola, everything works as predicted.
Long story short, what command is sent to the datagrid when I navigate to the card it’s on that make the row recognized??????
I've tried this on card 1 of the MearurerLib stack but it blows away the headers. Grrrrrrr
on PreOpenCard
dispatch "resetList" to group "ListOfMeasurers" of card "DataGrid Holder" of this stack
end PreOpenCard
Thanks a lot for any help.
Here’s the scenario:
I have 2 stacks. Main and MeasurerLib.
Main has an on PreOpenStack script that populates a datagrid on card 2 of the MeasurerLib stack.
Card 1 of the main stack has a button that opens the MeasurerLib stack to card 1 as modal.
The MeasurerLib stack has 2 cards.
Card 1 has a set of fields that the users can populate. It also has 2 buttons. A Save button that populates the datagrid on card 2 with the information from the fields and an edit button that navigates to card 2 where the datagrid lives. There is a cancel button on card 2 that navigated back to card 1.
The on PreOpenStack script works fine. The datagrid on card 2 of the MeasurerLib stack gets populated.
The problem is that if I navigate to card 1 of the MeasurerLib stack from the button on card 1 of the main stack and fill in the fields and click the save button. The row of the datagrid that was populated from the stack script isn’t recognized. The new text is simply populated right over top of the existing text. So there are 2 lines of text I the same row.
However, if I first navigate to card 2 of the MeasurerLib stack where the datagrid is and back to card 1 before filling in the fields and clicking the save button viola, everything works as predicted.
Long story short, what command is sent to the datagrid when I navigate to the card it’s on that make the row recognized??????
I've tried this on card 1 of the MearurerLib stack but it blows away the headers. Grrrrrrr
on PreOpenCard
dispatch "resetList" to group "ListOfMeasurers" of card "DataGrid Holder" of this stack
end PreOpenCard
Thanks a lot for any help.