on 09-11-2011 9:50 AM
Hi
I have 2 views in one component ...in first view table contains one column with link to action and view container..second view is dynamically generated and embedded in view contianer..when i click on lead selection it should generate a view.but it is generating initially ...on changing lead selection ..dynamic view i s not generating ERROR LIKE " view with ID 'TC' already exists"..
Can any one tell me how to clear previous id 's.
Hi ,
For that you have declare one global variable in which you store the flag for first time view.
if flag ne X.
then it will show else just refresh the value of view by global binding
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use reset the view . This will make sure that the dynamically created UI elements are destroyed.
lo_view->reset_view( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Vasavi,
There's clearly a problem on you View's method WDDOMODIFYVIEW.
I recommend that you debug and see what is happening inside that method.
Each UI element should have its oun UNIQUE ID at runtime.
For example - you can't have 2 buttons with the exact same ID on the same View.
And that applies to any other UI element.
So please check on that method how are you assigning those IDs to your UI elements.
If you want to know more about that method, here's a good link for you to start with:
[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8402] [original link is broken] [original link is broken] [original link is broken];
Kind Regards
/Ricardo Quintas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.