add osgi event to WEditor to notify when some things happen to WEditor

Description

some editor when lie down together it co-work.

example:
"Rule Type" and "Script" when change rule type, script also should change behavior to accept only current rule type

Currency, "Currency Type" and "transaction date", i want to display rate after "Currency Type" so when use change Currency or "transaction date" i also want to update rate value.

it can resolve by use callout plugin, but callout depend on parent container,
now only standard window implement it.

Environment

None

Activity

Carlos Ruiz 
August 26, 2017 at 5:42 PM

Thanks for your explanations, I integrated the patch on IDEMPIERE-3454.

Not sure if this ticket can be solved also?

Hiep Lq 
August 26, 2017 at 4:08 PM

yes, i want to change (access) Editor. current i have two case for it.

1. I want to display current rate on "currency convert type" field,
so it need update "currency convert type" when currency filed or transaction date change value.

2. when value of value field on Rule window change, i want to update control of script field.

Carlos Ruiz 
August 26, 2017 at 2:51 PM

> when I handler callout of Currency, i want to lookup "Currency Type" editor and change
> some things inside "Currency Type"
> it's not easy job, i will have to travel all field and look up "Currency Type", also public
> some field, function of "Currency Type" editor to call from outside

Sorry, still unclear.

Let me check if I'm understanding correctly

You create a callout on Currency field and you need to access the value of Currency Type.
That's easily done with context or mTab.getField.

But you mention you want to do changes to the Editor? What do you mean? Sounds like a new case to me, usually callouts don't change the configuration of editors.

Hiep Lq 
August 25, 2017 at 6:21 PM

callout is implemented at parent panel of WEditor like GridTab, GridView, WQuickEntry.
When we're put WEditor on any panel, we have to re-implement all stuff.
now it's miss function of infoWindow and parameterProcess

i saw osgi event will make implement simple than callout, only implement on WEditor class.

other limit like i talk on IDEMPIERE-3454,
when I handler callout of Currency, i want to lookup "Currency Type" editor and change some things inside "Currency Type"
it's not easy job, i will have to travel all field and look up "Currency Type", also public some field, function of "Currency Type" editor to call from outside.

Carlos Ruiz 
August 25, 2017 at 9:59 AM

,

> Currency, "Currency Type" and "transaction date", i want to display rate after "Currency Type" so when use change Currency or
> "transaction date" i also want to update rate value.

I understand (and you mention it) this can be implemented with callouts, so, what's the issue?

Details

Assignee

Reporter

Priority

Created August 8, 2017 at 9:30 AM
Updated August 26, 2017 at 5:42 PM