Announcement

Collapse
No announcement yet.

How do I determine what mode a form is in?

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

  • How do I determine what mode a form is in?

    I have seen this thread...

    http://www.scriptcase.net/forum/show...ight=form+mode

    ...but it doesn't help.

    Can anyone tell me how, from within a form, I can tell what mode (insert or edit) the form is in?

  • #2
    Afaik, you cannot.
    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
      Afaik, you cannot.
      Wow. That's not good.

      If I choose to edit a record from a grid the form header will say "Editing"
      If I choose to add new from a grid the form header will say "(New Record)"

      So the form obviously knows.

      Alternatively, is it possible to call a php method when a button is pressed before the form is loaded?

      Comment


      • #4
        No, not in a grid. But why not take matters in your own hands and create the buttons.
        You can pass a parameter and know exactly where you're at.

        jsb

        Comment

        Working...
        X