gettting problem with edit by cell

Hi Isomorphic

I am trying to create dynamic listgrid with editing feature. Here I am using
editEvent: “click”, it is working fine. But it is giving editable textboxes to all the Columns in a row. Actually, I need to edit single cell at a time. I have tried with editByCell: true. With this, I am unable to move cursor to the next cell(after edit) using keyboard navigation keys. If I do so it is giving an error like “this.getOperation(_1) has no properties”.

I need to Create dynamic listgrid with editing feature like excell sheet.please guideme regarding this.

Thanks & regards,
Eswar C

Hi Eswar,

Keyboard navigation works normally in the online examples and SDK examples that use editByCell. Please see the Debugging topic for the next steps you should take, and the information you should provide to allow others to help you.

editByCell is givig problem

Hi Isomorphic,

I need to edit single cell at a time. I have tried with editByCell: true. With this, I am unable to edit next cells by using navigation keys(arrow keys).

If I do so it is giving an error like “this.getOperation(_1) has no properties”.
why this error will come and how to solve this?.

Thanks & regards,
Eswar C

Hi Eswar,

Did you miss the previous response? It was:

edit cell error

Hi Isomorphic

when I tried to edit listgrid using Keyboard navigation I am getting error Like this.getOperation(_1) has no properties. why this error comes and what is the solution for this?. If I press enter key it works but if I use Keyboard navigation it is giving problem.The listgrid is databinded.

function CreateDynamicGrid()
{
isc.ListGrid.create({ ID: "listgrid1",
                            top:"24%",
                            left:95, 
                            headerHeight:40,
                            width:"87%",
                            height:"71%", 
                            border:"0",
                            bodyBackgroundColor:"#808080",
                            canSort:false,
                            showSortArrow:"none", 
                            showFilterEditor:false, 
                            sortDirection:false,
                            autoDraw:true,
                            showAllRecords:true,
                            align:"center",
                            dataSource:Getrecords,
                            fields:getheader,
                            baseStyle: "myBoxedAlternateGridCell",
                            showHeader:true,
                            editEvent: "click",
                            canEdit: true,
                            editByCell: true,
                            autoSaveEdits:false,

       });


 editorExit:function(editCompletionEvent, record, newValue, rowNum, colNum) 
                           {
//calling webservice for save edited data
                                                    
                           }
       
    return "listgrid1";
    


}

fields and data sources are generated dynamically. this listgrid is kept within a function. whenever I need this list grid , I will call this function by sendig different values to the parameters to get fieldname and data sources on each time. Now I need to edit this grid using editByCell: true. I think this is enough Information to help.

Thanks & regards.
Eswar C

Be sure to actually read the Debugging topic. You continue to provide too little information for anyone to help you. The information you should provide is spelled out in detail in the Debugging topic.

Hi Isomorphic

I think the given information is enough to you to help. Please Create the listgrid and try to edit the cell by using editByCell: true,after editing the cell if U try to press navigation key it will give an error like “this.getOperation(_1) has no properties”.

Getrecords, is the variable which is having data (in the form of table with headers same as the fields:gerheader array) of the listgrid.

and please let me know further what type of information you need.

Thanks and regards

Eswar

No, sorry, that’s not enough information for anyone - Isomorphic or others - to reproduce your problem. If you would please, please read the Debugging chapter, you will find a clear explanation of what constitutes an actionable issue report.

For starters, you need to include your web service, dataSource, and fields definition, so that the code can actually be run. The Debugging chapter also instructs you to include stack traces from IE and Firefox if you are getting a JS error.

Please either provide appropriate information or stop posting. Many people subscribe to this forum.

Hi Isomorphic

This is the complete code

GetCategoryds=GradeService.getFetchDS("getdata_details", null, { recordXPath:"//Table" });


function get_Dynamic_lg_summary_data()
{
GradeService.callOperation( 
                                "Getnum", // operation name 
                                {NumID:NumID,},
                                "//Table1", //XPath, Type, or ElementName to extract result
                                "getlistgridData(data)"// script to execute when operation returns
                                 );                                
}



function getlistgridData(data)
{
    dy_lg_header_data=data;   //getting data for header localy
    DynamicGridFields(data);     //getting header
    CreateDynamicGrid()    //creating listgrid
    //filling the data 
    listgrid1.fetchData({Class:Class});			
 
}



function DynamicGridFields(data)
{
   dy_lg_header.push({name:"StudentName", title:"Name", width:150 });

 for (i=0; i<dylgheader_data.length; i++)
    {

var x="C" +dylgheader_data[i].studID+i;
   
            monname= getmonthname(dylgheader_data[i].DateDue);

 getheader.push({name:x,align:"center",   canEdit:true, editEvent:"click", modalEditing:true, width:50,title:getheader_data[i].Title});
      

}
 


function CreateDynamicGrid()
{
isc.ListGrid.create({ ID: "listgrid1",
                            top:"24%",
                            left:95, 
                            headerHeight:40,
                            width:"87%",
                            height:"71%", 
                            border:"0",
                            bodyBackgroundColor:"#808080",
                            canSort:false,
                            showSortArrow:"none", 
                            showFilterEditor:false, 
                            sortDirection:false,
                            autoDraw:true,
                            showAllRecords:true,
                            align:"center",
                            dataSource:Getrecords,
                            fields:getheader,
                            baseStyle: "myBoxedAlternateGridCell",
                            showHeader:true,
                            editEvent: "click",
                            canEdit: true,
                            editByCell: true,
                            autoSaveEdits:false,

       });


 editorExit:function(editCompletionEvent, record, newValue, rowNum, colNum) 
                           {
//calling webservice for save edited data
                                                    
                           }


       
    return "listgrid1";
    


}

here I am showing how the dynamic listgrid has been created.Please gothrough carefully. Here I am abel to edit the listgrid cells randomly. The problem is, if I use Keyboard navigation after edit insted of an enter key, it gives an error “this.getOperation(_1) has no properties”. I think This is enough information required.(and also we are using webservices, backend Database which supports this).

thanks and regards
Eswar C

Astonishing. All we can do is urge you, a fifth time, to read the Debugging topic. What you have provided is not even close to a runnable standalone test case, as it relies on several methods and variables that are not shown, including, critically, a DataSource definition, as well as a WSDL file which is not shown. You also continue to refuse to provide stack traces for Internet Explorer or Firebug.

Again, you have not provided information that would enable anyone to help you. Until you do, you will not receive further responses from Isomorphic on this issue. Good luck.

Hi Isomorphic,

Here I am giving LOG MESSAGES

12:44:31.046:INFO:Log:initialized
12:44:37.015:WARN:Log:ClassFactory.addGlobalID: ID:‘dynfMnGb_gradcri’ for object ‘[DynamicForm ID:dynfMnGb_gradcri]’ collides with ID of existing object ‘[DynamicForm ID:dynfMnGb_gradcri]’. The pre-existing widget will be destroyed.
12:44:37.015:WARN:Log:ClassFactory.addGlobalID: ID:‘lgMnGb_gradcri’ for object ‘[ListGrid ID:lgMnGb_gradcri]’ collides with ID of existing object ‘[ListGrid ID:lgMnGb_gradcri]’. The pre-existing widget will be destroyed.
12:44:38.625:INFO:Log:isc.Page is loaded
12:46:42.734:WARN:Log:ClassFactory.addGlobalID: ID:‘lgMnGb_main’ for object ‘[ListGrid ID:lgMnGb_main]’ collides with ID of existing object ‘[ListGrid ID:lgMnGb_main]’. The pre-existing widget will be destroyed.
12:46:43.843:WARN:Log:TypeError: this.parentElement has no properties
12:47:40.140:WARN:Log:ClassFactory.addGlobalID: ID:‘lgMnGb_main’ for object ‘[ListGrid ID:lgMnGb_main]’ collides with ID of existing object ‘[ListGrid ID:lgMnGb_main]’. The pre-existing widget will be destroyed.
12:48:02.671:INFO:gridEdit:lgMnGb_main:Starting editing at row 6, colNum 1
12:48:02.687:INFO:gridEdit:lgMnGb_main:establishing new edit session at row: 6
12:48:22.937:INFO:gridEdit:lgMnGb_main:cellEditEnd: ending editing, completion event: enter
12:48:40.046:INFO:gridEdit:lgMnGb_main:Starting editing at row 7, colNum 1
12:48:40.062:INFO:gridEdit:lgMnGb_main:establishing new edit session at row: 7
12:48:45.968:INFO:gridEdit:lgMnGb_main:Saving newValues ‘{C1C12C0: “15”}’
12:48:46.015:WARN:Log:TypeError: this.getOperation(_1) has no properties

LOG MESSAGES ENDS HERE

MOZILLA FIREBUG ERROR

this.getOperation(_1) has no properties
getSoapMessage(undefined)ISC_DataBinding.j… (line 337)
getSoapEnd(Object operationType=update dataSource=isc_DataSource_239)ISC_DataBinding.j… (line 202)
getSoapEnd(Object operationType=update dataSource=isc_DataSource_239, undefined)ISC_DataBinding.j… (line 202)
getXMLRequestBody(Object operationType=update dataSource=isc_DataSource_239, undefined)ISC_DataBinding.j… (line 195)
getServiceInputs(Object operationType=update dataSource=isc_DataSource_239)ISC_DataBinding.j… (line 182)
getDataFormat(Object operationType=update dataSource=isc_DataSource_239, “lgMnGb_main.$29h(dsResponse, dsRequest)”)ISC_DataBinding.j… (line 173)
performDSOperation(“update”, Object C1C12C0=15, “lgMnGb_main.$29h(dsResponse, dsRequest)”, Object willHandleError=true showPrompt=false)ISC_DataBinding.j… (line 254)
fetchData(Object C1C12C0=15, “lgMnGb_main.$29h(dsResponse, dsRequest)”, Object willHandleError=true showPrompt=false)ISC_DataBinding.j… (line 249)
saveEditedValues(7, 1, Object C1C12C0=15, Object diffgr:id=ThoughtFocus8 msdata:rowOrder=7, “_1”, “arrow_down”, undefined)ISC_Grids.js (line 707)
saveEdits(“arrow_down”, undefined, 7, undefined)ISC_Grids.js (line 697)
saveAndEditNewCell(8, 1, “arrow_down”)ISC_Grids.js (line 671)
27p(“arrow_down”, 7, 1, 8, 1)ISC_Grids.js (line 540)
getEditRow(“arrow_down”, undefined)ISC_Grids.js (line 652)
editorKeyPress([TextItem ID:isc_TextItem_351 name:C1C12C0] ns=Object, “Arrow_Down”, null)ISC_Grids.js (line 359)
itemKeyPress([TextItem ID:isc_TextItem_351 name:C1C12C0] ns=Object, “Arrow_Down”, null)ISC_Grids.js (line 344)
17p([TextItem ID:isc_TextItem_351 name:C1C12C0] ns=Object, [DynamicForm ID:isc_DynamicForm_313] ns=Object canSelectText=true autoDraw=false, “Arrow_Down”, null)ISC_Forms.js (line 538)
handleEditorExit(Object DOMevent=Event mousemove x=1262 y=859 screenX=1262, Object keyName=Arrow_Down)ISC_Forms.js (line 537)
bubbleEvent([TextItem ID:isc_TextItem_351 name:C1C12C0] ns=Object, “keyPress”, Object keyName=Arrow_Down, undefined)ISC_Core.js (line 763)
kd(keypress charCode=0, keyCode=40, undefined)ISC_Core.js (line 612)
kd(keypress charCode=0, keyCode=40)ISC_Core.js (line 610)
dispatch(function(), keypress charCode=0, keyCode=40)ISC_Core.js (line 785)
doEval(keypress charCode=0, keyCode=40)ISC_Core.js (line 54)
[Break on this error] return _3},getSoapMessage:function(_1){var _2=this.getMessageSerializer(_1.wsOpe…

let me know if you want more information.

Thanks and regards
Eswar C

The problem is most likely somewhere in your DataSource definition, which you still have not shared.

Hi Isomorphic

I got solution for the above problem. Only I need to add Attribute enterKeyEditAction:“nextRow”, to the listgrid and I need to set the functionality for the event (editCompletionEvent==“enter”).

Now I need to change the Title of the check box dynamically(during runtime). If their is any method please guide me.

Thanks & Regards
Eswar C

How to handle recordDoubleClick without lunch recordClick in ListGrid

Hi iam using double click and single click

how to distinguish between two type of click?

Double click is working with mizilla browser but not in IE browser.

Iam using

doubleClickDelay:function()
{

                        this.Timer.setTimeout(70);
                        },

cellDoubleClick:function(record,rowNum,colNum)
{
alert(“hi it is double click”);

                        },

cellClick:function(record,rowNum,colNum)
{
alert(“hi it is single click”);
},

can u please guide regarding this.

  1. doubleClickDelay should be a number, not a function

  2. don’t use alert() to troubleshoot, use logging as indicated in the Debugging topic. alert() will interfere with event timing and order and cause platform-specific problems.

Doubleclickdelay

Hi Isomorphic,

Please let me know the Correct syntax how to use doubleClickDelay with Timer.setTimeout. Now i am not able to distinguish between double click and single click. when I try to do double click, the event catches single click and it go to cell edit mode(single click is driven for cell edit).

Regards
Eswar C