renzosing
4th February 2005, 23:07
I have created a new session that imports the parent item from the( Where Used BOM Components, which is a standard baan session). I have the new session linked as a form command to the standard session. The new session checks to see if there are any parent items of the imported item (Zoom Up) and displays the data. Once my new session comes up, I would like to Zoom Up again. I'm have tried linking this session again as a form command and it works, but a new session comes up every time I Zoom Up. I only want to have the new session come up once and update/refresh itself whenever an item is selected to Zoom Up. Can anyone help?
NPRao
4th February 2005, 23:20
Refer to the link -
MODAL_OVERVIEW in start.session() for Baan V (http://www.baanboard.com/baanboard/showthread.php?t=13240&highlight=start.session)
renzosing
7th February 2005, 17:20
I've played around with some things mentioned in the posts, but 'im still not getting anyway. Are there anymore suggestions?
toolswizard
7th February 2005, 20:43
It sounds like you are trying to synchronize your sessions. There are two possible solutions to your situation.
First, remember when you zoom, the session that you are starting Imports the data to be looked up. This can happen automatically (see automatic import in the programmers reference guide), or it can be done by using the import command. Doing it this way, once you have the second session running, go back to the first and select new data. Without hitting the zoom function or button, go back to the zoomed to session. There you would need to trigger the import again with a command, maybe a user function to refresh. Or when the form or session is current. A refresh button would be the easist to try out. In this function, reimport the data refresh the form.
The second approach would be to start a session similar to Sales Order Lines, where the top of the screen is 1 session, and the bottom half is another. (baan iv) When the bottom session starts, it starts the top session that never really leaves begin program. It loops accepting messages from the bottom half to display data, and then returns control to the bottom half. The bottom half is responsible for handling all the user input. The top half never has that opportunity. You would not be able to perform any functions in the top half, it is a slave to the bottom.
Depending on your needs, one of these solutions should work.