09-30-2020 02:39 AM
Hi,
I have created a SUD dialog box with object Table. I have five rows and I enter different values for processing it. Once I process the data entered, I will close the dialog box but before closing, I would like to retain the values entered in the Table. So that whenever I open the dialog box next time, I would see the last entered value in the Table.
Can one someone pls help me on this.
At present, we could only see the default values, whenever I open the dialog box.
Regards,
X Ignatius
Solved! Go to Solution.
10-01-2020 12:17 AM
Hi Brad,
Can you pls help me in this topic.
Regards,
X Ignatius
10-01-2020 05:09 PM
Hi X Ignatius,
None of the SUDialog controls retain their previous values upon dialog restart. You can put code in the Terminate event of that table control or the dialog itself to read off those 5 rows of values and save them to disk or to global DIAdem variables. You also need to put code in the Initialize even of that table control or the dialog itself to populate those 5 rows of values from the saved file on disk or the global DIAdem variables you used. Then the next time the SUDialog is launched, the previous values will be loaded from disk or variables, and it will look like the table retained its values, they just weren't saved inside the SUDialog file itself.
Brad Turpin
Principal Technical Support Engineer
National Instruments