Announcement

Collapse
No announcement yet.

How to default form app to 'Add mode' rather than listing of records?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to default form app to 'Add mode' rather than listing of records?

    hi gurus,

    how could i default/simulate the 'add' button when page is loaded?
    Rather than showing the default record listing via form app?

    Thanks

  • #2
    I.e. on the onexecute of the menu you put some code like this:

    if ({sc_menu_item} == "item_1")
    {
    sc_apl_conf("form_ndelectronicgiro", "start", "new");
    }
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Under sample project 'Project Management', there is an app 'form_add_contacts' it's defaulted to 'insert' without going through 'menu' app, may i know how it did that?
      i try to study from this sample app but have no idea how it achieve it.

      Comment


      • #4
        It goes the same way.

        sc_apl_conf("your app", "start", "new");

        will set your app in a insert mode. The only thing is that you need to do this *from another app*. I.e. a menu or some other form before doing a sc_redir.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment

        Working...
        X