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
10 replies
Subscribers
7 subscribers
Views
7237 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have a functional query rule that returns the datasubset I am interested in. W
davidj578
over 10 years ago
I have a functional query rule that returns the datasubset I am interested in. With the data from that data subset I would like to populate a CDT. Is there a way to convert the data section of a datasubset into a CDT? The syntax I am trying to use:
a!save(ri!CDT_dataWeNeed,fn!index(rule!Database_getData(),"data",""))
The reason I am trying to do this is because I would like to use dot notation to move data from a database with datastore to nested CDTs to create an XML message.
OriginalPostID-164186
OriginalPostID-164186
Discussion posts and replies are publicly visible
Parents
0
adrianf
over 10 years ago
Basically, you would use cast() and typeof() cast it to the type of the CDT. Something along the lines of the following will get you what you need:
cast(
typeof(
'type!CDT_YouNeed'()
),
fn!index(rule!Database_getData(),"data",""))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
adrianf
over 10 years ago
Basically, you would use cast() and typeof() cast it to the type of the CDT. Something along the lines of the following will get you what you need:
cast(
typeof(
'type!CDT_YouNeed'()
),
fn!index(rule!Database_getData(),"data",""))
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data