Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

MIGX grid in manager is not updating when using a renderer on a column & the original column is hidden #338

Open pmacswebteam opened 5 years ago

pmacswebteam commented 5 years ago

When adding a new row or making updates to an existing row, the updates do not show up in the grid when using a renderer on the column unless the column containing the original field that it's manipulating is shown in the grid.

We need to hide the original column from the grid because it contains values that our clients should not see. Is it possible to do this?

pmacswebteam commented 5 years ago

Below is an export of our Configuration:

{
  "formtabs":[
    {
      "MIGX_id":6,
      "caption":"Accordion Item",
      "print_before_tabs":"0",
      "fields":[
        {
          "MIGX_id":12,
          "field":"heading",
          "caption":"Heading",
          "description":"Optionally, enter a section header to separate this item into a new section of the accordion.",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":1
        },
        {
          "MIGX_id":13,
          "field":"title",
          "caption":"Title",
          "description":"Enter the title of the accordion item. If a title is not entered here, any content in \"Hidden Content\" will show by default.",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"",
          "validation":"required",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":2
        },
        {
          "MIGX_id":14,
          "field":"nonHidden",
          "caption":"Non-Hidden Content",
          "description":"Enter any non-hidden introductory content that should appear above the main accordion item content, optional.",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"richtext",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":3
        },
        {
          "MIGX_id":15,
          "field":"hidden",
          "caption":"Hidden Content",
          "description":"Enter the main accordion content which will be hidden by default. A title must be specified above or this content will always show.",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"richtext",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":4
        }
      ],
      "pos":1
    }
  ],
  "contextmenus":"",
  "actionbuttons":"",
  "columnbuttons":"",
  "filters":"",
  "extended":{
    "migx_add":"Add Accordion Item",
    "disable_add_item":"",
    "add_items_directly":"",
    "formcaption":"",
    "update_win_title":"",
    "win_id":"",
    "maxRecords":"",
    "addNewItemAt":"bottom",
    "media_source_id":"",
    "multiple_formtabs":"",
    "multiple_formtabs_label":"",
    "multiple_formtabs_field":"",
    "multiple_formtabs_optionstext":"",
    "multiple_formtabs_optionsvalue":"",
    "actionbuttonsperrow":4,
    "winbuttonslist":"",
    "extrahandlers":"",
    "filtersperrow":4,
    "packageName":"",
    "classname":"",
    "task":"",
    "getlistsort":"",
    "getlistsortdir":"",
    "sortconfig":"",
    "gridpagesize":"",
    "use_custom_prefix":"0",
    "prefix":"",
    "grid":"",
    "gridload_mode":1,
    "check_resid":1,
    "check_resid_TV":"",
    "join_alias":"",
    "has_jointable":"yes",
    "getlistwhere":"",
    "joins":"",
    "hooksnippets":"",
    "cmpmaincaption":"",
    "cmptabcaption":"",
    "cmptabdescription":"",
    "cmptabcontroller":"",
    "winbuttons":"",
    "onsubmitsuccess":"",
    "submitparams":""
  },
  "columns":[
    {
      "MIGX_id":7,
      "header":"Heading + Anchor",
      "dataIndex":"heading-anchor",
      "width":"",
      "sortable":"false",
      "show_in_grid":1,
      "customrenderer":"CopyToClipBoard_MIGX_Renderer",
      "renderer":"CopyToClipBoard_MIGX_Renderer",
      "clickaction":"",
      "selectorconfig":"",
      "renderchunktpl":"",
      "renderoptions":"",
      "editor":"this.textEditor"
    },
    {
      "MIGX_id":6,
      "header":"Title + Anchor",
      "dataIndex":"title-anchor",
      "width":"",
      "sortable":"false",
      "show_in_grid":"0",
      "customrenderer":"",
      "renderer":"this.renderChunk",
      "clickaction":"",
      "selectorconfig":"",
      "renderchunktpl":"[[+title:!empty=`[ \"[[+title]]\", \"[[+title:!empty=`#[[+title:preg_replace]][[+MIGX_id]]`]]\" ]`]]",
      "renderoptions":"",
      "editor":"this.textEditor"
    },
    {
      "MIGX_id":8,
      "header":"Title + Anchor",
      "dataIndex":"title-anchor",
      "width":"",
      "sortable":"false",
      "show_in_grid":1,
      "customrenderer":"CopyToClipBoard_MIGX_Renderer",
      "renderer":"CopyToClipBoard_MIGX_Renderer",
      "clickaction":"",
      "selectorconfig":"",
      "renderchunktpl":"",
      "renderoptions":"",
      "editor":"this.textEditor"
    },
    {
      "MIGX_id":3,
      "header":"Non-Hidden Content",
      "dataIndex":"nonHidden",
      "width":200,
      "sortable":"false",
      "show_in_grid":1,
      "customrenderer":"",
      "renderer":"",
      "clickaction":"",
      "selectorconfig":"",
      "renderchunktpl":"",
      "renderoptions":"",
      "editor":""
    },
    {
      "MIGX_id":4,
      "header":"Hidden Content",
      "dataIndex":"hidden",
      "width":200,
      "sortable":"false",
      "show_in_grid":1,
      "customrenderer":"",
      "renderer":"",
      "clickaction":"",
      "selectorconfig":"",
      "renderchunktpl":"",
      "renderoptions":"",
      "editor":""
    },
    {
      "MIGX_id":9,
      "header":"Heading + Anchor",
      "dataIndex":"heading-anchor",
      "width":"0",
      "sortable":"false",
      "show_in_grid":1,
      "customrenderer":"",
      "renderer":"this.renderChunk",
      "clickaction":"",
      "selectorconfig":"",
      "renderchunktpl":"[[+heading:!empty=`[ \"[[+heading]]\", \"[[+heading:!empty=`#[[+heading:preg_replace]][[+MIGX_id]]`]]\" ]`]]",
      "renderoptions":"",
      "editor":""
    }
  ],
  "category":""
}