We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8274 ☆ A M B ☆
    • 222 Posts
    When creating a new item from within a nested MIGXdb (Parent MIGXdb with a child MIGXdb which I want to add a record to), does the new record window have anyway of pulling info from the parent MIGXdb?

    When I save/edit, the parent id field gets filled properly, but what I am looking for is to prepopulate that field when a new record is added. Currently, a new record window just shows a blank field, where an update window shows it with the parent id as expected.

      • 4172
      • 5,888 Posts
      Please, allways show your schema, or at least a link, if allready posted, and your current MIGX-config.
      This may help to get help.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 8274 ☆ A M B ☆
        • 222 Posts
        First, Here is the parent Config for the "base" MIGXdb (the one I call from the actions menu)
        {
          "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":3,
                  "field":"disabled",
                  "caption":"Hide Product?",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"listbox",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"No==0||Yes==1",
                  "default":"0"
                },
                {
                  "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":4,
                  "field":"video",
                  "caption":"Video Link",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"",
                  "validation":"",
                  "configs":"",
                  "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":"products",
                  "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":"groups",
                  "caption":"Groups",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"migxdb",
                  "validation":"",
                  "configs":"Product Groups",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                }
              ]
            },
            {
              "MIGX_id":8,
              "caption":"Sub-Categories",
              "print_before_tabs":"0",
              "fields":[
                {
                  "MIGX_id":1,
                  "field":"subcats",
                  "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":"colors",
                  "caption":"Colors",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"migxdb",
                  "validation":"",
                  "configs":"Product Colors",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                }
              ]
            }
          ],
          "contextmenus":"update||duplicate||remove",
          "actionbuttons":"addItem",
          "columnbuttons":"update||duplicate||remove",
          "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":"productline",
            "getlistsort":"priority",
            "getlistsortdir":"",
            "use_custom_prefix":"0",
            "prefix":"",
            "grid":"",
            "gridload_mode":1,
            "check_resid":1,
            "check_resid_TV":"",
            "join_alias":"",
            "has_jointable":"no",
            "getlistwhere":"",
            "joins":"",
            "cmpmaincaption":"RhythmLink Catalog Manager",
            "cmptabcaption":"Product Lines",
            "cmptabdescription":"",
            "cmptabcontroller":"",
            "winbuttons":"",
            "onsubmitsuccess":"",
            "submitparams":""
          },
          "columns":[
            {
              "MIGX_id":4,
              "header":"Pri",
              "dataIndex":"priority",
              "width":5,
              "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":"[]"
            },
            {
              "MIGX_id":5,
              "header":"Actions",
              "dataIndex":"",
              "width":100,
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"this.renderRowActions",
              "clickaction":"",
              "selectorconfig":"",
              "renderchunktpl":"",
              "renderoptions":"[]"
            }
          ]
        }


        Here is the Config for the Products Config (the nested Child MIGXdb)
        {
          "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":"Belongs to Product Line:",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"ProductLineList",
                  "inputTVtype":"",
                  "validation":"required",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":"ProductLine_id"
                },
                {
                  "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 $modx->runSnippet('list.lister', array('useid'=>'1', 'class'=>'productGroup', 'multi'=>''));",
                  "default":""
                },
                {
                  "MIGX_id":5,
                  "field":"category",
                  "caption":"Product Category",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"listbox",
                  "validation":"required",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"@EVAL return $modx->runSnippet('list.lister', array('class'=>'productCategories'));",
                  "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":10,
                  "field":"colors",
                  "caption":"Color Group",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"listbox",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"@EVAL return $modx->runSnippet('list.lister', array('useid'=>'1', 'class'=>'productColorGroups','nameField'=>'colorgroupname'));",
                  "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":""
                },
                {
                  "MIGX_id":8,
                  "field":"id",
                  "caption":"",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"none",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                }
              ]
            },
            {
              "MIGX_id":2,
              "caption":"Additional Product Settings",
              "print_before_tabs":"0",
              "fields":[
                {
                  "MIGX_id":1,
                  "field":"sample",
                  "caption":"Sample Available?",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"listbox",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"No==0||Yes==1",
                  "default":"0"
                },
                {
                  "MIGX_id":2,
                  "field":"sample_qty",
                  "caption":"How many can be ordered?",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":"0"
                },
                {
                  "MIGX_id":3,
                  "field":"so",
                  "caption":"Is this a special order item?",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"yes-no-list",
                  "inputTVtype":"",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":"0"
                },
                {
                  "MIGX_id":11,
                  "field":"so_text",
                  "caption":"Special Order Text",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                },
                {
                  "MIGX_id":10,
                  "field":"disabled",
                  "caption":"Hide This Product?",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"listbox",
                  "validation":"",
                  "configs":"",
                  "restrictive_condition":"",
                  "display":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"No==0||Yes==1",
                  "default":"0"
                }
              ]
            }
          ],
          "contextmenus":"update||duplicate||remove",
          "actionbuttons":"addItem",
          "columnbuttons":"update||duplicate||remove",
          "filters":[
            {
              "MIGX_id":1,
              "name":"search",
              "label":"Product Search",
              "emptytext":"",
              "type":"textbox",
              "getlistwhere":{
                "prod_no:LIKE":"%[[+search]]%",
                "OR:options:LIKE":"%[[+search]]%"
              },
              "getcomboprocessor":"",
              "combotextfield":"",
              "comboidfield":"",
              "comboparent":"",
              "default":""
            }
          ],
          "extended":{
            "migx_add":"Add Product",
            "formcaption":"Product Manager",
            "update_win_title":"",
            "win_id":"ProductList",
            "maxRecords":"",
            "addNewItemAt":"bottom",
            "multiple_formtabs":"",
            "actionbuttonsperrow":4,
            "winbuttonslist":"",
            "extrahandlers":"this.duplicate",
            "filtersperrow":4,
            "packageName":"rhythmcatalog",
            "classname":"productInfo",
            "task":"",
            "getlistsort":"prod_no",
            "getlistsortdir":"",
            "use_custom_prefix":"0",
            "prefix":"",
            "grid":"",
            "gridload_mode":2,
            "check_resid":"0",
            "check_resid_TV":"",
            "join_alias":"",
            "has_jointable":"no",
            "getlistwhere":"",
            "joins":[
              {
                "classname":"productLine",
                "alias":"ProductLine",
                "on":"ProductLine.id=line_id"
              }
            ],
            "cmpmaincaption":"",
            "cmptabcaption":"Product Listing",
            "cmptabdescription":"This is a listing of all products in the Rhythmlink database",
            "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":3,
              "header":"Product Number",
              "dataIndex":"prod_no",
              "width":"",
              "sortable":true,
              "show_in_grid":1,
              "renderer":"this.renderRowActions",
              "clickaction":"selectFromGrid",
              "selectorconfig":"",
              "renderchunktpl":"",
              "renderoptions":"[]"
            }
          ]
        }

        Here is alink to another post that has the Schema XML code for these two tables:
        https://forums.modx.com/thread/90099/migxdb-passing-record-property-to-input-option#dis-post-495105 [ed. note: dvstudiosinc last edited this post 12 years, 6 months ago.]
          • 4172
          • 5,888 Posts
          shouldn't the line_id be set automatically, without selecting it by a listbox, because its in a child-grid?
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 8274 ☆ A M B ☆
            • 222 Posts
            it *SHOULD* but it is not on a new record. Attaching screen shots of a new record window.

            I tried to put in a text field to test if the id was being applied, but it was blank. When the form is submitted, the value is added just not when the window is opened.

            I need a list box since there is a requirement of moving a product between product lines. I had assumed on a new record window, the parent configs would be populated automatically in any matching fields (like a field connected to the line_id field, which has an aggregate relationship in the Product table to the Product Line table).
              • 4172
              • 5,888 Posts
              I need a list box since there is a requirement of moving a product between product lines.

              This was the info, I was missing.
              Otherwise, you could simply set the join-alias - configuration to: 'ProductLine' and set check_resource to yes

              I'm sure, its possible, will think about it.
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 4172
                • 5,888 Posts
                what about not having this listbox and let the product_line set automatically and have another standalone grid, just for moving products to other product-lines, or having this listbox only, when editing, not when creating a new one?
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 8274 ☆ A M B ☆
                  • 222 Posts
                  Even if I set the Product line field to text, and set the Join Alias to ProductLine, I get nothing on a new record.
                  {
                    "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":"Belongs to Product Line:",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"",
                            "inputTVtype":"",
                            "validation":"",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"",
                            "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 $modx->runSnippet('list.lister', array('useid'=>'1', 'class'=>'productGroup', 'multi'=>''));",
                            "default":""
                          },
                          {
                            "MIGX_id":5,
                            "field":"category",
                            "caption":"Product Category",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"",
                            "inputTVtype":"listbox",
                            "validation":"required",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"",
                            "sourceFrom":"config",
                            "sources":"[]",
                            "inputOptionValues":"@EVAL return $modx->runSnippet('list.lister', array('class'=>'productCategories'));",
                            "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":10,
                            "field":"colors",
                            "caption":"Color Group",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"",
                            "inputTVtype":"listbox",
                            "validation":"",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"",
                            "sourceFrom":"config",
                            "sources":"[]",
                            "inputOptionValues":"@EVAL return $modx->runSnippet('list.lister', array('useid'=>'1', 'class'=>'productColorGroups','nameField'=>'colorgroupname'));",
                            "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":""
                          },
                          {
                            "MIGX_id":8,
                            "field":"id",
                            "caption":"",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"",
                            "inputTVtype":"",
                            "validation":"",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"none",
                            "sourceFrom":"config",
                            "sources":"[]",
                            "inputOptionValues":"",
                            "default":""
                          }
                        ]
                      },
                      {
                        "MIGX_id":2,
                        "caption":"Additional Product Settings",
                        "print_before_tabs":"0",
                        "fields":[
                          {
                            "MIGX_id":1,
                            "field":"sample",
                            "caption":"Sample Available?",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"",
                            "inputTVtype":"listbox",
                            "validation":"",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"",
                            "sourceFrom":"config",
                            "sources":"[]",
                            "inputOptionValues":"No==0||Yes==1",
                            "default":"0"
                          },
                          {
                            "MIGX_id":2,
                            "field":"sample_qty",
                            "caption":"How many can be ordered?",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"",
                            "inputTVtype":"",
                            "validation":"",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"",
                            "sourceFrom":"config",
                            "sources":"[]",
                            "inputOptionValues":"",
                            "default":"0"
                          },
                          {
                            "MIGX_id":3,
                            "field":"so",
                            "caption":"Is this a special order item?",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"yes-no-list",
                            "inputTVtype":"",
                            "validation":"",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"",
                            "sourceFrom":"config",
                            "sources":"[]",
                            "inputOptionValues":"",
                            "default":"0"
                          },
                          {
                            "MIGX_id":11,
                            "field":"so_text",
                            "caption":"Special Order Text",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"",
                            "inputTVtype":"",
                            "validation":"",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"",
                            "sourceFrom":"config",
                            "sources":"[]",
                            "inputOptionValues":"",
                            "default":""
                          },
                          {
                            "MIGX_id":10,
                            "field":"disabled",
                            "caption":"Hide This Product?",
                            "description":"",
                            "description_is_code":"0",
                            "inputTV":"",
                            "inputTVtype":"listbox",
                            "validation":"",
                            "configs":"",
                            "restrictive_condition":"",
                            "display":"",
                            "sourceFrom":"config",
                            "sources":"[]",
                            "inputOptionValues":"No==0||Yes==1",
                            "default":"0"
                          }
                        ]
                      }
                    ],
                    "contextmenus":"update||duplicate||remove",
                    "actionbuttons":"addItem",
                    "columnbuttons":"update||duplicate||remove",
                    "filters":[
                      {
                        "MIGX_id":1,
                        "name":"search",
                        "label":"Product Search",
                        "emptytext":"",
                        "type":"textbox",
                        "getlistwhere":{
                          "prod_no:LIKE":"%[[+search]]%",
                          "OR:options:LIKE":"%[[+search]]%"
                        },
                        "getcomboprocessor":"",
                        "combotextfield":"",
                        "comboidfield":"",
                        "comboparent":"",
                        "default":""
                      }
                    ],
                    "extended":{
                      "migx_add":"Add Product",
                      "formcaption":"Product Manager",
                      "update_win_title":"",
                      "win_id":"ProductList",
                      "maxRecords":"",
                      "addNewItemAt":"bottom",
                      "multiple_formtabs":"",
                      "actionbuttonsperrow":4,
                      "winbuttonslist":"",
                      "extrahandlers":"this.duplicate",
                      "filtersperrow":4,
                      "packageName":"rhythmcatalog",
                      "classname":"productInfo",
                      "task":"",
                      "getlistsort":"prod_no",
                      "getlistsortdir":"",
                      "use_custom_prefix":"0",
                      "prefix":"",
                      "grid":"",
                      "gridload_mode":2,
                      "check_resid":"0",
                      "check_resid_TV":"",
                      "join_alias":"ProductLine",
                      "has_jointable":"yes",
                      "getlistwhere":"",
                      "joins":"\n",
                      "cmpmaincaption":"",
                      "cmptabcaption":"Product Listing",
                      "cmptabdescription":"This is a listing of all products in the Rhythmlink database",
                      "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":3,
                        "header":"Product Number",
                        "dataIndex":"prod_no",
                        "width":"",
                        "sortable":true,
                        "show_in_grid":1,
                        "renderer":"this.renderRowActions",
                        "clickaction":"selectFromGrid",
                        "selectorconfig":"",
                        "renderchunktpl":"",
                        "renderoptions":"[]"
                      }
                    ]
                  }
                  


                  I am fine with only presenting the listbox when updating. I assume this is set in the updatewindow.tpl? I am unsure how MIGX sees a new record window versus a update window. But my bigger concern is just getting the line_id/ProductLine_id being read by the window (since I need to use that value create a color dropdown using only records that have the ProductLine_id in THEIR line_id field).

                    • 4172
                    • 5,888 Posts
                    you could hide the product-line - listbox on a new product with the new field-config:

                    restrictive condition:
                    [[+id:is=``:then=`1`:else=`0`]]


                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 8274 ☆ A M B ☆
                      • 222 Posts
                      So on a new record, would the [[+line_id]] be the placeholder for the parent id if I wanted to pass it to an @EVAL snippet binding?