kiran kumar
28th February 2012, 20:12
Hi team,
I am trying to handle the menu using AFS by following the AFS document and the baaboard threads. But I am not getting the result. I have to activate the menu,which consists of 6 sessions. I have to opt for 3rd option in that menu. but I am unable to get that. Please observe my code and suggest me if any changes.

stpapi.handle.subproc("tdsls4120m000","tdsls4121s000","add")
stpapi.handle.subproc("tdsls4120m000","mtdsls000090411","3")
stpapi.zoom.option("tdsls4120m000",1,"tdsls4121s000",err.msg)

where tdsls4120m000 is a parent session. In special menu of this session we are having "zoom" where the menu will be enabled. In that i have to go to 3rd option.

Version:BaaN IVc4

mark_h
29th February 2012, 00:53
Checkout this thread (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=13858). See the post by dstroud. Also that "3" might need to be "30". On the zoom what error message to you get?

This thread belongs in the AFS forum.

kiran kumar
29th February 2012, 10:25
Hi , I modified the menu option selection string as "30". But still the sub session is not activating. Any other suggestions please.

mark_h
29th February 2012, 15:17
Well - just so happens we have that session on our system. I test a couple different pieces of code with no luck. I can think of some possible alternatives, but want to look around some more. Do you own source code?

mark_h
29th February 2012, 17:43
Okay - what I can tell you is the zoom section gets called, but it does not activate the session. I even tried qkey with this and added the following code into tdsls4120m000:

choice.zoom:
before.choice:
message("here")
if api.mode then
zoom.to$("tdsls4121s000",z.session,"dummy","",0)
endif

Even this did not activate the subsession. So I am not sure what is up with this. Kind of at a loss right now of what to try next.

kiran kumar
8th March 2012, 08:16
Hi Mark,
Thanks for your quick reply. As per my observation the menu is activating from zoom option from script. Can we handle the menu as sub session for the parent session using AFS?

Thanks in advance.

mark_h
8th March 2012, 18:18
I tried several different things and none of them worked. Do you have the source code? Then you could probably write a solution, but as it stands I could not get this to work.