Yes, that is correct.  The "f" parameter is for specifying the formatted 
value of the cell (it specifies what gets displayed to the user).  If you 
set "f", then "v" will not be displayed - you have to set "f" to whatever 
you want the user to see.

On Friday, January 24, 2014 11:26:34 AM UTC-5, TheInnovator wrote:
>
> The (f:parameter) shows but the (v:parameter) does not.
>
> Here's the list I'm reading from and as you will see the "ReportTo" shows 
> up but not the Name.
> http://isaac.issharepoint.com/examples/Lists/OrgChart/AllItems.aspx
>
> I changed it to "ReportTo" to make more sense.
>
>
> On Fri, Jan 24, 2014 at 10:56 AM, asgallant 
> <[email protected]<javascript:>
> > wrote:
>
>> Setting the formatted value (the "f" parameter) overrides the default 
>> value, so you have to include whatever you want displayed in the formatted 
>> value, eg:
>>
>> $(xData.responseXML).SPFilterNode('z:row').each(function() {
>>     //OrgName=$(this).attr("ows_OrgName"); 
>>     var name = {
>>         v: $(this).attr("ows_Name"),
>>         f: "<font color='red'>" + $(this).attr("ows_Name") + "</font>"
>>     };
>>
>>     //alert("name: "+name);
>>     ReportTo = $(this).attr("ows_Title");
>>     //ReportTo = $(this).attr("ows_ReportToOrg");
>>
>>     ToolTip = $(this).attr("ows_ToolTip");
>>
>>     data.addRow([name, ReportTo, ToolTip]);
>> });
>>
>>
>> On Friday, January 24, 2014 10:11:13 AM UTC-5, TheInnovator wrote:
>>
>>> That fixed the error but now the "Name" does not show.
>>>
>>>
>>> On Fri, Jan 24, 2014 at 9:42 AM, Sergey Grabkovsky <[email protected]>wrote:
>>>
>>>> You are quoting the entire object. Your code should look more like this:
>>>> $(xData.responseXML).SPFilterNode('z:row').each(function() {
>>>>   //OrgName=$(this).attr("ows_OrgName");  
>>>>   var name = {
>>>>     v: $(this).attr("ows_Name"),
>>>>
>>>>     f: "<font color='red'>test</font>"
>>>>   };
>>>>
>>>>   //alert("name: "+name);
>>>>   ReportTo = $(this).attr("ows_Title");
>>>>   //ReportTo = $(this).attr("ows_ReportToOrg");
>>>>
>>>>   ToolTip = $(this).attr("ows_ToolTip");
>>>>
>>>>   data.addRow([name, ReportTo, ToolTip]);
>>>> });
>>>>
>>>> - Sergey
>>>>
>>>>
>>>> On Fri, Jan 24, 2014 at 8:06 AM, TheInnovator <[email protected]>wrote:
>>>>
>>>>>  I am trying to implement a Google Org chart and add the position as 
>>>>> you see here
>>>>> https://developers.google.com/chart/interactive/docs/gallery/orgch
>>>>> art#Data_Format
>>>>> (Mike 'President' and Jim 'Vice President')
>>>>>
>>>>> When I try the same I get the following
>>>>> http://isaac.issharepoint.com/examples/WebPartPages/BuildOrgChart.aspx
>>>>>
>>>>> Here's a snippet of my code:
>>>>> I am using it in a SharePoint page
>>>>>
>>>>> $(xData.responseXML).SPFilterNode('z:row').each(function() {              
>>>>>                                                                           
>>>>>               
>>>>>                                   //OrgName=$(this).attr("ows_OrgName");  
>>>>>                                   name = 
>>>>> "{v:"+$(this).attr("ows_Name")+", f:<font color='red'>test</font>},'',''";
>>>>>
>>>>>                                   //alert("name: "+name);
>>>>>                                   ReportTo = $(this).attr("ows_Title");
>>>>>                                   //ReportTo = 
>>>>> $(this).attr("ows_ReportToOrg");
>>>>>                                   
>>>>>                                   ToolTip = $(this).attr("ows_ToolTip");  
>>>>>                                           
>>>>>                                   data.addRow([name, ReportTo, ToolTip]);
>>>>>                           });
>>>>>                           }       
>>>>>
>>>>>
>>>>> Thanks for any help you can provide       
>>>>>
>>>>>  -- 
>>>>> 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/groups/opt_out.
>>>>>
>>>>
>>>>  -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "Google Visualization API" group.
>>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>>> topic/google-visualization-api/RxjMv-_F0Yc/unsubscribe.
>>>> To unsubscribe from this group and all its topics, 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/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> -- 
>>> -Isaac-
>>>
>>> http://twitter.com/#!/feedy0urmind
>>> You are today where your thoughts have brought you; you will be tomorrow 
>>> where your thoughts take you. 
>>> - James Allen 
>>>
>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google Visualization API" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-visualization-api/RxjMv-_F0Yc/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to 
>> [email protected]<javascript:>
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> -Isaac-
>
> http://twitter.com/#!/feedy0urmind
> You are today where your thoughts have brought you; you will be tomorrow 
> where your thoughts take you. 
> - James Allen 
>

-- 
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/groups/opt_out.

Reply via email to