• Yash
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 16
    Questions
  • 8
    Replies
Hi,
 
I try to make dinamicaly a custom component in order to display an outputLabel and an outputField from a single vf tag.
Here is the code I use in the custom component called 'detailField':
 
Code:
 <apex:component>
    <apex:attribute name="label" type="String" required="true" description=""/>
    <apex:attribute name="value" type="SObject" required="true" description=""/>
    <apex:attribute name="style" type="String" required="true" description=""/>
    
    <apex:outputLabel value="{!label}" styleClass="{!style}"/>
    <apex:outputField value="{!value}"/>
</apex:component>
 
I get an error when I save: Error: Could not resolve the entity from <apex:outputField> value binding '{!value}'. outputField can only be used with SObject fields.
 
Can someone provide me a solution?
 
Thanks
adrian
 
 
 
Hi,

I want to display the data grid on visual force page using AJAX and EXT JS library.

Can anybody has solution for this?
Hi,

I am getting following exception:

System.Exception: Too many SOQL queries: 101

And body as solution for this?


Thanks
Yash



Hi,

<h1><apex:outputText style="font-style:bold" value="To Date"></apex:outputText></h1>

The above line is working properly in Mozila, but it is not displaying the test in IE.

Can any body help me?

Thanks in advance.
Yash

Hi,
 
I am able to generate the pie chart in visual force page using plotkit.
 
 
 
Code:
<apex:page >
        <apex:includeScript value="{!URLFOR($Resource.mochikit_1_3_1_zip,'/MochiKit-1.3.1/lib/MochiKit/MochiKit.js')}"/>
        <apex:includeScript value="{!URLFOR($Resource.plotkit_0_9_1_zip,'/plotkit-0.9.1/PlotKit/Base.js')}"/>
        <apex:includeScript value="{!URLFOR($Resource.plotkit_0_9_1_zip,'/plotkit-0.9.1/PlotKit/Layout.js')}"/>
        <apex:includeScript value="{!URLFOR($Resource.plotkit_0_9_1_zip,'/plotkit-0.9.1/PlotKit/Canvas.js')}"/>
        <apex:includeScript value="{!URLFOR($Resource.plotkit_0_9_1_zip,'/plotkit-0.9.1/PlotKit/SweetCanvas.js')}"/>
        <div><canvas id="graph" height="300" width="300">Graph</canvas></div>
        <script type="text/javascript">
            function drawGraph(){
                var options={"IECanvasHTC": "/plotkit/iecanvas.htc",
                    "colorScheme": PlotKit.Base.palette(PlotKit.Base.baseColors()[0]),
                    "padding": {left: 0, right: 0, top: 10, bottom: 30},
                    "xTicks": [ {v:0,label:"ZERO"},{v:1,label:"ONE"},{v:2,label:"TWO"},{v:3,label:"THREE"},{v:4,label:"FOUR"}],
                    "drawYAxis": false};
                var layout = new PlotKit.Layout("pie", options);
                layout.addDataset("sqrt", [[0, 0], [1, 1], [2, 1.414], [3, 1.73], [4, 2]]);
                layout.evaluate();
                var canvas = MochiKit.DOM.getElement("graph");
                var plotter = new PlotKit.SweetCanvasRenderer(canvas, layout, options);
                plotter.render();
            }
            MochiKit.DOM.addLoadEvent(drawGraph);
        </script>
</apex:page>

 
Thanks
Yash
Hi Experts,

Can someone pl point us, on how to integrate dojo 1.1.1 within VF pages? Does VF has in-built support for dojo1.1.x. Looks like Force.com used to support 0.9 version of dojo natively. Is this still continued?

We want to use charting functionality extended by dojo within VF.

Any help would be appreciated. Thanks.