In 4.0 , EP is statelesess. So you should not store your variables in memory. Instead you should pack and store it in ASP.NET view state and unpack and use it.
Look for examples in EPSalesCreateTunnel or Questionnaire on how to use view state related events and store and retrieve objects in View State. Thanks Mey http://blogs.msdn.com/solutions --- In [email protected], "evets evets" <[EMAIL PROTECTED]> wrote: > > 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=40 56&p=5117 >

