Create table and related things from a single process
Description
Environment
Attachments
- 05 Dec 2015, 12:28 PM
- 16 Feb 2015, 03:32 PM
- 16 Feb 2015, 03:32 PM
- 16 Feb 2015, 03:31 PM
- 22 Mar 2014, 01:22 PM
- 22 Mar 2014, 01:22 PM
Activity
Nicolas Micoud April 9, 2019 at 8:51 AM
Hi Carlos,
I think there is already the possibility to create the window directly (if the param WindowType is filled - or maybe that's something I've added in "my" version).
My idea was to create a basic table (with mandatory fields) and if necessary :
the translation table
the process/workflow (and its node) <- Ideal if you're lazy 😛
I could create a plugin with this process but I think red1 has done something similar with his Ninja plugin.
People could choice 🙂
Regards,
Nicolas
Carlos Ruiz April 9, 2019 at 8:43 AM
Closing as Potential Idea.
I think as it is it sounds good to implement as a plugin.
For core I feel we have two fast ways to create tables (based on a template, or based on a DB table).
What sometimes I miss and I think it can be as easy as add some buttons is:
a button to create the window directly from the table
this button could be pushed on the table and it would create the window and associate it with the table, if the table is already associated to the window then it can create the tab, or if the tab exists then check and create any new field that is missing in the window. It could have also a flag parameter to add also a menu entry
Is this idea of a process in conflict with the idea here?
Hiep Lq December 7, 2015 at 10:43 AM
thanks @Nicolas Micoud, good to know code is outdate, so i will feeling free when change it.
before i worry it's your improve 🙂
Nicolas Micoud December 7, 2015 at 9:15 AM
Hi @Hiep Lq,
No update since the patch was added.
But here how i use it. I create the table (and related stuff), then add other columns and only when all of the columns are in the dictionnary i press the Synchronize Terminology button.
So i don't really use the 'SyncColumn' part.
Note also that the patch was submitted long time ago (and it was created in 2012 or 2013 in ADempiere) and all enhancements from iDempiere were not integrated in.
So I think the easier way would be to rewrite a whole new process (same params, but using all new stuffs from iDempiere especially the retrieval of 'best values' for columns (length, reference, ... instead of hardcode them).
I put it on the TODO list (but i won't have time to do it ATM).
Regards,
Nicolas
Hiep Lq December 5, 2015 at 12:47 PM
for sync column. why you don't reuse process org.compiere.process.ColumnSync?
The idea is to have a button that will call a process which will create all necessary stuff for elements, tables, column, ...