Friday, 13 July 2012

Enable and Disable add and delete Buttons in Scroll:


 To enable and disable add/delete button using people code

Example With bit logic
 Local Rowset &PCS_CMP_HDR;
 & CMP_HDR = GetLevel0()(1).GetRowset(Scroll.PER_ROL_REC);
If &CMP_HDR(CurrentRowNumber()).PER_ROL_REC.WF_STATUS.Value = "A" Then
   &CMP_HDR.InsertEnabled = True;
Else
   &CMP_HDR.InsertEnabled = True;
End-If;

In front end  also you can do
1.


2.

Note:
 
In Scroll if all field all fields display only automatically add/deletions will become display only
to avoid this you have to make put at least one filed in editable and make visible property false

No comments:

Post a Comment