I have an expression in ValidIF. It works when I TEST it but returns nothing the app.
I contacted support and they told “Valid if only check the output but doesn’t returns a value.”
“It is just to check whether the value is matched with the condition or expression.”
“With drop downs it’s different scenario.”
So I had to send him help documentations so that he can understand appsheet can return as Yes/no,List.
Then support told me they will look into the issue and contact me back and closed the chat. Does anyone know If i am doing it right ? Looks like a bug to me if I am correct.
Here is my code
SELECT(
Product Bill of Materials[BOM Product ID],
IN(
[Product Bill of Materials ID],
SPLIT(
SELECT(
Sales Order Acceptance Items[List of Bill of Materials],
[Sales Order Acceptance ID] = [_THISROW].[Sales Order Acceptance ID]
), " , " )
)
)
SELECT(
Product Bill of Materials[BOM Product ID],
IN(
[Product Bill of Materials ID],
SPLIT(
SELECT(
Sales Order Acceptance Items[List of Bill of Materials],
[Sales Order Acceptance ID] = [_THISROW].[Sales Order Acceptance ID]
), "," )
)
)
Basically, the suggested change is “,” instead of " , " in the SPLIT() expression.
Okay looks like this is showing correct now. But test in now not working. If it was this simple I think AppSheet Support need someone who knows about all this.
I have noted that. In my testing [Bakery Products] that is used in SPLIT() expression is also an enumlist. I tried to create a test setup similar to yours.
Sorry, I have no more suggestions at his stage as according to my understanding of the requirement and testing, it should work in your case as well with “,”
Oh okay. Thank you for all the neat details. Not sure why it does not appear in the test window. Could you try the below expression
SELECT(
Product Bill of Materials[BOM Product ID],
IN(
[Product Bill of Materials ID],
SPLIT(TEXT(
SELECT(
Sales Order Acceptance Items[List of Bill of Materials],
[Sales Order Acceptance ID] = [_THISROW].[Sales Order Acceptance ID]
)), " , " )
)
)
Shows in Test window. But not properly in the app. I will just use a simple expression and not waste my whole day on this. But hope appsheet support looks into the issue.
Yeah, this is “aray of array” kinda of problem with AppSheet.
Im not parsed my expression, so sorry if it is not working, but please try this out.
SELECT(
Product Bill of Materials[BOM Product ID],
IN(
[Product Bill of Materials ID],
SPLIT(TEXT(SPLIT(
TEXT(SELECT(
Sales Order Acceptance Items[List of Bill of Materials],
[Sales Order Acceptance ID] = [_THISROW].[Sales Order Acceptance ID]
)),
" , "
)),",")
)
)
If we pass the exprssion to this field, the users need to select the values out of it. If they select, this returns yes, while the user have no choice to select the value which returns false out of it. My undrestanding was your problem is not there.