on 12-30-2008 4:59 AM
Hi, i did a dynamic node, with attributes, and it works fine, but if i return to the main page of my application, when i go to the page that have the dynamic node there's an error.
The error is:
com.sap.tc.webdynpro.progmodel.context.ContextException: DataNodeInfo(CuadroComparativo.nodeCuadro): unknown child node PRECIO0
I created the node of this way:
IWDNodeInfo nodeCuadro = wdContext.getNodeInfo().addChild("nodeCuadro", null, true, true, true, false, false, true, null, null, null);
And attributes
nodeCuadro.addAttribute("GJAHR", "mx.com.cablemas.concursos.model.types.Gjahr");
I tried to use
wdContext.getContext().reset();
wdContext.wdGetAPI().reset();
But i have the same error, please, i do not know what more can i do... if somebody has some suggestion, I would be thanked for it.
Thanks, Sebastiá
Hi,
The following code deletes all the dynamically created nodes and its attributes,
wdContext.getContext().reset();
If that didn't work, then try,
if(table != null)
{
table.removeAllColumns();
table.destroyAllColumns();
table.destroyHeader();
}
wdContext.getContext().reset();
In wdDoModifyView, write this,
view.resetView();
Hope this helps!
Regards
Kishan
Edited by: kishan chandranna on Dec 30, 2008 6:16 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
try to implement reset() method on IWDContext
like IWDContext.reset();
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To remove the dynamically created node use
wdContext.getContext().reset(true);
reset() drops only dynamically created attributes/nodes, but does not affect attributes/nodes created at design-time in IDE.
useful threads...
[Thread: How to delete dynamically created attribute |;
Check the velary's comments / solution in below thread, saying
wdContext.reset(false);
[Thread: dynamic removing of Value Nodes |;
[Thread: How to remove node attributes dynamically? |;
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you tried as velary suggested in following link?
https://www.sdn.sap.com/irj/scn/thread?messageID=699364
i.e.
The only way is to completely reset context:
wdContext.reset(false);
This will remove all dynamically created nodes / attributes. You have to recreate structure afterwards (obviously, without node you were actually "removing")
PradeeP
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.