[SOLVED] Tree menu -> Form New mode

Hi all,

Maybe it’s an easy question but…

It’s the first time I use tree menu, and I’m trying to create an item “New product” to call a form to create a new record. But Form don’t opens form in new mode, but editing.

Some idea? :confused:

[QUOTE=Giu;31942]Hi all,

Maybe it’s an easy question but…

It’s the first time I use tree menu, and I’m trying to create an item “New product” to call a form to create a new record. But Form don’t opens form in new mode, but editing.

Some idea? :confused:[/QUOTE]

To open a form in insert mode you need to apply macro sc_apl_conf(“my_form”, “start”, “new”); i.e. in the onexecute of the menu.

Oh interesting. I guess there are some macro then to known what item men? was clicked true?

Yes, in the onexecute you can findout which item was clicked.

Thanls Albert, i will investigate :wink:

Ok:


if ({sc_menu_item}=="item_3"){
	sc_apl_conf("form_consulta_loteproducto", "start", "new");
}

Thanks :wink: