DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving the data entered in object "Table" in SUD diadem

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(1,381 Views)

Hi Brad,

 

Can you pls help me in this topic.

 

Regards,

X Ignatius

0 Kudos
Message 2 of 3
(1,340 Views)
Solution
Accepted by topic author Igni

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

0 Kudos
Message 3 of 3
(1,327 Views)