Purchasing

Get Involved. Join the Conversation.

Topic

    Boyuan Zhu
    Control Visibility of the Flexfields for Purchasing...
    Topic posted June 29, 2018 by Boyuan ZhuBronze Trophy: 5,000+ Points, last edited June 29, 2018, tagged Agreements, How-To, Orders 
    202 Views, 5 Comments
    Title:
    Control Visibility of the Flexfields for Purchasing Documents
    Content:

    You can use Page Composer to control the visibility of the flexfield region and flexfield segments for purchasing documents. By adding your own logic to the existing EL expression, you can show or hide flexfields for your business use case.

    Control Visibility for the Entire Flexfield Region

    In the example below, the entire PO header flexfield region is hidden when the PO's Sold-to LE is "Vision Operations."

    1. Enter a sandbox and navigate to the order page. 
    2. Take the Customize Pages action and select Source from the View dropdown.
    3. Find the showDetailHeader: Additional Information component. This contains the entire flexfield region. 
    4. The existing EL expression for Visible is #{!(bindings._FLEX_NumOfVisibleSegments.inputValue ==0)}. You can add your logic to it: #{!(bindings._FLEX_NumOfVisibleSegments.inputValue ==0) and bindings.SoldToLegalEntityName.inputValue != 'Vision Operations'

    Control Visibility for a Flexfield Segment

    In the example below, a flexfield segment is hidden when the PO's Sold-to LE is "Vision Operations."

    1. Enter a sandbox and navigate to the order page. 
    2. Take the Customize Pages action and select Source from the View dropdown.
    3. Find the showDetailHeader: Additional Information component.
    4. Drill down to find the descriptiveFlexfield component. 
    5. Open the component and switch to the segment tab. 
    6. Find the segment that you want to change the visibility of. 
    7. The existing EL expression for Rendered is true. You can add your logic to it: #{bindings.SoldToLegalEntityName.inputValue != 'Vision Operations'

    Comment

     

    • Boyuan Zhu

      The showDetailHeader: Additional Information component

    • Boyuan Zhu

      Modify the expression for flexfield region visibility

    • Boyuan Zhu

      Modify the expression for flexfield segment visibility 

    • Jennifer Quinto

      Hi Boyuan,

      Thank you for this post.

      In Requisition Header, I added three flexfields.  One Boolean Check box and two Flex Rich Input Text.  The goal we are trying to achieve is whenever the Checkbox is checked the two Flex Rich Input Text (Bid 1 and Bid 2) should be visible.  If the checkbox is not checked, the two Flex Rich Input Text should not be visible.

      I added the EL expression for Segment Code Bid 1 and Bid 2. I tried two variations #{bindings.requisitionContainsBids.inputValue== 'Y'} and #{bindings.requisitionContainsBids.inputValue != 'Y'}.  The result is that whether or not the checkbox is checked the two rich text fields do not populate.

      Would you happen to know what I am missing?

    • Jennifer Quinto