As the title suggests, i’m trying to test some functionality before building a database import function that relies in the user mapping the fields in the uploaded CSV file to the columns in the relevant database table.
In this test case i have a repeat on the imported CSV file:
Usually I could test something by simply outputting a Value and using one of the properties in the repeat data, in this case the data relatinging to the property ‘date’ will be outputted:
My questions is though, can I output that same ‘date’ data, but be able to provide the property to output dynamically via other data in the server action:
Such as this:
Naturally the above code simply returns the word “date” that it’s getting from a datasource earlier in the server action. But i want to use that text ‘date’ but in reference to the column to return from the repeat data.
Does this make sense? And can it be done?
Thanks