Hi, in 4.0 a wession object seems to be created for each page...

Try to use the global cache to exchange parameters between pages/webforms.

SysGlobalCache globalCache = classFactory.globalCache(); (init method of the 
form datasource)

globalCache.set(str owner, anytype key, anytype value);

value = globalCache.get(str owner, anytype key, anytype returnValue = 
‘’);

+
Evets

>From: "mlefoa" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [development-axapta] Webform with query string
>Date: Fri, 09 Mar 2007 09:34:00 -0000
>
>I've created a webform which accepts a query string from the URL, i.e.,
>http://SERVER/URL/default.asp?projectcode=COMA
>
>In the init method of my webform I retrieve the query value ("COMA")
>by using:
>s = websession().getParm("projectcode");
>
>It works perfectly when the user is already logged into the Enterprise
>Portal.
>
>However, when the user is not logged in, the value is empty.
>
>I've tried using the WebArgs-class, but the problem is the same. When
>debugging it appears that WebApplication and WebSession is
>instantiated twice - and on the second instantiation the query string
>is lost.
>
>TIA.
>
>Regards,
>Morten
>

_________________________________________________________________
Mortgage rates as low as 4.625% - Refinance $150,000 loan for $579 a month. 
Intro*Terms  
https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h27f6&disc=y&vers=743&s=4056&p=5117

Reply via email to