on 06-14-2011 11:00 PM
Hello expert,
I created a value node in my z-view, this value node is displayed in teh UI as a table, I need some columns editable.
So I defined the I-getter to set rv_disabled = 'FALSE'. for the editable columns
and defined hte p-getter to define the UI element like input field or checkbox
Now when I test the app, the UI table is read-only, seems my I-getters do not work.
So I go to the hmtl, change the code to
<thtmlb:cellerator id = "CellTable"
onRowSelection = "select"
selectionMode = "MULTI"
editMode = "ALL"
selectedRowIndex = "<%= TechnicalData->SELECTED_INDEX %>"
selectedRowIndexTable = "<%= TechnicalData->SELECTION_TAB %>"
table = "//TechnicalData/Table"
visibleRowCount = "6"
width = "100%" />
Still nothing happens, the UI table still in display mode.
So what else I can do to make it editable?
Thanks
Jayson
Hi Jayson,
Is there any data in your table? You might have to create some blank rows.
method IF_BSP_MODEL~INIT.
"Structure for the value node
" TYPES: BEGIN OF ltype_attr_struct,
" SYMPTOM TYPE ZSYMPTOM,
" CAUSE TYPE ZCAUSE,
" ACTION TYPE ZACTION,
" SYMPTOM_TEXT TYPE ZSYMPTOM_TEXT,
" CAUSE_TEXT TYPE ZCAUSE_TEXT,
" ACTION_TEXT TYPE ZACTION_TEXT,
" END OF ltype_attr_struct.
super->if_bsp_model~init( id = id
owner = owner ).
DATA: lv_struct_ref TYPE REF TO ltype_attr_struct,
lv_value_node TYPE REF TO cl_bsp_wd_value_node,
lv_bo_coll TYPE REF TO if_bol_bo_col.
CREATE DATA lv_struct_ref.
CREATE OBJECT lv_value_node
EXPORTING
iv_data_ref = lv_struct_ref.
CREATE OBJECT lv_bo_coll TYPE cl_crm_bol_bo_col.
lv_bo_coll->add( lv_value_node ).
set_collection( lv_bo_coll ).
endmethod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jayson,
In the htm page of your view just give "allRowsEditable = "TRUE". I think this should work.
Regards,
Lakshmi.Y
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.