on 04-30-2007 3:28 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.