on 06-28-2008 3:07 PM
Hi all,
I'm trying to add a transparent container to the root container,
but I´m getting this error: 'ASSERT condition was violated'
METHOD WDDOMODIFYVIEW .
DATA: LR_ROOT TYPE REF TO CL_WD_UIELEMENT_CONTAINER,
LR_TCONTAINER TYPE REF TO CL_WD_TRANSPARENT_CONTAINER.
LR_ROOT ?= VIEW->GET_ROOT_ELEMENT( ).
LR_TCONTAINER = CL_WD_TRANSPARENT_CONTAINER=>NEW_TRANSPARENT_CONTAINER( ).
CL_WD_FLOW_DATA=>NEW_FLOW_DATA( LR_TCONTAINER ).
LR_ROOT->ADD_CHILD( LR_TCONTAINER ).
ENDMETHOD.
Is something wrong with this code?
Thank you.
Regards,
Thomas
I have the same problem.
I am getting the error "The ASSERT condition was violated".
I have reduced my code to just simply add a transparent container to the rootuielement and I am getting the error.
I could not figure out why. Does anyone have info on this? Thanks.
Giscard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> I have the same problem.
> I am getting the error "The ASSERT condition was violated".
>
> I have reduced my code to just simply add a transparent container to the rootuielement and I am getting the error.
>
> I could not figure out why. Does anyone have info on this? Thanks.
>
> Giscard
My problem was the layout, after I added it, the problem was solved.
METHOD WDDOMODIFYVIEW .
DATA: LR_ROOT TYPE REF TO CL_WD_UIELEMENT_CONTAINER,
LR_TCONTAINER TYPE REF TO CL_WD_TRANSPARENT_CONTAINER.
LR_ROOT ?= VIEW->GET_ROOT_ELEMENT( ).
LR_TCONTAINER = CL_WD_TRANSPARENT_CONTAINER=>NEW_TRANSPARENT_CONTAINER( ).
CL_WD_FLOW_DATA=>NEW_FLOW_DATA( LR_TCONTAINER ).
CL_WD_FLOW_LAYOUT=>NEW_FLOW_LAYOUT( LR_TCONTAINER ).
LR_ROOT->ADD_CHILD( LR_TCONTAINER ).
ENDMETHOD.
Hope it helps you.
Regards,
Thomas
Thomas your a life saver.
Late in the day is not the best time to do complicated dynamic layouts, and thats when you forget what needs to be done.
CL_WD_FLOW_LAYOUT=>NEW_FLOW_LAYOUT( LR_TCONTAINER ).
After adding a container, always got to remember to set the layout! Argh! In my case it was a grid!!
Thanks again!!
Hi Thomas,
I think this error is coming because of some data confict in ur component.
And the data conflict is occuring because of this code.
otherwise the code is correct.
Please check the whole code and do a manual run.
Regards,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thomas,
I tested the same code and it is working fine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.