Hi,

As such i am not facing any problems but i still dout, 
whether or not we can use putPageSessionObject() in btnSave_onWebEvent() 
and btnrefresh_onWebEvent() events 
and getPageSessionObject in this_onBeforeDisplayEvent()...

Will this do any romance in MULTI USER ENVIRONMENTS?...

Suggestions are greatly appreciated...

Here goes the code i have been using:

this_onBeforeDisplayEvent()
{
        ......
        try
        {       ....
                year=getPageSessionObject("YEAR").intValue();
                month=getPageSessionObject("MONTH").intValue();
                ....
        }
        catch(NullPointerException e)
        {
                //Get Server year and month
                CSpDatetime date = new CSpDatetime();
                year = date.getYear();
                month=date.getMonth() + 1;
                .......
        }
        ......
}
btnSave_onWebEvent()
{
        ..........
        putPageSessionObject("YEAR", new CSpInteger(_year));
        return this.load();
}

btnRefresh_onWebEvent()
{
        .........
        putPageSessionObject("YEAR", new CSpInteger(_year));
        putPageSessionObject("MONTH", new CSpInteger(_month));
        return this.load();
}

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to