Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
17 replies
Subscribers
8 subscribers
Views
6928 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi All, I have a CDT rule input of type "Any Type" called r
aswinb
over 10 years ago
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
0
aswinb
over 10 years ago
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?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
aswinb
over 10 years ago
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?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data