BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  retrieve child components from a control

    Posted Sat April 26, 2025 11:14 AM

    i currently have a panel control with a lot of controls inside it. how can i retrieve the list of all the ControlIds within it, and all controlIds within it and so on?
    the documentation is not clear enough (for me). thanks in advance



    ------------------------------
    jhon wick
    ------------------------------


  • 2.  RE: retrieve child components from a control

    Posted Mon April 28, 2025 05:03 AM

    Hello Jhon-

    I think what you're looking for is bpmext.ui.getChildViews():

    https://www.ibm.com/docs/en/baw/24.0.x?topic=SS8JB4_24.x/com.ibm.wbpm.ref.doc/bpmui/bpmext.ui.htm#getChildViews

    Thanks -Don



    ------------------------------
    Don Williams
    ------------------------------



  • 3.  RE: retrieve child components from a control

    Posted Mon April 28, 2025 07:28 AM

    hi don, thanks for the reply. could you please provide an example? the link seems to be broken



    ------------------------------
    jhon wick
    ------------------------------



  • 4.  RE: retrieve child components from a control

    Posted Mon April 28, 2025 09:42 AM

    Weird, you're right.  Try this one instead and just search the page for getChildViews:

    https://www.ibm.com/docs/en/baw/23.0.x?topic=SS8JB4_23.x/com.ibm.wbpm.ref.doc/bpmui/bpmext.ui.htm



    ------------------------------
    Don Williams
    ------------------------------



  • 5.  RE: retrieve child components from a control

    Posted Mon April 28, 2025 11:35 AM

    Hi jhon wick,

    I usually use context.subview to do this. context.subview return an object where properties name are sub-control Ids and values are children controls.
    o get the list of controlIds, Object. getOwnPropertyNames() can be used.

    console.log("context.subview", ${Panel1}.context.subview);
    console.log("Object. getOwnPropertyNames", Object. getOwnPropertyNames(${Panel1}.context.subview));



    ------------------------------
    Tan Dao
    Ilionx
    ------------------------------