VishalMistry
11th February 2016, 16:46
Hi,

I have a maintain session (with no report linked). What I want is when user clicks on standard print button, another print session should open.

I wrote the code in choice.print.data section but it is not executing.

Can anybody guide me how this can be achieved ?

Vishal

mark_h
11th February 2016, 18:15
Post your code maybe someone will see something. At the same time make sure you have that option enabled on the form.

bhushanchanda
11th February 2016, 20:29
Hi,

Write your code in after.choice: section instead of on.choice: section.

If you report is not linked, the on.choice section might not get executed.

Ajesh
12th February 2016, 05:13
So what are you using exactly? set.synchronized.dialog() or start.synchronized.child() or start.session or zoom.to$()

günther
12th February 2016, 07:37
Just a blind guess: Link a dummy report to your session so that the standard program gets satisfied.

Regards
Günther

vamsi_gujjula
12th February 2016, 11:41
that is true even in print session ..

on choice works only when report is attached ... otherwise .. we need use after.choice:

Ajesh
12th February 2016, 15:15
choice.print.data:
on.choice:
start.session(MODELESS,"tdtsttest.print")


Howz This?

VishalMistry
16th February 2016, 10:26
Hello Bhushan-Ji,

Thanks a lot. Your idea worked after putting the code in after.choice:

Vishal