You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Fabien Carrion (JIRA)" <ji...@apache.org> on 2007/07/15 00:02:04 UTC

[jira] Commented: (OFBIZ-218) Lookup buttons invoked from a lookup screen don't work because they return the selected value to the main window (instead of to the first lookup window).

    [ https://issues.apache.org/jira/browse/OFBIZ-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512747 ] 

Fabien Carrion commented on OFBIZ-218:
--------------------------------------

In the last trunk version, in the files :
./framework/images/webapp/images/calendar.html
./framework/common/webcommon/includes/lookup.ftl

The javascript first close the window and then send back the value. But with firefox, I get an error: obj_caller undefined.

The solution is to first send back the value and then to close the window.

Correction:

./framework/images/webapp/images/calendar.html line 85:

	if (b_close) {
		obj_caller.target.value = (document.cal
			? obj_caller.gen_tsmp(dt_datetime)
			: obj_caller.gen_date(dt_datetime)
		);
		window.close();
	}

./framework/common/webcommon/includes/lookup.ftl line 40:

        function set_value(value) {
                if (!obj_caller) return;
                obj_caller.target.value = value;
                window.close();
        }

Regards

> Lookup buttons invoked from a lookup screen don't work because they return the selected value to the main window (instead of to the first lookup window).
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-218
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-218
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: Jacopo Cappellato
>            Priority: Minor
>         Attachments: lookup.ftl
>
>
> If you open a lookup window and then in the lookup window's form there is a new lookup link, that link will load a new lookup screen inside the same popup windows: the system will try to assign the value you'll select there to one of the fields of the main window (instead of one of the fields of the first lookup form).
> To reproduce this:
> 1) Accounting app
> 2) Find Payments
> 3) Choose a payment that still has an amount left to apply
> 4) Application tab
> 5) lookup from the invoices Id field
> 6) on that popup lookup from the "From Party Id" field on that screen to a lookup 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.