Quantcast
Channel: SCN: Message List - Master Data Management (SAP MDM)
Viewing all articles
Browse latest Browse all 1243

Save MDM field in file

$
0
0

Good morning everyone.

I'm recordingin a fieldof MDM, files thatthe user doesuploud.

 

How do Iuploud:

IPrivateAttachmentView.IContextElementelement =

wdContext.currentContextElement();

// Ifthefileexistsin theFileUploadfield

if (element.getResource ()! = null) {

IWDResourceresource =element.getResource();

//Set contextattribute'fileName'.

element.setData(resource.getResourceName ());

// Set thevisibilityattributedetails

IAttachmentElementelementAttachment=wdContext.nodeAttachment() createAndAddAttachmentElement(.);

elementAttachment.setFile(resource);

 

elementAttachment.setFile_Name(resource.getResourceName ());

 

After thatI willdo:

if (wdContext.node elementAttachment() .size()> 0) {

 

Strinxml= "";

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

xml+=elementAttachment.file;

}

dThis.wdGetItemDetailCompInterface() SetFieldValue("MDM_XML", new StringValue(xml)).;

}

 

My question'm doing the right way?

Does anyone haveany tips?

 

Thank U.


Viewing all articles
Browse latest Browse all 1243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>