Hi all,
I have an ajax callback which throws me following error:
The corresponding code is:
I only get the error after the "Reagent Lot" (the first) Confirmation message. I still can select OK. If the script goes to the second confirmation message I do not get an error and the Item can be deleted.
I even get the same error message when I copy the second ajax call and paste it over the first, as I know this one works:
I copied the whole code from a second grid where I have no such problem and it runs through both defined ajax functions without any error.
Maybe I am not seeing something and as 2heads are better than one, maybe one of you see what I did wrong.
Thank you!
I have an ajax callback which throws me following error:
Fatal error running a5_ajax_grid(): Property not found rtc.rowData[] subelement not found. on line 4685 in 100052f:pl
Code:
var rowNum = {grid.object}._selectedRow; var antigenLotID = {grid.object}.getValue('G','ANTIGEN_LOT_ID',rowNum); //alert('rownum: '+rowNum); if(antigenLotID == 0 || antigenLotID == ''){ if(confirm('Are you sure you want to delete this Reagent Lot?')){ {grid.Object}.ajaxCallback('G',rowNum,'deleteReagentLot','','_getData=true'); } }else{ if(confirm('Are you sure you want to delete this Antigen Lot and the corresponding Reagent Lot?')){ {grid.Object}.ajaxCallback('G',rowNum,'deleteAntigenLot','','_getData=true'); } } {grid.Object}.refresh();
I even get the same error message when I copy the second ajax call and paste it over the first, as I know this one works:
Code:
var rowNum = {grid.object}._selectedRow; var antigenLotID = {grid.object}.getValue('G','ANTIGEN_LOT_ID',rowNum); //alert('rownum: '+rowNum); if(antigenLotID == 0 || antigenLotID == ''){ if(confirm('Are you sure you want to delete this Reagent Lot?')){ {grid.Object}.ajaxCallback('G',rowNum,'deleteAntigenLot','','_getData=true'); } }else{ if(confirm('Are you sure you want to delete this Antigen Lot and the corresponding Reagent Lot?')){ {grid.Object}.ajaxCallback('G',rowNum,'deleteAntigenLot','','_getData=true'); } } {grid.Object}.refresh();
I copied the whole code from a second grid where I have no such problem and it runs through both defined ajax functions without any error.
Maybe I am not seeing something and as 2heads are better than one, maybe one of you see what I did wrong.
Thank you!
Comment