Refresh DataGrid/Treeview when card closes
Posted: Tue Aug 15, 2017 3:35 am
Hello
I'm sure I'm missing something basic but I have to ask....
I have a treeview field on my "Main" card. I open a separate sub stack (Add Equipment - Card02) to administer the adding of child nodes (done by reading a SQL table of available selections, the selections are then added to the SQL table which builds the treeview). What I want to do is have the treeview refresh/rebuild to reflect the changes once I submit and close the Add Equipment page.
On the "Main" card I have a button "Build Tree" which runs to SQL connection string and populates the treeview.
I have tried to make the script a function which the button calls (this works), but I cant seem to call it when I close the other card.
Below are a couple of lines of code I have tried to use
-- send "mouseUp" to card "Main" to button bBuildTree
-- dispatch "BuildTree" to card "1002"
The error usual generated is "(Chunk: cant find card)"
Thanks
I'm sure I'm missing something basic but I have to ask....
I have a treeview field on my "Main" card. I open a separate sub stack (Add Equipment - Card02) to administer the adding of child nodes (done by reading a SQL table of available selections, the selections are then added to the SQL table which builds the treeview). What I want to do is have the treeview refresh/rebuild to reflect the changes once I submit and close the Add Equipment page.
On the "Main" card I have a button "Build Tree" which runs to SQL connection string and populates the treeview.
I have tried to make the script a function which the button calls (this works), but I cant seem to call it when I close the other card.
Below are a couple of lines of code I have tried to use
-- send "mouseUp" to card "Main" to button bBuildTree
-- dispatch "BuildTree" to card "1002"
The error usual generated is "(Chunk: cant find card)"
Thanks