Skip to Content
author's profile photo Former Member
Former Member

Tablve View Iterator DROPDOWN change values are lost !!!

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 18, 2008 at 02:37 PM

    Becos, in Iterator you are not passing the value:

    Change below code

    col3->selection = gr_context_node->GET_COMM_NOTES(

    attribute_path = ''

    iterator = gr_iterator ).

    into

    <div class = "jive-quote">

    data: _value type string.

    value = prow_index.

    condense _value.

    concatenate '//model/your_internal_table_name[' value '].fieldname_here' into _value.

    col3->selection = _value.

    </div>

    Hope this solves ur issue.

    Raja T

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.