WINDOWS Live Search

To contact me for any clarifications regarding any posts / information, please mail me at arijit [dot] basu [at] gmail [dot] com


Wednesday, December 6, 2006

Use pack/unpack on Form

If you want to implement the pack/unpack mechanism on the Form {like the ones used in Runbase Classes} , it is easy ...

Besides Pack/Unpack, add these methods:

public dataAreaId lastValueDataAreaId()
{
return curExt();
}

private UserId lastValueUserId()
{
return curuserid();
}

private UtilElementType lastValueType()
{
return UtilElementType::Form;
}

private IdentifierName lastValueElementName()
{
return this.name();
}

private IdentifierName lastValueDesignName()
{
return '';
}


void initParmDefault()
{
}

In Close method of the form:
public void close()
{
super();
//add saveLast method after super()
xSysLastValue::saveLast(this);
}

in init method of the form:
public void init()
{
;

//Add getLast method before super()
xSysLastValue::getLast(this);
super();

}

No comments: