Hi All, I have a CDT rule input of type "Any Type" called r

Hi All,

I have a CDT rule input of type "Any Type" called ri!companyContact. I am trying to pass this rule input to a textField's value field. There is a nested CDT inside this CDT. I am actually trying to store the value into one of those fields inside the inner CDT. But it is giving an error saying "Cannot index property "CompanyContactDetails" of type Text into type Text" where inner CDT is called "CompanyContactDetails".
This is the code:

a!textField(
label:"",
value: ri!companyContact.CompanyContactDetails.DetailTypeId,
saveInto: ri!companyContact.CompanyContactDetails.DetailTypeId
)

Can anybody help on this issue?...

OriginalPostID-107781

OriginalPostID-107781

  Discussion posts and replies are publicly visible

Parents
  • I can only specify the CDT rule input inside the expression editor to be any of the default types such as Integer, text, datetime, anytype.....since it's a CDT, I am making it of type "AnyType". But this expression editor rule is being passed into a user input form with ac's of actual CDT type and then into pv's of actual CDT type. But it's giving a java script error when I try to view it in tempo. The UI appears in Interface Designer but it doesn't work in the Tempo. When I hit test rule on this particular rule in expression editor, I am getting this error called "Cannot index property "CompanyContactDetails of type Text into type Text". I tried using your nested index function as well but it still gives the same error. Can u help?
Reply
  • I can only specify the CDT rule input inside the expression editor to be any of the default types such as Integer, text, datetime, anytype.....since it's a CDT, I am making it of type "AnyType". But this expression editor rule is being passed into a user input form with ac's of actual CDT type and then into pv's of actual CDT type. But it's giving a java script error when I try to view it in tempo. The UI appears in Interface Designer but it doesn't work in the Tempo. When I hit test rule on this particular rule in expression editor, I am getting this error called "Cannot index property "CompanyContactDetails of type Text into type Text". I tried using your nested index function as well but it still gives the same error. Can u help?
Children
No Data