Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    ok - understood. I have the following code that attempts to modify the data but I do not see it translating on the screen (the recordCustomStyle) - is this how I am supposed to do it? (sorry)

    Code:
    	isc.DataSource.create({
           ID:"processData",
           fields: [{name: "cwPK__", primaryKey:true}, {name:"numProcess"}, {name:"numProcess$DF"}],
           clientOnly:true,
           cacheData:data,
    	   transformResponse:function(dsResponse, dsRequest, data){
    	   this.Super("transformResponse", [dsResponse, dsRequest, data]);
    		var d = dsResponse.data;
    		if(d['numProcess'] == "2")
    			d['rowStyle'] = "myHighGridCellNew";
    			
    		dsResponse.data = d;
    		
    		return dsResponse;
    	   }
    	  
       });

    Comment


      #17
      Modifying the data directly within transformResponse should work.

      However - since customizing the client-only dataSource is proving tricky and holding up getting this resolved, let's try something slightly simpler:

      - Create a simplified version of your app with the absolute minimal UI required to reproduce the problem. Ideally this'll be just a ListGrid definition with the few properties you need. Bind this to your really application dataSource, and ensure you can reproduce the problem. (This is a standalone test case other than the DataSource logic)

      - Go through the steps to reproduce the problem. Ensure you have the developer console window open and "Track RPC's" enabled. For each request that hits the server, capture the response. (This will likely be just a few requests - an initial fetch and your update from the edit, perhaps).

      - Show us:
      -- This simplified test UI
      -- Exact set of steps you took on it to reproduce the problem, from loading the page on.
      -- ds.xml file(s) for any DataSources [note that you can clean out any sensitive information such as server side configuration - we really just need the basic definition - the fields etc]
      -- The responses for each DSRequest that gets issued as you go through the steps (again, remove or sanitize any sensitive information, or replace with dummy information if necessary).

      This should give us enough to build a running test case and reproduce the problem on our end

      Regards
      Isomorphic Software

      Comment


        #18
        Sorry - I ran out of time and had to find a workaround for my scenario. I will revisit this soon.

        Comment

        Working...
        X