Loading Info windows dynamically
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
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.
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.
hi all. want to ask is it still stalled issue ? or already resolved. it is blocking IDEMPIERE-1379.
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.