Skip to Content
avatar image
Former Member

how go put Object-type Data to context node attribute.

you know,when u put a simple type data (int type) to a node attribute,which result in have a default zero value with binded inputField element.

e.g,:

a node named xNode,which have a attribute named xAttr.

a)if xAttr is a int type.

-


ISimpleTypeModifiable type=wdThis.wdGetAPI().getContext().getModifiableTypeOf("ConnectWebQueryCondition.contMonth");

IModifiableSimpleValueSet values = type.getSVServices().getModifiableSimpleValueSet();

values.put(new Integer(1),"01");

values.put(new Integer(2),"02");

-


b)if xAttr is a Integer type,how to put data(key,value) to the xAttr???

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 22, 2007 at 09:03 AM

    wingoal,

    Same code should work for both int and Integer. Just try it.

    VS

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 22, 2007 at 09:09 AM

    Hi,

    You can get the value of your Integr object as:

    Integer in = new Integer(10);

    in.intValue();

    This way you will get value and rest is the same.

    PS: plz reward points

    Abhinav Sharma

    Add comment
    10|10000 characters needed characters exceeded