I'm using MigxLoopCollection to populate a listbox on a Migx Formtab. There are 4 rows in the table (term_calendar) and only the last two are being returned (there is no where clause). I cannot be 100% certain, but I think this has only started happening since I upgraded to the latest version of Migx (2.9.0).
{
"formtabs":[
{
"MIGX_id":12,
"caption":"Invoice Header",
"print_before_tabs":"0",
"fields":[
{
"MIGX_id":58,
"field":"user_id",
"caption":"Name",
"description":"",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"listbox",
"validation":"",
"configs":"",
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"@CHUNK getParentList",
"default":"",
"pos":1
},
{
"MIGX_id":59,
"field":"term_id",
"caption":"Term",
"description":"",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"listbox",
"validation":"",
"configs":"",
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"@CHUNK getTermList",
"default":"",
"useDefaultIfEmpty":"0",
"pos":2
},
{
"MIGX_id":69,
"field":"invoice_date",
"caption":"Invoice Date",
"description":"",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"date",
"validation":"",
"configs":"",
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"pos":3
}
],
"pos":1
},
{
"MIGX_id":13,
"caption":"Invoice Lines",
"print_before_tabs":"0",
"fields":[
{
"MIGX_id":66,
"field":"InvoiceLines",
"caption":"Invoice lines",
"description":"",
"description_is_code":"0",
"inputTV":"",
"inputTVtype":"migxdb",
"validation":"",
"configs":"InvoiceLines",
"restrictive_condition":"",
"display":"",
"sourceFrom":"config",
"sources":"",
"inputOptionValues":"",
"default":"",
"pos":1
}
],
"pos":2
}
],
"contextmenus":"update||remove",
"actionbuttons":"addItem||createinvoices||sendinvoices",
"columnbuttons":"update||remove",
"filters":"",
"extended":{
"migx_add":"New Invoice",
"disable_add_item":"",
"add_items_directly":"",
"formcaption":"Create Invoices",
"update_win_title":"Create Invoices",
"win_id":"CreateInvoices",
"maxRecords":"",
"addNewItemAt":"bottom",
"multiple_formtabs":"",
"multiple_formtabs_label":"",
"multiple_formtabs_field":"",
"multiple_formtabs_optionstext":"",
"multiple_formtabs_optionsvalue":"",
"actionbuttonsperrow":4,
"winbuttonslist":"",
"extrahandlers":"",
"filtersperrow":4,
"packageName":"add",
"classname":"Invoice",
"task":"",
"getlistsort":"",
"getlistsortdir":"",
"sortconfig":"",
"gridpagesize":"",
"use_custom_prefix":1,
"prefix":"add_",
"grid":"",
"gridload_mode":1,
"check_resid":1,
"check_resid_TV":"",
"join_alias":"",
"has_jointable":"yes",
"getlistwhere":"",
"joins":[
{
"alias":"Profilep",
"classname":"modUserProfile",
"on":"Profilep.internalKey=Invoice.user_id"
},
{
"alias":"Termdesc",
"classname":"TermCalendar",
"on":"Termdesc.id=Invoice.term_id"
}
],
"cmpmaincaption":"Create Invoices",
"cmptabcaption":"Create Invoices",
"cmptabdescription":"Generate Invoices for review and delivery",
"cmptabcontroller":"",
"winbuttons":"",
"onsubmitsuccess":"",
"submitparams":""
},
"columns":[
{
"MIGX_id":1,
"header":"Inv. No.",
"dataIndex":"id",
"width":12,
"sortable":"false",
"show_in_grid":1,
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":""
},
{
"MIGX_id":2,
"header":"Name",
"dataIndex":"Profilep_fullname",
"width":40,
"sortable":"false",
"show_in_grid":1,
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":""
},
{
"MIGX_id":4,
"header":"Invoice total",
"dataIndex":"balance",
"width":16,
"sortable":"false",
"show_in_grid":1,
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":""
},
{
"MIGX_id":5,
"header":"Term",
"dataIndex":"Termdesc_year",
"width":15,
"sortable":"false",
"show_in_grid":1,
"renderer":"this.renderChunk",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"Term [[+Termdesc_term]], [[+Termdesc_term_year]]",
"renderoptions":""
},
{
"MIGX_id":3,
"header":"Date",
"dataIndex":"invoice_date",
"width":20,
"sortable":"false",
"show_in_grid":1,
"renderer":"",
"clickaction":"",
"selectorconfig":"",
"renderchunktpl":"",
"renderoptions":""
}
]
}
What am I missing please?