Marioth
2nd March 2009, 17:49
Hi,
Hope somebody can help me with this. I am using LN6.1 FP6.3. I am creating a sub session that views all possible load numbers from a certain Sales Order. However when I go to the subsession and view the loadnumbers it views me the same load number at every occurency. The subsession is declared as a Session type Display and Window type List Window. The load number is declared as a view field.
Any help will be appreciated.
Thanks.
george7a
3rd March 2009, 14:36
Hi,
Please post a screen shot of your "Position tab" from within the Dynamic Form Editor for this field (loadnumbers).
Also the session it self should be defined as overview (not detailed) from within the Dynamic Form Editor.
- George
Marioth
3rd March 2009, 14:44
Hi George,
You are right so please find attached all the screen shots you aksed for.
Thanks,
Mario
george7a
3rd March 2009, 14:59
Hi,
How exactly are yo activating the sub sessions?
- George
Marioth
4th March 2009, 11:08
George,
I activate the sub session with the command start.session.
Regards,
Mario
george7a
4th March 2009, 11:27
Hi,
What is the full command? Can you post your code, since in start.session, there is an option to start the session as overview or as detailed. Check the documentation link:
http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_start_session
I hope it helps,
- George
Marioth
4th March 2009, 12:44
George,
The full command is: start.session(MULTI_OCC+MODAL,"whinh5501m000",Z.SESSION,"whinh430.load")
Regards,
Mario
george7a
4th March 2009, 14:36
So, you are using as a "zoom to session"?
Marioth
4th March 2009, 14:53
Yes what is wrong with that??
george7a
4th March 2009, 15:53
The first thing I noticed is that the command that works in our LN: tcibd001.item = start.session(MULTI_OCC+MODAL,"tcibd0501m000",prog.name$,"tcibd001.item")
You can see that there is no "Z.Session" and also the use of the return value.
I hope I can find some time to check your session again.
Marioth
4th March 2009, 16:10
George,
If I use Z.SESSION the in the on.entry of the child session all the export variabels will be taking over and I can see that in debug mode.
This is the explanation giving by LN:
The name of the calling process. This is used in the 4GL zoom.from sections sections in the child session. If no name is provided here, zoom.from sections in the child session are not executed.
Regards,
Mario
NPRao
4th March 2009, 20:43
So, you are using as a "zoom to session"?
Yes what is wrong with that??
Mario,
Refer to zoom.to$() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_starting_and_stopping_programs_zoom_to) in the Programmer's manual.
Note
This function is supported for backward compatibility only. In new applications, use start.session() instead.
If you are on the latest LN Tools, then its better to use the newer functions.
Marioth
5th March 2009, 11:17
Hi NPRao,
We are on LN6.1 FP6.3 and that's why I am using start.session instead of zoom.to$, but still my session doesn't start as a multi occurence session and that's my main question why not?
Regards,
Mario
NPRao
6th March 2009, 03:56
Mario,
Did you try start.session() with MODAL_OVERVIEW mode?
MODAL_OVERVIEW The parent session is blocked until the child session exits, in case of a multi-occurrence the session will be started as an overview session.
Example usage:
sdum = start.session(MODAL_OVERVIEW, "ttaad2500m000", prog.name$, sdum)
Marioth
6th March 2009, 13:46
Hi NRPao,
Yes that option I also tried without any luck.
Mario
naik.sandeep
6th March 2009, 21:18
Mario,
Give me the screen shots of your child session. Also tell me if u have written any code in the child session.
kiran kumar
7th March 2009, 06:13
Hi,
Try to use "query.extend.where(view field) function with view field which you gave.
All the best.
Kiran Kumar.
Marioth
10th March 2009, 16:05
Hereby the requested screenshot of my child session. I only try to mark the first occurence and then it takes several so there is something wrong and I can't figure out what. I also use query.extend function within my source.
Regards,
Mario
george7a
12th March 2009, 12:52
Hi,
It is not easy to detect the problem from here. What you can do is compare everything in your session with a similar session (Bill of Material from example).
Open both forms and compare them field by field, group by group.
- George