krobinson98
5th November 2008, 17:28
When a user clicks the new button I want the synchronized session which displays the details view to open and allow the user to enter the new record data in that session instead of the overview session.

I'm currently using the below code but this simply opens a readonly version of the session. Ideally I want the detail session to open to allow entry of the new record data and this functionality then disabled in the parent so they can't enter it in both places. Thanks for any help.

before.new.object:
field.proc = start.synchronized.child ( session)

NPRao
5th November 2008, 20:40
Try this function - start.synchronized.child.with() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_synchronized_sessions_start_synchronized_child_with) with add.set mode

krobinson98
5th November 2008, 21:44
Thanks,
So I added the below code and the detail session opens but this process repeats itself and continues to open the same session over and over as if in a continuous loop. What am I doing wrong? Thanks for any help.

before.new.object:
field.proc = start.synchronized.child.with(ADD.SET)
field.proc = start.synchronized.child ( "tcibd9011m000",SINGLE_OCC)