Re: js issue in latest release
Hi Deepak, Where is the configuration done for this? I have extended the order module of previous version in hot-deploy, where i have added custom js file. Pritam, entry is already there for images folder in allowedPaths. Regards, Aashish Repal 09623381664 On Fri, Sep 25, 2015 at 10:55 AM, Deepak Dixit < deepak.di...@hotwaxsystems.com> wrote: > Hi Ashish, > > You need to add order related js under > application/commonext/webapp/ordermgr-js. > As birt component override the ordermgr webapp, hence js added under > application/ordermgr will not be loaded. > > To fix this issue we added ordermgr-js webapp under commonext. Please add > all the order related js under ordergr-js webapp. > > Thanks & Regards > — > Deepak Dixit > > > > On Sep 25, 2015, at 10:38 AM, Pritam Kute <pritam.k...@hotwaxsystems.com> > wrote: > > > > Hi Ashish, > > > > Can you please have a look at your *web.xml* file of ordermgr component? > I > > think you missed the entry of your images folder into allowedPaths param. > > Code snippet is as below: > > > > > >allowedPaths > > > > > /error:/control:/products:/select:/index.html:/index.jsp:/default.html:/default.jsp:/js:/includes/maincss.css > > *:/images* > > > > > > Hope this will help you. > > > > Thanks & Regards, > > -- > > *Pritam Kute* > > *HotWax Systems* | www.hotwaxsystems.com > > > > On Fri, Sep 25, 2015 at 10:02 AM, Ashish Repal <ashishre...@gmail.com> > > wrote: > > > >> Hi All, > >> > >> I have updated to latest ofbiz release *14.12-v14.0* > >> I am facing js related issue here. Js files are not getting included. > >> > >> > >> http://www.w3.org/2001/XMLSchema-instance; > >> xsi:noNamespaceSchemaLocation=" > >> http://ofbiz.apache.org/dtds/widget-screen.xsd;> > >> > >> > >> > >> > >> > >> > >> * >> value="/ordermgr/images/test.js" global="true"/>* > >>
js issue in latest release
Hi All, I have updated to latest ofbiz release *14.12-v14.0* I am facing js related issue here. Js files are not getting included. http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=" http://ofbiz.apache.org/dtds/widget-screen.xsd;> * * test.js is not getting included. but framerwork's images folder which has all js lib's is getting included. i am not getting the issue here. Anyone has idea about this? Regards, Aashish Repal
create sales order in single click
Hi all, I have to create sales order with completed status in single click. I will add the product in cart, select party, select contactmech and click on submit. Which should directly create an order with status as completed. I found similar thing in webpos. Is it advisable to use webpos services for this functionality? Or is there any other better approach? Please help. Thanks! -- Regards, Aashish Repal 09623381664
calling services in json format
Hi All, I want to call existing services in ofbiz through json. Eg. Calling existing FindParty service using json format. May be i will have to write new controller for this json call. Is anyone tried like this before or have any idea on this? Thanks! -- Regards, Aashish Repal 09623381664
Re: Map operation in ftl
Hi All, Thank you for the inputs. Was really helpful. On Monday, August 3, 2015, Nicolas Malin nicolas.ma...@nereide.fr wrote: More easier : #assign findPftMap = {productFeatureTypeId:productFeatureTypeId, otherKey: otherValue} You can see the ftl documentation here : http://freemarker.org/docs/index.html Nicolas Le 03/08/2015 07:55, Deepak Dixit a écrit : Hi Ashish, You can use UtilMisc method to create map in ftl. e.g #assign findPftMap = Static[org.ofbiz.base.util.UtilMisc].toMap( productFeatureTypeId, productFeatureTypeId) -- Thanks Regards -- Deepak Dixit www.hotwaxsystems.com On Sun, Aug 2, 2015 at 8:59 PM, Taher Alkhateeb slidingfilame...@gmail.com wrote: Hi Ashish, I think your intention to use FreeMarker methods on your data structures is an indicator of a problematic design. The main purpose of FreeMarker templates is to spit out your HTML documents with variables replaced. You should avoid as much as you can having any logic in your templates because that would make your code base much harder to maintain. I recommend that you do any data manipulation in a groovy script or in Java and then handover the data you built to FreeMarker which you can just extract with a loop over one of the container types. If your purpose on the other hand is to have dynamic behavior, then the correct place to support that is in JavaScript. I hope that helps. Taher Alkhateeb - Original Message - From: Ashish Repal ashishre...@gmail.com To: user@ofbiz.apache.org Sent: Sunday, 2 August, 2015 5:30:08 PM Subject: Map operation in ftl Hi All, I need to use map like data structure in ftl. I didnt find any in built functionality in ftl like java where we create an object hashmap and get access to various methods like put, remove etc. What i found in ftl is like we need to create a string with : separator as key value which requires much coding for basic add remove find operations. Anybody has any idea on this. Please suggest. Thanks -- Regards, Aashish Repal 09623381664 -- Regards, Aashish Repal 09623381664
Map operation in ftl
Hi All, I need to use map like data structure in ftl. I didnt find any in built functionality in ftl like java where we create an object hashmap and get access to various methods like put, remove etc. What i found in ftl is like we need to create a string with : separator as key value which requires much coding for basic add remove find operations. Anybody has any idea on this. Please suggest. Thanks -- Regards, Aashish Repal 09623381664
Re: getting exception in calling the service
Thanks Deepak!! Regards, Aashish Repal 09623381664 On Mon, Jul 27, 2015 at 11:19 AM, Deepak Dixit deepak.di...@hotwaxsystems.com wrote: Hi Ashish, Comment inline: On Jul 25, 2015, at 5:01 PM, Ashish Repal ashishre...@gmail.com wrote: Actually this is a listing screen where i have provided hyperlinks using href. Eg. in ftl tda href=/facility/control/ModifyShipmentStatus?shipId=${tripShipmentData.shipId?if_exists}amp;status=Delivered class=buttontextDelivered/a/td Here you can create a html form element; form action=“@ofbizUrlModifyShipmentStatus/@ofbizUrl” method=“post” input type=“hidden” name=“shipId” value=“${tripShipmentData.shipId!}” / input type=“submit” value=“ Delivered” / /form and in Form.xml field name=start position=2 title= widget-style=buttontext use-when=quot;Nquot;.equals(isStarted) hyperlink target=/startShip description=start Ship parameter param-name=tripId value=${shipId} / /hyperlink /field You can use link-type=hidden-form” in form widget to render link as form. Thanks Regards — Deepak Dixit Regards, Aashish Repal 09623381664 On Sat, Jul 25, 2015 at 1:00 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: Basically, you need to invoke the URL with an HTTP POST instead of an HTTP GET. Adrian Crum Sandglass Software www.sandglass-software.com On 7/24/2015 11:04 PM, Ashish Repal wrote: Hi All, I am getting below exception when calling the service from controller. [ServiceEventHandler.java:408:ERROR] === Found URL parameter [shipId] passed to secure (https) request-map with uri [ModifyShipmentStatus] with an event that calls service [ModifyShipmentStatus]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. anyone has idea about this? controller.xml: request-map uri=ModifyShipmentStatus security https=true auth=true / event type=service path= invoke=ModifyShipmentStatus/ response name=success type=view value=EditTrip/ response name=error type=view value=EditTrip/ /request-map If I comment the security tag in controller it works but later it fails saying org.ofbiz.webapp.control.RequestHandlerException: Not accepting insecure form data posted to a secure request Regards, Aashish Repal 09623381664
getting exception in calling the service
Hi All, I am getting below exception when calling the service from controller. [ServiceEventHandler.java:408:ERROR] === Found URL parameter [shipId] passed to secure (https) request-map with uri [ModifyShipmentStatus] with an event that calls service [ModifyShipmentStatus]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. anyone has idea about this? controller.xml: request-map uri=ModifyShipmentStatus security https=true auth=true / event type=service path= invoke=ModifyShipmentStatus/ response name=success type=view value=EditTrip/ response name=error type=view value=EditTrip/ /request-map If I comment the security tag in controller it works but later it fails saying org.ofbiz.webapp.control.RequestHandlerException: Not accepting insecure form data posted to a secure request Regards, Aashish Repal 09623381664
Re: getting exception in calling the service
Actually this is a listing screen where i have provided hyperlinks using href. Eg. in ftl tda href=/facility/control/ModifyShipmentStatus?shipId=${tripShipmentData.shipId?if_exists}amp;status=Delivered class=buttontextDelivered/a/td and in Form.xml field name=start position=2 title= widget-style=buttontext use-when=quot;Nquot;.equals(isStarted) hyperlink target=/startShip description=start Ship parameter param-name=tripId value=${shipId} / /hyperlink /field Regards, Aashish Repal 09623381664 On Sat, Jul 25, 2015 at 1:00 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: Basically, you need to invoke the URL with an HTTP POST instead of an HTTP GET. Adrian Crum Sandglass Software www.sandglass-software.com On 7/24/2015 11:04 PM, Ashish Repal wrote: Hi All, I am getting below exception when calling the service from controller. [ServiceEventHandler.java:408:ERROR] === Found URL parameter [shipId] passed to secure (https) request-map with uri [ModifyShipmentStatus] with an event that calls service [ModifyShipmentStatus]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. anyone has idea about this? controller.xml: request-map uri=ModifyShipmentStatus security https=true auth=true / event type=service path= invoke=ModifyShipmentStatus/ response name=success type=view value=EditTrip/ response name=error type=view value=EditTrip/ /request-map If I comment the security tag in controller it works but later it fails saying org.ofbiz.webapp.control.RequestHandlerException: Not accepting insecure form data posted to a secure request Regards, Aashish Repal 09623381664
Re: Order Items are associated with neither requirements nor productions runs created by mrp events of type sales order shipment
Hi, If anyone is having idea on issue raised by Christian, pls let us know. I am also stuck on this. I am using 13.07.01 version of OFBIZ. Regards, Aashish Repal 09623381664 On Mon, Dec 22, 2014 at 11:11 PM, Christian Carlow christian.car...@gmail.com wrote: Order Items are missing from Order - Requirement - Orders tab of requirements created by MRP events of type Sales order shipment. Because they are missing, production runs created by requirements when approved also lack order item association. After approving the requirement, I expected to see the production run created linked to order that caused its creation such as what happens for Configurable Goods and Marketing Packages. Is there a reason order item associations to requirements and production runs created by mrp events should not be implemented in a similar manner as those product types?
Re: Not able to compile sources from hot-deploy
Hi jacques I have overridden order module from application. I have put it in hot deploy. I also wanted to change the original sources present in order. So i have copied the sources in custom component and changed the package of source files in hot deploy and tried to build the component using ant build. Build is failing, its throwing error as my new package structure not found. Do we need to have any extra configuration for this to work.? Thanks Aashish On Sunday, December 21, 2014, Jacques Le Roux jacques.le.r...@les7arts.com wrote: You need to give us more details in order for us to help you Jacques Le 21/12/2014 06:59, Ashish Repal a écrit : Hi All, I am getting package not found error while building source files from hot-deploy custom component. Any idea on this ? Regards, Aashish Repal 09623381664 -- Regards, Aashish Repal 09623381664
Not able to compile sources from hot-deploy
Hi All, I am getting package not found error while building source files from hot-deploy custom component. Any idea on this ? Regards, Aashish Repal 09623381664
Re: Need help in customization
okie. Thanks for the info Jacques! Regards, Aashish Repal 09623381664 On Sun, Nov 30, 2014 at 2:20 PM, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Yes, even if you change the key/s size/s of the field/s of a primary key. Though with Derby (not Postgres at least) changing the primary key sizes of 2 primary keys which are related by a relation is not recommended because currently there is still an issue with relation when you change these sizes. Jacques Le 29/11/2014 16:45, Ashish Repal a écrit : Ya..I have gone through that link. my doubt is, if i extend any component say catalog, and modify its entitydef with my requirements will it change the original table structure? Aashish On Saturday, November 29, 2014, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Better to follow this way https://cwiki.apache.org/ confluence/display/OFBIZ/Addressing+Custom+Requirements+In+OFBiz Jacques Le 29/11/2014 13:47, Ashish Repal a écrit : Hi, I am planning to develop ERP application for manufacturing industryusing ofbiz. For this I need to modify existing components, Catalog,facility,order,party etc. May be I think, I need to extend these components or is there any other way? I also have to add, remove entity fields from OFBIZ tables so can I do it in my custom component's entitydef? If yes, after build, this will overwrite existing table? please guide. Regards, Aashish Repal
Need help in customization
Hi, I am planning to develop ERP application for manufacturing industryusing ofbiz. For this I need to modify existing components, Catalog,facility,order,party etc. May be I think, I need to extend these components or is there any other way? I also have to add, remove entity fields from OFBIZ tables so can I do it in my custom component's entitydef? If yes, after build, this will overwrite existing table? please guide. Regards, Aashish Repal
Re: Need help in customization
Ya..I have gone through that link. my doubt is, if i extend any component say catalog, and modify its entitydef with my requirements will it change the original table structure? Aashish On Saturday, November 29, 2014, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Better to follow this way https://cwiki.apache.org/ confluence/display/OFBIZ/Addressing+Custom+Requirements+In+OFBiz Jacques Le 29/11/2014 13:47, Ashish Repal a écrit : Hi, I am planning to develop ERP application for manufacturing industryusing ofbiz. For this I need to modify existing components, Catalog,facility,order,party etc. May be I think, I need to extend these components or is there any other way? I also have to add, remove entity fields from OFBIZ tables so can I do it in my custom component's entitydef? If yes, after build, this will overwrite existing table? please guide. Regards, Aashish Repal -- Regards, Aashish Repal 09623381664