NetTalk Central

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
The Rest - Share Knowledge / Re: Posting a file to a web site
« Last post by ILEANA PETERSEN on April 17, 2025, 03:08:03 PM »
Hi Seanh,

Your post helped me resolve a similar issue, but now when I try to post the CSV file, I get Error -71

"The SSL Remote Certificate Common Name did not match the Server Name."

Any suggestions on how to resolve this error?
22
Web Server - Ask For Help / Re: Changing theme has no effect
« Last post by Jane on April 17, 2025, 10:53:23 AM »
Spelling counts.
Using exactly what you see in debugview, can you use that exact text value and change the theme from the URL?

i.e.

http://127.0.0.1:88/?_theme_=palmtree
23
Web Server - Ask For Help / Changing theme has no effect (RESOLVED)
« Last post by Poul Jensen on April 17, 2025, 02:27:20 AM »
In Webhandler - ParseRequestHeader I have:

Code: [Select]
GloTheme =  GETINI('KundeProg','Theme_' & p_web.GSV('CommandA') ,'redmond', clip(path()) & '\KundeProg.ini')
ds_outputdebugstring('In ParseRequestHeader - GloTheme: ' & GloTheme )

self.ChangeTheme( GloTheme )

but no change in theme is being done.
I have verified that the correct theme is picked from the ini-file.

Any hints?

tia
/Poul

24
Web Server - Ask For Help / Re: Pass parameter in servercall?
« Last post by Poul Jensen on April 17, 2025, 12:32:39 AM »
p_web.StoreValue('a')
Is the best way to set a session value to a value, because then if the value doesn't exist (as a parameter) it does not overwrite the session value.
I expect you are just overwriting your session value to blank when the value does not exist.

Thanks Bruce - spot on.
25
Web Server - Ask For Help / Re: Pass parameter in servercall?
« Last post by Poul Jensen on April 17, 2025, 12:32:03 AM »
You'll need to set your filename variables EACH TIME your code runs through p_web.ProcessLink in the webhandler (because each pass through there is happening on a new thread), so set the session values the first time (when they're sent as parameters) then use those session values to set the filename variables EACH TIME.

That was the missing piece :-)

Thanks Jane.
26
Web Server - Ask For Help / Re: Pass parameter in servercall?
« Last post by Bruce on April 16, 2025, 06:45:26 PM »
p_web.StoreValue('a')
Is the best way to set a session value to a value, because then if the value doesn't exist (as a parameter) it does not overwrite the session value.
I expect you are just overwriting your session value to blank when the value does not exist.
27
Web Server - Ask For Help / Re: Pass parameter in servercall?
« Last post by Jane on April 16, 2025, 03:22:59 PM »
Works for me, Poul.
How are you storing the parameter?  If you're putting it into a sessionValue, it should be sticky and persist through the login and beyond.

You'll need to set your filename variables EACH TIME your code runs through p_web.ProcessLink in the webhandler (because each pass through there is happening on a new thread), so set the session values the first time (when they're sent as parameters) then use those session values to set the filename variables EACH TIME.
28
Web Server - Ask For Help / Re: Pass parameter in servercall?
« Last post by Poul Jensen on April 15, 2025, 10:43:24 PM »
Hi Alberto,

That is what I am using, but at soon as I click the button for the login window, the filename variables are being reset.

Cheers
/Poul
29
Web Server - Ask For Help / Re: Pass parameter in servercall?
« Last post by Alberto on April 15, 2025, 11:46:01 AM »
Use the ProcessLink() WebHandled Method, there you can change the database.
Cheers
30
Web Server - Ask For Help / Re: Pass parameter in servercall?
« Last post by Poul Jensen on April 15, 2025, 08:21:01 AM »
Let me expand on this:

What I want to achieve, is to call the app with a parameter, read this parameter and change the filenames global variable names, so they point to a specific dataset.
As per the docs re Multiple Data Sets:  https://www.capesoft.com/docs/NetTalk14/NetTalkWebBasic.htm#MultipleDataSets, I have tried the webhandler RequestHostSet embed to read the parameter and save it in a session variable.

But next time through the webhandler this is being reset.

So I need some guidance here for the best approach.

tia

/Poul
Pages: 1 2 [3] 4 5 ... 10