Announcement

Collapse
No announcement yet.

[SOLVED] Tree menu -> Form New mode

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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?
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

  • #2
    Originally posted by Giu View Post
    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?
    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.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Originally posted by aducom View Post
      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?
      /Giuseppe

      Professional Scriptcase Services
      Some Customers opinions

      Comment


      • #4
        Yes, in the onexecute you can findout which item was clicked.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Thanls Albert, i will investigate
          /Giuseppe

          Professional Scriptcase Services
          Some Customers opinions

          Comment


          • #6
            Ok:

            PHP Code:
            if ({sc_menu_item}=="item_3"){
                
            sc_apl_conf("form_consulta_loteproducto""start""new");

            Thanks
            /Giuseppe

            Professional Scriptcase Services
            Some Customers opinions

            Comment

            Working...
            X