Hi All,
When I trying fill table by filtering table. when it gets record it works okey. But when the table gets 0 record dynamics NAV crashes .
any suggestion?
Thanks
Anil
Hi All,
When I trying fill table by filtering table. when it gets record it works okey. But when the table gets 0 record dynamics NAV crashes .
any suggestion?
Thanks
Anil
you mean manually or through coding?
can you show us the code if via coding?
Through coding,
BOMComponent.SETRANGE(BOMComponent.“Parent Item No.”,“Item No.”);
BOMComponent.SETRANGE(BOMComponent.Type,BOMComponent.Type::Item);
IF “Source Type” > 0 THEN
BOMComponent.SETRANGE(BOMComponent.“Source Type”,“Source Type”);
when This BOMComponent. returns 0 records it crashes…
I guess Source Type is a customized field…
is it an option type?, if yes, did you try with values rather than integer?
Thanks Mohana,
Option fields filtered by integer and it worked,
the problem was with this line :
BOMComponent.SETRANGE(BOMComponent.Type,BOMComponent.Type::Item);