cancel
Showing results for 
Search instead for 
Did you mean: 

Process Flow control for JavaScript View in UI5

hemchand_sharma
Active Participant
0 Kudos

Hi all,

Guys - I am trying to use Process Flow control from  SAPUI5 DemoKit site but i am not able to use library given there properly .

          they have code sample in XML View only .

          if someone have any code sample for process flow in JS View  please help me .

Thanks,

Hem

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

In a js view it would look like


  var oProcessFlowSCNoFirstLane = new sap.suite.ui.commons.ProcessFlow("pSimpleCase1NoFirstLane", {

      nodes: {

      path: "/nodes",

      template: new sap.suite.ui.commons.ProcessFlowNode({

        nodeId: "{id}", laneId: "{laneId}", title: "{title}", children: "{children}",

         state: "{state}", titleAbbreviation: "{titleabbr}", stateText: "{state}", tag: {

          tagCheck: "tagCheck"

        }, texts: "{texts}"

      })

    }, // end of node

    lanes: {

      path: "/lanes", template: new sap.suite.ui.commons.ProcessFlowLaneHeader({

        laneId: "{id}", iconSrc: "{iconSrc}", text: "{text}", state: "{state}", position: "{position}"

      })

    }, // end of lane

    scrollable: true,

    wheelZoomable: true

  });

Regards,

Jamie

SAP - Technology RIG

hemchand_sharma
Active Participant
0 Kudos

Thankyou so much Jamie .

Answers (0)