Greeting everyone
i've created a new form
in my new form if i selected worker i need to populate date on my form automatically from other form
let me explain more
when chose worker
i need to populate expiration date
from this form
so i crated modify method on worker grid
and here my code
public boolean modified()
{
boolean ret;
HcmWorker hcmWorker;
HcmIdentificationType hcmIdentificationType;
HcmPersonIdentificationNumber hcmPersonIdentificationNumber;
int64 TypeId;
int64 personId;
date idend;
select firstOnly RecId from hcmIdentificationType where hcmIdentificationType.Description =="Passport";
TypeId=hcmIdentificationType.RecId;
select Person from hcmWorker where hcmWorker.recid == this.value();
personId=hcmWorker.Person;
select ExpirationDate from hcmPersonIdentificationNumber where hcmPersonIdentificationNumber.Person==personId &&
hcmPersonIdentificationNumber.IdentificationType==TypeId;
idend=hcmPersonIdentificationNumber.ExpirationDate;
Grid_ExpireDate.dateValue(idend);
Grid_ExpireDate.modified();
ret = super();
return ret;
}
but still not change date on my custom grid