schweizer
21st November 2006, 20:34
What a confusion.
I created a print session.
I added the form and report to the session.
Now I set the debugger on this session, and then I press the print button it does not stop on the "choice.print.data". section.
I have to connect the button to the script, am I right?
If yes, how?
I found the form commands and there I can define a new button, and it works.
I mean, suddenly all the buttons are working.
Now I delete the new one and the print button is still working.
I can not find the generated buttons and the settings of them.
I am just woundering.:confused:
Can someone help me?
Schweizer
mr_suleyman
22nd November 2006, 08:02
I don't understand your case clearly. But you can add new generated button from maintain form. Firstly go Spec. Options and add number 48 it means user choice.0 and fill all information about it. After that go buttons part and add your number there and dump your form. Now you have generated form.
Add your session script followings :
choice.user.0:
on.choice:
execute(print.data)
That's all.
Good luck !
schweizer
22nd November 2006, 12:05
Sorry, I forgot to mention, it is LN.
But Thank you anyway.
george7a
22nd November 2006, 13:00
Hi,
Are you talking about a dynamic session?
- George
schweizer
22nd November 2006, 13:15
Yes it Dynamic and Intergrated.
The problem is, it does not stop on the choice.cont.process section.
Now I created a new session and I want to add the cont.process, how can I do it?
Schweizer
bigjack
22nd November 2006, 13:51
Buttons in LN is a boon.
Create a form command and choose function in the drop down box. Now code the rquired logic which you were going to code in cont.process in a new function(make sure you add the keyword 'extern' before the function name)
Add the name of function in the form command created above.
Buzz me if you need any further help
schweizer
22nd November 2006, 14:24
Thank you, bigjack
it works perfectly.
Only one question left, but not really important, cause time will tell.
How can I delete the buttons what are created be default, from the form.
Thanks again
Schweizer
dilipk.pandey
22nd November 2006, 15:00
Thank you, bigjack
How can I delete the buttons what are created be default, from the form.
Select the session,Go to Standard Commands from specific and there you can remove the unwanted buttons...
Enjoy.
Dilip.
schweizer
22nd November 2006, 15:17
Thank you very mutch Dillip.
lbencic
22nd November 2006, 16:56
Just adding, if you have an old:
choice.cont.process:
section, you can make a Form Command calling the function:
exec.cont.process()
And it will trigger that choice.cont.process section. The same is true for the old choice.user.0 etc. sections. For backward compatibility.