cancel
Showing results for 
Search instead for 
Did you mean: 

Using the "Network" UI Element

0 Kudos

Hi !

Does anybody have an example how to use the "Network" UI element ? It seems to be related to JNet somehow but I still could not find out how to implement it in Web Dynpro ...

Best regards

Axel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Network UI element is related with Jnet. What you need to start up working with this is you need to create a context structure mentioned below.

Node:Source

Element--- xml -> this should be of type binary.

Place the following code in the init.

ISimpleTypeModifiable mod = wdContext.nodeSource().getNodeInfo().getAttribute("xml").getModifiableSimpleType();

IWDModifiableBinaryType bin = (IWDModifiableBinaryType)mod;

bin.setMimeType(new WDWebResourceType("xml", "application/octet-stream", false));

ISourceElement element =wdContext.nodeSource().createSourceElement();

wdContext.nodeSource().addElement(element);

try

{

fileName = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), "jnettest.xml");

element.setXml(readFile(fileName));

}

catch (WDAliasResolvingException e)

{}

You have to place the Jnet test.xml under the mimes folder of your application.

Place the network element in the view and in the data source specify the context attribute source.xml

if your xml file complies with the jnet schema your application will render it.

Regards

Ayyapparaj

0 Kudos

This works, thanks a lot to Ayyapparaj !

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

you can find the documentation for Network here: http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/248841a79f1609e10000000a155106/frameset.htm

Regards, Heidi

Former Member
0 Kudos

Axel,

Did you check this document?

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a23d48c9-0501-0010-86be-845...

Sadly, this is the only resource ;(

Valery Silaev

EPAM Systems

http://www.NetWeaverTeam.com

Former Member
0 Kudos

If there is no sufficient documentation, please open an OSS message on component BC-WD-JAV-RUN.

Armin