mitchell
23rd May 2006, 18:40
I needed to add a field to a form, however I do not have source code and therefore could not define this new field. So I created my own session (with the new field I needed) and used stpapi fields to run the standard Baan session. My problem is that I don’t know how to pass the “new field” from my session to the report. Would I just use the stpapi.put.field to pass this variable to the report?

Thanks
Barb

mark_h
23rd May 2006, 19:18
Nope - the problem is that this new variable exists only in the new API session and not in the Baan session and report. I am not sure if this will work, but it is worth a shot. Before calling the BAAN session with stpapi commands export the variable. Go to the report and edit/create a report script. In the before program section try importing the new variable. Of course I am assuming that this is just a plain variable and not actually part of the detail records of the report itself. Since I do not really know what you are trying to do it makes it hard to come up with solutions.

mitchell
23rd May 2006, 19:37
Thanks Mark, I will give it a try.