How to get data from an object in JMP application ?
Apr 20, 2015 8:40 AM(1541 views)
I'm writing my first application in JMP and faced an issue.
Here is the point : with JMP application builder, I built a simple form which contains two text edit boxes and two button boxes. One of the two button boxes is linked with a simple Pick File code to allow the user to select a file. The second button box is supposed to be the "send button" of my form. So, what I would like to do is to link the "press property" of this button box with JSL code capable to handle data retrieved from the text edit boxes and the pick file button box.
Each display box supports a collection of messages to get/set content, in addition to options on behavior. Most of the options will be surfaced in application builder in the Properties panel. To learn about the messages, right-click on a box in App Builder and select "Scripting Help".
For the Text Edit boxes, you would use something like:
TextEdit1 <<Get Text;
to get the current value. Since you already have the Pick File code, just make sure that you store the return from this function in a JSL variable and you can use it in the same section of code.