I have a table containing an Object Type data item. Am I able to reference a field value in logic blocks? If so, how?
I want to run a fetch expression against another table based on the value that is displayed in the application
I have a table containing an Object Type data item. Am I able to reference a field value in logic blocks? If so, how?
I want to run a fetch expression against another table based on the value that is displayed in the application
The answer to that depends somewhat on what type of object you’re dealing with. The most common types are JSON object and Inline Application.
For a JSON object or JSON array, you can use only the “Is Empty” and “Is not Empty” comparators, but you can then use the Loop Array
logic action to parse individual rows and see their data.
For an Inline Application, the nature of what is possible depends on how your logic is being called and what data inputs and outputs it uses. If using this one, can you provide some more information on the particular use case?
I don’t see a type for the data item. Is there somewhere to locate that information? It’s also not an inline application. As far as I can tell its acts as though it is a table lookup of type text.
Object type data items other than the two above still typically fall into the Array category or a standard data item type like Text, so reference to those objects can use “Is Empty” and “Is not Empty” comparators and the Set Values
action can be used for assignment and manipulation.
If you are working in an application, you can select the ?
symbol above a field and then hover over the name in the bottom-left corner of the popup. This will grant you Data Item Name and Data Item Type information, including if it is a related field or other special selection.
You can also utilize the Logic Block Debugger and locate your particular object in the left-hand panel of an active debug session, which will show you any value in the field and indicate its type - ID, text, currency, etc..
Either of the above strategies can indicate what data item and type are necessary and you can declare variables and use other logic actions like Text Manipulation
or Loop Array
accordingly.