NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on June 30, 2015, 02:13:45 PM

Title: Code for "Other" button NT8.51
Post by: rupertvz 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?


Title: Re: Code for "Other" button NT8.51
Post by: JPMacDonald 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
Title: Re: Code for "Other" button NT8.51
Post by: Bruce 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
Title: Re: Code for "Other" button NT8.51
Post by: rupertvz 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 :-)
Title: Re: Code for "Other" button NT8.51
Post by: Bruce 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