Dear Expert,
I'm junior developer , new on dynamic ax and customizing the program
On Account type ComboBox there are Customer, Vendor, Ledger,etc

When I change Account, I want to show data from other table
Here is my code :
public boolean modified()
{
boolean ret;
VendTable vendTable;
Args args = new Args();
;
ret = super();
if(LedgerJournalTrans_AccountType.selection() == LedgerJournalACType::Vend ){
info(strFmt(this.valueStr()));
//GET Data NPWP, Address and Tax Name
select vendTable join vSNAddrVend where vendTable.AccountNum == this.valueStr()
&& vSNAddrVend.CustRefRecId == vendTable.RecId;
info(VSNAddrVend.NPWP);
info(VSNAddrVend.TaxName2);
}
return ret;
}
The problem is when I select on Account for the first time (Account type was set to Vendor), the program cannot execute inside if condition
But when I change Account type to Customer(or other value) and change again to Vendor , the program execute inside if condition
Is there any problem on my code? Correct me if I'm wrong, thank you