Hello!
I have uploaded an example that provides a solution to export Ofbiz Services that use complex type parameters via SOAP: http://docs.ofbiz.org/x/yhc http://docs.ofbiz.org/pages/viewpageattachments.action?pageId=6090 Bye! Alfredo |
All,
Can lookupform be called with multiple parameters (target-parameter)? The following example has only one, but I would like add one more parameter <field name="productId" position="2" title="Product ID"> <lookup target-form-name="LookupWorkshop" target-parameter="childAge" size="10"/> </field> Jacek |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 that are plenty examples like find pages for party and products. Jacek Wagner sent the following on 3/27/2009 2:51 PM: > All, > > Can lookupform be called with multiple parameters (target-parameter)? > The following example has only one, but I would like add one more parameter > <field name="productId" position="2" title="Product ID"> > <lookup target-form-name="LookupWorkshop" > target-parameter="childAge" size="10"/> > </field> > Jacek > > > > Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJzVq9rP3NbaWWqE4RAqAxAJ9AT4gNBCINKPrpOFc1D0iSjIxmCgCgjv8S 2KXUAs0HBjl8dQusKrjSL18= =QbGl -----END PGP SIGNATURE----- |
I could not find any in 4.0, but below an example how it works
<field name="productId" position="2" title="Product ID"> <lookup target-form-name="LookupWorkshop" target-parameter="childAge, eventDate" size="10"/> </field> BJ Freeman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > that are plenty examples > like find pages for party and products. > > Jacek Wagner sent the following on 3/27/2009 2:51 PM: > >> All, >> >> Can lookupform be called with multiple parameters (target-parameter)? >> The following example has only one, but I would like add one more parameter >> <field name="productId" position="2" title="Product ID"> >> <lookup target-form-name="LookupWorkshop" >> target-parameter="childAge" size="10"/> >> </field> >> Jacek >> >> >> >> >> > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFJzVq9rP3NbaWWqE4RAqAxAJ9AT4gNBCINKPrpOFc1D0iSjIxmCgCgjv8S > 2KXUAs0HBjl8dQusKrjSL18= > =QbGl > -----END PGP SIGNATURE----- > |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 if you find a lookup folder you will see lookup forms then just search for what uses that lookup form. found quite a few. Jacek Wagner sent the following on 3/30/2009 4:43 PM: > I could not find any in 4.0, but below an example how it works > > <field name="productId" position="2" title="Product ID"> > <lookup target-form-name="LookupWorkshop" > target-parameter="childAge, eventDate" size="10"/> > </field> > BJ Freeman wrote: > that are plenty examples > like find pages for party and products. > > Jacek Wagner sent the following on 3/27/2009 2:51 PM: > >>>> All, >>>> >>>> Can lookupform be called with multiple parameters (target-parameter)? >>>> The following example has only one, but I would like add one more >>>> parameter >>>> <field name="productId" position="2" title="Product ID"> >>>> <lookup target-form-name="LookupWorkshop" >>>> target-parameter="childAge" size="10"/> >>>> </field> Jacek >>>> >>>> >>>> >>>> Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJ0XLCrP3NbaWWqE4RAotMAJ4lppkICwGZXRkriZK7k2bBcsjb/wCfak8L O5M22z31Q3sauM17gZd17AM= =AG4g -----END PGP SIGNATURE----- |
In reply to this post by Jacek Wagner
For an example take a look at LookupCustRequestItem screen in order
manager application Bilgin On Mar 27, 2009, at 11:51 PM, Jacek Wagner wrote: > All, > > Can lookupform be called with multiple parameters (target-parameter)? > The following example has only one, but I would like add one more > parameter > <field name="productId" position="2" title="Product ID"> > <lookup target-form-name="LookupWorkshop" target- > parameter="childAge" size="10"/> > </field> > Jacek > > |
Thank you. Just can you tell me why the following one does not get back
to original form Note: it is not a list, just calculated value <form name="listLookupPaymentReference" title="" type="single" > <field name="paymentRefNum" title="Payment Reference" widget-style="buttontext"> <hyperlink also-hidden="false" target-type="plain" description="${paymentRefNum}" target="javascript:set_value('${paymentRefNum}')"/> </field> </form> Bilgin Ibryam wrote: > For an example take a look at LookupCustRequestItem screen in order > manager application > Bilgin > > > On Mar 27, 2009, at 11:51 PM, Jacek Wagner wrote: > >> All, >> >> Can lookupform be called with multiple parameters (target-parameter)? >> The following example has only one, but I would like add one more >> parameter >> <field name="productId" position="2" title="Product ID"> >> <lookup target-form-name="LookupWorkshop" >> target-parameter="childAge" size="10"/> >> </field> >> Jacek >> >> > > |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 can't find this in release verison 4.0 here is one <form name="lookupFixedAsset" target="LookupFixedAsset" title="" type="single"> <auto-fields-entity entity-name="FixedAsset" default-field-type="hidden"/> <field name="fixedAssetId" title="${uiLabelMap.AccountingFixedAssetId}"><text-find/></field> <field name="fixedAssetName" title="${uiLabelMap.AccountingFixedAssetName}"><text-find/></field> <field name="fixedAssetTypeId" title="${uiLabelMap.AccountingFixedAssetTypeId}"> <drop-down allow-empty="true"> <entity-options entity-name="FixedAssetType" description="${description}"> <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field> <field name="submitButton" title="${uiLabelMap.CommonLookup}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> which included in this screen: <screen name="LookupFixedAsset"> <section> <condition> <or> <if-has-permission permission="ACCOUNTING" action="_VIEW"/> </or> </condition> <actions> <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> <set field="title" value="${uiLabelMap.PageTitleLookupFixedAsset}"/> <set field="queryString" from-field="result.queryString"/> <set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/> <set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/> </actions> <widgets> <decorator-screen name="LookupDecorator" location="component://common/widget/CommonScreens.xml"> <decorator-section name="body"> <include-form name="lookupFixedAsset" location="component://accounting/webapp/accounting/lookup/FieldLookupForms.xml" /> <include-form name="listLookupFixedAsset" location="component://accounting/webapp/accounting/lookup/FieldLookupForms.xml" /> </decorator-section> </decorator-screen> </widgets> </section> </screen> and the lookup starts here: <form name="EditFixedAsset" type="single" target="updateFixedAsset" title="" default-map-name="fixedAsset"> <alt-target use-when="fixedAsset==null" target="createFixedAsset"/> <auto-fields-service service-name="updateFixedAsset" map-name="fixedAsset"/> <field use-when="fixedAsset!=null" name="fixedAssetId" tooltip="${uiLabelMap.CommonNotModifRecreat}"><display/></field> <field use-when="fixedAsset==null&&fixedAssetId==null" name="fixedAssetId"><text size="20" maxlength="20"/></field> <field use-when="fixedAsset==null&&fixedAssetId!=null" name="fixedAssetId" tooltip="${uiLabelMap.CommonCannotBeFound}:[${fixedAssetId}]"><text size="20" maxlength="20"/></field> <field name="fixedAssetTypeId"> <drop-down allow-empty="false"> <entity-options entity-name="FixedAssetType" description="${description}"> <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <field name="instanceOfProductId" title=""><lookup target-form-name="LookupProduct"/></field> <field name="classEnumId"> <drop-down allow-empty="true"> <entity-options description="${description}" entity-name="Enumeration" key-field-name="enumId"> <entity-constraint name="enumTypeId" operator="equals" value="FXAST_CLASS"/> <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <field name="partyId" title="${uiLabelMap.PartyPartyId}"><lookup target-form-name="LookupPerson"/></field> <field name="roleTypeId" title="${uiLabelMap.PartyRoleTypeId}"> <drop-down allow-empty="true"> <entity-options entity-name="RoleType" description="${description}"> <entity-order-by field-name="description"/> </entity-options> </drop-down> </field> <field name="uomId" title="${uiLabelMap.CommonUom}"> <drop-down allow-empty="true"> <entity-options entity-name="UomAndType" description="[${typeDescription}] ${description}"> <entity-order-by field-name="uomTypeId"/> </entity-options> </drop-down> </field> <!--<field name="calendarId"><hidden/></field>--> <!-- not show, can better be maintained by the system --> <field name="calendarId"> <drop-down allow-empty="true"> <entity-options entity-name="TechDataCalendar" description="[${calendarId}] ${description}"> <entity-order-by field-name="calendarId"/> </entity-options> </drop-down> </field> <field name="parentFixedAssetId"><lookup target-form-name="LookupFixedAsset"/></field> <field name="locatedAtFacilityId" title=""><lookup target-form-name="LookupFacility"/></field> <field name="locatedAtLocationSeqId" title=""><lookup target-form-name="LookupFacilityLocation"/></field> <field name="locatedAtFacilityId" title=""><lookup target-form-name="LookupFacility"/></field> <field name="locatedAtLocationSeqId" title=""><lookup target-form-name="LookupFacilityLocation"/></field> <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> Jacek Wagner sent the following on 3/31/2009 2:52 PM: > Thank you. Just can you tell me why the following one does not get back > to original form > Note: it is not a list, just calculated value > > <form name="listLookupPaymentReference" title="" type="single" >> <field name="paymentRefNum" title="Payment > Reference" widget-style="buttontext"> > <hyperlink also-hidden="false" target-type="plain" > description="${paymentRefNum}" > target="javascript:set_value('${paymentRefNum}')"/> > </field> > </form> > Bilgin Ibryam wrote: >> For an example take a look at LookupCustRequestItem screen in order >> manager application >> Bilgin >> >> >> On Mar 27, 2009, at 11:51 PM, Jacek Wagner wrote: >> >>> All, >>> >>> Can lookupform be called with multiple parameters (target-parameter)? >>> The following example has only one, but I would like add one more >>> parameter >>> <field name="productId" position="2" title="Product ID"> >>> <lookup target-form-name="LookupWorkshop" >>> target-parameter="childAge" size="10"/> >>> </field> >>> Jacek >>> >>> >> >> > > > Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJ0plerP3NbaWWqE4RAnEsAKCNFKDNXuss0kOr1eTdPso9V7nE1gCeKJtJ DZkJg+5DYzK/B3WJFxZcU7U= =fW2i -----END PGP SIGNATURE----- |
In reply to this post by Bilgin Ibryam
Bilgin Ibryam wrote:
> For an example take a look at LookupCustRequestItem screen in order > manager application > Bilgin > > > On Mar 27, 2009, at 11:51 PM, Jacek Wagner wrote: > >> All, >> >> Can lookupform be called with multiple parameters (target-parameter)? >> The following example has only one, but I would like add one more >> parameter >> <field name="productId" position="2" title="Product ID"> >> <lookup target-form-name="LookupWorkshop" >> target-parameter="childAge" size="10"/> >> </field> >> Jacek >> >> > > code. Jacek. |
In reply to this post by Jacek Wagner
Can anyone give me a hint how we receive those target parameters in LookUpWorkshop
|
Hey Shereen,
would do you exactly mean? Passing multipale parameters back to the calling screen. Have a look at the example pages. You can specify an additinal target field for the lookups where a second parameter will be passed back. . https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples The Second Lookup in the middle of the page. If you mean anything else let me now. Maybe with a link to the lookup you mean. Have a good day Sascha 2010/12/29 Shereen <[hidden email]> > > Can anyone give me a hint how we receive those target parameters in > LookUpWorkshop > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Export-Ofbiz-Services-that-use-complex-type-parameters-New-AXIS2-Ofbiz-Component-Example-tp160706p3166845.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > -- Sascha Rodekamp Lynx-Consulting GmbH Johanniskirchplatz 6 D-33615 Bielefeld http://www.lynx.de |
Thanks a lot for your reply
Actually I'm having a problem with the following https://demo-trunk.ofbiz.apache.org/ordermgr/control/request Please try to make a request and try to fill Fulfill contact mech Id. the lookup button is not visible on the server but it's visible in my version 10.04 it's supposed that the look up will bring up all the contact mechanisms for the demo customer but that does not happen just brings an empty list I've reported that problem in the following topic too http://ofbiz.135035.n4.nabble.com/Fulfill-Contact-Mech-Id-not-working-td3166032.html I've also wrote down the code where I suspect there's a problem |
the look uses LookupPreferredContactMech
the entityview PartyAndContactMech is empty https://demo-trunk.ofbiz.apache.org/webtools/control/FindGeneric?entityName=PartyAndContactMech which is why the lookup is blank ========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Shereen sent the following on 1/2/2011 10:49 AM: > > Thanks a lot for your reply > Actually I'm having a problem with the following > https://demo-trunk.ofbiz.apache.org/ordermgr/control/request > Please try to make a request and try to fill Fulfill contact mech Id. > the lookup button is not visible on the server but it's visible in my > version 10.04 > it's supposed that the look up will bring up all the contact mechanisms for > the demo customer but that does not happen just brings an empty list > I've reported that problem in the following topic too > > http://ofbiz.135035.n4.nabble.com/Fulfill-Contact-Mech-Id-not-working-td3166032.html > > I've also wrote down the code where I suspect there's a problem > |
Hi
Thanks for your reply Freeman Actually I know that the lookup uses this entity But the situation with me isn't like this I'm using my local copy and the entity isn't empty and yet the lookup doesn't work but when I put the name the customer hard coded and put demoCustomer for example it works The main problem is that the target parameter from the the EditRequest to the targeted look up form That's the main problem I think If anyone has time please can he/she check the target parameter and how it's received ? I've failed to fix it Thanks for all of you |
please put the data in the demo so it can be looked at exactly like you
have it. this is the only way we can be sure we are dealing with the same situation. send us a note once you have done this. remember the demo gets redone ever so often so look to see if it is just a few hours up. http://monitoring.apache.org/status/ ofbiz-vm.apache.org ========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man > Shereen sent the following on 1/2/2011 10:44 PM: > Hi > Thanks for your reply Freeman Actually I know that the lookup uses this > entity But the situation with me isn't like this > I'm using my local copy and the entity isn't empty and yet the lookup > doesn't work but when I put the name the customer hard coded and put > demoCustomer for example it works > The main problem is that the target parameter from the the EditRequest to > the targeted look up form > That's the main problem I think > If anyone has time please can he/she check the target parameter and how it's > received ? I've failed to fix it > Thanks for all of you |
Administrator
|
Trunk is reloaded every 24 hours, if there are changes in svn.
Stable (R9.04) also but less often since there are less changes there. Shereen did you see this in widget-form.xsd? <xs:attribute type="xs:string" name="target-parameter"> <xs:annotation><xs:documentation>The name of a field whose value is passed in as a parameter to the lookup target form. Can be a comma separated list. You need to affect it the value using parameters.parmI (where I is the position number in the list)in the related lookup screen. See LookupPreferredContactMech as example</xs:documentation></xs:annotation> </xs:attribute> Jacques From: "BJ Freeman" <[hidden email]> > please put the data in the demo so it can be looked at exactly like you have it. > this is the only way we can be sure we are dealing with the same situation. > > send us a note once you have done this. > remember the demo gets redone ever so often so look to see if it is just a few hours up. > > http://monitoring.apache.org/status/ > ofbiz-vm.apache.org > > > ========================= > BJ Freeman > Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> > Specialtymarket.com <http://www.specialtymarket.com/> > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > >> Shereen sent the following on 1/2/2011 10:44 PM: > >> Hi >> Thanks for your reply Freeman Actually I know that the lookup uses this >> entity But the situation with me isn't like this >> I'm using my local copy and the entity isn't empty and yet the lookup >> doesn't work but when I put the name the customer hard coded and put >> demoCustomer for example it works >> The main problem is that the target parameter from the the EditRequest to >> the targeted look up form >> That's the main problem I think >> If anyone has time please can he/she check the target parameter and how it's >> received ? I've failed to fix it >> Thanks for all of you > |
the time I have notice varies at times.
the target I believe UTC. but I look at the uptime to see. if it a few hours I know that I have time to put up a test and others can see it. ========================= BJ Freeman Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Jacques Le Roux sent the following on 1/3/2011 2:59 AM: > Trunk is reloaded every 24 hours, if there are changes in svn. > Stable (R9.04) also but less often since there are less changes there. |
Administrator
|
It reloads around 7:40 AM GMT+1
Jacques From: "BJ Freeman" <[hidden email]> > the time I have notice varies at times. > the target I believe UTC. > but I look at the uptime to see. > if it a few hours I know that I have time to put up a test and others > can see it. > > > ========================= > BJ Freeman > Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=52> > Specialtymarket.com <http://www.specialtymarket.com/> > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > > > Jacques Le Roux sent the following on 1/3/2011 2:59 AM: >> Trunk is reloaded every 24 hours, if there are changes in svn. >> Stable (R9.04) also but less often since there are less changes there. > |
Free forum by Nabble | Edit this page |