NetTalk Central

Author Topic: Second insert button  (Read 1242 times)

hkalmbach

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
    • Email
Second insert button
« on: March 22, 2014, 04:17:20 AM »
Hi,
i am looking for a solution of the following problem.
The user has a browse with an insert button which calls the udpate procedure. For normal cases he uses this to create a new record.
Now I need a way to tell the update procedure in some cases to do special priming of fields, but only in some cases.
I thought about creating a second insert button, but not really know how to do.
Or perhaps to have a check box on the browse and pass the value of the check box as parameter and then decide in the update procedure if some fields get special values or not.
But I also found no way.

Does someone has an idea?

Thanks a lot.

Heinz

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: Second insert button
« Reply #1 on: March 24, 2014, 01:07:20 AM »
Add your code to the PreInsert routine in the form. that's where priming is done.
Just remember to prime the actual field, and the sessionvalue of the field there.

cheers
Bruce