Loading Info windows dynamically

Description

Actually, we could add and design info windows within idempiere, but we have to customize code in order to make it available on DPViews dashboard.

I suggest :

Add 2 columns on AD_InfoWindow :

  • Label (for storing the message that will be used as the button label)

  • Image (type String) ; eg: Info16.png / InfoBPartner16.png / ...


Make the name of AD_InfoWindow unique (using beforeSave)

Modification on DPViews

method createViewPanel

  • Add a select which gather valid info windows.
    > For each, call a new method createBtn (Name, label, Image) - those arguments will be read in the AD_InfoWindow table - which will create the button and attach it to the vbox.


method onEvent
Try to create a single method which will have the button name argument (same as info window). With this, we should be able to recover the table name and key column name and so be able to instanciate the InfoPanel using InfoManager.create

I guess that WAcctViewer will remain as hardcoded as it is a particular panel.

WDYT ?

Regards,

Nicolas

Environment

None

Activity

Show:
Norbert Bede
November 28, 2013, 8:03 PM

hi all. want to ask is it still stalled issue ? or already resolved. it is blocking IDEMPIERE-1379.

Carlos Ruiz
June 20, 2013, 9:27 PM

Hi Nicolas, maybe also a SeqNo can be worthy, the label could be the info window name (is already translated).

And maybe a flag "ShowInDPViews"

ScheduleInfo is also hardcoded - we could at least command those two hardcoded via client sysconfig.

Regards,

Carlos Ruiz

Fixed

Assignee

Nicolas Micoud

Reporter

Nicolas Micoud

Labels

Tested By

None

Priority

Major