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
11 replies
Subscribers
7 subscribers
Views
3618 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
I am version 6.7 of the software. I need to create a rule with input as CDT and
nitas811
over 12 years ago
I am version 6.7 of the software. I need to create a rule with input as CDT and loop through it to create a table to display. I create a variable with type any however when I specify the CDT fields its erroring out. Is there any workaround for this?
[3/15/13 11:34:01 PM] Nita Shah: ERROR:An error occurred while evaluating expression: =#"_a-0000d6ea-33a9-8000-da6f-010000010000_815"(pv!jiraIssuesmaster,pv!pushGroups) (Expression evaluation error in rule 'displayncolumntablesub' (called by rule 'displayncolumntable') at function 'doforeach' parameter 2: Invalid index: Cannot index property 'issueid' of type Text into type Boolean) (Data Inputs)
looks like its failing on doforeach("createJiralink",pv!jiraIssues.issueid)
Is there any workaround for this? ...
OriginalPostID-61122
OriginalPostID-61122
Discussion posts and replies are publicly visible
0
Alex Weller
Appian Employee
over 12 years ago
Nita,
Have you tried using the looping functions available in 6.7? This page may be useful to you:
forum.appian.com/.../Looping_Functions
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nitas811
over 12 years ago
I am aware of the looping functions. However am not sure how to create a rule where the input is a CDT, I need to do an action on the fields of the CDT
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Owen Parrish
Appian Employee
over 12 years ago
Us a rule input type of "Any Type" to use a CDT as input.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nitas811
over 12 years ago
Thats what I am using. This is the rule I am trying to create
=ncolumntable({"Summary","Components","Owner","Developer","Verifier","Status","RMI Approval Status","RM Approval Status","Fix Version"}, ri!jiraissuesmaster.summary,doforeach("convertcommatospace",ri!jiraissuesmaster.components),ri!jiraissuesmaster.owner,ri!jiraissuesmaster.developer,ri!jiraissuesmaster.verifier,ri!jiraissuesmaster.status,ri!jiraissuesmaster.rmiStatus,ri!jiraissuesmaster.rmStatus,ri!jiraissuesmaster.fixVersion)
However I get this error
Expression evaluation error at function 'ncolumntable' parameter 2: Invalid index: Cannot index property 'summary' of type Text into type Text
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Owen Parrish
Appian Employee
over 12 years ago
Based on the error message, either the jiraissuesmaster rule input is type "Text" or the actual input into the rule is type Text and not the CDT you are expecting.
Since you are on 6.7, you should use apply() instead of doforeach.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nitas811
over 12 years ago
jiraissuesmaster is the input parameter of this rule that I am trying to create.
jiraissuesmaster.summary is one the fields in this CDT. However its not accepting that. Please help
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Owen Parrish
Appian Employee
over 12 years ago
Based on the error message you supplied, whatever you are actually passing into the rule as input is of type Text and not a CDT.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nitas811
over 12 years ago
what I am passing as input is jiraissuesmaster is of type Any
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Myles Weber
Appian Employee
over 12 years ago
On a somewhat unrelated topic, are you using 6.7.0 or 6.7.1 ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nitas811
over 12 years ago
6.7.0
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>