Posted by
Nguyen Minh Triet on
Jan 20, 2006; 8:16pm
URL: http://ofbiz.116.s1.nabble.com/Users-Digital-Download-product-tp136992p136993.html
In the mean time, I looked a little more into the error that I get when
I try to create Downloadable content.
I compared the creation form for the Downloadable content with another
form that doesn't yield errors. All the forms have a hidden field
defined:
<input type="hidden" name="productContentTypeId"
value="DIGITAL_DOWNLOAD"/>
And
<input type="hidden" name="productContentTypeId"
value="SPECIALINSTRUCTIONS"/>
I am trying to figure out why the ContentTypeID seems to be missing in
the CreateContent call:
'The following required parameter is missing: contentTypeId'
public static Map createContentMethod(DispatchContext dctx, Map context)
{
context.put("entityOperation", "_CREATE");
List targetOperationList =
ContentWorker.prepTargetOperationList(context, "_CREATE");
.....
Am I going in the right direction here?
Thanks,
Minh
---------
Message: 2
Date: Thu, 19 Jan 2006 14:55:05 -0500
From: "Nguyen Minh Triet" <
[hidden email]>
Subject: [OFBiz] Users - Digital Download product
To: <
[hidden email]>
Message-ID: <
[hidden email]>
Content-Type: text/plain; charset="us-ascii"
Hi,
I tried to create a digital downloadble product.
Created a product and then went to the content tab and tried to creaye a
'digital download' content. I get the following error:
The Following Errors Occurred:
ERROR: Could not complete the Create Download as Content
[file:/home/admin/trunk/applications/content/script/org/ofbiz/content/co
ntent/ContentServices.xml#createDownloadContent] process [problem
invoking the [createContent] service with the map named
[createDownloadContent] containing [{dataResourceId=null, locale=en_US,
contentId=null,
userLogin=[GenericEntity:UserLogin][createdStamp,2006-01-04
11:56:23.207(java.sql.Timestamp)][createdTxStamp,2006-01-04
11:56:21.211(java.sql.Timestamp)][currentPassword,47ca69ebb4bdc9ae0adec1
30880165d2cc05db1a(java.lang.String)][disabledDateTime,null()][enabled,n
ull()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][las
tLocale,null()][lastUpdatedStamp,2006-01-04
11:56:23.673(java.sql.Timestamp)][lastUpdatedTxStamp,2006-01-04
11:56:23.252(java.sql.Timestamp)][partyId,admin(java.lang.String)][passw
ordHint,null()][successiveFailedLogins,null()][userLoginId,admin(java.la
ng.String)], description=null}]: The following required parameter is
missing: contentTypeId
] calling service createDownloadContent in
createDownloadContentForProduct
Why is this happening?
Thanks,
Minh
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users