We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17249 ☆ A M B ☆
    • 165 Posts
    Can i set a 'Duplicate' Column button on a Migxdb?
    MIGX himself allows this on the Formtab grid

    Is this possible?
      • 4172
      • 5,888 Posts
      This is possible. Will post it tomorrow, how.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 4172
        • 5,888 Posts
        with this additions its possible now to have a duplicate button:
        https://github.com/Bruno17/MIGX/commit/753d76f1272cd5645138cf36f6925828f2384194
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 17249 ☆ A M B ☆
          • 165 Posts
          Wow, excellent;
          Will dig into it right now. Thanks a lot for the support.
          MIGx is just an awesome piece of work.

            • 17249 ☆ A M B ☆
            • 165 Posts
            It's works great.

            There's one little caveat:
            multi items inside another migxdb are not being duplicated. i asume this happens because the parent class item is not yet created at the moment when you hit the Done button.

            It would be very useful to achieve duplication of the a child multi-item list (migxdb type).
            When you use 'Remove' option, for example, over a parent item with multi-item inside, they get deleted from the tables correctly when the Join Alias is defined.


            In a Box / Cranyons relationship it would be helpful to be able to duplicate a Box with its Cranyons.
            How can i obtain that behavior?

            UPDATE: An image is attached to illustrate the point. MIGX allowed to create quickly a simple Movie Showtimes manager for testing purposes using related tables and relationship definitions.


            Here's the schema i'm using.
            I'm no database/php expert. Still a lot of things to learn, but i found surprisingly easy to achieve what i was looking for using modx / migx.

            <?xml version="1.0" encoding="UTF-8"?>
            <model package="cartelera" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM" version="1.1">
            
            	<object class="Cartelera" table="cartelera" extends="xPDOSimpleObject">
            		<field key="name" dbtype="varchar" precision="255" phptype="string" null="false" />
            		<field key="startdate" dbtype="datetime" phptype="datetime" null="false" />
            		<field key="enddate" dbtype="datetime" phptype="datetime" null="false" />
            		<field key="showtimes" dbtype="text" phptype="string" null="false" />
            		<field key="deleted" dbtype="tinyint" precision="1" phptype="integer" null="false" />
            		<field key="published" dbtype="tinyint" precision="1" phptype="integer" null="false" />
            		
            		<composite alias="Showtime" class="Showtime" local="id" foreign="cartelera_id" cardinality="many" owner="local" />		
            		
            	</object>
            
            	<object class="Showtime" table="showtime" extends="xPDOSimpleObject">
            		<field key="times" dbtype="varchar" precision="255" phptype="string" null="true" />
            		<field key="days" dbtype="varchar" precision="255" phptype="string" null="false" default="LMMJVSD" />
            		<field key="movie_id" dbtype="int" precision="11" phptype="integer" null="false" />
            		<field key="screen_id" dbtype="int" precision="11" phptype="integer" null="false" />
            		<field key="theather_id" dbtype="int" precision="11" phptype="integer" null="false" />
            		<field key="cartelera_id" dbtype="int" precision="11" phptype="integer" null="false" />
            		<field key="deleted" dbtype="tinyint" precision="1" phptype="integer" null="false" default="0" />
            		<field key="published" dbtype="tinyint" precision="1" phptype="integer" null="false" default="1" />
            	    
            		<aggregate alias="Cartelera" class="Cartelera" local="cartelera_id" foreign="id" cardinality="one" owner="foreign" />
            		
            	</object>
            	
            	<object class="Theater" table="theater" extends="xPDOSimpleObject">
            		<field key="name" dbtype="varchar" precision="255" phptype="string" null="true" />
            		<field key="address" dbtype="varchar" precision="255" phptype="string" null="true" />
            		<field key="phone" dbtype="varchar" precision="255" phptype="string" null="true" />
            		<field key="deleted" dbtype="tinyint" precision="1" phptype="integer" null="false" />
            		<field key="published" dbtype="tinyint" precision="1" phptype="integer" null="false" />
            		
            	    <composite alias="Screen" class="Screen" local="id" foreign="theater_id" cardinality="many" owner="local" />
            		
            	</object>
            	
            	<object class="Screen" table="screen" extends="xPDOSimpleObject">
            		<field key="room" dbtype="varchar" precision="2" phptype="string" null="true" />
            		<field key="is_3d" dbtype="tinyint" precision="1" phptype="integer" null="true" />
            		<field key="is_digital" dbtype="tinyint" precision="1" phptype="integer" null="true" />
            		<field key="theater_id" dbtype="int" precision="11" phptype="integer" null="true" />
            		<field key="deleted" dbtype="tinyint" precision="1" phptype="integer" null="false" />
            		<field key="published" dbtype="tinyint" precision="1" phptype="integer" null="false" />
            	    
            		<aggregate alias="Theater" class="Theater" local="theater_id" foreign="id" cardinality="one" owner="foreign" />
            			
            	</object>	
            	
            	<object class="Movie" table="movie" extends="xPDOSimpleObject">
            		<field key="name" dbtype="varchar" precision="255" phptype="string" null="true" />
            		<field key="poster" dbtype="varchar" precision="225" phptype="string" null="true" />
            		<field key="trailer" dbtype="varchar" precision="225" phptype="string" null="true" />
            		<field key="sinopsis" dbtype="text" phptype="string" null="true" />
            		<field key="content" dbtype="text" phptype="string" null="true" />
            		<field key="deleted" dbtype="tinyint" precision="1" phptype="integer" null="false" />
            		<field key="published" dbtype="tinyint" precision="1" phptype="integer" null="false" />
            		
            	</object>
            
            </model>


            Thanks in advance.
            Pablo. [ed. note: lithiumlab last edited this post 13 years, 11 months ago.]
              • 4172
              • 5,888 Posts
              I think, you will need a custom - update - processor in your folder:

              components/cartelera/processors/mgr/default/update.php

              This update-processor can check, if you are in duplicate-mode and duplicate also all 'childs'
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 8274 ☆ A M B ☆
                • 222 Posts
                What is the flag for Duplicate mode? I need to do this (duplicate a nested MIGX record that has a mixgdb child), and right now, duplicate only brings up the Edit/Update selected record window.

                Duplicate DOES work when I use it on the child migxdb form, just not on the parent.

                FYI, this is a MIGXdb config (Product Line) that has a nested MIGXdb form (Product) which then has a nested MIGXdb (Specs).

                Root MIGXdb config:
                {
                  "formtabs":[
                    {
                      "MIGX_id":3,
                      "caption":"Product Lines",
                      "print_before_tabs":1,
                      "fields":[
                        {
                          "MIGX_id":1,
                          "field":"name",
                          "caption":"Product Line Name",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"",
                          "validation":"",
                          "configs":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        },
                        {
                          "MIGX_id":2,
                          "field":"priority",
                          "caption":"List Priority",
                          "description":"Set the priority when product lines are listed. Lower numbers are put at the top of the list. In the case of matching priorities, product lines will be sort alphabetically",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"singleSlider",
                          "validation":"",
                          "configs":{
                            "allowBlank":true,
                            "allowDecimals":"No",
                            "allowNegative":"No",
                            "decimalPrecision":"0",
                            "decimalSeparator":".",
                            "maxValue":100,
                            "minValue":"0"
                          },
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        }
                      ]
                    },
                    {
                      "MIGX_id":6,
                      "caption":"Overview",
                      "print_before_tabs":"0",
                      "fields":[
                        {
                          "MIGX_id":1,
                          "field":"description",
                          "caption":"Overview",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"richtext",
                          "validation":"",
                          "configs":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        }
                      ]
                    },
                    {
                      "MIGX_id":4,
                      "caption":"Products",
                      "print_before_tabs":"0",
                      "fields":[
                        {
                          "MIGX_id":1,
                          "field":"",
                          "caption":"Products",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"migxdb",
                          "validation":"",
                          "configs":"Products",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        }
                      ]
                    },
                    {
                      "MIGX_id":5,
                      "caption":"Product Groups",
                      "print_before_tabs":"0",
                      "fields":[
                        {
                          "MIGX_id":1,
                          "field":"",
                          "caption":"Groups",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"migxdb",
                          "validation":"",
                          "configs":"Product Groups",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        }
                      ]
                    },
                    {
                      "MIGX_id":8,
                      "caption":"Sub-Categories",
                      "print_before_tabs":"0",
                      "fields":[
                        {
                          "MIGX_id":1,
                          "field":"",
                          "caption":"Group Categories",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"migxdb",
                          "validation":"",
                          "configs":"Product Category",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        }
                      ]
                    },
                    {
                      "MIGX_id":7,
                      "caption":"Colors",
                      "print_before_tabs":"0",
                      "fields":[
                        {
                          "MIGX_id":1,
                          "field":"",
                          "caption":"Colors",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"migxdb",
                          "validation":"",
                          "configs":"Product Colors",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        }
                      ]
                    }
                  ],
                  "contextmenus":"update||remove",
                  "actionbuttons":"addItem",
                  "columnbuttons":"",
                  "filters":"[]",
                  "extended":{
                    "migx_add":"Add Product Line",
                    "formcaption":"",
                    "update_win_title":"",
                    "win_id":"productline",
                    "maxRecords":"",
                    "addNewItemAt":"bottom",
                    "multiple_formtabs":"",
                    "actionbuttonsperrow":4,
                    "winbuttonslist":"",
                    "extrahandlers":"",
                    "filtersperrow":4,
                    "packageName":"rhythmcatalog",
                    "classname":"productLine",
                    "task":"",
                    "getlistsort":"priority",
                    "getlistsortdir":"",
                    "use_custom_prefix":"0",
                    "prefix":"",
                    "grid":"",
                    "gridload_mode":1,
                    "check_resid":1,
                    "check_resid_TV":"",
                    "join_alias":"",
                    "has_jointable":"yes",
                    "getlistwhere":"",
                    "joins":"",
                    "cmpmaincaption":"RhythmLink Catalog Manager",
                    "cmptabcaption":"Product Lines",
                    "cmptabdescription":"",
                    "cmptabcontroller":"",
                    "winbuttons":"",
                    "onsubmitsuccess":"",
                    "submitparams":""
                  },
                  "columns":[
                    {
                      "MIGX_id":4,
                      "header":"Pri",
                      "dataIndex":"priority",
                      "width":"",
                      "sortable":true,
                      "show_in_grid":1,
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    },
                    {
                      "MIGX_id":1,
                      "header":"id",
                      "dataIndex":"id",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":"0",
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    },
                    {
                      "MIGX_id":2,
                      "header":"Product Line Name",
                      "dataIndex":"name",
                      "width":"",
                      "sortable":true,
                      "show_in_grid":1,
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    },
                    {
                      "MIGX_id":3,
                      "header":"",
                      "dataIndex":"deleted",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":"0",
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    }
                  ]
                }


                Child Product Config (duplicate not working here)
                {
                  "formtabs":[
                    {
                      "MIGX_id":1,
                      "caption":"Product Info",
                      "print_before_tabs":"0",
                      "fields":[
                        {
                          "MIGX_id":1,
                          "field":"prod_no",
                          "caption":"Product Number",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"",
                          "validation":"",
                          "configs":"",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        },
                        {
                          "MIGX_id":2,
                          "field":"line_id",
                          "caption":"",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"",
                          "validation":"",
                          "configs":"",
                          "restrictive_condition":"",
                          "display":"none",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        },
                        {
                          "MIGX_id":3,
                          "field":"grp_id",
                          "caption":"Product Group",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"listbox",
                          "validation":"",
                          "configs":"",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"@EVAL return 'NONE==||'.$modx->runSnippet('group.lister', array('useid'=>'1'));",
                          "default":""
                        },
                        {
                          "MIGX_id":5,
                          "field":"category",
                          "caption":"Product Sub-Category",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"listbox",
                          "validation":"",
                          "configs":"",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"@EVAL return 'NONE==||'.$modx->runSnippet('category.lister');",
                          "default":""
                        },
                        {
                          "MIGX_id":4,
                          "field":"options",
                          "caption":"Product Specifications",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"migx",
                          "validation":"",
                          "configs":"Options",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        },
                        {
                          "MIGX_id":6,
                          "field":"colors",
                          "caption":"Color\/Color Group",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"listbox",
                          "validation":"",
                          "configs":"",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"@EVAL return 'NONE==||'.$modx->runSnippet('color.lister',  array('fulllist'=>'1'));",
                          "default":""
                        },
                        {
                          "MIGX_id":7,
                          "field":"qty",
                          "caption":"Quantity",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"number",
                          "validation":"",
                          "configs":"",
                          "restrictive_condition":"",
                          "display":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        }
                      ]
                    }
                  ],
                  "contextmenus":"update||duplicate||remove",
                  "actionbuttons":"addItem",
                  "columnbuttons":"duplicate",
                  "filters":"[]",
                  "extended":{
                    "migx_add":"Add Product",
                    "formcaption":"",
                    "update_win_title":"",
                    "win_id":"ProductList",
                    "maxRecords":"",
                    "addNewItemAt":"bottom",
                    "multiple_formtabs":"",
                    "actionbuttonsperrow":4,
                    "winbuttonslist":"",
                    "extrahandlers":"",
                    "filtersperrow":4,
                    "packageName":"rhythmcatalog",
                    "classname":"productInfo",
                    "task":"",
                    "getlistsort":"",
                    "getlistsortdir":"",
                    "use_custom_prefix":"0",
                    "prefix":"",
                    "grid":"",
                    "gridload_mode":2,
                    "check_resid":1,
                    "check_resid_TV":"",
                    "join_alias":"ProductLine",
                    "has_jointable":"yes",
                    "getlistwhere":"",
                    "joins":"",
                    "cmpmaincaption":"",
                    "cmptabcaption":"",
                    "cmptabdescription":"",
                    "cmptabcontroller":"",
                    "winbuttons":"",
                    "onsubmitsuccess":"",
                    "submitparams":""
                  },
                  "columns":[
                    {
                      "MIGX_id":1,
                      "header":"id",
                      "dataIndex":"id",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":"0",
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    },
                    {
                      "MIGX_id":2,
                      "header":"",
                      "dataIndex":"line_id",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":"0",
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    },
                    {
                      "MIGX_id":3,
                      "header":"Product Number",
                      "dataIndex":"prod_no",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":1,
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    }
                  ]
                }
                

                Grandchild MIGXdb Config (product specs) - duplicate working here.
                {
                  "formtabs":[
                    {
                      "MIGX_id":1,
                      "caption":"Product Line Options",
                      "print_before_tabs":"0",
                      "fields":[
                        {
                          "MIGX_id":1,
                          "field":"prodtype",
                          "caption":"Type",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"listbox",
                          "validation":"",
                          "configs":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"None==||Lead==Lead||Needle==Needle||Tip==Tip||Pad==Pad||Probe==Probe||Electrode==Electrode||Cup==Cup",
                          "default":""
                        },
                        {
                          "MIGX_id":4,
                          "field":"param",
                          "caption":"Parameter",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"listbox",
                          "validation":"",
                          "configs":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"None==||Size==Size||Diameter==Diameter||Length==Length",
                          "default":""
                        },
                        {
                          "MIGX_id":2,
                          "field":"value",
                          "caption":"Value",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"",
                          "validation":"",
                          "configs":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"",
                          "default":""
                        },
                        {
                          "MIGX_id":3,
                          "field":"type",
                          "caption":"Type",
                          "description":"",
                          "description_is_code":"0",
                          "inputTV":"",
                          "inputTVtype":"listbox",
                          "validation":"",
                          "configs":"",
                          "sourceFrom":"config",
                          "sources":"[]",
                          "inputOptionValues":"Choose a Type==||Specification==spec||Product Group==group||Color==color||Color Group==cgrp",
                          "default":"spec"
                        }
                      ]
                    }
                  ],
                  "contextmenus":"update||duplicate||remove",
                  "actionbuttons":"",
                  "columnbuttons":"",
                  "filters":"[]",
                  "extended":{
                    "migx_add":"Add Option",
                    "formcaption":"",
                    "update_win_title":"",
                    "win_id":"ProdOpts",
                    "maxRecords":"",
                    "addNewItemAt":"bottom",
                    "multiple_formtabs":"",
                    "actionbuttonsperrow":4,
                    "winbuttonslist":"",
                    "extrahandlers":"",
                    "filtersperrow":4,
                    "packageName":"",
                    "classname":"",
                    "task":"",
                    "getlistsort":"",
                    "getlistsortdir":"",
                    "use_custom_prefix":"0",
                    "prefix":"",
                    "grid":"",
                    "gridload_mode":2,
                    "check_resid":"0",
                    "check_resid_TV":"",
                    "join_alias":"",
                    "has_jointable":"yes",
                    "getlistwhere":"",
                    "joins":"",
                    "cmpmaincaption":"",
                    "cmptabcaption":"",
                    "cmptabdescription":"",
                    "cmptabcontroller":"",
                    "winbuttons":"",
                    "onsubmitsuccess":"",
                    "submitparams":""
                  },
                  "columns":[
                    {
                      "MIGX_id":1,
                      "header":"",
                      "dataIndex":"id",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":"0",
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    },
                    {
                      "MIGX_id":2,
                      "header":"Name",
                      "dataIndex":"prodtype",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":1,
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    },
                    {
                      "MIGX_id":4,
                      "header":"",
                      "dataIndex":"param",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":1,
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    },
                    {
                      "MIGX_id":3,
                      "header":"Value",
                      "dataIndex":"value",
                      "width":"",
                      "sortable":"false",
                      "show_in_grid":1,
                      "renderer":"",
                      "clickaction":"",
                      "selectorconfig":"",
                      "renderchunktpl":"",
                      "renderoptions":"[]"
                    }
                  ]
                }
                
                  • 8274 ☆ A M B ☆
                  • 222 Posts
                  Looking deeper (to better define the problem, not finding an answer yet), it seems that the duplicate action doesn't work on a migxdb tv input type (it does work on a migx tv input type, but I can't use that).

                  The "d" and "u" actions have the same result in the config files.... they both fire loadWin with the current selected record's data.

                  I need to have the d action just duplicate the the db row at minimum (ideally opening a window like what happens with Duplicate Resource is done in the resource tree, but not totally necessary at this point) with an incremented id, then refresh the grid.

                  Any ideas on how to do that on the migxdb input type and NOT have it fire an update window?

                  Jason
                    • 4172
                    • 5,888 Posts
                    MIGXdb does with 'duplicate' open the window with the datas of the selected record and does save a new record after 'done' with that datas.
                    If you are missing some fields, which you may not have at the form, you can add them as hidden fields.

                    Of course it would also be possible to create a custom popup-menu-entry or button which does a custom-action.
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 8274 ☆ A M B ☆
                      • 222 Posts
                      I have not had it save a new record. It just saves over the one selected via duplicate. Is something set wrong in my config (it was pasted the earlier post)? This is the case on all my migxdb input types in my CMP. I select Duplicate from the context menu, the update window opens, but if I change the product name, it doesn't add a new record, it just runs the update on the current id/record.