Hi Alexander,

    You don't need to add these parameters to your form.  This is the job of
ServiceEventHandler to put the uploaded file related information in the
parameters that are being passed to the service, refer
ServiceEventHandler.java (line 151 - 227).
    You said you are writing custom logic around the OOTB
"addAdditionalViewForProduct"
service.  If that's true it would be easier for you if your custom logic is
written as a service and the service def implements "uploadFileInterface"
service interface.

-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
mridul.pat...@hotwaxmedia.com
-------------------------------------------------
direct: +91 - 942.592.6892

On Thu, Jan 28, 2010 at 2:16 PM, Alexander1893 <
alexan...@familie-schweizer.net> wrote:

>
> Hi Midrul,
>
> first of all - it's not "my service" I'm calling.
>
> You said that this is missing:
>
> <set
> field="addAdditionalViewForProduct._uploadedFile_fileName"
> from-field="parameters._uploadedFile_fileName"/>
>
> <set
> field="addAdditionalViewForProduct._uploadedFile_contentType"
> from-field="parameters._uploadedFile_contentType"/>
>
> First: Actualy I'dont understand why I should have this parameters in the
> form, if they are optional in the service-dev... If optional meens, that
> the
> service doesn't work - than the service-def is useless.
> I have only one field in the form - which is a input type "file". Where
> should the "fileName" and "contentType" come from?
>
> Thanks a lot for futher help!
> Alexander
> --
> View this message in context:
> http://n4.nabble.com/Problems-calling-addAdditionalViewForProduct-tp1397293p1400053.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply via email to