Hi All ,
can anyone help me to resolve this error
Expression evaluation error [evaluation ID = X853UTXO] in rule 'testtable_write' at function a!textField [line 8]: Invalid index: Cannot index property 'name' of type Text into null value of type testTableR?list
a!formLayout( label: "Test Table R", contents: { a!columnsLayout( columns: { a!columnLayout( contents: { a!textField( label: "Name", labelPosition: if( ri!readOnly, "ADJACENT", "ABOVE" ), value: ri!testTableR.name, saveInto: ri!testTableR.name, readOnly: ri!readOnly ), a!dateField( label: "Dob", labelPosition: if( ri!readOnly, "ADJACENT", "ABOVE" ), value: ri!testTableR.dob, saveInto: ri!testTableR.dob, readOnly: ri!readOnly ), a!integerField( label: "Age", labelPosition: if( ri!readOnly, "ADJACENT", "ABOVE" ), value: ri!testTableR.age, saveInto: ri!testTableR.age, readOnly: ri!readOnly ) } ), a!columnLayout( contents: { a!textField( label: "Phno", labelPosition: if( ri!readOnly, "ADJACENT", "ABOVE" ), value: ri!testTableR.phno, saveInto: ri!testTableR.phno, readOnly: ri!readOnly ), a!floatingPointField( label: "Salary", labelPosition: if( ri!readOnly, "ADJACENT", "ABOVE" ), value: ri!testTableR.salary, saveInto: ri!testTableR.salary, readOnly: ri!readOnly ) } ) } ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Submit", submit: true, style: "PRIMARY" ) }, secondaryButtons: { a!buttonWidget( label: "Cancel", value: true, saveInto: ri!cancel, submit: true, style: "NORMAL", validate: false ) }, showWhen: or( isnull( ri!readOnly ), not( ri!readOnly ) ) ))
Discussion posts and replies are publicly visible
Just to take a quick guess: you have ri!testTable set as "multiple" (array), but you're using it in your interface as if it was single. If it's an array, and is currently empty, then you will probably have issues referring to "ri!testTable.name".
yes you are right how to resolve this
If it doesn't need to be multiple, edit the rule input and un-check that box. Also verify that its type is correctly set as your CDT.