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
6930 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
jesse.triplett
Appian Employee
over 10 years ago
If you comment out this section, does the form open? I recommend commenting out parts of the code until you can ascertain which component is causing the javascript error.
Additionally, you'll want to replace the {} with null in the index() calls for the dropdown items. In the case it reaches that last {}, a null will return the placeholderLabel but the {} will not work in the dropdown.
index(index(ri!companyContact4, "CompanyContactDetails", {}), "CompanyContactDetailId", null),
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
jesse.triplett
Appian Employee
over 10 years ago
If you comment out this section, does the form open? I recommend commenting out parts of the code until you can ascertain which component is causing the javascript error.
Additionally, you'll want to replace the {} with null in the index() calls for the dropdown items. In the case it reaches that last {}, a null will return the placeholderLabel but the {} will not work in the dropdown.
index(index(ri!companyContact4, "CompanyContactDetails", {}), "CompanyContactDetailId", null),
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data