NetTalk Central

Author Topic: How to hand code "loc:formaction"?  (Read 4295 times)

skyong38

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
How to hand code "loc:formaction"?
« on: April 22, 2019, 10:55:39 PM »
Hi,

I want the insert Form show save button as "Create", after user click "Create", it remain on Form screen and change to Change Mode.
            CASE Loc:Act
            OF Net:INSERTRECORD
                p_web.site.SaveButton.TextValue = 'CREATE'
            ELSE
                p_web.site.SaveButton.TextValue = 'SAVE'
            END
"Create" & "Save" able to do thru hand code.

How about loc:FormAction? I only manage to fill it at General page, URL on Save, and code generated as below:-
            If loc:formaction = 'stay'
                loc:FormAction = p_web.Requestfilename
            Else
                loc:formaction = 'UpdateInv?change_btn=change&_bidv_='&_web.AddBrowseValue('UpdateInv','Invoice',Inv:RefNo_Key)
            End

How can I hand code loc:formaction?
If loc:formaction = 'stay'
                loc:FormAction = p_web.Requestfilename
            Else
                If Loc:Act = Net:INSERTRECORD
                     loc:formaction = 'UpdateInv?change_btn=change&_bidv_='&_web.AddBrowseValue('UpdateInv','Invoice',Inv:RefNo_Key)
                Else
                     loc:formaction = p_web.getsessionvalue('SaveReferUpdateInv')
                End
            End

Thank you.

Regards,
Nelson