NetTalk Central

Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Web Server - Ask For Help / Change Page Title - browser tab description
« Last post by JohanR on November 29, 2025, 10:11:28 PM »
Hi,

How to update the browser tab heading dynamically as a user changes fields on a form.
eg. change from quote to order , then to change the browser tab description from the quote nr to the order nr


Changing a tab heading I used the following
p_web.ntForm(loc:formname,'setTabHeadingText',0,clip(loc:quote_tab_text))

I see the this line in the webhandler when the page is created 
p_web.MakePage('OrderMasterForm',Net:Web:Form,p_web.site.LoginRequired,p_web.GSV('my_title'),,,)

However cannot find how to update the browser tab


thanks

Johan















42
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« Last post by rjolda on November 26, 2025, 12:36:25 PM »
HI Johan,
I have an NT App and used session data all over the place.  I added an API which talks to an outside kiosk.  After a few iterations I found that the API had ITS OWN SESSION ID and it was NOT the same SESSION ID as the app... interesting, but the remote kiosk interacts with the API on its own thread and has its own session values.  So, the p_web session data that I passed to the API procedure from my NT app did not work ( since the API procedure was using its own Session ID.  ) After I thought about it a little, it made sense. I had to pass my data into the API via a few fields in a record that was shared by both the API and NT app.  It was not worth trying to dig out Session Data by Session ID from the QUEUE.. but, I learned that p_web has scope to it. 
Ron
43
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« Last post by Jane on November 25, 2025, 03:27:08 PM »
I don't understand, Johan, but I'm glad you do ;)

If you pass p_web into a function, then within that function you can do the regular p_web.GSV('blah') or p_web.SSV('blah','blork')

As for the structure of the session data, you might look through netwebsessions.inc at the various queue types and netwebsessions.clw for how they're being accessed.

44
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« Last post by JohanR on November 25, 2025, 08:20:43 AM »

Hi Jane

Thanks , I do pass p_web into other functions and have that working when it's functions that work with p_web and session variables,
but in this case it's a function that only receives a stringtheory object and then populates the data.

It's unaware of which specific session variable to load or unaware that it's a NTWS

I have it working with a temp stringtheory object, was just looking at it and thinking there was a way to reference the session variable as a stringtheory obect and then pass that in.


thanks

Johan




45
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« Last post by Jane on November 25, 2025, 08:02:24 AM »
Pass the p_web object as one of your parameters.

Here's a prototype example from one of my procedures where p_web is the first of two parameters I'm passing.

Code: [Select]
(NetWebServerWorker p_web,LDAPParametersGroupType pParms)
46
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« Last post by JohanR on November 25, 2025, 04:47:44 AM »
Hi,

Sorry had to add, this is how I am doing currently.

my_tmp_st  stringtheory

     MyFunction(my_tmp_st)
     p_web.SSV('session_var',my_tmp_st.GetValue())


Johan



47
Web Server - Ask For Help / Pass a Session Variable as a parameter?
« Last post by JohanR on November 25, 2025, 04:33:26 AM »
Hi,

Sure I know this but it's buried in the year end brain fog of too much screen time and not enough down time....
Think I might even have asked this somewhere, sometime, but cannot find the answer. :)


How to pass a session variable to a function.

As I understand session variables are stringtheory objects, so if I have a function like
MyFunction(stringtheory tmpstr)

How do I pass a session variable into that function without using intermediary strings



thanks


Johan







48
Web Server - Ask For Help / Re: Webserver and secwin 7 Logout with default deny
« Last post by seanh on November 23, 2025, 05:14:43 PM »
I've managed to solve this with a bit of a hack.
I've added the following code to p_web.RestrickOK  in the webhandler

        if pProcedure = 'SecwinLogoutWeb'   !smh Hack to get logout ok
            ReturnValue = sw:CanAccess
        END

It doesn't really feel like the right/best way do do it.  But it does work.
49
Web Server - Ask For Help / Re: Anyone have passkeys implemented
« Last post by Jane on November 19, 2025, 02:29:15 PM »
Thanks, Sean.

I had rolled my own AD groups permissions for web apps before SecWin 7 was released and it works OK.  I just took a quick look at SecWin 7's groups when it was released and couldn't see an easy way to make it work seamlessly for what I needed so stuck with what I already had.

Hope you're doing well.

Jane
50
Web Server - Ask For Help / Re: Anyone have passkeys implemented
« Last post by seanh on November 19, 2025, 02:22:23 PM »
Jane, 
I don't use secwin in the app I have that uses AD so I've never looked.   
Pages: 1 ... 3 4 [5] 6 7 ... 10