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

How to set Value Attribute (under valu node) at run time

Hi,

This is my View context.

wbsElement (Value Attribute of Type String)

This is my Component Controller Context.

Project_info (Value node) ->Wbs_Info (Value Node) -WBS(Value Attribute).

Initially I want to set some dummy values to wbsElement(view attribute),sothat I can show that in drop downby key.

On selecting of wbsElement I want to pass the selected value to component controllers ValueAttribute - WBS (this Value attribute is under 2 nodes-see the structure I've given).

I tried this way which is not working fine.

IWDNodeElement element = wdContext.createWBSElement();

wdContext.nodeWBS().addElement(element);

wdContext.currentWBSElement().setWBS(wbsElement);

Can anyone tell me which is the correct way to do this?

This is very urgent.plz help me in this.Thankx in advance.

Regards,

Karthick

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 03:55 PM

    Hi,

    Try the following.

    IPrivate<ViewName>.IProject_infoElement TopEle=wdContext.createProject_infoElement();

    TopEle.setXXX( "");

    wdContext.nodeProject_info().addElement(TopEle);

    IPrivate<ViewName>.IWbs_Info Element InfoEle=wdContext.createWbs_Info Element();

    InfoEle.setYYY("");

    ToEle.nodeWbs_Info ().addElement(InfoEle);

    In the above case Child Node "Wbs_Info" singleton property should be set to false.

    Regards, Anilkumar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Anil kumar,

      Thankx for your help.

      I tried your suggestion

      But I am getting the following error..

      Type mismatch: cannot convert from IPublicNetworkScheduleComp.IProject_InfoElement to

      IPrivateNetworkScheduleCompView.IProject_InfoElement

      and ..

      Type mismatch: cannot convert from IPublicNetworkScheduleComp.II_Wbs_InfoElement

      to IPrivateNetworkScheduleCompView.II_Wbs_InfoElement

      Help me plz.

      Regards,

      Karthick

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 05:12 PM

    Hi Karthick,

    try this code.

    IPublic<compcontrolllername>.IWbc_infoElement obj = wdThis.wdGet<Componentcontrollername>Controller().wdGetContext().createWbc_infoeElement();

    obj.setWBS(wdcontest.currentContestElement.getwbsElement());

    wdThis.wdGet<Componentcontrollername>Controller().wdGetContext().nodeWbc_infoElement().addelement(obj);

    set the cardinality of Project_info to 1:n or 1:1

    test this one

    if you find any problem let em know

    regars

    Naidu

    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.