Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: How to hide a form view field dynamically based on condition?

$
0
0

Hi Munna,

When you select the first dropdown value yes, just you need to hide the dropdown field.

 

Please follow the steps:

 

Step 1: Create a Z class with interface IF_CHTMLB_FORM_ITERATOR in SE24 tcode.

Step2: Redefine the method RENDER_CELL_START of interface IF_CHTMLB_FORM_ITERATOR.

 

Add code similar to liek this,

*  test by tdk

  DATA: lv_html TYPE string.

  CASE iv_binding_string.

    WHEN '//BTCUSTOMERH/STRUCT.ZZCUSTOMER_H1008'. ( Specify your attribute along with context node)

      IF iv_element_name = 'inputfield'.

        CREATE OBJECT lv_bee.

        ev_replacement_bee = lv_bee.

      ENDIF.

  ENDCASE.

 

Step 3:

 

Change the .HTM view page as shown below. Before setting the iterator check for your field first field attribute value.

 

image_png.png

 

Let me know still if you face any issues with this codes.

 

Best Regards,

Dharmakasi.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>