[ 
https://issues.apache.org/jira/browse/OFBIZ-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625981#action_12625981
 ] 

Vikas Mayur commented on OFBIZ-1930:
------------------------------------


+                Map dataResourceCtx = FastMap.newInstance();
+                dataResourceCtx.put("objectInfo", imageUrl);
+                dataResourceCtx.put("dataResourceName", (String) 
context.get("_imageFile_fileName"));
+                dataResourceCtx.put("userLogin", userLogin);
+                
+                Map productContentCtx = FastMap.newInstance();
+                productContentCtx.put("productId", productId);
+                productContentCtx.put("productContentTypeId", 
productContentTypeId);
+                productContentCtx.put("fromDate", (Timestamp) 
context.get("fromDate"));
+                productContentCtx.put("thruDate", (Timestamp) 
context.get("thruDate"));
+                productContentCtx.put("userLogin", userLogin);


+                            Map contentCtx = FastMap.newInstance();
+                            contentCtx.put("contentId", contentId);
+                            contentCtx.put("dataResourceId", 
dataResourceResult.get("dataResourceId"));
+                            contentCtx.put("userLogin", userLogin);

Though not so important but it could have been better to use some thing like
Map dataResourceCtx = UtilMisc.toMap("objectInfo", imageUrl, .......) and same 
applies to Map productContentCtx and other places as well.

- Vikas

> Added support for uploading additional Product Views (images)
> -------------------------------------------------------------
>
>                 Key: OFBIZ-1930
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1930
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Mridul Pathak
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk
>
>         Attachments: ProductAdditionalViews.patch, 
> ProductAdditionalViews.patch
>
>
> Defined four ProductContentType's to support four additional views (images) 
> to a Product.  Extended EditProductContent screen to support uploading these 
> additional images.  New service for the same.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to