Hey Guys,
Little lost,
Im trying to build an inventory App.
Contains the following components.
I have a form regarding the inventory and As the user fills out the form, I only want the items to show up in the enum based on the Vendor and Catagorie they selected.
This is the formula I am using in the Valid If field of my Item field.
SELECT(Type[Item Name],
And(Type[Catagory].[Catagory] = [_THISROW].[Catagory],
Type[Vendor].[Vendor] =[_THISROW].[Vendor]), FALSE)
It currently returns Blank. If I donโt have this expression it Contains all types from all vendors and categories.
Solved! Go to Solution.
You are close! The expression is actually simpler:
SELECT(Type[Item Name],
And( [Catagory] = [_THISROW].[Catagory],
[Vendor] = [_THISROW].[Vendor]))
The SELECT automatically knows context so knows that Catagory and Vendor are in the Type table. [_THISROW] is only needed because the columns in the current table have the same name as what was used in the Type table (perfectly ok). But had your row columns been different names [_THISROW] could have been removed.
You are close! The expression is actually simpler:
SELECT(Type[Item Name],
And( [Catagory] = [_THISROW].[Catagory],
[Vendor] = [_THISROW].[Vendor]))
The SELECT automatically knows context so knows that Catagory and Vendor are in the Type table. [_THISROW] is only needed because the columns in the current table have the same name as what was used in the Type table (perfectly ok). But had your row columns been different names [_THISROW] could have been removed.
Wow,
Working perfectly.
I am getting Triangles beside each option in the list for all options. What could this mean?
See below
In your SELECT you should actually use the KEY column from your Type table. Then in the AppSheet table editor set the โItem Nameโ column as the Label. AppSheet will record the Key in the data but use the Label for display.
Wow,
Ok, So can you explain your thinking behind this? The triangles are gone but why?
The Valid_IF is actually determining if the values in the list returned are valid values from the table used in the SELECT(). AppSheet does this in a Ref column by using the Key column in the referenced table. When you specify another column in the SELECT(), none of those values are keys so AppSheet doesnโt find a match and marks them as INVALID.
In even simpler termsโฆ Since the column is marked Ref pointing to another table, AppSheet expects the column to have Key values from the other table, so as to successfully โlinkโ them. No Key values means no โlinkโ. No โlinkโ when AppSheet expects one means yellow triangle of doom.
Delete these prefixes :
Type[Catagory]. and Type[Vendor].
User | Count |
---|---|
36 | |
33 | |
27 | |
23 | |
18 |