NetTalk Central

Author Topic: send value to server appears not to be working for buttons  (Read 3783 times)

ozejohn

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • Email
send value to server appears not to be working for buttons
« on: December 29, 2008, 01:57:57 PM »
Hi,

I need to make a netwebform with a whole lot of buttons that run processes and routines. To test this I added a button to the example 1 application. I then clicked the return value to server checkbox for the button. In the embed point I put a message and a halt statement.

When I click the button the message and the holt statement never execute. I can see a get on the server but the embed code does not run.

Is there any way to make the send value to server checkbox to cause the embed code to work for buttons?  This is really critical to me as I have a lot of quite complex windows that need to trigger background processes from buttons.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: send value to server appears not to be working for buttons
« Reply #1 on: December 30, 2008, 01:22:02 AM »
Hi John,

I tested this in example 28.

(note: I had to add "text" to the Change button on the browse, which then allowed me to go to the form.)

There's a server button on the form, and the server code contains a STOP statement (which you will have to UNCOMMENT to see working...). That all seems to be working here, so here is the checklist for your server-side form button:

Type: MUST BE Button
Must nave a Name.
Hyperlink: Must NOT have anything set
Client-Side: Must be "Send new value to server" on.

And obviously, your embedded STOP statement must be in the right place.

cheers
Bruce

PS - some people have suppressed MESSAGE statements completely in their web apps, using MessageBox or something like it, and then forget this, and then of course using MESSAGE as a debug tool leads to some confusion....

ozejohn

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • Email
Re: send value to server appears not to be working for buttons
« Reply #2 on: December 30, 2008, 06:06:05 PM »
Bruce,

I agree Bruce it works. When I was testing this I had a hyperlink behind the button.

Thanks for the help and Happy New Year.

John Nairn