hi
from the http://ofbiz.apache.org/dtds/widget-form.xsd <xs:attribute name="default-option"> want to find out why there is no option for "IN" ? because, i have a requirement where by, searching criteria with a IN list. for instance, search all product with productType = Finished Good and Digital Good does ofbiz have any multi-selection option box ? thank you -- Disclaimer : This E-mail is intended only for the use of the individual or entity named above and may contain information that is confidential. If you are not the intended recipients, please immediately notify us by return email and delete it from your system. Any unauthorised dissemination, distribution or copying of this email is strictly prohibited. Thank You. |
Please look at the FindExamples of ExampleForms.xml. Changing the
<drop-down allow-empty="true" current-description=""> to <drop-down allow-empty="true" current-description="" allow-multiple="true"> should work for you. There are few places where allow-multiple="true" is used to allow multiple selections. Same applies for the check boxes used. HTH! Rishi Solanki Manager, Enterprise Software Development HotWax Media Pvt. Ltd. Direct: +91-9893287847 http://www.hotwaxmedia.com On Thu, Nov 14, 2013 at 5:03 PM, Jen Sing Choe <[hidden email]>wrote: > hi > > from the http://ofbiz.apache.org/dtds/widget-form.xsd > > <xs:attribute name="default-option"> > > want to find out why there is no option for "IN" ? > > because, i have a requirement where by, searching criteria with a IN list. > for instance, search all product with productType = Finished Good and > Digital Good > > does ofbiz have any multi-selection option box ? > > thank you > > -- > Disclaimer : This E-mail is intended only for the use of the individual or > entity named above and may contain information that is confidential. If you > are not the intended recipients, please immediately notify us by return > email and delete it from your system. Any unauthorised dissemination, > distribution or copying of this email is strictly prohibited. Thank You. > |
Administrator
|
Though multiple drop-down have some drawbacks. So you could be interested by
https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples#DropDownMultipleFieldExampleForm_multipleDropDownFields_title Look for the code which generate that using setMultipleSelectJs.ftl into FormWidgetExampleScreens.xml below comment: <!-- asmslect parameters, must be prefixed by asm_ for setMultipleSelectJs.ftl --> Jacques On Thursday, November 14, 2013 1:12 PM Rishi Solanki <[hidden email]> wrote: > Please look at the FindExamples of ExampleForms.xml. Changing the > <drop-down allow-empty="true" current-description=""> to <drop-down > allow-empty="true" current-description="" allow-multiple="true"> should > work for you. > > There are few places where allow-multiple="true" is used to allow multiple > selections. Same applies for the check boxes used. > > HTH! > > > Rishi Solanki > Manager, Enterprise Software Development > HotWax Media Pvt. Ltd. > Direct: +91-9893287847 > http://www.hotwaxmedia.com > > > On Thu, Nov 14, 2013 at 5:03 PM, Jen Sing Choe <[hidden email]>wrote: > >> hi >> >> from the http://ofbiz.apache.org/dtds/widget-form.xsd >> >> <xs:attribute name="default-option"> >> >> want to find out why there is no option for "IN" ? >> >> because, i have a requirement where by, searching criteria with a IN list. >> for instance, search all product with productType = Finished Good and >> Digital Good >> >> does ofbiz have any multi-selection option box ? >> >> thank you >> >> -- >> Disclaimer : This E-mail is intended only for the use of the individual or >> entity named above and may contain information that is confidential. If you >> are not the intended recipients, please immediately notify us by return >> email and delete it from your system. Any unauthorised dissemination, >> distribution or copying of this email is strictly prohibited. Thank You. |
on top of the requirements, is that the multi-selection are not shown the
the end user. means, when user click on the lookup button, the list value of productTypeId of {finishedgood,digitalgood} are passed into 'performFind' in java for instance, <form name="listLookupProduct" list-name="listIt" title="" type="list" paginate-target="LookupProduct" .....> there are sample from party component, using groovy script on top of the widgets forms. but this solution uses groovy to do the 'performFind' inside groovy file for instance, FindLookUp.groovy there are two ways i am thinking 1. using the multiple selection, and then make it as hidden field inside the form. 2. or change from calling service=performFind into using groovy file to do the 'performFind' am i going the right direction On Thu, Nov 14, 2013 at 9:18 PM, Jacques Le Roux < [hidden email]> wrote: > Though multiple drop-down have some drawbacks. So you could be interested > by > > https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples#DropDownMultipleFieldExampleForm_multipleDropDownFields_title > Look for the code which generate that using setMultipleSelectJs.ftl into > FormWidgetExampleScreens.xml below comment: > <!-- asmslect parameters, must be prefixed by asm_ for > setMultipleSelectJs.ftl --> > > Jacques > > On Thursday, November 14, 2013 1:12 PM Rishi Solanki < > [hidden email]> wrote: > > Please look at the FindExamples of ExampleForms.xml. Changing the > > <drop-down allow-empty="true" current-description=""> to <drop-down > > allow-empty="true" current-description="" allow-multiple="true"> should > > work for you. > > > > There are few places where allow-multiple="true" is used to allow > multiple > > selections. Same applies for the check boxes used. > > > > HTH! > > > > > > Rishi Solanki > > Manager, Enterprise Software Development > > HotWax Media Pvt. Ltd. > > Direct: +91-9893287847 > > http://www.hotwaxmedia.com > > > > > > On Thu, Nov 14, 2013 at 5:03 PM, Jen Sing Choe <[hidden email] > >wrote: > > > >> hi > >> > >> from the http://ofbiz.apache.org/dtds/widget-form.xsd > >> > >> <xs:attribute name="default-option"> > >> > >> want to find out why there is no option for "IN" ? > >> > >> because, i have a requirement where by, searching criteria with a IN > list. > >> for instance, search all product with productType = Finished Good and > >> Digital Good > >> > >> does ofbiz have any multi-selection option box ? > >> > >> thank you > >> > >> -- > >> Disclaimer : This E-mail is intended only for the use of the individual > or > >> entity named above and may contain information that is confidential. If > you > >> are not the intended recipients, please immediately notify us by return > >> email and delete it from your system. Any unauthorised dissemination, > >> distribution or copying of this email is strictly prohibited. Thank You. > -- Disclaimer : This E-mail is intended only for the use of the individual or entity named above and may contain information that is confidential. If you are not the intended recipients, please immediately notify us by return email and delete it from your system. Any unauthorised dissemination, distribution or copying of this email is strictly prohibited. Thank You. |
Administrator
|
Lookups and dropdowns (moreover multiple) are 2 different things. What did you choose finally?
Jacques On Friday, November 15, 2013 8:58 AM Jen Sing Choe <[hidden email]> wrote: > on top of the requirements, is that the multi-selection are not shown the > the end user. > > means, when user click on the lookup button, the list value of > productTypeId of {finishedgood,digitalgood} are passed into 'performFind' > in java > for instance, <form name="listLookupProduct" list-name="listIt" title="" > type="list" paginate-target="LookupProduct" .....> > > > there are sample from party component, using groovy script on top of the > widgets forms. > but this solution uses groovy to do the 'performFind' inside groovy file > for instance, FindLookUp.groovy > > there are two ways i am thinking > 1. using the multiple selection, and then make it as hidden field inside > the form. > 2. or change from calling service=performFind into using groovy file to do > the 'performFind' > > am i going the right direction > > > > On Thu, Nov 14, 2013 at 9:18 PM, Jacques Le Roux < > [hidden email]> wrote: > >> Though multiple drop-down have some drawbacks. So you could be interested >> by >> >> https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples#DropDownMultipleFieldExampleForm_multipleDropDownFields_title >> Look for the code which generate that using setMultipleSelectJs.ftl into >> FormWidgetExampleScreens.xml below comment: >> <!-- asmslect parameters, must be prefixed by asm_ for >> setMultipleSelectJs.ftl --> >> >> Jacques >> >> On Thursday, November 14, 2013 1:12 PM Rishi Solanki < >> [hidden email]> wrote: >>> Please look at the FindExamples of ExampleForms.xml. Changing the >>> <drop-down allow-empty="true" current-description=""> to <drop-down >>> allow-empty="true" current-description="" allow-multiple="true"> should >>> work for you. >>> >>> There are few places where allow-multiple="true" is used to allow multiple >>> selections. Same applies for the check boxes used. >>> >>> HTH! >>> >>> >>> Rishi Solanki >>> Manager, Enterprise Software Development >>> HotWax Media Pvt. Ltd. >>> Direct: +91-9893287847 >>> http://www.hotwaxmedia.com >>> >>> >>> On Thu, Nov 14, 2013 at 5:03 PM, Jen Sing Choe <[hidden email] >>> wrote: >>> >>>> hi >>>> >>>> from the http://ofbiz.apache.org/dtds/widget-form.xsd >>>> >>>> <xs:attribute name="default-option"> >>>> >>>> want to find out why there is no option for "IN" ? >>>> >>>> because, i have a requirement where by, searching criteria with a IN list. >>>> for instance, search all product with productType = Finished Good and >>>> Digital Good >>>> >>>> does ofbiz have any multi-selection option box ? >>>> >>>> thank you >>>> >>>> -- >>>> Disclaimer : This E-mail is intended only for the use of the individual or >>>> entity named above and may contain information that is confidential. If you >>>> are not the intended recipients, please immediately notify us by return >>>> email and delete it from your system. Any unauthorised dissemination, >>>> distribution or copying of this email is strictly prohibited. Thank You. |
sorry for the confusing
my requirements will be a product lookups. i want to add in a additional EntityCondition into 'perfomFind' and this EntityCondition is to filter product with productTypeId in a list {finishedgood,digitalgood} but, performFind only accept "inputFields" from "parameters" and "inputFields" uses "equality" operator On Mon, Nov 18, 2013 at 6:31 AM, Jacques Le Roux < [hidden email]> wrote: > Lookups and dropdowns (moreover multiple) are 2 different things. What did > you choose finally? > > Jacques > > On Friday, November 15, 2013 8:58 AM Jen Sing Choe < > [hidden email]> wrote: > > on top of the requirements, is that the multi-selection are not shown the > > the end user. > > > > means, when user click on the lookup button, the list value of > > productTypeId of {finishedgood,digitalgood} are passed into 'performFind' > > in java > > for instance, <form name="listLookupProduct" list-name="listIt" title="" > > type="list" paginate-target="LookupProduct" .....> > > > > > > there are sample from party component, using groovy script on top of the > > widgets forms. > > but this solution uses groovy to do the 'performFind' inside groovy file > > for instance, FindLookUp.groovy > > > > there are two ways i am thinking > > 1. using the multiple selection, and then make it as hidden field inside > > the form. > > 2. or change from calling service=performFind into using groovy file to > do > > the 'performFind' > > > > am i going the right direction > > > > > > > > On Thu, Nov 14, 2013 at 9:18 PM, Jacques Le Roux < > > [hidden email]> wrote: > > > >> Though multiple drop-down have some drawbacks. So you could be > interested > >> by > >> > >> > https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples#DropDownMultipleFieldExampleForm_multipleDropDownFields_title > >> Look for the code which generate that using setMultipleSelectJs.ftl into > >> FormWidgetExampleScreens.xml below comment: > >> <!-- asmslect parameters, must be prefixed by asm_ for > >> setMultipleSelectJs.ftl --> > >> > >> Jacques > >> > >> On Thursday, November 14, 2013 1:12 PM Rishi Solanki < > >> [hidden email]> wrote: > >>> Please look at the FindExamples of ExampleForms.xml. Changing the > >>> <drop-down allow-empty="true" current-description=""> to <drop-down > >>> allow-empty="true" current-description="" allow-multiple="true"> should > >>> work for you. > >>> > >>> There are few places where allow-multiple="true" is used to allow > multiple > >>> selections. Same applies for the check boxes used. > >>> > >>> HTH! > >>> > >>> > >>> Rishi Solanki > >>> Manager, Enterprise Software Development > >>> HotWax Media Pvt. Ltd. > >>> Direct: +91-9893287847 > >>> http://www.hotwaxmedia.com > >>> > >>> > >>> On Thu, Nov 14, 2013 at 5:03 PM, Jen Sing Choe < > [hidden email] > >>> wrote: > >>> > >>>> hi > >>>> > >>>> from the http://ofbiz.apache.org/dtds/widget-form.xsd > >>>> > >>>> <xs:attribute name="default-option"> > >>>> > >>>> want to find out why there is no option for "IN" ? > >>>> > >>>> because, i have a requirement where by, searching criteria with a IN > list. > >>>> for instance, search all product with productType = Finished Good and > >>>> Digital Good > >>>> > >>>> does ofbiz have any multi-selection option box ? > >>>> > >>>> thank you > >>>> > >>>> -- > >>>> Disclaimer : This E-mail is intended only for the use of the > individual or > >>>> entity named above and may contain information that is confidential. > If you > >>>> are not the intended recipients, please immediately notify us by > return > >>>> email and delete it from your system. Any unauthorised dissemination, > >>>> distribution or copying of this email is strictly prohibited. Thank > You. > -- Disclaimer : This E-mail is intended only for the use of the individual or entity named above and may contain information that is confidential. If you are not the intended recipients, please immediately notify us by return email and delete it from your system. Any unauthorised dissemination, distribution or copying of this email is strictly prohibited. Thank You. |
Administrator
|
I'm not quite sure of what you are looking for but have a look at this comment in *een*.xml files:
<!-- optional: additional entity condition (named andCondition) added to search query --> Jacques On Monday, November 18, 2013 3:04 AM Jen Sing Choe <[hidden email]> wrote: > sorry for the confusing > my requirements will be a product lookups. > i want to add in a additional EntityCondition into 'perfomFind' > and this EntityCondition is to filter product with productTypeId in a list > {finishedgood,digitalgood} > > but, performFind only accept "inputFields" from "parameters" > and "inputFields" uses "equality" operator > > > On Mon, Nov 18, 2013 at 6:31 AM, Jacques Le Roux < > [hidden email]> wrote: > >> Lookups and dropdowns (moreover multiple) are 2 different things. What did >> you choose finally? >> >> Jacques >> >> On Friday, November 15, 2013 8:58 AM Jen Sing Choe < >> [hidden email]> wrote: >>> on top of the requirements, is that the multi-selection are not shown the >>> the end user. >>> >>> means, when user click on the lookup button, the list value of >>> productTypeId of {finishedgood,digitalgood} are passed into 'performFind' >>> in java >>> for instance, <form name="listLookupProduct" list-name="listIt" title="" >>> type="list" paginate-target="LookupProduct" .....> >>> >>> >>> there are sample from party component, using groovy script on top of the >>> widgets forms. >>> but this solution uses groovy to do the 'performFind' inside groovy file >>> for instance, FindLookUp.groovy >>> >>> there are two ways i am thinking >>> 1. using the multiple selection, and then make it as hidden field inside >>> the form. >>> 2. or change from calling service=performFind into using groovy file to do >>> the 'performFind' >>> >>> am i going the right direction >>> >>> >>> >>> On Thu, Nov 14, 2013 at 9:18 PM, Jacques Le Roux < >>> [hidden email]> wrote: >>> >>>> Though multiple drop-down have some drawbacks. So you could be interested >>>> by >>>> >>>> >> https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples#DropDownMultipleFieldExampleForm_multipleDropDownFields_title >>>> Look for the code which generate that using setMultipleSelectJs.ftl into >>>> FormWidgetExampleScreens.xml below comment: >>>> <!-- asmslect parameters, must be prefixed by asm_ for >>>> setMultipleSelectJs.ftl --> >>>> >>>> Jacques >>>> >>>> On Thursday, November 14, 2013 1:12 PM Rishi Solanki < >>>> [hidden email]> wrote: >>>>> Please look at the FindExamples of ExampleForms.xml. Changing the >>>>> <drop-down allow-empty="true" current-description=""> to <drop-down >>>>> allow-empty="true" current-description="" allow-multiple="true"> should >>>>> work for you. >>>>> >>>>> There are few places where allow-multiple="true" is used to allow multiple >>>>> selections. Same applies for the check boxes used. >>>>> >>>>> HTH! >>>>> >>>>> >>>>> Rishi Solanki >>>>> Manager, Enterprise Software Development >>>>> HotWax Media Pvt. Ltd. >>>>> Direct: +91-9893287847 >>>>> http://www.hotwaxmedia.com >>>>> >>>>> >>>>> On Thu, Nov 14, 2013 at 5:03 PM, Jen Sing Choe < [hidden email] >>>>> wrote: >>>>> >>>>>> hi >>>>>> >>>>>> from the http://ofbiz.apache.org/dtds/widget-form.xsd >>>>>> >>>>>> <xs:attribute name="default-option"> >>>>>> >>>>>> want to find out why there is no option for "IN" ? >>>>>> >>>>>> because, i have a requirement where by, searching criteria with a IN list. >>>>>> for instance, search all product with productType = Finished Good and >>>>>> Digital Good >>>>>> >>>>>> does ofbiz have any multi-selection option box ? >>>>>> >>>>>> thank you >>>>>> >>>>>> -- >>>>>> Disclaimer : This E-mail is intended only for the use of the individual or >>>>>> entity named above and may contain information that is confidential. If you >>>>>> are not the intended recipients, please immediately notify us by return >>>>>> email and delete it from your system. Any unauthorised dissemination, >>>>>> distribution or copying of this email is strictly prohibited. Thank You. |
Jacques
thanks for the guide i follow the same implementation in party component which is FindLookUp.groovy change existing from <service service-name="performFind" result-map="result" result-map-list="listIt"> into using groovy <script location="component://party/webapp/partymgr/WEB-INF/actions/party/FindLookUp.groovy"/> On Tue, Nov 19, 2013 at 11:39 PM, Jacques Le Roux < [hidden email]> wrote: > I'm not quite sure of what you are looking for but have a look at this > comment in *een*.xml files: > <!-- optional: additional entity condition (named andCondition) added to > search query --> > > Jacques > > On Monday, November 18, 2013 3:04 AM Jen Sing Choe < > [hidden email]> wrote: > > sorry for the confusing > > my requirements will be a product lookups. > > i want to add in a additional EntityCondition into 'perfomFind' > > and this EntityCondition is to filter product with productTypeId in a > list > > {finishedgood,digitalgood} > > > > but, performFind only accept "inputFields" from "parameters" > > and "inputFields" uses "equality" operator > > > > > > On Mon, Nov 18, 2013 at 6:31 AM, Jacques Le Roux < > > [hidden email]> wrote: > > > >> Lookups and dropdowns (moreover multiple) are 2 different things. What > did > >> you choose finally? > >> > >> Jacques > >> > >> On Friday, November 15, 2013 8:58 AM Jen Sing Choe < > >> [hidden email]> wrote: > >>> on top of the requirements, is that the multi-selection are not shown > the > >>> the end user. > >>> > >>> means, when user click on the lookup button, the list value of > >>> productTypeId of {finishedgood,digitalgood} are passed into > 'performFind' > >>> in java > >>> for instance, <form name="listLookupProduct" list-name="listIt" > title="" > >>> type="list" paginate-target="LookupProduct" .....> > >>> > >>> > >>> there are sample from party component, using groovy script on top of > the > >>> widgets forms. > >>> but this solution uses groovy to do the 'performFind' inside groovy > file > >>> for instance, FindLookUp.groovy > >>> > >>> there are two ways i am thinking > >>> 1. using the multiple selection, and then make it as hidden field > inside > >>> the form. > >>> 2. or change from calling service=performFind into using groovy file > to do > >>> the 'performFind' > >>> > >>> am i going the right direction > >>> > >>> > >>> > >>> On Thu, Nov 14, 2013 at 9:18 PM, Jacques Le Roux < > >>> [hidden email]> wrote: > >>> > >>>> Though multiple drop-down have some drawbacks. So you could be > interested > >>>> by > >>>> > >>>> > >> > https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples#DropDownMultipleFieldExampleForm_multipleDropDownFields_title > >>>> Look for the code which generate that using setMultipleSelectJs.ftl > into > >>>> FormWidgetExampleScreens.xml below comment: > >>>> <!-- asmslect parameters, must be prefixed by asm_ for > >>>> setMultipleSelectJs.ftl --> > >>>> > >>>> Jacques > >>>> > >>>> On Thursday, November 14, 2013 1:12 PM Rishi Solanki < > >>>> [hidden email]> wrote: > >>>>> Please look at the FindExamples of ExampleForms.xml. Changing the > >>>>> <drop-down allow-empty="true" current-description=""> to <drop-down > >>>>> allow-empty="true" current-description="" allow-multiple="true"> > should > >>>>> work for you. > >>>>> > >>>>> There are few places where allow-multiple="true" is used to allow > multiple > >>>>> selections. Same applies for the check boxes used. > >>>>> > >>>>> HTH! > >>>>> > >>>>> > >>>>> Rishi Solanki > >>>>> Manager, Enterprise Software Development > >>>>> HotWax Media Pvt. Ltd. > >>>>> Direct: +91-9893287847 > >>>>> http://www.hotwaxmedia.com > >>>>> > >>>>> > >>>>> On Thu, Nov 14, 2013 at 5:03 PM, Jen Sing Choe < > [hidden email] > >>>>> wrote: > >>>>> > >>>>>> hi > >>>>>> > >>>>>> from the http://ofbiz.apache.org/dtds/widget-form.xsd > >>>>>> > >>>>>> <xs:attribute name="default-option"> > >>>>>> > >>>>>> want to find out why there is no option for "IN" ? > >>>>>> > >>>>>> because, i have a requirement where by, searching criteria with a > IN list. > >>>>>> for instance, search all product with productType = Finished Good > and > >>>>>> Digital Good > >>>>>> > >>>>>> does ofbiz have any multi-selection option box ? > >>>>>> > >>>>>> thank you > >>>>>> > >>>>>> -- > >>>>>> Disclaimer : This E-mail is intended only for the use of the > individual or > >>>>>> entity named above and may contain information that is > confidential. If you > >>>>>> are not the intended recipients, please immediately notify us by > return > >>>>>> email and delete it from your system. Any unauthorised > dissemination, > >>>>>> distribution or copying of this email is strictly prohibited. Thank > You. > -- Disclaimer : This E-mail is intended only for the use of the individual or entity named above and may contain information that is confidential. If you are not the intended recipients, please immediately notify us by return email and delete it from your system. Any unauthorised dissemination, distribution or copying of this email is strictly prohibited. Thank You. |
Free forum by Nabble | Edit this page |