on 01-19-2006 9:25 AM
Hi,
I have used node, recursive node and UI element TreeByNestingColumn for building a tree with multiple columns. Everything works fine, except for that I have a requirement to display the column in TreeByNestingColumn in different font depending on the value in other Table Column.
I have written the following code:
method WDDOMODIFYVIEW .
data: text_view1 type ref to CL_WD_TEXT_VIEW,
text_objecttype type ref to CL_WD_TEXT_VIEW,
element type ref to IF_WD_CONTEXT_ELEMENT,
ui_value type string.
text_view1 ?= view->GET_ELEMENT( ID = 'TRAININGNAME' ).
text_objecttype ?= view->GET_ELEMENT( ID = 'OBJTYPE' ).
ui_value = text_objecttype->GET_TEXT( ).
CONDENSE ui_value.
if ( ui_value <> 'L' ).
text_view1->SET_DESIGN( VALUE = '09' ).
endif.
endmethod.
Here I wnated to set the font for UI element TRAININGNAME based on the value in UI element OBJTYPE. But the statement ui_value = text_objecttype->GET_TEXT( ) gives dump.
Any idea why?
Thanks and regards,
Srini.
Hello Srinivasa,
can you give details on the dump?
Thanx
Klaus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Klaus,
The dump in the browser has the following text:
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: GET__BOUND_ATTRIBUTE of program CL_WDR_VIEW_ELEMENT===========CP
Method: GET_TEXT of program CL_WD_TEXT_VIEW===============CP
Method: WDDOMODIFYVIEW of program /1BCWDY/0EYUXPW5YS2D2WNAUXUY==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/0EYUXPW5YS2D2WNAUXUY==CP
Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP
Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP
Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP
Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
Thnaks and regards,
Srini.
Hi Klaus,
It is:
Runtime Errors UNCAUGHT_EXCEPTION
Exception CX_WD_CONTEXT
The exception 'CX_WD_CONTEXT' was raised, but it was not caught anywhere along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_WDR_VIEW_ELEMENT===========CP' has to be
terminated.
Hope this i sthe information you needed.
Thanks and regards,
Srini.
Hi Klaus,
Thanks for the reply.
The initalization happens correctly in the context.
But in the view, in UI element table column OBJTYPE is the last column, may be that is the problem. Based on its value I want to control the size of font of the UI element TRAININGNAME. But TRAININGNAME is the TreeByNestingTableColumn and I found that TreeByNestingTableColumn is always the first column in the table.
Regards,
Srini.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.