-----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 >>> >>> >> >> > > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJ0plerP3NbaWWqE4RAnEsAKCNFKDNXuss0kOr1eTdPso9V7nE1gCeKJtJ DZkJg+5DYzK/B3WJFxZcU7U= =fW2i -----END PGP SIGNATURE-----