Table relation Question

uri84uri84 Member Posts: 30
edited 2014-03-19 in NAV Three Tier
Hi all, i want to make a question to see if anybody can help me.I have this table relation in Nav2013 r2:

IF (Resource No=FILTER(<>'')) "Job Task"."Job Task No."
WHERE (Job No.=FIELD(Job No.),
Status=FILTER(<>Finalized&<>Rejected),
Resource No.=FIELD(Resource No))

It Works Perfectly but i have a question, i want to know if its possible to say in Resource No Field that i want to filter by Resource No, and when resource no value is ''. is it possible??

What i want is something like this...
Resource No.=FIELD(Resource No)) OR Resource No.=FIELD(Resource No = ''))

This is in the property of tablerelation.

Thanks!

Comments

  • vremeni4vremeni4 Member Posts: 323
    Hi,

    If I understand the question correctly you want to show all records with the same "Resource No." plus all records with blank "Resource No."

    I think this is not possible as "OR" option is not supported in the table relation property for Type "FIELD".
    If you use FIELD, then you cannot use FILTER and another way around.
    Resource No.=FIELD(Resource No)) OR Resource No.=FIELD(Resource No = ''))

    The only way around is to write a code on the Lookup trigger that would have the same effect. You could use a query object to achieve this.
  • thegunzothegunzo Member Posts: 274
    Perhaps by adding a FlowFilter field that will have

    SETFILTER("Resource No. Filter",'%1|%2',"Resource No.",'')

    and use the table relation to the flowfilter ???
    ________________________________
    Gunnar Gestsson
    Microsoft Certified IT Professional
    Dynamics NAV MVP
    http://www.dynamics.is
    http://Objects4NAV.com
Sign In or Register to comment.