Announcement

Collapse
No announcement yet.

Master/Detail Forms

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

  • Master/Detail Forms

    Does anyone know how to access the field on a master form like {fieldonmasterform}?

    I would prefer to not use the sc_lookup method as a user can change the value on the field without saving if there are already child rows in the details form...

    Any thoughts?

  • #2
    I think is not possibole, only exist a macro for put a value to master. It very necessary a macro for make that functionality.

    Comment


    • #3
      Read a value from a master form: $your_value = [form_masterform_fieldname];
      Best regards: - Reinhard -

      I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

      Comment


      • #4
        Just looking in View / Data in session menu

        Code:
        $sess_code = $_SESSION['scriptcase']['sc_num_page'];
        $myValue = $_SESSION['sc_session'][$sess_code]['form_name']['dados_form']['field_name'];
        In my case field_name is always in lower case
        Giorgio Bravi
        Dolphin Software & Thinkware
        www.dolphin.it

        Comment


        • #5
          Or better define in master form a session variable, assign value on onChange event and get from code in detail as [mysessionvariable]
          Giorgio Bravi
          Dolphin Software & Thinkware
          www.dolphin.it

          Comment


          • #6
            Thanks everyone...last suggestion works!

            Comment

            Working...
            X