Hi ,
I am working on HR module where i worked on Loan item equipment form , where i don't need the loan item field because at the place of loan item , i need inventory item id field , but while creating new record on form , it is showing Filed Loan must be filled in .
when i am trying to change mandatory properties thru extension , it is not allowing me ,
i have written code on form data source level ,but it is not working
public boolean validateWrite()
{
boolean ret = next validateWrite();
FormRun formRun = this.formRun() as FormRun;
Formdatasource FrmDataSource_ds = this.formRun().dataSource(formDataSourceStr(HcmPersonLoan,HcmPersonLoan));
HcmPersonLoan hcmPersonLoan ;
hcmPersonLoan = FrmDataSource_ds.cursor();
if(!hcmPersonLoan.Loan)
{
ret = FrmDataSource_ds.object(fieldNum(HcmPersonLoan, Loan)).mandatory(false);
}
return ret;
}
please look in to this , and provide me the solution.