Create File Content Item
Hello,
To create a File Content Item in Content server, I know a small blue box will pop up to allow you upload a file from your local drive. When the box is loading, I can see it access a link. But I cannot right click the box to view its properties to get the address after it is load. I need to open (access) this blue box in my portlet. My question is how I can directly call or open this box using EDK in portlet. What is the basic url for this box if I know the folder that I will save my file.
Thanks in advance
Thanks for your help!
I tried using SetFilePropertyValue(). It looks like it is the same as SetImagePropertyValue(). You have to upload the file to portlet server first and then using the SetFilePropertyValue() to upload it to Content server. We can not open our portlet server to let everyone upload file to it.
Now I have to create a content item with a long text field first, and then using ContentItem.editorURL to open the content item edit window. User can upload image file by clicking from there.
Please let me know if you have a better way.
Thanks again!
Similar Messages
-
How to publish a File Content Item via EDK?
I'm trying to publish a "File Content Item" via the EDK.
CS EXPLORER
Recall, that a "File Content Item" is different than a (regular) "Content Item" in that (via CS Explorer) it's a content item with no user-defined data entry template (when you right-click, the "Edit Data Entry Template..." menu item is not listed). Yet, somehow, it can still be published (via the Explorer), --which is great because I need to FTP this file to another server.
EDK
However, even though the (file) content item's EDK "Publishable" property indicates "true", it cannot be published via the IContentItemManager.PublishContentItem() method, which is returning the following error message...
The required object was not found... content item... containing Data Entry Template... with attached Presentation Template (with UUID null)... (DataItemUuidNotFound...)
In other words, the File Content Item has a (system defined) "/Definitions/File" data entry template, which has no attached presentation template. This leads me to believe that File Content Items are published differently (than Content Items).
Or, is there a flag that I can pass along to "file_upload.jsp" to get it to auto-publish the File Content Item it creates?
thanks,
MichaelHey there,
Animate doesn't publish to HTTPS, but this is something you can control on your own when uploading to a secure server. Also be aware that the Animate runtime is served over HTTP so you'll have to upload this component to serve from your server as well.
Sarah -
BEA's Publisher - Display Published Content Items
I'm using BEA's Publisher product with ALUI. I want to have a simple portlet that just displays Content Items that I've published, but after playing with it for a couple of hours, I find myself stuck.
I have a Data Entry template that just takes a name and a file, and a presentation template associated with that. But I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template.
I tried using the Tag Helper and I saw that the file properties were available, e.g. name, location, length, however I can't get the template to actually display the information.
Also, since I can't publish said presentation template (you aren't allowed to publish a presentation template associated with a data entry template), I have to make ANOTHER presentation template, and include the first one, and then make a new portlet that displays that second template. Is this how it's supposed to work? It seems awfully complicated for such a simple task.
I would greatly appreciate any input anyone can give. Thanks!
Edited by: user10704201 on Dec 12, 2008 12:32 PM" I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template. "
While I believe that this is a correct statement, you can't use pcs:foreach to get all items associated with a DET, I think that what you really want is to display all the content items in a folder or in a list. The 2 ways I most commonly do it are:
use a list
1) create a DET for the main portlet item (for example, news stories) with a property of type list
2) create a DET for the type of item that goes into the list (for example, news article)
3) create a Content Item based on your main portlet item DET
4) add items to the list
5) iterate through the list in your presentation template (pcs:foreach expr="item.myList" var="mylistvar"...)
You can also tell each news article to automatically add itself to the news stories list. (Look in the DET for this setting)
use a folder
you can also just create your list items in a folder and then loop through the folder (pcs:foreach expr="folderByPath(item.folder,"folderName")"... -
File content conversion in receiver
Hi,
My receiver Message type structure is
Heading1
subheading 1
FieldValue1
FieldValue 2
Fieldvalue3
I want to create file content conversion in receiver side.
plz help me to create what could be my recordset structure, name, value.
my scenario is Idoc to file.Ruban:
Your FCC goes like this
subheading1.fieldSeparator = ',' /* if comma is the separator you want, if u need any other replace it*/
subheading1.endSeparator = 'nl'
Did you check my previous post in your other thread, I posted similar example there. -
File Content Conversion CSV File
Hello All,
I have a CSV file in the below format.
a,b,c
And my content conversion works.
<1>a</1>
<2>b</2>
<3>c</3>
Sometimes I get the records in the file as
a,b,
My conversion is failing, I mean it give me file as
<1>a</1>
<2>b</2>
The last element <3></3> is not getting created.
I tried to use lastFieldsOptional its not working.
How can I achieve this.
Regards,Okay Satish I will give a last try to explain you my issue..
my CSV file is like this a,b,c,d
my conversion works fine so the xml is after conversion
<1>a</1>
<2>b</2>
<3>c</3>
<4>d</4>
Now few rows in the file may come as a,b,c, there is no d value it is blank.
so I expect the conversion to be now
<1>a</1>
<2>b</2>
<3>c</3>
<4></4>
like this, but what I am getting now is after conversion...
<1>a</1>
<2>b</2>
<3>c</3>
tag <4></4> is not getting created and my Outbound expects the XML to be in that format, so for this I tried to use lastfieldsoptional so that empty <4></4> tag is created but no luck...
This is what I want to do..
In the process even though <4></4> is not created File Content Conversion is successful and so Adapter Monitoring is showing success and my mapping fails.
Regards, -
Hi Everyone,
I'm try to create winform application with control tree that enable the users to move item from source folder to destination folder.
I tried to use the CopyContentItem Method and then delete the source item but I found that this mothod creates the item in the same folder.
Does anyone have experience with such task and does it mean that I need to create new content item in the target folder and getAllProperties from the source item and set for each property his value manually???? It's insane....
GuyHi,
To create your own custom scheduler task, check this:
https://forums.sdn.sap.com/thread.jspa?threadID=28955
So in your code you should perform a copy/replace operation of your xml with KM Api.
Check this for an example:
https://forums.sdn.sap.com/thread.jspa?threadID=100695
Greetings,
Praveen Gudapati -
File Content Conversion - Creating Mulitple structured Flat Files
Hello,
I am trying to create a flat file using File content Conversion.For simple XML strcutures like
<Header>
</Header>
<Item>
</Item>
<Trailer>
</Trailer>
the file content conversion works fine. But whe the XML structure gets complicated like
<Header>
</Header>
<Item>
<Item_Detail>
</Item_Detail>
</Item>
<Trailer>
</Trailer>
or
<Header>
</Header>
<Item>
<Item_Detail_1>
<Item_Detail_2>
</Item_Detail_2>
</Item_Detail_1>
</Item>
<Trailer>
</Trailer>
I am not able to create the correct flat file with the Item_Detail information.How can I do the same ?
Regards,
Sandeepwell same in the receiver side too....
REF: http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
and sorry abt the earlier blogs, u can chk out the one below ....
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion -
File content conversion is not creating the exact strcuture as Datatype
Hi,
We are facing issue .
I have sender DT type
<FIle_DT>
< HeaderDetail>
<Field1>
<Field2>
<Linietemdetails>
<Field1>
<Field2>
</Linietemdetails>
</ HeaderDetail>
</File_DT>
but when I am preocessing the file content conversion - > when its pulling the data from the file this structure become
<FIle_DT>
< HeaderDetail>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails>
<Field1>
<Field2>
</Linietemdetails>
</File_DT>
I want same above one after content conversion. I tired allt he options availble . please help
In file content conversion I give
RecordSet Structure -->HeaderDetail,,LineItemDetail,
HeaderDetail.keyFieldValue H
HeaderDetail.endSeparator 'nl'
HeaderDetail.fieldFixedLengths 1,4,8,25
HeaderDetail.keyFieldInStructure ignore
LineItemDetail.keyFieldValue L
LineItemDetail.endSeparator 'nl'
LineItemDetail.fieldFixedLengths 1,3,1,10,10,24,3,25
LineItemDetail.keyFieldInStructure ignore
LineItemDetail.keepIncompleteFields YES
ignoreRecordsetName true
Please help
regards
RamHi Babu,
Thanks a lot for your input.
Actually My requirement is this its file to Multiple idoc scenarios.
Here I am getting flat file HeaderDetails and LinItemdetails. its having Multiple Headerdetail then Line Item Details, I want to create idoc for each HeaderDetail and all the Next LineItemdetails should go to that IDoc. If we can find some solution then it will also work for me.
For ex.
My source would be
FIle_DT>
< HeaderDetail1>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails11>
<Field1>
<Field2>
</Linietemdetails11>
<Linietemdetails12>
<Field1>
<Field2>
</Linietemdetails12>
< HeaderDetail2>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails21>
<Field1>
<Field2>
</Linietemdetails21>
<Linietemdetails22>
<Field1>
<Field2>
</Linietemdetails22>
< HeaderDetail3>
<Field1>
<Field2>
</ HeaderDetail>
<Linietemdetails31>
<Field1>
<Field2>
</Linietemdetails>
</File_DT>
I want target structure like this .
<Idoc>
<HeaderDetail1>
<LineItemdetail11>
<LineItemdetail12>
<LineItemdetail13>
</Idoc>
<Idoc>
<HeaderDetail2>
<LineItemdetail21>
<LineItemdetail22>
<LineItemdetail23>
</Idoc>
<Idoc>
<HeaderDetail3>
<LineItemdetail31>
</Idoc>
If anyway you can help me how to go and how to do this grouping then it would be really great for me.
regards
ram -
Error while Creating Prestage Content File for Application in SCCM 2012
Hi All,
I am using SCCM 2012 SP1 on Win 2K8 SP R2 box. Database is SQL 2008 R2 SP1 CU6. I have trying to create Prestaged content for Applications for extracting pkgx files on DP's. I am getting the below error message for random applications(not for all applications
but for random applications).
Content that will be included into the prestaged content file (1):
Citrix Receiver 13.3.0.55
Export all dependencies: 'Yes'
Selected distribution points: 'MPSERVER.GS.WORLD.PRESS.COM'
Prestaged content file: 'G:\pkgxfiles\Application\Citrix Receiver 13.3.0.55.pkgx'
Error: Distribution is currently in progress for selected packages: HM0000D9. Please wait and try again
But if I see this application is successfully distributed to 2 of the distributions points long ago. If I reupdate the Distribution point and then again try to create prestaged content for this application then pkgx file for that application is getting
created.
Why this is happening and how can I resolve this?
Thanks & Regards UttamSince no one has answer this post, I recommend opening a support case with CSS as they can work with you to solve this problem.
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
Create a group based on file contents
Hello!
I'm investigating options to create a dynamic group based on periodic check of file content. I have a Shavlik updater which is patching custom groups based on file contents. I would like to create a dynamic group which should return all Windows Computer
classes that are found from this file. Anything close to sensible was found at https://www.youtube.com/watch?v=gxASdzHFTOU where author created an attribute of based on "SELECT * FROM CIM_DataFile" and then created a group out from it - but it checks
file existence, not content, would launch against all Windows Clients (and we have 1000+ of these monitored) - certainly not a valid way.
Is there any way I could do that in a simple, straightforward way?
Thanks in advanceOk, I got it. Have you tried modifying the group membership with powershell?
Modifying Explicit Group Membership in SCOM 2012 with PowerShell
http://blogs.msdn.com/b/rslaten/archive/2013/06/27/modifying-explicit-group-membership-in-scom-2012-with-powershell.aspx
Automate your group creation with Powershell
http://blog.coretech.dk/kra/automate-your-group-creation-with-powershell/
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
File is not creating on the Receiver for File Content Conversion
Hi,
i have created a scenario with this blog
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
for sender side i am using File Content Conversion to read .txt file and on receiver side i need xml file i have done that.
when i placed the file in the sender folder it gets picked up and i checked in Communication Channel monitporing in Runtime WorkBench it is processed Successfully. but no XML File is created on the Receiver side. i am unable to see the messages on SXMB_MONI also.
Please suggest some ideas to solve this.
Thanks,
Giridhar.CHi Giridhar.
unable to see the messages on SXMB_MONI also
If the file got picked and in Communication Channel monitoring RWB you can see that it is processed without any errors ,, then i feel it should come in come.Please check the Audit log in RWB, there you can see the error message if any.
Please check the connection parameters in FTP and make sure that the same sender folder is
not being used by any other scenario.If you have done any recent changes then do a cache refresh .
Please post if you see any error in content conversion.
Regards
Srinivas -
The content item must have a primary file.
I am trying to check in a new file use the service "CHECKIN_NEW" in UCM 11.1.1.6.
I checkin the *"CHECIN_NEW_TEST.hcst"* into the content server. And run it by submit the page to test the service.
The error cause like this: Content item '001026' was not successfully checked in. The content item must have a primary file.
And the log is :
!csUserEventMessage,wladmin,192.168.6.250:16200!$!csUnableToCheckIn,001024!csCheckinPrimaryFileRequired
intradoc.common.ServiceException: !csUnableToCheckIn,001024!csCheckinPrimaryFileRequired
*ScriptStack CHECKIN_NEW_SUB
3:doScriptableAction,**no captured values**3:doSubService,**no captured values**CHECKIN_NEW_SUB,**no captured values**3:validateStandard,dDocName=001024
at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
at intradoc.server.Service.buildServiceException(Service.java:2326)
at intradoc.server.Service.createServiceExceptionEx(Service.java:2320)
at intradoc.server.Service.createServiceException(Service.java:2315)
at intradoc.server.DocServiceHandler.validateStandard(DocServiceHandler.java:1339)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
at intradoc.server.Service.doCodeEx(Service.java:603)
at intradoc.server.Service.doCode(Service.java:575)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
at intradoc.server.Service.doAction(Service.java:547)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:542)
at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1322)
at intradoc.server.Service.executeSubServiceCode(Service.java:4023)
at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1200)
at intradoc.server.Service.executeServiceEx(Service.java:4018)
at intradoc.server.Service.executeService(Service.java:4002)
at intradoc.server.Service.doSubService(Service.java:3912)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
at intradoc.server.Service.doCodeEx(Service.java:620)
at intradoc.server.Service.doCode(Service.java:575)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
at intradoc.server.Service.doAction(Service.java:547)
at intradoc.server.Service.doScriptableAction(Service.java:3964)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
at intradoc.server.Service.doCodeEx(Service.java:620)
at intradoc.server.Service.doCode(Service.java:575)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
at intradoc.server.Service.doAction(Service.java:547)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:542)
at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
at intradoc.server.Service.executeActions(Service.java:528)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
at intradoc.server.Service.doRequest(Service.java:1956)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:437)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1354)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1731)
at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:222)
at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1704)
at idcservlet.IdcFilter.doFilter(IdcFilter.java:457)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
The CHECIN_NEW_TEST.hcst as follows:
<html>
<head>
<$include std_html_head_declarations$>
</head>
<$include body_def$>
<$include std_page_begin$>
<form name="cuxCheckinNewPG" method="get" action="<$HttpCgiPath$>">
<input type="hidden" name="IdcService" value="CHECKIN_NEW" >
<input type="hidden" name="dDocAuthor" value=<$UserName$>
<$include idc_token_form_field$>
<table width="53%" height="100" border="1">
<tr>
<td width="306" height="26">dSecurityGroup</td>
<td width="325">
<input type="text" name="dSecurityGroup" value="Public" /> </td>
</tr>
<tr>
<td width="306" height="26">dDocTitle</td>
<td width="325">
<input type="text" name="dDocTitle" /> </td>
</tr>
<tr>
<td>primaryFile</td>
<td colspan="3"><INPUT NAME="primaryFile" TYPE="file"> </td>
</tr>
<tr>
<td colspan="2" align="middle">
<input type="submit" value="SubmitBtn" name="checkinSubmit"></td>
</tr>
</table>
</form>
<$include std_page_end$>
</body>
</html>
Thanks
Mandy
Edited by: user8898100 on Jul 2, 2012 6:16 PM
Edited by: user8898100 on Jul 2, 2012 6:17 PMIt's really more of an HTML issue with the form itself than a Content Server issue.
<form name="cuxCheckinNewPG" method="get" action="<$HttpCgiPath$>">You can't submit files using a GET method. This attribute must be "POST".
<form name="cuxCheckinNewPG" method="POST" enctype="multipart/form-data" action="<$HttpCgiPath$>"> -
Required help for Identifying diff. items in file content conversion.
Hi All,
I've to use a file content conversion parameters for a .txt file in which there are two objects. One is a header and the other is a item detail.
How do we get or mark the difference between both so that XI recognizes the particular line is a Header and the other is a Item detail
Thanks in Advance.
Regards,
Sree.Hi
Make use of a field which is common to header and item line which will always hold different values for header and item. Or otherwise if possible, add an extra field in the header and item lines, say 'Key' and use it in the 'Key Field Name' parameter in the adapter configuration. See this for details - [File Content Conversion for Complex Structures|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/].
Regards,
Riyaz -
Create substructures via file adapter - file content conversion
I have a need to create a structure as follows using file content conversion from a flat file
source:
H1~00
S1~1A
L1~1B
S1~2A
L1~2B
S1~3A
L1~3B
<?xml version="1.0" encoding="UTF-8"?>
<ns:x_MT xmlns:ns68="urn:abt.com/IAM">
<DocHeader>
<Label />
<type />
</DocHeader>
<DocItem>
<Ship>
<Label />
<type />
</Ship>
<Lines>
<Label />
<type />
</Lines>
</DocItem>
</ns:x_MT>
I can successfully create a x_MT but I do not get the heirarchy (DocItem node) and therefore I'm having trouble on the mapping side.
My file content conversion is as follows:
Document Name: x_MT
Document Namespace: urn:abt.com/IAM
Recordset Name: x_DT
Recordset structure: DocHeader,1,Ship,,Lines,
Recordsets per message: *
Key Field Name: label
DocHeader.fieldSeparator '0x7E'
DocHeader.endSeparator 'nl'
DocHeader.fieldNames label,type
DocHeader.keyFieldValue H1
Ship.fieldSeparator '0x7E'
Ship.endSeparator 'nl'
Ship.fieldNames label,type
Ship.keyFieldValue S1
Lines.fieldSeparator '0x7E'
Lines.endSeparator 'nl'
Lines.fieldNames label,type
Lines.keyFieldValue L1
What I get is a structure without the node DocItem and therefore appears like a flat structure and mapping fails since I have multiple 'Lines' and only the last one gets mapped.
I've read all the weblogs around this topic and none seemed to address more than one node. Please help.
Thank you,
ParimalaHi Parimala,
As per SAP help document the structure created by content conversion would look like this..
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
<documentName>...
<recordset>
<NameA>
<field-nameA1>field-value</field-nameA1>
<field-nameA2>field-value</field-nameA2>
<field-nameA3>field-value</field-nameA3>
</NameA>
<NameB>
<field-nameB1>column-value</field-nameB1>
<field-nameB2>column-value</field-nameB2>
<field-nameB3>column-value</field-nameB3>
</NameB>
</recordset>
<recordset>
</recordset>
</documentName>...
If you require a <DocItem> node then you have to handle this in mapping.
Regards
Anand -
Can't create a Content Type List Item on Visual Studio 2010
Can't create a Content
Type List Item on Visual Studio 2010Hi,
According to your description, my understanding is that you want to select the specific content type in new item form.
This is a default behavior. The "Add new item" link uses the default content type and does not display a dropdown list to change that value. This behavior is hard coded into the control and can't be changed.
Here are some similar threads for your reference:
https://social.technet.microsoft.com/Forums/en-US/de60f2a1-df91-4a67-a606-02a593c977b4/choose-a-content-type-when-creating-a-new-list-item?forum=sharepointcustomizationlegacy
http://sharepoint.stackexchange.com/questions/13281/content-type-field-missing-from-new-form
Best Regards
Zhengyu Guo
TechNet Community Support
Maybe you are looking for
-
Some of the apps on my iPhone are much larger size-wise than claimed on their app page. Example: Wallpapers HD claims 4.4 MB, but the actual size on my phone is 4.9 GB! Pinterest & Facebook also end up being huge real estate hogs. How do I really kno
-
Error while Activating the Standard DSO
Hi, I am getting the below error while Activating the Standard DSO. Characteristic 0DPM_DCAS__0CSM_SPRO: DS object 0DPM_DCAS__0CSM_STAT (master data check) does not exist I tried searching the forum , but didnt find any answer. Any suggestions are we
-
Import from Word- all links linking too low down so that bread crumbs don't display
When I import from Word, all the links being created are linking to the topic title, instead of just to the topic: e.g. href="CreateLineOfSight.htm #CreateLineOfSight">CreateLineOfSight</a></p></td> As a result, whenever the topic is longish, opening
-
Mismatch in Balance of J2I8 with Cenvat receivable - Basic - CG NY A/c
Dear Gurus, We have take dump of Cenvat receivable - Basic - CG NY A/c using FS10N & then try to tally it with J2I8 figure but it doesn't match each other. J2I8 shows less amount approx 41 laks. After go through the J2I8 dump what I found that a s
-
Hi all, How to use the 'EXCEL_OLE_STANDARD_DAT' to export the data from itab to EXCEL file. REPORT ZT11. data : begin of itab occurs 0, t1(3) type c value 'sag', t2(3) type c value 'ntc', end of itab. append itab. write : itab-t1,itab-t2. CALL FUNCTI