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
3229 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Mapping dynamic columns in Paging Grid
nimishan
over 8 years ago
I am looking for assistance on mapping one of the DB column to multiple fields in "Paging Grid" - dynamically .
Database records:
{
{col1: "dcgsdf", col2: "thstr", col3: "col31~abc|col32~def|col33~ghi", col4:56},
{col1: "asdg", col2: "jtrj", col3: "col31~xsy|col32~adf|col33~qere", col4:32},
{col1: "fdhd", col2: "dfhs", col3: "col31~qwwe|col32~dasw|col33~afds", col4:3},
{col1: "rae", col2: "DGAS", col3: "col31~qerw|col32~qef|col33~qwer", col4:0}
}
Paging Grid should split col3 by delimiter "|" to identify the new columns col31, col32 and col33, and further by delimeter "~" for column name and value. Something like the below resulting dataset.
{
{col1: "dcgsdf", col2: "thstr", col31: "abc", col32: "def", col33: "ghi", col4:56},
{col1: "asdg", col2: "jtrj", col31: "xsy", col32: "adf", col33: "qere", col4:32},
{col1:...
OriginalPostID-231994
Discussion posts and replies are publicly visible
Parents
0
nimishan
over 8 years ago
... "fdhd", col2: "dfhs", col31: "qwwe", col32: "dass", col33: "afds", col4:3},
{col1: "rae", col2: "DGAS", col31: "qerw", col32: "qef", col33: "qwer", col4:0}
}
** All the dynamic columns "col31, col32, col33" would be Text type.
Also the number of columns in col3 can very based on the type of the record. For with I have another table called template with contains the header(name) of the dynamic columns. For example in above case my template will return me: {"col31|col32|col33"}. It could be {"col31|col32|col33|col34"} for some other set of data.
Any assistance will be helpful.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
nimishan
over 8 years ago
... "fdhd", col2: "dfhs", col31: "qwwe", col32: "dass", col33: "afds", col4:3},
{col1: "rae", col2: "DGAS", col31: "qerw", col32: "qef", col33: "qwer", col4:0}
}
** All the dynamic columns "col31, col32, col33" would be Text type.
Also the number of columns in col3 can very based on the type of the record. For with I have another table called template with contains the header(name) of the dynamic columns. For example in above case my template will return me: {"col31|col32|col33"}. It could be {"col31|col32|col33|col34"} for some other set of data.
Any assistance will be helpful.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data