on 04-10-2012 10:33 AM
Hi all,
I'm creating some nodes dynamically for create also some UI elements and do the binding.
I have also a button for "restart" the view and recreate again the nodes. But when I'm trying to delete a node I'm getting an error like:
Cannot delete ZZ_TEST#MAIN.CONTEXT.MY_NODE
I've removed all my code and I've only left the code for create the node and the code for delete it, but the error still appears.
This is my code:
DATA: lo_context_info TYPE REF TO if_wd_context_node_info, |
Do you know what i need to do?
Thanks in advance.
Hi Ricardo,
Try passing the is_static parameter and set it as false.
Most probably the code to remove it will work after that.
Regards,
Jaspreet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ricardo,
Try setting is_mandatory to false and check.
Regards,
Fareez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the code, it looks like you are trying to delete before adding the node.
Try to move the add new node code afirst and then call the delete node.
Let me know, if that resolves the issue.
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharath,
I'm using the same button for create the node and for the delete it.
The first time you use the button the node is not created yet, so the var lo_nd_my_node returns empty and I'm not trying to delete it. Then I'm creating the node.
The second time you push the button the node is already created. So this second time the var lo_nd_my_node is filled, and then i'm trying to delete it.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.