NetTalk Central

Author Topic: Making specific fields active on a View form...  (Read 2999 times)

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Making specific fields active on a View form...
« on: December 21, 2011, 03:56:28 PM »
I have a view form which the user can call up to show product information.  However, I would like to place a memory variable on this form, and a button, which will do a quick price calculation and display it on the same form.

Any way to easily make one of two fields 'active' again on a NetWebForm which has been show via the 'View' button?

Thanks!

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Making specific fields active on a View form...
« Reply #1 on: December 21, 2011, 11:24:57 PM »
no, nothing out the box there Devan.
However the way I'd probably do it (without having actually tried it) is to embed some code into the
value::fieldname routine
of the button.

You'll see there it uses loc:viewonly as the determining factor.
So you can save loc:viewonly at the top of the routine to a local variable, then set loc:viewonly to 0, then reset it at the end to its original state.

cheers
Bruce

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Re: Making specific fields active on a View form...
« Reply #2 on: December 22, 2011, 05:33:46 AM »
Bruce - you are a champion!

This suggestion worked perfectly! Thanks!