on 05-14-2009 6:03 PM
Hi experts,
I need to dynamically change one of the view's Rootuielement's properties - SWFFILE in WDDOMODIFYVIEW method. I did some research, and could not figure out what the field is called (such as whether it is considered as an elemement), and how it is referernced in the WD programming. As a result, I am able to search for reusable class and method for my need. Could you please shine some light on me? By the way, I am on basis 7.02 release.
Thank you very much,
Debbie
Hi Debbie,
As how mentioned by Pooja the ROOTUIELEMENTCONTAINER is of type CL_WD_TRANSPARENT_CONTAINER. You can obtain its reference from within your WDDOMODIFYVIEW by saying as:
data: lr_root type ref to cl_wd_uielement_container.
lr_root ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER' ).
Or
You can directly use the below method to skip passing any id:
lr_root ?= view->get_root_element( ).
Regards,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had a successful live test. I can confirm that
lr_root ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER' ).
can be pointed to both elements and attributes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uday,
The field which I tried to modify is an attribute of the "ROOTUIELEMENTCONTAINER" which is created for a view with type Flash Island. I think both Pooja and your provided code is for modifying an element of the "ROOTUIELEMENTCONTAINER" because the field SWF_FILE and its value "vl_SWF_FILE" are not available in any neither of the CL_WD_TRANSPARENT_CONTAINER (which suggest by Pooja) and cl_wd_uielement_container classes. However, I was able to hybid your code with me, and get it work in debug mode.
Thanks for your feedback.
Debbie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ROOTUIELEMENTCONTAINER is a transparent container and its class is CL_WD_TRANSPARENT_CONTAINER
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.