IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

compare values of controls

  • 1.  compare values of controls

    Posted Wed October 14, 2015 07:31 PM

    I have a requirement to show remove row button in a result table only for the rows created by the logged-in user.

    To achieve this, I need to compare username with row’s ‘created_by’ (hidden column). I got the logged-in username from userModel.principalID (from Data → User/Role/Group → User Model). Now how do I compare the values, and if they are same then render ‘remove row’ button?


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 2.  RE: compare values of controls

    Posted Wed October 14, 2015 07:52 PM

    The ‘Rendered’ property of the Remove Row Button control accepts an expression that needs to resolve to true or false. So you can use the comparison operators in the expression language to do simple logic to compare two values.

    For your Reference: [url]- The Java EE 6 Tutorial

    For example, you can set the ‘Rendered’ property value to something like the following to only render the button when two values are equal:

    #{row.createdBy eq YourPageBeanHere.currentUserID}

    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods