What does your server-side code render for javascript (open the page in a 
browser, view source, and copy the javascript)?

On Monday, March 10, 2014 8:05:33 PM UTC-4, Tina Geist wrote:
>
> I have code that has been working , that has recently stopped working.
>
> It is now showing the error :  Invalid Column index undefined. Should be 
> an integer in range [0-1]
>
> There has been no change to the logic to cause this error.
>
> Occurs for all tables created in the report .
>
> Code relating to one table for "Communication" area of the report is as 
> follows
>
>      /** COMMUNICATION  Start **/
>             GoogleViz gvCommunication = new GoogleViz();
>             gvCommunication.cols = new list<GoogleViz.col> { 
>                 new GoogleViz.Col('col4','Score','number'),
>                 new GoogleViz.Col('col1','Description','string')
>             };
>            
>              List<String> commentsAndStrategies = new List<String>();
>              for(Integer i=1; i<=4; i++){
>
>                 String score = 
> String.valueOf(thisClient.get('CommQ'+i+'__c'));
>                 if(i == 4)
>
>                     
> commentsAndStrategies.add((String.valueOf(thisClient.get('CommQ'+i+'Comments__c'))
>  == null) ? i+'. ' : i+'. 
> '+String.valueOf(thisClient.get('CommQ'+i+'Comments__c')) );
>                 else
>
>                     commentsAndStrategies.add(( 
> String.valueOf(thisClient.get('CommQ'+i+'Comment__c')) == null) ? i+'. ' : 
> i+'. '+String.valueOf(thisClient.get('CommQ'+i+'Comment__c')) );
>                 
>                 GoogleViz.row rowComm = new GoogleViz.row();             
>
>                 rowComm.cells.add(new GoogleViz.cell(Integer.valueOf(score)));
>
>                 rowComm.cells.add(new 
> GoogleViz.cell(DescriptionMap.get('1_'+i+'_'+score)));         
>                 gvCommunication.addRow(rowComm);
>              }        
>
>              
> System.debug('***commentsAndStrategies.size():'+commentsAndStrategies.size());
>
>              gvTables.add(new gvTable('COMMUNICATION', 
> gvCommunication.toJsonString(), commentsAndStrategies));
>         /** COMMUNICATION  End **/     
>         
>
>  
>
>  Full details attached
>
>
>  
>
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to