Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Search function in Predefined filter

tejashriw155148
Level 4
Level 4

Hi,

I have added partId field in predefined filter but search function is not working as expected.

When I select filter name or email from list of filters its showing only those records where partId is equal to zero whereas I want all the records of partId.

 

Below is the logic which I have added in the predefine filter:

Logic in general tab:

tejashriw155148_0-1586264109355.png

 

Logic in Form tab:

<form maxLabelWidth="300">
<enter>
    <set value="0" xpath="@partyPartId"/>
  </enter>
  <container colcount="3">
    <input noTransaction="true" xpath="@lastName"/>
    <input noTransaction="true" xpath="@email"/>
    <input label="PartId" minValue="0" noTransaction="true" type="number" xpath="@partyPartId"/>
  </container>
</form>

Here how the output is coming:

tejashriw155148_1-1586264109359.png

 

Here instead of only zero partId how the all records will come?

Please suggest me.

Thanks,

 

1 Accepted Solution
Ismaël_Fofana
Correct answer by
Employee
Employee

Hi,

 

As the partyPartId field is a numeric field, I think you should  enter the following script in the "Taken into account if" field :

$(@partyPartId)!=0

View solution in original post

1 Reply
Ismaël_Fofana
Correct answer by
Employee
Employee

Hi,

 

As the partyPartId field is a numeric field, I think you should  enter the following script in the "Taken into account if" field :

$(@partyPartId)!=0

View solution in original post