Can anybody tell me as to how can i add two sections to my two column layout in

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
    Certified Lead Developer
    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}
  • @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 ?
  • 0
    Certified Lead Developer
    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
    )
    }
    )
    }
    )
    )
    }
    )
    }
    )
  • 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.