cherokee
19th June 2003, 22:30
Hello everyone,

I am calling the function get.screen.defaults() in init.form: section, but my session does not get them, on less you go to session menu... options/get.defaults, then it got them.

any Idea,

Best regards

Carlos Gonzalez

NPRao
19th June 2003, 22:41
Carlos,

1. Is it a print/process session ?

2. Are the standard commands - Save & Get Defaults enabled ?

3. Does your code look like -

form.1:
init.form:
get.screen.defaults()


Refer to - get.screen.defaults() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_form_and_form_field_operations_get_screen_defaults)

NOTE- The save.defaults standard command enables users to save the current field values of a session as the default values for that session. The get.screen.defaults() function displays the default values for all fields on all forms of the current session. It is often used at the start of update or print programs, where the user must specify some parameters before executing the session.

4. Did you dump your session/form and compile your script ?

cherokee
19th June 2003, 22:47
It is print session and the code is this:

form.1:
init.form:
get.screen.defaults()

It should be something in the baan installation, because in our test server works fine and in the production is not working

Thanks again.

NPRao
19th June 2003, 22:50
In that case compare the size, date etc info of -

ottstpstandard tools object.

You might be working with 2 different tools patches/versions.

steveauckly
19th June 2003, 23:08
Try deleting the "o" file on the app server and recompile.

Also, just to be sure, this is not in a job is it? Job processes would not perform the init.form section.

cherokee
23rd June 2003, 16:42
Yes we are workgin with two different patches. In the old one (production) no session retrieves the screen defaults. Could be something on the BaaN/User configuration to enable this to work?

Thanks again.