Skip to Content
avatar image
Former Member

How to refresh Value Attribute .

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 15, 2008 at 07:57 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 08:15 AM

    Hi,

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

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

    Regards,

    ramesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 09:12 AM

    Hi,

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

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

    wdContext.removeElement(ele);

    Regards

    Raghu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 08:05 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 08:09 AM

    hi!

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

    thanks

    vishal

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 08:10 AM

    you can use

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

    or

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

    Add comment
    10|10000 characters needed characters exceeded