local rowset &rs = getRowset(scroll.C_TEST_TBL); FOR &i = 1 TO &rs.activeRowCount FOR &l = 1 TO &rs(&i).getRecord(Record.C_TEST_TBL).fieldCount; &rs(&i).getRecord(Record.C_TEST_TBL).getField(&l).enabled = false; end-for; end-for;
Local Rowset &rsC_EP_APPR_M_VW = GetLevel0()(1).GetRowset(Scroll.C_EP_APPR_M_VW); Local number &i; If &rsC_EP_APPR_M_VW.GetRow(&i).Selected Then If &strC_EP_DOC_IDs = "" Then &strC_EP_DOC_IDs = "'" | &rsC_EP_APPR_M_VW.GetRow(&i).C_EP_APPR_M_VW.C_EP_DOC_ID.Value | "'"; End-If; End-For;
grid中的每行数据序号赋值: If All(C_EDCT_BAKG_TBL.C_EDCT_IN_DT.Value) Then C_EDCT_BAKG_TBL.C_SEQUENCE_NUM.Value = CurrentRowNumber(); End-If;
判断某条数据是否被修改
1 2 3 4 5 6 7 8
If %CompIntfcName = "C_SB_GJJ_SAVE_COM_CI" Then If GetRowset().GetRow(CurrentRowNumber()).IsChanged Then If C_GJ_CALC_RES_T.C_IS_UPDED.Value = "Y" Then Error MsgGet(20001, 4, "Message Not Found"); End-If; End-If; End-If;