Hello everyone!
How can I access the Source field within this form? I need it to use as a key in a list that will pass a true or false value back here.
Hello everyone!
How can I access the Source field within this form? I need it to use as a key in a list that will pass a true or false value back here.
Hey @dwenlvov, what do you want to access exactly? This source field is indicating which of your key values from your table's data source will be used for that specific column you selected. As such, the source for that will be, in your case, DataComp.data
You can use the field Mapped value and refer to each row's value as {{item}}. So for example you could write {{item > 0 ? false : true}}. This would make the operation for each row and return the result.
Hi!
I have a dictionary:
dict = {'dt': true, 'column2': false, ...}
I need to get the name of each column and use it as a key for the dictionary dict[column_name].
I was planning to retrieve column_name from the Source field.
Where do you need to use dict[column_name], within the table or elsewhere?
In the screenshot, there is a Hidden field.
My plan is to insert dict[column_name] there to get a boolean value.
The dictionary itself is generated by another function.
Hey @dwenlvov,
Ok I see what you're trying to do... So I don't think there is a direct way to access this. The approach I would take is writing a small script like dict.value.find (column => column === "dt")
which should return the value you're looking for. However this would need to be adapted for each column you have.
Hope this helps!