NetTalk Central

Author Topic: Change form from Insert to change  (Read 3718 times)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Change form from Insert to change
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Change form from Insert to change
« Reply #1 on: March 15, 2009, 10:44:39 PM »
Are they selecting the supplier via a lookup, or a drop-down?

Cheers
Bruce

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Change form from Insert to change
« Reply #2 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

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Change form from Insert to change
« Reply #3 on: March 17, 2009, 12:39:44 AM »
Bruce any updates to this one yet?