to pass records In lispage interaction class in selection changed method we can wright as follows
public void selectionChanged()
{
Query _query;
this.listPage().actionPaneControlParameters(formControlStr(RentalJobListPage,Intake),rentalord.RentalOrderid);
this.listPage().actionPaneControlParameters(formControlStr(RentalJobListPage,OutTakeRentals),rentalord.RentalOrderid);
super();
}
To filter records in listpage
public void initializeQuery(Query _query)
{
Query query= new Query();
QueryBuildRange qbr,qbr1;
QueryBuildDataSource qbds,qbds1;
if (this.listPage().listPageArgs().externalRecord())
{
rentalord = this.listPage().listPageArgs().externalRecord();
rentalJobHeaders=RentalJobHeaders::findbyRentalorderId(rentalord.RentalOrderid);
qbds = query.addDataSource(tableNum(RentalOrders));
qbr= qbds.addRange(fieldNum(RentalOrders,RentalOrderid));
if (rentalJobHeaders.Jobid)
{
qbr.value(rentalord.RentalOrderid);
}
else
{
qbr.value(SysQuery::valueEmptyString());
}
}
super(_query);
}
No comments:
Post a Comment