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:
Post a Comment