cancel
Showing results for 
Search instead for 
Did you mean: 

WDA: Dump in WDDOMODIFYVIEW

srinivasa_raghavachar
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member183804
Active Contributor
0 Kudos

Hello Srinivasa,

can you give details on the dump?

Thanx

Klaus

srinivasa_raghavachar
Participant
0 Kudos

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.

former_member183804
Active Contributor
0 Kudos

Hello Srinivasa,

sorry that I wasn´t precise enough. Please check the name of the shortdump in the transaction ST22.

Thanks

Klaus

srinivasa_raghavachar
Participant
0 Kudos

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.

former_member183804
Active Contributor
0 Kudos

The message makes me feel that the context element attached to the ui element property text is yet not available.

Can you check if the according supply method or other means of the context initialization have been executed with help of the debugger ?

Regards

Klaus

srinivasa_raghavachar
Participant
0 Kudos

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.