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
5 replies
Subscribers
7 subscribers
Views
2639 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi Everyone: I was trying to build a report using CDT. However, there
lins
over 9 years ago
Hi Everyone:
I was trying to build a report using CDT. However, there's a critical variable (time) which only stored in our SQL database. The time variable shows when the update on each project was entered.
How can I include the time variable stored in our SQL database?
Thanks for the help in advance!
OriginalPostID-146253
OriginalPostID-146253
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
@lins Isn't the time attribute part of your CDT?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
lins
over 9 years ago
@sikhivahans No, it's not. I use the time stamp captured by the SQL database.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
There are two ways of doing so:
1. You could make the time stamp attribute a part of CDT by modifying the existing data structure (CDT and view/ table).
2. You can query the timestamp value separately and join to your CDT on a conditional basis (Refer plugin:
forum.appian.com/.../summary)
or build a temporary label/ value pair (existing CDT data + new column) and thereby use it in constructing the grid.
Please do let me know if you have any follow up questions.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nileshr
over 9 years ago
You can create a view based on your main CDT and include the time column into the view, if you don't want to change the structure of existing main CDT.
After creating a view, create a CDT for the view containing the extra time field and a datastore entity of the same CDT type. Now, you can create a constant of the type datastore entity holding the value of datastore entity for your view.
You can use this constant to create your report through report builder.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
lins
over 9 years ago
@nileshr thanks very much! I have created a view through SQL and a CDT (please see the attached screenshot). How can I connect the CDT with the view data from SQL?
TIA!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel