cancel
Showing results for 
Search instead for 
Did you mean: 

How to fill Object Value Selector

Former Member
0 Kudos

Hello All,

I want to fill values for my value help node dynamically. Where should I write the code. I mean in which Method I should write.

Any help on this is highly appreciated.

Regs,

Venkat

Accepted Solutions (1)

Accepted Solutions (1)

abhijeet_mukkawar
Active Contributor
0 Kudos

Venkat,

if you want to get the help, before view is shown to user , then write the code in WDDoInit() , if you want to get the help on performing any action lets say, on clicking button then

create one action , bind this to the OnAction of button , then you can write the code in the action event handler of that button; so value help will be recieved on clicking the button.

if you want to refer any tutorial , here it is:

https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/5dcbe990-0201-0010-2c99-a2bc9e61ac... [original link is broken]

let me know if you have any problem

regards

Former Member
0 Kudos

Hello Abhijeet,

It was very useful. Thanks for your help.

Regs,

Venkat Ramanan N

Answers (1)

Answers (1)

Ronib
Participant
0 Kudos

suppose you have value attribute named OVS in your view context. create method called initOVS() with this code , and call it when ever you want

<i>IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute("OVS");

ISimpleTypeModifiable simType = attributeInfo.getModifiableSimpleType();

IModifiableSimpleValueSet valueSet = simType.

.getSVServices().getModifiableSimpleValueSet();

valueSet.clear();

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

wdContext.nodeTa().moveTo(i);

valueSet.put(wdContext.currentTaElement().getKu(),

wdContext.currentTaElement().getNam());

}</i>

Former Member
0 Kudos

Hello,

It was helpful.

Thanks for the support.

Regs,

Venkat Ramanan N

Message was edited by:

Venkat Ramanan Natarajan