cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a table in webclient editable with value node?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Jayson,

In the htm page of your view just give "allRowsEditable = "TRUE". I think this should work.

Regards,

Lakshmi.Y

Former Member
0 Kudos

Hi L.Y.

allRowsEditable = "TRUE" is an attribute for the old tag tableview, not available in the new tag cellerator.

Actually I also tried the tableview, sitll no luck.

Thanks