Re: Read row from datagrid and send it to substack
Posted: Mon Dec 09, 2013 1:51 pm
The problem of updating DG content on substack is annoying, especially with "as modal".
So here is what i do :
-main stack : query, calculation, and then I put the content i want to display in a global variable
-i open the substack as modal
Here is script I have in the substack :
Do you have other strategies ?
I've tried to play with "dispatch refreshList" or "send in with mesages"... but no luck. The point seems : you have to go to the card that contains the DG. So with a modal dialog... that's a problem.
So here is what i do :
-main stack : query, calculation, and then I put the content i want to display in a global variable
-i open the substack as modal
Here is script I have in the substack :
Code: Select all
on preopencard
global gContentDG
if gContentDG is not empty and the mode of stack "mySubStack"=5 then set the dgData of group "myDG" to gContentDG
end preopencardI've tried to play with "dispatch refreshList" or "send in with mesages"... but no luck. The point seems : you have to go to the card that contains the DG. So with a modal dialog... that's a problem.