# DataView condition expression

**URL:** <https://www.epiusers.help/t/dataview-condition-expression/122566>\
**Category:** Kinetic ERP\
**Tags:** kinetic, customization\
**Created:** [January 22, 2025, 12:19pm UTC](https://www.epiusers.help/t/dataview-condition-expression/122566 "2025-01-22T12:19:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justas](https://www.epiusers.help/letter_avatar_proxy/v4/letter/j/9fc29f/32.png) [@Justas](https://www.epiusers.help/u/Justas)\
**Post date:** [January 22, 2025, 12:19pm UTC](https://www.epiusers.help/t/dataview-condition-expression/122566/1 "2025-01-22T12:19:44Z")

</div>

Hi,

Can anyone help with this. In DataView condition i want to compare two values Available\_Users.LaborHed\_EmployeeNum \<\> PmIdHolder.Team1PM. it is not working and probably because first value is a string and second is a number. How to write this condition properly, cast some how or what?

---

<div class="post-metadata">

**Author:** ![dcamlin](https://www.epiusers.help/user_avatar/www.epiusers.help/dcamlin/32/57759_2.png) [@dcamlin](https://www.epiusers.help/u/dcamlin)\
**Post date:** [January 22, 2025, 1:10pm UTC](https://www.epiusers.help/t/dataview-condition-expression/122566/2 "2025-01-22T13:10:50Z")

</div>

Read through this thread. @hmwillett explains creating a function to do this kind of thing. That way you call the function to do the conversion when comparing Strings and Integers.

But even with the function, there was some good troubleshooting in this thread to find a solution. Hopefully something in here should get you in the right direction.

> [@Application Studio - Disable Print Button](https://www.epiusers.help/t/application-studio-disable-print-button/121067/17):
>
> I would look at the Dev Tools as this point to check the values of the flow. Make sure the payload sent to your function has the proper value being sent. Validate the response is as expected. Dump the views (CTRL+ALT+V), expand System Views, and validate that actionResult has a value. It may show null here. Assuming you had debugging turned on (CTRL+ALT+8) check the console. You should see some events in there for your row-update showing the values of actionResult at the time.

---

<div class="post-metadata">

**Author:** ![hmwillett](https://www.epiusers.help/user_avatar/www.epiusers.help/hmwillett/32/93207_2.png) [@hmwillett](https://www.epiusers.help/u/hmwillett)\
**Post date:** [January 22, 2025, 2:18pm UTC](https://www.epiusers.help/t/dataview-condition-expression/122566/3 "2025-01-22T14:18:14Z")

</div>

> [@Justas](#):
>
> Available\_Users.LaborHed\_EmployeeNum \<\> PmIdHolder.Team1PM

Try this:

```auto
#_'{Available_Users.LaborHed_EmployeeNum}' != '{PmIdHolder.Team1PM}'_#

```

---

<div class="post-metadata">

**Author:** ![Justas](https://www.epiusers.help/letter_avatar_proxy/v4/letter/j/9fc29f/32.png) [@Justas](https://www.epiusers.help/u/Justas)\
**Post date:** [January 22, 2025, 2:40pm UTC](https://www.epiusers.help/t/dataview-condition-expression/122566/4 "2025-01-22T14:40:42Z")

</div>

i get this in console Errors: invalid argument outside of criteria: 415,invalid token: !,invalid argument outside of criteria: 173  
Found that this works Available\_Users.Selected = True AND {Available\_Users.LaborHed\_EmployeeNum} \<\> PmIdHolder.Team1PM. But then the issue is why if i select one record then it is ok no itteration is called but if i select multiple records looks like the condition evaluates only first row for this {Available\_Users.LaborHed\_EmployeeNum} \<\> PmIdHolder.Team1PM and all rows for Available\_Users.Selected = True so in this case when multiple records selected it bypasses second condition and all selected rows are stored in result dataview, I dont understand why this happening?

---

<div class="post-metadata">

**Author:** ![Justas](https://www.epiusers.help/letter_avatar_proxy/v4/letter/j/9fc29f/32.png) [@Justas](https://www.epiusers.help/u/Justas)\
**Post date:** [January 22, 2025, 3:24pm UTC](https://www.epiusers.help/t/dataview-condition-expression/122566/5 "2025-01-22T15:24:09Z")

</div>

this worked Available\_Users.Selected = True AND Available\_Users.LaborHed\_EmployeeNum \<\> ‘{PmIdHolder.Team1PM}’. Thanks @hmwillett i was missing these fellas ‘{}’ 🙂 . Thats a pain i have no clue when to use ‘’ when != when \<\> when {} or etc. 😕

---

<div class="post-metadata">

**Author:** ![hmwillett](https://www.epiusers.help/user_avatar/www.epiusers.help/hmwillett/32/93207_2.png) [@hmwillett](https://www.epiusers.help/u/hmwillett)\
**Post date:** [January 22, 2025, 3:27pm UTC](https://www.epiusers.help/t/dataview-condition-expression/122566/6 "2025-01-22T15:27:35Z")

</div>

Honestly, I really hate the dataview-condition widget.  
It’s one of those where the syntax isn’t the same as everywhere else.

Like, take their tooltip for example:  
 ![image](https://www.epiusers.help/uploads/default/original/3X/6/8/686af3248f2c62568f172783f162eb32693b56b7.png)

Dataview.Column without curly braces (at minimum) or quotes.  
Single equals sign, which to me means assignment, not equality.  
Capital T on true when I’ve seen most of App Studio complain about that.

> [@Justas](#):
>
> True AND Available\_Users.LaborHed\_EmployeeNum

The use of AND when the other expression fields are using &&.

Hot. Mess.
