chavez
18th September 2019, 19:22
Hello,
Does anyone know how to set an "Initial Value" to a listbox created using dialog.add.listbox function in a programmable dialog?
Thank you
Chavez

mark_h
19th September 2019, 00:12
See if this example helps http://www.baanboard.com/programmers_manual_baanerp_help_functions_programmable_dialogs_example - to me it looks like what they do for the log by is what you are looking for.

chavez
19th September 2019, 18:59
Thank you Mark,
It doesn't work because it doesn't refresh the field and I'm getting an error calling the dialog.refresh.field function after changing the value.

mark_h
23rd September 2019, 17:29
What exactly is the error? I have never used this functionality, but maybe someone else has. The error might help them think of a solution. Might even want to post the relevant code.

oirfeodent
27th September 2019, 08:22
Thank you Mark,
It doesn't work because it doesn't refresh the field and I'm getting an error calling the dialog.refresh.field function after changing the value.

The example works.

Regards,