Login  Register

RE: Dev - Lookup Form Widget Question

Posted by Michael Irving on Dec 17, 2005; 3:07pm
URL: http://ofbiz.116.s1.nabble.com/Dev-Lookup-Form-Widget-Question-tp166392p166394.html

Thanks Al.  

When I used "target-parameter", it doesn't appear that call_fieldlookup2 can
handle the third parameter.  Was fieldlookup.js also modified to support
this?

function call_fieldlookup2(target, viewName) {  
    var fieldLookup = new fieldLookup1(target);  
    fieldLookup.popup2(viewName);
}

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Al Byers
Sent: Friday, December 16, 2005 5:21 PM
To: OFBiz Project Development Discussion
Subject: Re: [OFBiz] Dev - Lookup Form Widget Question

Michael,

There is an attribute to lookup that is not in the schema file. It is
"target-parameter". I would commit it, but I am having trouble
connecting to the svn server.

It should be the name of a field in the form. In your case, "partyId".
It will get the value of that field and send it to the server as
"parm0=<value>". So, it is limited to fields in your form, but you
should be able to add just about any hidden field if you need to.

You can have more than one parameter in target-parameter. Separate them
with ",".

-Al


Michael Irving wrote:

> Is there a way to pass a parm to a lookup form?
>
> I'm trying to have the lookup for filter out records based on a
> partyId. I was looking to have my main form do something like this:
>
> <field name="workEffortId" title="Task">
>
> <lookup
> target-form-name="LookupPartyAssginedWorkEffort?partyId=${partyId}"/>
>
> </field>
>
> Then, the bsh for the form would be able to query
> WorkEffortAndPartyAssign for the given partyId..but that didn't work.
>
> Any ideas would be GREATLY appreciated
>

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev