Hi ,
as subject, i got this error No fields found | fMessage::No fields found fHelpContext::0
and my code that triggered the above error was found during debugging ,
// **Prepare selection table
var data_tableselection ;
data_tableselection = [{"id":0, "name":"","qty1":1.99,"qty":1,"act_type":"","doc_type":"","our_ref_no":"","your_ref_no":""}];
_data = JSON.stringify(data_tableselection) ;
if not self.tableSelection.active then begin //only initialize if not active.
self.tableSelection.Rows := TJSArray(TJSJSON.parseObject(_data));
self.tableSelection.Open; //<====== it throw error after execute open
self.tableSelection.delete ; //delete the only initialized record.
my delphi is version 10.3.2 and the TMS Webcore is version 1.3.6.0
please advice, thanks.
FYI , it looks like my next table which is similar to the above that used to work, when i code like what was mentioned above , but now , it throw error !
asm
data_queue_log = [{"id":0,"date_created":"12/07/2019 14:05:02","res_id":0,"model_name":"nil","temp_id":"nil","temp_id_keyfields":"nil","process_type":"nil","jsonobj_str":"{}"}];
_data = JSON.stringify(data_queue_log) ;
if not self.tableQueue_log.active then begin //only initialize if not active.
self.tableQueue_log.Rows := TJSArray(TJSJSON.parseObject(_data));
self.tableQueue_log.Open; //<<==== here it will trigger the similar No fields found error !
//self.tableQueue_log.delete ; //delete the only initialized record.
Now i stuck , please advice.
Is the returned dataset an empty JSON array?
Please check with the latest version 1.3.6.1 where we applied a change for this specific case.
It is because there have been no FieldDefs added in the dataset. The dataset has become more strict about it. We have added a solution to make it backwards compatible though that will be included in the next update.
Hi, if the next version is not having any tentative release date, is there any temporary solutions, i.e. patching the code so i can carry on with my development? I have used above codes in a lot of my forms and will not be possible to change one by one, please advice? thanks.
You can send an email for getting an incremental source update.