Now, VCreateFrom.create(GridTab) factory method supports only some hardcoded types. If you are creating a new document and add an "CreateFrom" field you will need to modify this method in order to support your custom VCreateFrom* dialog, which means modifying the "core".
I am proposing to introduce a new method:
VCreateFrom.registerClass(int AD_Table_ID, Class cl) which will register a new VCreateFrom* custom class.
VCreateForm.create method should use this informations.
What do you think ?
Best regards,
Teo Sarca
Revision: 6434
http://adempiere.svn.sourceforge.net/adempiere/?rev=6434&view=rev
Author: teo_sarca
Date: 2008-09-12 10:10:23 +0000 (Fri, 12 Sep 2008)
Log Message:
-----------
FR [ 1974354 ] VCreateFrom.create should be more flexible
Modified Paths:
--------------
branches/stable/client/src/org/compiere/grid/VCreateFrom.java
branches/stable/client/src/org/compiere/grid/VCreateFromInvoice.java
branches/stable/client/src/org/compiere/grid/VCreateFromRMA.java
branches/stable/client/src/org/compiere/grid/VCreateFromShipment.java
branches/stable/client/src/org/compiere/grid/VCreateFromStatement.java
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 15 days (the time period specified by
the administrator of this Tracker).
Revision: 8806
http://adempiere.svn.sourceforge.net/adempiere/?rev=8806&view=rev
Author: teo_sarca
Date: 2009-03-24 14:20:48 +0000 (Tue, 24 Mar 2009)
Log Message:
-----------
FR [ 1974354 ] VCreateFrom.create should be more flexible
https://sourceforge.net/tracker/?func=detail&atid=879335&aid=1974354&group_id=176962
APanel: Run VCreateFrom form only if the button has no process defined.
Forgot to commit on rev. 6434
Modified Paths:
--------------
trunk/client/src/org/compiere/apps/APanel.java