NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: the_question on February 10, 2026, 03:45:55 AM

Title: Question about PressedButton parameter
Post by: the_question on February 10, 2026, 03:45:55 AM
Hello,

Why link parameter ?PressedButton=SomeValue becomes somevalue=somevalue?

Is there a reason for changing name from pressedbutton to somevalue?

Code in NEtWeb.clw is
Code: [Select]
  ...
  temp = lower(self.GetValue('pressedbutton'))
  self.SetValue(clip(temp),clip(temp))
  self.DeleteValue('pressedbutton')
Title: Re: Question about PressedButton parameter
Post by: rjolda on February 11, 2026, 07:21:30 AM
HI,
Not sure exactly what your question is and what is NOT WORKING correctly for you.  But, I will take a stab at your question.  Net talk is NOT LIKE Clarion - the code that you write does not directly translate to the screen and back.  Because Web transactions are stateless - question, response, done - then the Code in the browser has to maintain continuity to appear as a running program to the end user.  Net Talk does this largely by session ids and then session data stored in queues on the user's machine. Considering this, ?PressedButton is represented in stored queue values which then are used by the net talk code to perform work or calculations and then update the HTML. THere is a lot of "behind the scenes work" going on and re-assignment that you are speaking of may be part of it. The real question is what is not working for you?
Ron
Title: Re: Question about PressedButton parameter
Post by: the_question on February 11, 2026, 01:39:32 PM
Thank you for reply. I understand how NetTalk works, and that it is different from native Clarion.

My question was only why value PressedButton is renamed to be as the value. I was just wondering why is that? Probably it is because when you go to some other page and that value exist, there could be some unexpected behavior. You would need to clear it before proceeding.

I have solved my problem by disabling option that action is included, and added my parameter to URL field 'NameOfPage?MyParam=VAL'.