Hi All,
I am attaching a content of type text (.txt file) with a promo. Now I want to read that content, I mean I want data which was in .txt file uploaded with promo. I am able to get content id related to promo, its related data resource. Is there any service/method available for getting data of file directly? With Regards, Krishan Babbar | Sr. Software Engineer +91-946-303-0996 Paxcel Technologies Pvt. Ltd. Passion for Excellence ---------------------------------------------------------------------------------------------------------------------------- Disclaimer: This email and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended even if addressed incorrectly. If you received this email in error please notify the sender, do not disclose, copy, distribute or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this email is prohibited. Thank you for your compliance. |
would <@renderSubContent subContentId=contentId/> be a better choice here ?
On Wed, Jul 25, 2012 at 8:33 PM, <[hidden email]> wrote: > Hi All, > > I am attaching a content of type text (.txt file) with a promo. > Now I want to read that content, I mean I want data which was in .txt file > uploaded with promo. I am able to get content id related to promo, its > related data resource. > > Is there any service/method available for getting data of file directly? > > > With Regards, > Krishan Babbar | Sr. Software Engineer > +91-946-303-0996 > Paxcel Technologies Pvt. Ltd. Passion for Excellence > > ---------------------------------------------------------------------------------------------------------------------------- > Disclaimer: This email and any files transmitted with it may contain > privileged or confidential information. It is solely for use by the > individual for whom it is intended even if addressed incorrectly. If you > received this email in error please notify the sender, do not disclose, > copy, distribute or take any action in reliance on the contents of this > information; and delete it from your system. Any other use of this email is > prohibited. Thank you for your compliance. > > -- > Thanks, > Deepak Agarwal, > > > > |
I believe, since a content be associated with a single dataresource id , so
the macro renderSubContent can fetch the correct datasource and render it. On Thu, Jul 26, 2012 at 1:40 AM, Deepak Agarwal <[hidden email]>wrote: > would <@renderSubContent subContentId=contentId/> be a better choice here ? > > On Wed, Jul 25, 2012 at 8:33 PM, <[hidden email]> wrote: > >> Hi All, >> >> I am attaching a content of type text (.txt file) with a promo. >> Now I want to read that content, I mean I want data which was in .txt >> file uploaded with promo. I am able to get content id related to promo, its >> related data resource. >> >> Is there any service/method available for getting data of file directly? >> >> >> With Regards, >> Krishan Babbar | Sr. Software Engineer >> +91-946-303-0996 >> Paxcel Technologies Pvt. Ltd. Passion for Excellence >> >> ---------------------------------------------------------------------------------------------------------------------------- >> Disclaimer: This email and any files transmitted with it may contain >> privileged or confidential information. It is solely for use by the >> individual for whom it is intended even if addressed incorrectly. If you >> received this email in error please notify the sender, do not disclose, >> copy, distribute or take any action in reliance on the contents of this >> information; and delete it from your system. Any other use of this email is >> prohibited. Thank you for your compliance. >> >> -- >> Thanks, >> Deepak Agarwal, >> >> >> >> -- Thanks, Deepak Agarwal, Paxcel Technologies Pvt Ltd. Hartron Complex, Sector 18, Gurgaon, India. E-Mail: [hidden email] Mobile: +91 9910322604 |
It is not working.
I might be missing something. I wrote following in my .ftl file but getting below given exception <@renderSubContent subContentId="10220" /> ---- cause --------------------------------------------------------------------- Exception: java.lang.NullPointerException Message: null ---- stack trace --------------------------------------------------------------- java.lang.NullPointerException org.ofbiz.content.webapp.ftl.RenderSubContentTransform$1.renderSubContent(RenderSubContentTransform.java:135) org.ofbiz.content.webapp.ftl.RenderSubContentTransform$1.close(RenderSubContentTransform.java:124) freemarker.core.Environment.visit(Environment.java:342) freemarker.core.UnifiedCall.accept(UnifiedCall.java:130) freemarker.core.Environment.visit(Environment.java:221) freemarker.core.MixedContent.accept(MixedContent.java:92) freemarker.core.Environment.visit(Environment.java:221) freemarker.core.Environment.process(Environment.java:199) org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:257) org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:225) org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:270) org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:130) org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:915) org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:104) org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:191) org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:396) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135) org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97) org.ofbiz.common.email.EmailServices.sendMailFromScreen(EmailServices.java:461) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker(StandardJavaEngine.java:100) org.ofbiz.service.engine.StandardJavaEngine.runSync(StandardJavaEngine.java:57) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:398) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:226) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:71) org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242) java.lang.Thread.run(Unknown Source) With Regards, Krishan Babbar -----Original Message----- From: Deepak Agarwal Sent: Thursday, July 26, 2012 2:23 AM To: [hidden email] Subject: Re: Reading content having document or text file. I believe, since a content be associated with a single dataresource id , so the macro renderSubContent can fetch the correct datasource and render it. On Thu, Jul 26, 2012 at 1:40 AM, Deepak Agarwal <[hidden email]>wrote: > would <@renderSubContent subContentId=contentId/> be a better choice here > ? > > On Wed, Jul 25, 2012 at 8:33 PM, <[hidden email]> wrote: > >> Hi All, >> >> I am attaching a content of type text (.txt file) with a promo. >> Now I want to read that content, I mean I want data which was in .txt >> file uploaded with promo. I am able to get content id related to promo, >> its >> related data resource. >> >> Is there any service/method available for getting data of file directly? >> >> >> With Regards, >> Krishan Babbar | Sr. Software Engineer >> +91-946-303-0996 >> Paxcel Technologies Pvt. Ltd. Passion for Excellence >> >> ---------------------------------------------------------------------------------------------------------------------------- >> Disclaimer: This email and any files transmitted with it may contain >> privileged or confidential information. It is solely for use by the >> individual for whom it is intended even if addressed incorrectly. If you >> received this email in error please notify the sender, do not disclose, >> copy, distribute or take any action in reliance on the contents of this >> information; and delete it from your system. Any other use of this email >> is >> prohibited. Thank you for your compliance. >> >> -- >> Thanks, >> Deepak Agarwal, >> >> >> >> -- Thanks, Deepak Agarwal, Paxcel Technologies Pvt Ltd. Hartron Complex, Sector 18, Gurgaon, India. E-Mail: [hidden email] Mobile: +91 9910322604 |
Free forum by Nabble | Edit this page |