Skip to Content
0
Former Member
Jan 16, 2008 at 05:40 PM

Tablve View Iterator DROPDOWN change values are lost !!!

16 Views

Hello All,

In standard view BuPaMoreContactView, I am trying to add "COMM_NOTES" field which is comments field in the telephone data. I added context node attribute under "TELEPHONE" and I have also added code in new iterator class IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START method.

GET REFERENCE OF phonetype_tab INTO rt_table.

CREATE DATA rt_table LIKE phonetype_tab.

SELECT NAME VALUE FROM ZCRM_IC_LISTDATA INTO TABLE phonetype_tab where LIST_TYPE eq 'PT' .

ls_phonetype-key = ' '.

ls_phonetype-value = ' '.

APPEND ls_phonetype to phonetype_tab.

move phonetype_tab to rt_table->*.

create OBJECT col3.

col3->width = '100%'.

col3->id = p_cell_id.

col3->selection = gr_context_node->GET_COMM_NOTES(

attribute_path = ''

iterator = gr_iterator ).

col3->NAMEOFKEYCOLUMN = 'KEY'.

col3->NAMEOFVALUECOLUMN = 'VALUE'.

col3->table = rt_table .

col3->disabled = gr_context_node->get_i_comm_notes( ).

p_replacement_bee = col3.

I am able to display the dropdown and no issues in display. ONLY ISSUE is,

when try to change the dropdown value and then ADD new row /any server event, I am loosing the selected value.

STRANGE thing is, I saw SET_COMMNOTES() is getting triggered and it sets the value for all ROWS(which are changed), but GET_COMMNOTES() I am missing that value in the STRUCTURE. I confused where is the value missed/blanked out in structure or iterator ??????

Help in this regard higly appreciated and rewarded.

regards,

Laxman

Edited by: laxman on Jan 16, 2008 6:52 PM

Edited by: laxman on Jan 16, 2008 6:53 PM

Edited by: laxman on Jan 16, 2008 6:54 PM

Edited by: laxman on Jan 16, 2008 6:55 PM

Edited by: laxman on Jan 16, 2008 6:56 PM

Edited by: laxman on Jan 16, 2008 6:56 PM

Edited by: laxman on Jan 16, 2008 6:57 PM