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
10148 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Update single column in a table (Update single field in cdt)
Rama Thummala
Certified Lead Developer
over 7 years ago
Hi,
In Appian normally we will update a record by passing complete record with updated data.
I have a requirement to update single column in a table(updating single field in a record) instead of updating complete record.
like, update <table> <field>=<value> where <key>=<value>.
OriginalPostID-243101
Discussion posts and replies are publicly visible
Parents
0
brettf
over 7 years ago
As @rodgraham mentioned above, what is called a "summary CDT" works well here. You make a CDT that, in the JPA annotations, maps to the correct table in the DB. It will have two fields:
the PK for that table
field you want to update
When you use a write to DB node in conjunction with this CDT, it will find the row in the table that corresponds to the PK of your CDT, and update the columns in the table that match up to the other fields in the CDT. You can use this to write one, or really as many fields as you want, which can be useful for various processes and events.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
brettf
over 7 years ago
As @rodgraham mentioned above, what is called a "summary CDT" works well here. You make a CDT that, in the JPA annotations, maps to the correct table in the DB. It will have two fields:
the PK for that table
field you want to update
When you use a write to DB node in conjunction with this CDT, it will find the row in the table that corresponds to the PK of your CDT, and update the columns in the table that match up to the other fields in the CDT. You can use this to write one, or really as many fields as you want, which can be useful for various processes and events.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data