Listpage
interaction class:
Code for Action pane button enable and disabling:
1. selectionChanged()
if(NetAgreement.Status == NetAgreementStatus::Approved
&& NetAgreement.FinalizeAgree == NoYes::No)
this.listPage().actionPaneControlEnabled(formControlStr(NetAgreementList,FinalizeAgreement),true);
else
this.listPage().actionPaneControlEnabled(formControlStr(NetAgreementList,FinalizeAgreement),false);
2. selectionChanged()
public void
selectionChanged()
{
super();
this.setButtonEnabled();
if(netReservationTable.RentalApprovalState ==
ApprovalState::WorkflowCompleted)// &&
NetReservationListPage.& NetAgreement.FinalizeAgree == NoYes::No)
this.listPage().actionPaneControlEnabled(formControlStr(NetReservationListPage,btnReserve),true);
else
this.listPage().actionPaneControlEnabled(formControlStr(NetReservationListPage,btnReserve),false);
}
Action pane button enabling and disabling in form:
Form –datasource-(table of data source)-active method:
1.Active():
if(NetAgreement.Status ==
NetAgreementStatus::Approved && NetAgreement.FinalizeAgree ==
NoYes::No)
FinalizeAgreement.enabled(true);
else
FinalizeAgreement.enabled(false);
//ended by poorna...04/09/2013
return ret;
2.Active():
if(NetReservationTable.RentalApprovalState
== ApprovalState::WorkflowCompleted)//&&
NetAgreement.FinalizeAgree == NoYes::No)
btnReserve.enabled(true);
else
btnReserve.enabled(false);
No comments:
Post a Comment