becks22
30th August 2010, 19:48
Hi All,
I am stucked up at a point ..I have developed a display session .This session is to be attached to the zoom of a item code field.We are already having a menu on that zoom ..I have attached my session to the zoom menu..But the zoom return field is set to the zoom.item variable in the item code field.I am trying to export the Item code of my display session to the zoom.item variable But not getting succeeded..Please help
mark_h
31st August 2010, 19:32
What I have done in program with the zoom.
export("zoom.rfq",zoom.rfq)
export("zoom.rfqline",zoom.rfqline)
dummy = zoom.to$("tdexi0111m000",z.session,"tdexi0109","",0)
import("zoom.rfq",zoom.rfq)
import("zoom.rfqline",zoom.rfqline)
And in the zoomed to session:
zoom.from.all:
on.entry:
import("zoom.rfq",zoom.rfq)
import("zoom.rfqline",zoom.rfqline)
tdexi011.rfqnum = zoom.rfq
tdexi011.rfqline = zoom.rfqline
execute(find.data)
Now the difference is you are using a menu. So your zoomed to session should return a table field or do an export. Then the returned to session can do an import or use the table field. There are other ways to accomplish this but this is the basic idea.
Hitesh Shah
1st September 2010, 20:54
Value of exit.val$ in zoom.from /on.exit should be available in calling session . U may checkthis thread (http://www.baanboard.com/baanboard/showthread.php?t=13251&highlight=exit.val%24)
becks22
4th September 2010, 16:55
Thanx for the update but I need to tell you that I don't have access to the item code field script.I have access to my Session Script only .What Ever I can do is on my Session only ..Zoom Return field in the Item Code Field is set to zoom.item variable ..How can I put my value to that zoom.item variable
sameer.don
5th September 2010, 09:04
Instead of exporting Item code to zoom.item veriable, u should try to export values to Item field, which u r zooming from.
For eg. if ur session is being zoomed from tiitm001.item then on zoom session u can write:
choice.end.program:
before.choice:
export ("tiitm001.item",ttmmm999.item)
||* ttmmm999.item is the item field on ur zoom session
mark_h
8th September 2010, 16:03
Then in your session just declare zoom.item as external. Then set zoom.item to the selected value, export it. Something like this:
declaration:
extern domain tcitem zoom.item
choice.cont.process:
before.choice:
zoom.item = sometable.item
export("zoom.item", zoom.item)
execute(end.program)
Just one example how I have exported fields from a subsession.