on 03-17-2008 10:10 AM
Hi!
Do you know I possibility how I can reset all the
input fields which are filled out.Kind of reset input values.
regards
sas
Hi,
Use
wdContext.node<Your Node>().invalidate()
else
create a custom function that takes a node name as param and iterate through the atttibutes and set them to null;
*Sample code not tested*
private void clearAll(IWDNode node)
{
Iterator itr = node.getNodeInfo().iterateAttributes();
while(itr.hasNext())
{
IWDAttributeInfo attributeInfo = (IWDAttributeInfo)itr.next();
if(!node.isEmpty())
{
for(int x=0; x < node.size(); x++)
{
node.setLeadSelection(x);
node.getCurrentElement().setAttributeValue(attributeInfo.getName(), null);
}
}
}
}
regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Put a button .
OnAction put the code
wdContext.node<ur>.current<ur>Element.set<ur>Attirbute(""); for String
for Other data type
wdContext.node<ur>.current<ur>Element.set<ur>Attirbute(null);
Regards
Akshaya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if context attributes are under some value node,
just invalidate the node
wdContext.node<yourNode>().invalidate();
otherwise, set every individual attrubute to blank or zero.
wdContext.currentContextElement().set<>attribName("");
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.