jp.aalders
15th June 2005, 16:52
Hi all,

I'm using ask.enum in the before.report to set variables printed on the report. Now I want on a simular wat to pop up a box in which the user can enter some information that needs to be printed on the report.

Any ideas?

:confused:

lbencic
15th June 2005, 17:21
One suggestion is to make a little zoom session for them to go enter their information into. Then you can call the zoom session and use import/export (or put.var etc.) to pull in the values for your report...? Never tried such a thing in the before report session, generatlly interaction in the report is not advised (it could hang if run as a batch / job, or reprinted...), but since you are already doing the ask.enum....

mgakhar
15th June 2005, 22:41
A simple solution could be to simply have an extra field on the form where the user can enter this data ?

Not sure what your requirement is but maybe this could help you.

MG.

nikos1
16th June 2005, 08:20
Hi,

you can use input.string.

Look for threads with the keyword 'ottdllinputstr'.

Regards

jp.aalders
17th June 2005, 12:12
Hi all,

Thanks for the response, main issue is that we don't want to modify the Baan standard program script ( session ). Therefore I cannot declare additional fields on the form of the session ( exept free$ ). The situation is that in the before.report section some questions are programmed using the ask.enum statement, this works fine. I know there's a trick to create a box on the the same way like using the ask.enum as I have done this before. Unfortunately my memory doesn't support me in this :confused:

So I'm looking for the way to create a pop-up on the screen in which the user can type some info.

Any help will be welcome!

nikos1
17th June 2005, 12:51
Hi,

just look in your own thread from 22-12-2004.

There you already got the answer. You can use "input.string" in report script.

Regards

jp.aalders
17th June 2005, 12:54
Hi all,

Thanks to Nikos remark I was set on the rigth track. For all, I used code below:

declaration:

#pragma used dll ottdllinputstr


before.program:

curr.emp = ask.enum("tdsls4403.02", tdfkr.easa.visser, ret)

on case curr.emp

case tdfkr.easa.visser:
name.user = "J. de Visser"
break

case tdfkr.easa.dongen:
name.user = "J. van Dongen"
break

case tdfkr.easa.other:

ret = input.string("Choice signing","Enter your name:",20,20, answer)
name.user = answer
break
endcase

Thanks all for your support!

JP :)