hi,
I have a some data stored in a local variable which is of type ( Text List ) , this has the fields similar to a record type and I wanted to update the database.
if I pass the local variable to process model , I get an error due to different types.
how to cast the local variable to record type. Any help is appreciated.
Discussion posts and replies are publicly visible
hi kowsalyavijayan you can do it using cast( yourRecordtype, local!variable),
okay, I will try
I have difficulties understanding your situation. A list of text does not have any "field names". Can you help us with some details?
I am having an editable grid and saving the rows to a local variable. the rows in the table is the union between two tables , I have to update the table back with the selected rows.
local variable has exactly the same fields as the record type
Sorry, but with that level of details, I cannot even guess what you are doing, or try to help you understand and solve the issue.
A while ago, I recorded a podcast episode about how the get great answers here: appian.rocks/.../
I tried it , but it takes only one record at a time, doesn't pick bulk records
a!localVariables( local!data: { "A", "B", "C" }, local!records: a!forEach( items: local!data, expression: 'recordType!Record Type Name'( 'recordType!Record Type Name.fields.field Name': fv!item ) ), local!records )
thank you it worked
I have selected rows from read only grid and it has the rows I did do casting - cast(EACM_TestRecord,local!selectedrows), local!selectedrows has 5 rows data selected, but after casting , it takes only one