cancel
Showing results for 
Search instead for 
Did you mean: 

Simple type values retrieving in dynamic programming

Former Member
0 Kudos

Hello,

Can somebody help me to get the values of a simple type in dynamic programming. I am using the following code:

wdcontext.currentcustomergraph().getgraphstyle().

After the values selected in the drop-down, I am not able to get the selected value in dynamic code. Please help.

Thanks,

Sunita.

Accepted Solutions (0)

Answers (1)

Answers (1)

vmadhuvarshi_
Contributor
0 Kudos

Sunita,

Have you bound the "selectedKey" property of your DropDownByKey UI element to graphstyle context attribute. GraphStyle context attribute needs to be mapped to Simple Type Enumeration in dictionary too. After doing this, you can get selected Value of Enumeration through the code that you are using.

Hope this helps.

Vishwas.

Former Member
0 Kudos

Hello Vishwas,

I already did everything what you mentioned. When I use this in WdDoModifyView( )

wdContext.currentContextElement().getCustomerGraphStyles()

I am not able to retrieve the values inside customerGraphStyles().

Thanks,

Sunita.

vmadhuvarshi_
Contributor
0 Kudos

Sunita,

What exactly are you getting? Is there some error? Can you post the code that you have written in wdDoModifyView().

Vishwas.