i've found this solution, amit jain told me. just add code below in datasource at active method. ledgerJournalTrans_ds.object(FieldNum(LedgerjournalTrans,AccountNum)).allowedit(ledgerJournalTrans.settlevoucher != settlementType::SelectedTransact); ledgerJournalTrans_ds.object(FieldNum(LedgerjournalTrans,AccountType)).allowedit(ledgerJournalTrans.settlevoucher != settlementType::SelectedTransact); ledgerJournalTrans_ds.object(FieldNum(LedgerjournalTrans,PostingProfile)).allowedit(ledgerJournalTrans.settlevoucher != settlementType::SelectedTransact);
Joe DeRoche <[EMAIL PROTECTED]> wrote: I believe there is a way to apply a security certificate at the field level that might accomplish what you are looking for. --- Wahyudin Zakie <[EMAIL PROTECTED]> wrote: > Hi all.. > I am a beginer in Axapta and X++. > I am using axapta 3.0, i want to know the code how > to lock some field. > For example when i using function settlement in > journal, i want to lock accountnum,accounttype,and > postingprofile. so user can not change that field > after using function settlement. Thank's for your > help... > > Zakie > --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. [Non-text portions of this message have been removed]