Hi,
When we make a PO, on selecting Item as the type, on lookup of Item list in No. field, only those items must be visible/marked those are having a boolean true named Sanct in item table.
As the item list opens on the lookup of the No. field of PO subform, i tried using the below code
on No.'s OnLookup trigger:
item.LOOKUPMODE(TRUE);
IF item.RUNMODAL = ACTION::LOOKUPOK THEN
item.GETRECORD(Sanct);
But didn't worked.
0
Answers
item.GETRECORD(Sanct); part of the code is not working. It says
Type conversion is not possible because 1 of the operators contains an invalid type.
Record := Boolean
Please try with below code.
Noted: If after work above code. Please care above post reply.
Regards,
Yukon
Tried the code on OnLookUp trigger of No., field, but the data isn't filtering on lookup still...
](*,)
This will be work.
Best Regards,
Yukon :oops:
But it isn't letting me select any item..
recItem.RESET;
recItem.SETRANGE("Sanct",TRUE);
IF NOT recItem.FINDSET THEN EXIT;
IF FORM.RUNMODAL(FORM::"Item List",recItem) = ACTION::LookupOK THEN
"No." := recItem."No.";
Why not simply :?:
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks ...! I must do next time .... :thumbsup:
Best Regards,
Yukon