Multiple selection lookup not supported within processes

Description

Summary
There seems to be no support for launching multiple selection lookup fields within process calls. During process execution, we cannot ask the user to choose more than one record per lookup.

Technical Explanation
In short, org.adempiere.webui.window.FDialog.askForInput(String, MLookup, int, Callback<Object>, Desktop, int) has no support for multiple-selection display types.

Environment

Not relevant

Activity

Saulo Gil 
May 9, 2021 at 5:15 PM

A pull request was submitted. Changes can be tested like this:

protected String doIt() throws Exception { CompletableFuture<String> result = new CompletableFuture<>(); MLookupInfo li = new MLookupInfo("SELECT M_Product_ID, Value,Name, IsActive FROM M_Product WHERE IsActive = 'Y'", "M_Product", "M_Product.M_Product_ID", 0, 0, null); processUI.askForInput("Choose Products", new MLookup(li, 0) , DisplayType.ChosenMultipleSelectionTable, list -> { result.complete((String) list); }); return result.get(); }
Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created May 9, 2021 at 4:26 PM
Updated July 1, 2021 at 12:11 PM
Resolved May 11, 2021 at 8:50 AM