Display a list of actions on a single page for use within sites

Certified Lead Developer

I have an application with a set of actions that needs to be displayed in a single page of a site. What is the best approach to achieve this?

Example:

I have three actions:

1. Configure Departments

2. Configure Business Lines

3. Configure Products

 

Instead of having 3 pages in the site dedicated for each action, I need to display three links in a single page named "Configurations" that can trigger each action and on completion it goes back to the page with the 3 actions again.

  Discussion posts and replies are publicly visible

  • Hi Sunil,

    You can create single tab on site name 'Configurations' and on this tab just create a report that have 3 processstartlinks for start all 3 actions like..

     

    By clicking on these links respective actions will open.

     

    Thanks

  • 0
    Certified Lead Developer
    in reply to ankita0004
    Hi Ankit,

    Thank you so much for the suggestion. I will try to implement this as you described.

    Regard,
    Sunil Zacharia
  • Hi ,

    You can have a sites page "Configuration" and in that you can have 3 Submit buttons or 3 Process Start Links.

    If you go with a!startProcessLink(), you can directly configure different process models in each of the links.

    If you go with having 3 Submit buttons, then you need to have a main process model were you can have a process start form and in that you can have 3 submit buttons configured. Then you need to check which button was clicked and based on the button action you can redirect the flow to a subprocess where you can have the respective process models.

    Regards,
    Sidhant Behura
  • 0
    Certified Lead Developer
    in reply to Sidhant Behura
    Hi Sidhant,

    The subprocess models have their own process start forms. I guess the solution suggested by Ankit is a better fit for my requirement.
    Thanks for your input though.

    Regards,
    Sunil Zacharia
  • a!formLayout(

     label: "",

     contents: {

       a!columnsLayout(

         alignVertical: "MIDDLE",

         columns: {

           a!columnLayout(

             contents: {

               a!richTextDisplayField(

                 align: "LEFT",

                 value: a!richTextItem(

                   text: a!richTextItem(

                     text: a!richTextItem(

                       text: "Business Management",

                       style: "LARGE"

                     ),

                     style: "NEGATIVE"

                   ),

                   style: "STRONG"

                 )

               )

             }

           ),

           a!columnLayout(

             contents: a!richTextDisplayField(

               value: {

                 a!richTextImage(

                   image: a!documentImage(

                     document: 222738

                   )

                 ),

                 a!richTextItem(

                   text: a!richTextItem(

                     text: "Configure Departments",

                     style: "MEDIUM",

                     link: a!submitLink(

                       saveInto: a!save(

                         ri!isInspectionOnly_bool,

                         true()

                       )

                     )

                   ),

                   style: "STRONG"

                 ),

                 a!richTextItem(

                   text: "

          Click here to configure departments.

    " & char(

                     10

                   )

                 ),

                 a!richTextImage(

                   image: a!documentImage(

                     document: 222738

                   )

                 ),

                 a!richTextItem(

                   text: a!richTextItem(

                     text: "Configure Business Lines",

                     style: "MEDIUM",

                     link: a!submitLink(

                       saveInto: a!save(

                         ri!isInspectionOnly_bool,

                         false()

                       )

                     )

                   ),

                   style: "STRONG"

                 ),

                 a!richTextItem(

                   text: "

          Click here to configure business lines.

    " & char(

                     10

                   )

                 ),

                 a!richTextImage(

                   image: a!documentImage(

                     document: 222738

                   )

                 ),

                 a!richTextItem(

                   text: a!richTextItem(

                     text: "Configure Products",

                     style: "MEDIUM",

                     link: a!submitLink(

                       saveInto: a!save(

                         ri!isInspectionOnly_bool,

                         false()

                       )

                     )

                   ),

                   style: "STRONG"

                 ),

                 a!richTextItem(

                   text: "

          Click here to configure products." & char(

                     10

                   )

                 )

               }

             )

           ),

           a!columnLayout()

         }

       )

     }

    )

    And on the link of this we can use the a!startProcessLink() to start the process which you have to use for an action.

    You can see the screenshot below



    N
    ote: Thunder icon has been saved as an document

  • 0
    Certified Senior Developer

     Hi Sunilz,

    1) Create Wrapper interface------a!richTextDisplayField(

                     instructions: "Example",

                     labelPosition: "ABOVE",

                     value: {

                       a!richTextImage(

                         image: a!documentImage(

                           document: a!iconNewsEvent(

                             icon: "PERSON",

                             color: "BLUE"

                           )

                         )

                       ),

                       a!richTextItem(

                         text: cons!Test_ACTIONS[1] & char(

                           10

                         ),

                         style: "STRONG",

                         link: a!submitLink(

                           label: cons!Test_ACTIONS[1],

                           value: cons!Test_ACTIONS[1],

                           saveInto: ri!action

                         )

                       )

                     }

                   )

    2) Create a Wrapper Process Model , and configure this Wrapper interface as start form, configure respective actions in subprocess.

    3) Now configure this wrapper process model in site, so you find all the list on actions in one page on site.

  • you can use processstartlinks in one tab of site to configure 3 actions.
    or else u can create one wrapper process inside that call those 3 process and by using task report of wrapper class you can start actions
  • Hi Sunil,
    As my fellow practitioners have already answered your query,yet there is another way to do it. For action in site just configure 1 tab under this tab you can configure three tabs(links) each tab can be an action( using a!startprocess) .
  • 0
    Certified Lead Developer
    in reply to gurdeeps
    Thanks for all the comments and suggestions guys.