cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the Value of Dynamic attribute

Former Member
0 Kudos

Dear All,

any one please help me how to refer the Dynaically created Attribute and How to get the Value from that Attrbute.

First i created one dynamic node. the context is like

Dynamic Node---(Node)

|TextView---(attribute)type(String)

|Check----(attribute)--type(boolean)

| image--(attribute)type(String)

i successfully created the Dynamic node and i successfully binded dynamically. now i want to get the value of Check attribute and also i nee

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

It is already discussed in SDN. Go through the following threads

[]

[]

[;

Regards

Raghu

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Bhargava,

You can get the value of your attribute using this,


<yourNodeElement>.getAttributeValue(<attributeName>);

Regards

Kishan

Former Member
0 Kudos

It depends whether the child node is singleton or non-singleton (I assume singleton) and which node element you want to access.


int i = /* index of node element to access */;
Object value = wdContext
  .getChildNode("DynamicNode", IWDNode.LEAD_SELECTION)
  .getElementAt(i)
  .getAttributeValue("Check");
boolean checked = ((Boolean) value).booleanValue();

Armin

Former Member
0 Kudos

Hi,

Follw this.

IWDNode node=wdContext.currentContextElemnt().node().getChildNode(<node name>,index);

WDNodeElement ele=node.getCurrentElemnt();

Boolean b=(Boolean)ele.getAttributeValue("Check");

Regards,

Srikanth Reddy.T

Former Member
0 Kudos

Thnks for All.

it is working fine.