cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh Value Attribute .

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Try this if you have only one value attribute under context.

IPrivate<<BAPItoExcelView>>.IContextElement ele = wdContext.currentContextElement();

wdContext.removeElement(ele);

Regards

Raghu

Former Member
0 Kudos

Hi,

use this when you want to clear the selected value of the DDBK,

wdContext.currentContextElement().set<Attribute Name>("");

Regards,

ramesh

Former Member
0 Kudos

you can use

wdContext.current<context element>.set<ur attribute name>(null);

or

wdContext.current<context element>.set<ur attribute name>("");

Former Member
0 Kudos

hi!

you can set appropiate attributes to null or empty string just before or after executing the required functionailty.

thanks

vishal

Former Member
0 Kudos

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