Hi all,
I have a list page that allows users to copy a record. I'd like to grab the ID of the record being copied and save it into a session variable. (I will then use this for a select statement so I can do an insert into a details table, giving the new master record the same details records as the copied master).
I assume I will do this in the "Copy page:onload" event, but I can't figure it out. I see in the help info at the top of the event page it says "where - WHERE clause that points to the record to be copied. Example: ID=19". So there it is, but how to I assign this to a session? My lame attempt was this:
XSession.Session["copyid"]=where;
This didn't give me errors, but also didn't work.
UPDATE
Before I posted this I did one last search and found this: http://asprunner.com/forums/topic/19507-tip-copy-child-records-when-master-record-is-copied/
It seems I need the "Add page: Before process" event and this code:
if (@$_REQUEST["copyid1"])
$_SESSION["copyid1"] = $_REQUEST["copyid1"];
But that's PHP. Can I/how can I do that in C#?
Thanks for any help.
Tim
I have a list page that allows users to copy a record. I'd like to grab the ID of the record being copied and save it into a session variable. (I will then use this for a select statement so I can do an insert into a details table, giving the new master record the same details records as the copied master).
I assume I will do this in the "Copy page:onload" event, but I can't figure it out. I see in the help info at the top of the event page it says "where - WHERE clause that points to the record to be copied. Example: ID=19". So there it is, but how to I assign this to a session? My lame attempt was this:
XSession.Session["copyid"]=where;
This didn't give me errors, but also didn't work.
UPDATE
Before I posted this I did one last search and found this: http://asprunner.com/forums/topic/19507-tip-copy-child-records-when-master-record-is-copied/
It seems I need the "Add page: Before process" event and this code:
if (@$_REQUEST["copyid1"])
$_SESSION["copyid1"] = $_REQUEST["copyid1"];
But that's PHP. Can I/how can I do that in C#?
Thanks for any help.
Tim