Le 7 mai 10 à 11:41, JosepM a écrit :
Hi List,
I have a stack with a datagrid that add and delete rows without
problem.
Then I open a substack as sheet where the user fill some customer
data and
close the substack. Then if I try to add a row to the datagrid...
"an error
has ocurred in behavior for the column template: Chunk: can't find
stack."
The substack can be filled manually or from the database, if I
recover the
data from the database, the grid works fine, but if I fill the data
manually, then don't work. The data is passed with dialogdata.
What is wrong?
Salut,
Josep
Bonjour,
Thanks a lot Joseph for this post, very relevant to this list named
"HOW to use Revolution", among an ocean of "OT"! :-))
I just created
1 - a stack "TrialJosep"
a data grid on it named "dgjosep" with 2 columns : "name" and "forename"
and a button whose script is " topLevel stack "pickTheData"
2 - a substack "pickTheData"
on it 2 fields : one to enter a name
the other to enter a forename
and a button "OK" whose script is :
on mouseUp
local tInfo,
-------
put fld "fldName" & tab & fld "fldForeName" into tInfo
put tInfo
close this stack
dispatch "addLine" to grp "dgJosep" of cd 1 of stack "TrialJosep"
with tInfo
end mouseUp
Seems working well here (I hope I have correctly understood your
problem?)
If yes, might be "close this stack" before adding the line is important
Best regards from Grenoble
André
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution