How to get a simple popup lookup window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get a simple popup lookup window

Adrian Crum-3
I need a simple popup lookup window that I can code from a Freemarker
template. With all of the JQuery stuff added, it's hard to tell which JS
function to call and what parameters to use.

Is there any documentation on this?

-Adrian

Reply | Threaded
Open this post in threaded view
|

Re: How to get a simple popup lookup window

Jacques Le Roux
Administrator
Hi Adrian,

In https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples 1st of Lookup Fields (type popup)

Jacques

From: "Adrian Crum" <[hidden email]>
>I need a simple popup lookup window that I can code from a Freemarker
> template. With all of the JQuery stuff added, it's hard to tell which JS
> function to call and what parameters to use.
>
> Is there any documentation on this?
>
> -Adrian
>

Reply | Threaded
Open this post in threaded view
|

Re: How to get a simple popup lookup window

Adrian Crum-3
Thanks Jacques!

So, the answer to my question is:

javascript:call_fieldlookup2(document.FormName.FieldName,
'LookupScreenViewName', 'window');

-Adrian

On 6/2/2011 3:39 AM, Jacques Le Roux wrote:

> Hi Adrian,
>
> In
> https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples 
> 1st of Lookup Fields (type popup)
>
> Jacques
>
> From: "Adrian Crum" <[hidden email]>
>> I need a simple popup lookup window that I can code from a Freemarker
>> template. With all of the JQuery stuff added, it's hard to tell which
>> JS function to call and what parameters to use.
>>
>> Is there any documentation on this?
>>
>> -Adrian
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to get a simple popup lookup window

Jacques Le Roux
Administrator
Yes, at some point the default turned to be "layer", window gives a popup

Jacques

From: "Adrian Crum" <[hidden email]>

> Thanks Jacques!
>
> So, the answer to my question is:
>
> javascript:call_fieldlookup2(document.FormName.FieldName,
> 'LookupScreenViewName', 'window');
>
> -Adrian
>
> On 6/2/2011 3:39 AM, Jacques Le Roux wrote:
>> Hi Adrian,
>>
>> In
>> https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples 
>> 1st of Lookup Fields (type popup)
>>
>> Jacques
>>
>> From: "Adrian Crum" <[hidden email]>
>>> I need a simple popup lookup window that I can code from a Freemarker
>>> template. With all of the JQuery stuff added, it's hard to tell which
>>> JS function to call and what parameters to use.
>>>
>>> Is there any documentation on this?
>>>
>>> -Adrian
>>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: How to get a simple popup lookup window

Sascha Rodekamp-3
Hi Adrian,
when you say a "simple lookup" did you mean a static HTML Page (without
forms) Than try the "New Example" Button :
https://demo-trunk.ofbiz.apache.org/example/control/FindExample

The difference is that the "simple lookup" which you can call within the
screens do not support all the pagination / code loading stuff (it's smaller
and faster). You can define a simple link which points to your FTL the
simple lookup renders your code.

Just a lightway alternative to the form lookups.

If you need more help... just ask :)

Have a good day
Sascha

2011/6/2 Jacques Le Roux <[hidden email]>

> Yes, at some point the default turned to be "layer", window gives a popup
>
>
> Jacques
>
> From: "Adrian Crum" <[hidden email]>
>
>> Thanks Jacques!
>>
>> So, the answer to my question is:
>>
>> javascript:call_fieldlookup2(document.FormName.FieldName,
>> 'LookupScreenViewName', 'window');
>>
>> -Adrian
>>
>> On 6/2/2011 3:39 AM, Jacques Le Roux wrote:
>>
>>> Hi Adrian,
>>>
>>> In
>>> https://demo-trunk.ofbiz.apache.org/example/control/FormWidgetExamples1st of Lookup Fields (type popup)
>>>
>>> Jacques
>>>
>>> From: "Adrian Crum" <[hidden email]>
>>>
>>>> I need a simple popup lookup window that I can code from a Freemarker
>>>> template. With all of the JQuery stuff added, it's hard to tell which JS
>>>> function to call and what parameters to use.
>>>>
>>>> Is there any documentation on this?
>>>>
>>>> -Adrian
>>>>
>>>>
>>>
>


--

Sascha Rodekamp
    Visit the new german OFBiz Blog: http://www.ofbiz.biz
    Lynx-Consulting GmbH
    Johanniskirchplatz 6
    D-33615 Bielefeld
    http://www.lynx.de