Hi All,
I am building a cmp using migxdb in order to manage the Post Codes of Portugal. So far, so good, but I am facing a problem with migxdb db-filters.
It is stated that in order to have a successfull resetall button, the other boxes need to have a default value as seen and explained here:
https://forums.modx.com/thread/97925/migxdb-cmp-reset-filter-not-working
https://forums.modx.com/thread/101005/db-filters-resetall-button
The resetall works on the comboboxes, but not in text boxes.
Here is my code:
{
"formtabs":[
{
"MIGX_id":2007,
"caption":"CTT - C\u00f3digos Postais",
"print_before_tabs":"0",
"fields":[
{
"MIGX_id":11996,
"field":"DD",
"caption":"Distrito *",
"description":"Campo Obrigat\u00f3rio - Distrito Associado",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"listbox",
"validation":"required",
"configs":{
"allowBlank":true,
"listWidth":"",
"title":"",
"typeAhead":"false",
"typeAheadDelay":250,
"listEmptyText":"",
"stackItems":"false"
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"@SELECT '' AS `name` ,'' AS `id` UNION ALL (SELECT `DESIG` AS `name`,`DD` as `id` FROM `[[+PREFIX]]ctt_distritos` WHERE `published` = 1 and `deleted` = 0)",
"default":"",
"useDefaultIfEmpty":"0",
"pos":1
},
{
"MIGX_id":11997,
"field":"CC",
"caption":"Concelho *",
"description":"Campo Obrigat\u00f3rio - Concelho Associado",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"listbox",
"validation":"required",
"configs":{
"allowBlank":true,
"listWidth":"",
"title":"",
"typeAhead":"false",
"typeAheadDelay":250,
"listEmptyText":"",
"stackItems":"false"
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"@SELECT '' AS `name` ,'' AS `id` UNION ALL (SELECT `DESIG` AS `name`,`CC` as `id` FROM `[[+PREFIX]]ctt_concelhos` WHERE `published` = 1 and `deleted` = 0)",
"default":"",
"useDefaultIfEmpty":"0",
"pos":2
},
{
"MIGX_id":11998,
"field":"LLLL",
"caption":"C\u00f3digo da Localidade *",
"description":"Campo Obrigat\u00f3rio - C\u00f3digo da Localidade",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"required",
"configs":{
"allowBlank":"false",
"maxLength":255,
"minLength":1,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":3
},
{
"MIGX_id":11999,
"field":"LOCALIDADE",
"caption":"Nome da Localidade *",
"description":"Campo Obrigat\u00f3rio - Nome da Localidade",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"required",
"configs":{
"allowBlank":"false",
"maxLength":255,
"minLength":1,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":4
},
{
"MIGX_id":12000,
"field":"ART_COD",
"caption":"C\u00f3digo da Art\u00e9ria",
"description":"C\u00f3digo da Art\u00e9ria",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":5
},
{
"MIGX_id":12001,
"field":"ART_TIPO",
"caption":"Tipo de Art\u00e9ria",
"description":"Art\u00e9ria - Tipo (Rua, Praca, etc)",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":6
},
{
"MIGX_id":12002,
"field":"PRI_PREP",
"caption":"Primeira preposi\u00e7\u00e3o",
"description":"Primeira preposi\u00e7\u00e3o",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":7
},
{
"MIGX_id":12003,
"field":"ART_TITULO",
"caption":"Titulo da Art\u00e9ria",
"description":"Art\u00e9ria - Titulo (Doutor, Eng.\u00ba, Professor, etc)",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":8
},
{
"MIGX_id":12004,
"field":"SEG_PREP",
"caption":"Segunda preposi\u00e7\u00e3o",
"description":"Segunda preposi\u00e7\u00e3o",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":9
},
{
"MIGX_id":12005,
"field":"ART_DESIG",
"caption":"Art\u00e9ria - Designa\u00e7\u00e3o",
"description":"Art\u00e9ria - Designa\u00e7\u00e3o",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":10
},
{
"MIGX_id":12006,
"field":"ART_LOCAL",
"caption":"Art\u00e9ria - Informa\u00e7\u00e3o do Local\/Zona",
"description":"Art\u00e9ria - Informa\u00e7\u00e3o do Local\/Zona",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":11
},
{
"MIGX_id":12007,
"field":"TRO\u00c7O",
"caption":"Descri\u00e7\u00e3o do tro\u00e7o",
"description":"Descri\u00e7\u00e3o do tro\u00e7o",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":12
},
{
"MIGX_id":12008,
"field":"PORTA",
"caption":"N\u00famero da porta do cliente",
"description":"N\u00famero da porta do cliente (vazio para c\u00f3digos postais geogr\u00e1ficos - C\u00f3digo postal geogr\u00e1fico: quando o \u00faltimo digito do CP4 \u00e9 0 ou 5)",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":13
},
{
"MIGX_id":12009,
"field":"CLIENTE",
"caption":"Nome do cliente",
"description":"Nome do cliente (vazio para c\u00f3digos postais geogr\u00e1ficos - C\u00f3digo postal geogr\u00e1fico: quando o \u00faltimo digito do CP4 \u00e9 0 ou 5)",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":0,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":14
},
{
"MIGX_id":12010,
"field":"CP4",
"caption":"N\u00fam. do c\u00f3digo postal *",
"description":"Campo Obrigat\u00f3rio - N\u00famero do c\u00f3digo postal",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"required",
"configs":{
"allowBlank":true,
"maxLength":4,
"minLength":4,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":15
},
{
"MIGX_id":12011,
"field":"CP3",
"caption":"Extens\u00e3o do n\u00fam. do c\u00f3digo postal *",
"description":"Campo Obrigat\u00f3rio - Extens\u00e3o do n\u00famero do c\u00f3digo postal",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"required",
"configs":{
"allowBlank":true,
"maxLength":3,
"minLength":3,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":16
},
{
"MIGX_id":12012,
"field":"CPALF",
"caption":"Designa\u00e7\u00e3o Postal *",
"description":"Campo Obrigat\u00f3rio - Designa\u00e7\u00e3o Postal",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"text",
"validation":"required",
"configs":{
"allowBlank":true,
"maxLength":255,
"minLength":1,
"regex":"",
"regexText":""
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"useDefaultIfEmpty":"0",
"pos":17
},
{
"MIGX_id":12013,
"field":"published",
"caption":"Dispon\u00edvel *",
"description":"Marcador de disponibilidade. Este marcador ir\u00e1 mostrar ou ocultar o formador no site e na listagem de formadores nas datas dos cursos.\nAten\u00e7\u00e3o: Ao desactivar este formador, n\u00e3o ir\u00e1 invalidar datas que j\u00e1 foram ligadas a este formador.",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"listbox",
"validation":"",
"configs":{
"allowBlank":"false",
"listWidth":"",
"title":"",
"typeAhead":"false",
"typeAheadDelay":250,
"listEmptyText":"",
"stackItems":true
},
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"N\u00e3o==0||Sim==1",
"default":1,
"useDefaultIfEmpty":1,
"pos":18
},
{
"MIGX_id":12014,
"field":"deleted",
"caption":"deleted",
"description":"",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"",
"validation":"",
"configs":"",
"restrictive_condition":"",
"display":"none",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"0",
"useDefaultIfEmpty":1,
"pos":19
}
],
"pos":1
}
],
"contextmenus":"update||duplicate||publish||unpublish||recall_remove_delete",
"actionbuttons":"addItem||toggletrash||exportview||resetwinposition",
"columnbuttons":"",
"filters":[
{
"MIGX_id":1,
"name":"ctt_codpostal_filter_distrito",
"label":"Distrito",
"emptytext":"-- Filtrar Distrito --",
"type":"combobox",
"getlistwhere":{
"DD":"[[+ctt_codpostal_filter_distrito]]"
},
"getcomboprocessor":"getcombo",
"combotextfield":"DESIG",
"comboidfield":"DD",
"combowhere":"published=1 AND deleted=0",
"comboclassname":"CttDistritos",
"combopackagename":"ctt",
"combo_use_custom_prefix":"0",
"comboprefix":"",
"combojoins":"Distrito",
"comboparent":"",
"default":"all"
},
{
"MIGX_id":2,
"name":"ctt_codpostal_filter_concelho",
"label":"Concelho",
"emptytext":"-- Filtrar Concelho --",
"type":"combobox",
"getlistwhere":{
"DD":"[[+ctt_codpostal_filter_distrito]]",
"CC":"[[+ctt_codpostal_filter_concelho]]"
},
"getcomboprocessor":"getcombo",
"combotextfield":"DESIG",
"comboidfield":"CC",
"combowhere":"published=1 AND deleted=0",
"comboclassname":"CttConcelhos",
"combopackagename":"ctt",
"combo_use_custom_prefix":"0",
"comboprefix":"",
"combojoins":"Concelho",
"comboparent":"ctt_codpostal_filter_distrito",
"default":"all"
},
{
"MIGX_id":3,
"name":"ctt_codpostal_filter_cp4",
"label":"CP4",
"emptytext":"-- CP4 --",
"type":"textbox",
"getlistwhere":{
"CP4":"[[+ctt_codpostal_filter_cp4]]"
},
"getcomboprocessor":"",
"combotextfield":"",
"comboidfield":"",
"combowhere":"",
"comboclassname":"",
"combopackagename":"",
"combo_use_custom_prefix":"0",
"comboprefix":"",
"combojoins":"",
"comboparent":"",
"default":"_empty"
},
{
"MIGX_id":4,
"name":"ctt_codpostal_filter_cp3",
"label":"CP3",
"emptytext":"-- CP3 --",
"type":"textbox",
"getlistwhere":{
"CP3":"[[+ctt_codpostal_filter_cp3]]"
},
"getcomboprocessor":"",
"combotextfield":"",
"comboidfield":"",
"combowhere":"",
"comboclassname":"",
"combopackagename":"",
"combo_use_custom_prefix":"0",
"comboprefix":"",
"combojoins":"",
"comboparent":"",
"default":"_empty"
},
{
"MIGX_id":5,
"name":"ctt_codpostal_filter_reset",
"label":"Reset",
"emptytext":"",
"type":"resetall",
"getlistwhere":"",
"getcomboprocessor":"",
"combotextfield":"",
"comboidfield":"",
"combowhere":"",
"comboclassname":"",
"combopackagename":"",
"combo_use_custom_prefix":"0",
"comboprefix":"",
"combojoins":"",
"comboparent":"",
"default":""
}
],
"extended":{
"migx_add":"Adicionar C\u00f3digo Postal",
"disable_add_item":"",
"add_items_directly":"",
"formcaption":"C\u00f3digo Postal - [[+CP4]]-[[+CP3]] [[+CPALF]]",
"update_win_title":"Gerir C\u00f3digos Postais",
"win_id":"ctt_codigos_postais",
"maxRecords":"",
"addNewItemAt":"bottom",
"media_source_id":"",
"multiple_formtabs":"",
"multiple_formtabs_label":"",
"multiple_formtabs_field":"",
"multiple_formtabs_optionstext":"",
"multiple_formtabs_optionsvalue":"",
"actionbuttonsperrow":5,
"winbuttonslist":"cancel||done",
"extrahandlers":"this.resetWinPosition||this.update||this.handleColumnSwitch||this.csvExport",
"filtersperrow":5,
"packageName":"ctt",
"classname":"CttCodigosPostais",
"task":"",
"getlistsort":"pos",
"getlistsortdir":"ASC",
"sortconfig":"",
"gridpagesize":50,
"use_custom_prefix":"0",
"prefix":"",
"grid":"dragdrop",
"gridload_mode":2,
"check_resid":1,
"check_resid_TV":"",
"join_alias":"",
"has_jointable":"yes",
"getlistwhere":"",
"joins":"",
"hooksnippets":"",
"cmpmaincaption":"CTT - C\u00f3digos Postais",
"cmptabcaption":"C\u00f3digos Postais",
"cmptabdescription":"Gerir C\u00f3digos Postais",
"cmptabcontroller":"ctt_codigos_postais",
"winbuttons":"",
"onsubmitsuccess":"",
"submitparams":""
},
"columns":[
{
"MIGX_id":2,
"header":"ID",
"dataIndex":"id",
"width":25,
"sortable":true,
"show_in_grid":0,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":3,
"header":"Dist Cod",
"dataIndex":"DD",
"width":"",
"sortable":1,
"show_in_grid":"0",
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":23,
"header":"Distrito",
"dataIndex":"DD_DESIG",
"width":"",
"sortable":1,
"show_in_grid":1,
"customrenderer":"",
"renderer":"this.renderChunk",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"[[migxLoopCollection?\n&packageName=`ctt`\n&classname=`CttDistritos`\n&joins=``\n&where=`{\"DD\":\"[[+DD]]\"}`\n&tpl=`@CODE:[[+DESIG]]`\n&outputSeparator=``\n&debug=`0`]]",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":24,
"header":"Conc Cod",
"dataIndex":"CC",
"width":"",
"sortable":1,
"show_in_grid":"0",
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":3,
"header":"Concelho",
"dataIndex":"CC_DESIG",
"width":"",
"sortable":1,
"show_in_grid":1,
"customrenderer":"",
"renderer":"this.renderChunk",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"[[migxLoopCollection?\n&packageName=`ctt`\n&classname=`CttConcelhos`\n&joins=``\n&where=`{\"DD\":\"[[+DD]]\",\"CC\":\"[[+CC]]\"}`\n&tpl=`@CODE:[[+DESIG]]`\n&outputSeparator=``\n&debug=`0`]]",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":20,
"header":"Localidade",
"dataIndex":"LOCALIDADE",
"width":"",
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":4,
"header":"Cod. Art\u00e9ria",
"dataIndex":"ART_COD",
"width":"",
"sortable":1,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":5,
"header":"Art. Tipo",
"dataIndex":"ART_TIPO",
"width":"",
"sortable":1,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":6,
"header":"1\u00aa Prep.",
"dataIndex":"PRI_PREP",
"width":"",
"sortable":1,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":6,
"header":"Art. Titulo",
"dataIndex":"ART_TITULO",
"width":"",
"sortable":1,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":7,
"header":"2\u00aa Prep.",
"dataIndex":"SEG_PREP",
"width":"",
"sortable":1,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":8,
"header":"Art. Desig.",
"dataIndex":"ART_DESIG",
"width":"",
"sortable":1,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":9,
"header":"Art. Local",
"dataIndex":"ART_LOCAL",
"width":"",
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":14,
"header":"Tro\u00e7o",
"dataIndex":"TRO\u00c7O",
"width":"",
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":15,
"header":"Porta",
"dataIndex":"PORTA",
"width":"",
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":16,
"header":"Cliente",
"dataIndex":"CLIENTE",
"width":"",
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":17,
"dataIndex":"CP4",
"header":"CP4"
},
{
"MIGX_id":18,
"dataIndex":"CP3",
"header":"CP3"
},
{
"MIGX_id":19,
"header":"Des. Postal",
"dataIndex":"CPALF",
"width":"",
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":10,
"header":"Ordem",
"dataIndex":"pos",
"width":30,
"sortable":true,
"show_in_grid":1,
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
},
{
"MIGX_id":11,
"header":"Activo",
"dataIndex":"published",
"width":45,
"sortable":"false",
"show_in_grid":1,
"customrenderer":"",
"renderer":"this.renderSwitchStatusOptions",
"clickaction":"switchOption",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":[
{
"MIGX_id":1,
"name":"unpublished",
"use_as_fallback":1,
"value":"0",
"clickaction":"switchOption",
"handler":"",
"image":"assets\/components\/migx\/style\/images\/cb_empty.png"
},
{
"MIGX_id":2,
"name":"published",
"use_as_fallback":"",
"value":1,
"clickaction":"switchOption",
"handler":"",
"image":"assets\/components\/migx\/style\/images\/cb_ticked.png"
},
{
"MIGX_id":3,
"name":"unpublished",
"use_as_fallback":"",
"value":"0",
"clickaction":"switchOption",
"handler":"",
"image":"assets\/components\/migx\/style\/images\/cb_empty.png"
}
],
"editor":""
},
{
"MIGX_id":12,
"header":"deleted",
"dataIndex":"deleted",
"width":"",
"sortable":true,
"show_in_grid":"0",
"customrenderer":"",
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":"",
"editor":""
}
],
"category":""
}
What am I doing wrong?
On top of this, how can I have combobox 2 depend on combobox 1 selection? I tried to use comboparent but without success as well.
Thanks all in advance