Opening form application in add/insert mode

I have a new form that I need to open in add/insert mode from menu.

Form Name: form_sign_orders

I have this in my form onApplicationInit Event.

sc_apl_conf(“form_sign_orders”, “start”, “new”);

No luck. The form does not open in add/insert mode. I still have to hit the Add button to see the screen to add a new record.

I even added this code to remove the delete button. It did not work either.

sc_apl_conf(“form_sign_orders”, “delete”, “off”);

Can someone suggest what I’m doing wrong?

I’m using ScriptCase v9.7.008

Thanks in advance…

Mitch

Not sure if it applies, but use sc_apl_conf in the calling application. Not from the application itself.

If you open forms from the menu, then use this code in

onExecute

if ({sc_menu_item} == “item_10”)
{
sc_apl_conf(“form_sign_orders”,“start”,“new”);
}

But you need to change the number: item_xx
To be entered from your menu.

Thanks for the suggestions. That seemed to work. Adding code to my menu onExecute event.

Debe usar comilla sencilla ‘start’, ‘new’
sc_apl_conf(‘form_sign_orders’, ‘start’, ‘new’);

Confirma por favor que le funciono o no.

I would try single quotes instead of double quotes.
Im using it and it works fine.
javier