NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: kevin plummer on March 15, 2009, 05:43:53 PM

Title: Change form from Insert to change
Post by: kevin plummer on March 15, 2009, 05:43:53 PM
Hi All,

Is it possible to change an insert form from a browse to change mode? I want to physically insert the record when the user selects a supplier and not when they click on save. As this form has child records it will stop them loosing entries if they click on something else or the session times out etc.

I tries setting the following but no luck.

        p_web.SetSessionValue('FormNewDraftPO_CurrentAction',ChangeRecord)
        loc:action = p_web.site.ChangePromptText
        loc:act = ChangeRecord


Cheers,

Kevin
Title: Re: Change form from Insert to change
Post by: Bruce on March 15, 2009, 10:44:39 PM
Are they selecting the supplier via a lookup, or a drop-down?

Cheers
Bruce
Title: Re: Change form from Insert to change
Post by: kevin plummer on March 16, 2009, 01:29:43 AM
A forced lookup.

I was going to trigger the insert after they selected a vendor and then set a SSV flag so if they selected another vendor it did not try to insert again.

Cheers,

Kev
Title: Re: Change form from Insert to change
Post by: kevin plummer on March 17, 2009, 12:39:44 AM
Bruce any updates to this one yet?