NetTalk Central

Author Topic: Send value of Hot field to server  (Read 2882 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Send value of Hot field to server
« on: December 07, 2011, 03:08:00 PM »
Hi,

I have a browse with an EIP checkbox.
True = 1 and False = 0.
The box represents a local var which is set in the "2 Set Queue Record" depending on a test I do.

In the browse is a hot field I want to "send along" when the new value of the check box is sent to the server, so I can use it in the server side processsing.
Is this possible?

Cheers,
Rene
« Last Edit: December 07, 2011, 09:23:27 PM by Rene Simons »
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Send value of Hot field to server
« Reply #1 on: December 07, 2011, 07:47:20 PM »
Hi Rene,

are you asking if there is an embed you can trap when the check box is changed?
sure - it's in validate::field - see the "tagging" example.

cheers
Bruce


Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Send value of Hot field to server
« Reply #2 on: December 07, 2011, 09:19:54 PM »
Hi Bruce,

No, I want to use the value of the Hot Field in the server side code.
The Check Box is used:
  • To indicate wether a situation is True or False;
  • To toggle that sitiation.
For the change, I need the value of the Hot Field in the server side code.

I checked the example you noted in your reply but I don't think it answers my question.
I tried to put the value of the Hot Field in an SV. But the Hot Field and/or "isn't there".


Cheers,
Rene
« Last Edit: December 07, 2011, 09:23:11 PM by Rene Simons »
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Send value of Hot field to server
« Reply #3 on: December 07, 2011, 11:35:35 PM »
Hi Rene,

II think the root problem is the concept of what a "hot field" really is. From my side it's nothing more or less than a way of you adding fields to the generated VIEW. This VIEW is in play when the browse is generated.

When you click on a checkbox, as an EIP column, then the View is not used. thus at this point there's no way to access "other values in the same row" because, well because the server has no memory of the row. If you need to "re-read" the row (the ID of the row is sent) then you need to do that yourself.... sometimes....

Depending on the template settings it may have loaded the reocrd, and it may refresh the whole row when completed. If you look at the generated code you'll be able to see what is happening there in the way of what records are loaded etc. If you need to access other files in that embed, you'll need to open the files yourself.

cheers
Bruce




Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Send value of Hot field to server
« Reply #4 on: December 08, 2011, 12:20:48 AM »
Thanks Bruce,

I'll look into that and eventually inform you on my progress.

Cheers,
Rene
Rene Simons
NT14.14