bsp:findAndReplace 태그 사용방법
1. Tag 및 속성
2. 태그 사용 샘플코드
– 헤더 필드
<bsp:findAndReplace find=”<input” replace=”< input onchange = `alert(‘alert’ )`” >
<htmlb:inputField id=”i1″ value=”<%= val %> ” / >
</bsp:findAndReplace >
– 아이템 필드
DATA: lr_fr TYPE REF TO cl_bsp_find_and_replace,
lr_ip TYPE REF TO cl_htmlb_inputfield,
lr_bee TYPE REF TO cl_bsp_bee_table.
DATA: lv_find TYPE string.
DATA: lv_replace TYPE string.
lv_find = ‘<input’ .
lv_replace = `<input onkeydown=’disableBack(event);’`.
lr_fr = cl_bsp_find_and_replace=>factory( find = lv_find
replace = lv_replace
mode = `FIRST_OCCURRENCE` ).
lv_value = get_column_value( column_name = p_column_key ).
lr_ip = cl_htmlb_inputfield=>factory( id = p_cell_id
alignment = ‘CENTER’
disabled = lv_disabled
value = lv_value ).
CREATE OBJECT lr_bee.
lr_bee->add( level = 1 element = lr_fr ).
lr_bee->add( level = 2 element = lr_ip ).
p_replacement_bee = lr_bee.