Hello Everyone,
I'd like to know if anyone managed to launch a multiple-selection
(table) lookup within a process, since I haven't found any
reference to signatures involving lookup fields such as org.adempiere.util.IProcessUI.askForInput(String,
MLookup, int, Callback<Object>)
Most of these signatures require a window # handler, which is hard to obtain within a process (no complains about that). Following test code works but there seems no way to use multiple selection display types, as the lookup will just stop working.
MLookupInfo li = new
MLookupInfo("SELECT NULL, Value,Name, IsActive FROM M_Product
WHERE IsActive = 'Y'", "M_Product", "M_Product.M_Product_ID", 0,
0, null);
processUI.askForInput("foo", new MLookup(li, 0) ,
DisplayType.Search, bar -> new Object());
I know that a form probably would be a better fit for this use case, but I'm testing/learning what can and cannot be done within a process.
Any advice or suggestion would be appreciated.
Thank you,
Saulo Gil | Orbital Software | +54 911 3049 4237 |
I have submitted a JIRA ticket and a patch / pull request in order to support this feature.
Best regards,
Saulo Gil | Orbital Software | +54 911 3049 4237 |
--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/010001795167f8a0-565b6238-7036-47c2-88e2-28f5c253b011-000000%40email.amazonses.com.