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
4 replies
Subscribers
11 subscribers
Views
1926 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Can anybody tell me as to how can i add two sections to my two column layout in
himanshug
over 10 years ago
Can anybody tell me as to how can i add two sections to my two column layout in the record ?
Thanks in advance ....
OriginalPostID-78891
OriginalPostID-78891
Discussion posts and replies are publicly visible
0
ajinkyab277
Certified Lead Developer
over 10 years ago
Hi Himanshu,
you can use below rule,which is present in 'Appian Common Object 7.2'
rule!APN_uiRecordDashboardTwoColumn(column1,column2)
Returns a 2-column Record Dashboard. 'column1' and 'column2' are the arrays of Tempo components for the 1st and 2nd columns respectively
so in your case column1 will be {section1} and column2 will be {section2}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
himanshug
over 10 years ago
@ajinkyab277 : Can i not do anything similar to
type!SectionLayout(
label: "AW-123",
content: type!ColumnArrayLayout(
columns: {
type!ColumnLayout(
contents: {
type!TextField(
label: "Customer",
value: "Andrew Nelson",
readOnly: true
),
type!TextField(
label: "Summary",
value: "Error Message when Submitting Time Report",
readOnly: true
)
}
),
type!ColumnLayout(
contents: {
type!TextField(
label: "Priority",
value: "High",
readOnly: true
),
type!DateField(
label: "Date Submitted",
value: date(2013,1,20),
readOnly: true
)
}
)
}
)
)
In this only one section is created for two columns . I want to give separate section labels to both columns ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ajinkyab277
Certified Lead Developer
over 10 years ago
Hi Himanshu,
As i Understood you need to show the section in below way.
---------- -------------
Section1 Section2
---------- -------------
in Column array layout have 2 columns. and in each column add 1 section individualy.
sample code:
=type!ColumnArrayLayout(
columns: {
type!ColumnLayout(
contents: {
type!SectionLayout(
label: "Section1",
content: type!ColumnArrayLayout(
columns: {
type!ColumnLayout(
contents: {
type!TextField(
label: "Customer",
value: "Andrew Nelson",
readOnly: true
)
}
)
}
)
)
}
),
type!ColumnLayout(
contents: {
type!SectionLayout(
label: "Section2",
content: type!ColumnArrayLayout(
columns: {
type!ColumnLayout(
contents: {
type!TextField(
label: "Customer",
value: "Andrew Nelson",
readOnly: true
)
}
)
}
)
)
}
)
}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
revat.anandsongkit
Appian Employee
over 10 years ago
What I would recommend is to use the rule!APN_uiRecordDashboardOneColumn() which would call rule!APN_uiSectionTwoColumn() as this allows you to have a record which can contain sections with one column and sections with two columns.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel