NetTalk Central

Author Topic: Code for "Other" button NT8.51  (Read 4657 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 323
    • View Profile
    • Email
Code for "Other" button NT8.51
« on: June 30, 2015, 02:13:45 PM »
Hi Guys,

I am trying to set a session variable by adding an "Other" button to a NWB.
I can't seem to find the correct embed for adding source-code to the button.

Nothing happens when adding code to the Value:Routine for the button.

Should I perhaps use another embed?



JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Code for "Other" button NT8.51
« Reply #1 on: June 30, 2015, 05:20:22 PM »
Hi,

Perhaps try: on the properties of the button, on the "Client-Side" tab, check "Send Button Click to server" and then click on the "Server Code" button.

Regards

Parker

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Code for "Other" button NT8.51
« Reply #2 on: June 30, 2015, 11:07:21 PM »
what Parker said -
and the correct embed point is the
Validate::whatever  routine
not the Value::whatever routine

cheers
Bruce

rupertvz

  • Sr. Member
  • ****
  • Posts: 323
    • View Profile
    • Email
Re: Code for "Other" button NT8.51
« Reply #3 on: July 01, 2015, 01:40:56 AM »
Thanks Bruce,

When I tick the box "Send Button Click to server" the NWB button almost becomes a flat checkbox?

When I click the button in the NWB it dimms, and stay dimmed even if I click another row.

When I uncheck "Send Button Click to server" the button goes back to a "normal" push button.

Am I doing something wrong?

PS:  The code for session value works when "Send Button Click to server" selected :-)

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Code for "Other" button NT8.51
« Reply #4 on: July 01, 2015, 10:27:58 PM »
>> Am I doing something wrong?

sounds like it. Maybe you should post an example so we can see the effect here.

cheers
Bruce