Skip to Content
author's profile photo Former Member
Former Member

Refesh Value Help

Hi All,

I have a dropdown <b> (dropdownbyIndex box)</b> and a value help. Based upon the values selected in the dropdown my value help(which contains a number and it's description) should be populated. While selecting for the first time, the values coming in the value help are correct. But if I select any other value in the drop down I am getting <b>previous list + current list</b>( based upon changed value in the drop down ).

I am executing the Value help code onSelect of the drop down. I am not able to clear the previous values from the Value Help. Please help me in this.

My Code is

if(<value of dropdown > != null )

{

wdThis.wdGetEHS_APPLICATION_CompController().get1(); // method to get the values in the output node.

IWDAttributeInfo attinfo = wdContext.getNodeInfo().getAttribute(IPrivateEHS_APPLICATION_First_View.IContextElement.INSTRUNUM);

ISimpleTypeModifiable projetype = attinfo.getModifiableSimpleType();

IModifiableSimpleValueSet valueset = projetype.getSVServices().getModifiableSimpleValueSet();

for(int i=0;i<wdContext.outputnode().size();i++)

{

valueset.put(wdContext.outputnode().getElementAt(i).getAttributeValue("Instno"),String.valueOf(wdContext.outputnode().getElementAt(i).getAttributeValue("Subject")));

}

}

Thanks in advance,

Lakshmi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 10, 2007 at 01:15 PM

    Did you tried

    valueset.clear();

    ?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.