cancel
Showing results for 
Search instead for 
Did you mean: 

Create dynamic Dictionary Data Types (Simple & Structures)

Former Member
0 Kudos
95

Hello,

I need to create <b>Dictionary Data types</b> (both Simple and Structures) at <b>runtime</b>. Is is possible ? Any pointers ?

Regards,

Aayush

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Wow!

I've never gone so far!

This is completely undocumented. But I think you have to start with your own implementation of IBroker and/or IDataProvider. See package com.sap.dictionary.runtime

VS

Erin2
Advisor
Advisor
0 Kudos

Hi,

Currently the only supported Dynamic programming flavors are:

- Dynamic UI

- Dynamic Contexts

- Dynamic Actions

- Dynamic Metadata (parameter mappings)

What problem are you trying to solve?

Cheers, Erin

Former Member
0 Kudos

If your intention in creating the simpletype dynamically is to populate a drop down or so the you can use the following code.

IwdAttibuteInfo info=wdcontext.node<nodename>().getNodeInfo().getAttribute(<Attribute name>);

ISimpleTypeModifiable stm=info.getModifiableSimpleType();

IModifiableSimpleValueSet svs=stm.getSVServices().getModifiableSimpleValueSet();

svs.put(Key,Value);

Now the nodeattribute that you have specified can be mapped to the required UI.

REgards

NOufal