on 10-15-2008 8:44 AM
Hi Experts,
I have a value attribute, which i have binded to a dropdownbykey UI element, the problem is i am unable to refresh the value attribute .
I have to refresh the Value attribute some thing like .invalidate() function, which is used for nodes.
How can i do that??.
Please give your suggetions.
Regards
Upendra
Hi,
you can use removeElement()
int listSize = wdContext.node<Node Name>().size();
for(int i = listSize - 1; i >= 0; --i)
{
wdContext.node<Node Name>().removeElement(wdContext.node<Node Name>().getElementAt(i));
}
Edited by: Aishwarya Sharma on Oct 15, 2008 9:58 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 this if you have only one value attribute under context.
IPrivate<<BAPItoExcelView>>.IContextElement ele = wdContext.currentContextElement();
wdContext.removeElement(ele);
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use this when you want to clear the selected value of the DDBK,
wdContext.currentContextElement().set<Attribute Name>("");
Regards,
ramesh
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
wdContext.current<context element>.set<ur attribute name>(null);
or
wdContext.current<context element>.set<ur attribute name>("");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
you can set appropiate attributes to null or empty string just before or after executing the required functionailty.
thanks
vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Upendra,
Otherwise you can just set the value of the attribute to null or empty string to refresh it.
IPrivate<View Name>.I<Node Name>Element element = wdContext.node<Node Name>().create<Node Name>Element();
element.set<Attribute Name>(" ");
wdContext.node<Node Name>().addElement(element);
Edited by: Aishwarya Sharma on Oct 15, 2008 10:05 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.