-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
16Questions
-
8Replies
Urgent : Problem while using EXT JS in visualforce.
Yash
-
- Yash
- August 08, 2008
- Like
- 0
- Continue reading or reply
Some row's are readonly and some row's are editable using EXT JS library
I want to display the data using EXT grid, in that grid some row's are readonly and some row's are editable.
Can anybody give me hint or example for this problem?
Thanks in advance.
Thanks & Regards,
Yash
-
- Yash
- August 08, 2008
- Like
- 0
- Continue reading or reply
ColumnModel :Some row's are readonly and some row's are editable, EXT JS library,VF
I want to display the data using EXT grid, in that grid some row's are readonly and some row's are editable.
Can anybody give me hint or example for this problem?
Thanks in advance.
Thanks & Regards,
Yash
-
- Yash
- August 06, 2008
- Like
- 0
- Continue reading or reply
How to display Columns in Column using Ext.grid.ColumnModel on VF page
I want to display the UI as following with help of EXT JS library and visual force page.
Header-1 |
Header-2 |
Header-3 |
Header-4 | |||
Col-1 |
Col-2 |
Col-1 |
Col-2 |
Col-3 |
Col-1 |
Col-1 |
data |
data |
data |
data |
data |
data |
Data |
data |
data |
data |
data |
data |
data |
Data |
Yash
-
- Yash
- August 06, 2008
- Like
- 0
- Continue reading or reply
Using AJAX : Want to get the data from custom objects and display on VisualForce page.
I want to display the data grid on visual force page using AJAX and EXT JS library.
Can anybody has solution for this?
-
- Yash
- August 04, 2008
- Like
- 0
- Continue reading or reply
How to display Tooltip Message on command button of Visual force page
I want to dislay the tooltip message on (mouse over) command button.
Please tell me ,if anybody has the solution with sample code?
Thanks in advance.
Yash
-
- Yash
- August 01, 2008
- Like
- 0
- Continue reading or reply
Problem in trigger when trying to add records in batch
I have written a trigger on(before insert) particular custom object. There is a connecto part(java code), which reads the data from SQL server and write into the custom object. When a one record is inserted at time then trigger is working fine and able to add the records into custom object, but when i am trying to insert the batch of record into custom object, the trigger is not working properly.
trigger locationInsertTrigger on Location__c (before insert) { if (Trigger.isBefore) { if (Trigger.isInsert) { for (Location__c a : Trigger.new) { System.debug('In trigger...a.Retailer_code__c='+a.Retailer_code__c); a.Retailer_Name__c = [Select Account_Name__c from Retailer_Master__c where Account_Key__c =:a.Retailer_code__c ].Account_Name__c; } } } }
Can anybody has solution for this?
Thank you
Yash
-
- Yash
- August 01, 2008
- Like
- 0
- Continue reading or reply
Wants to reterive data from two custom object in single SOQL
I want to reterive the data from two custom objects in a single query.
I tried following snippet.
[select Category_Name__c,Item_Number__c,Item_Description__c,Upc__c,Sellable__c from Item_Master__c I,Category_Master__c C where I.Category_Id__c = C.Category_Id__c ];
But it is giving following error:

Can anybody have solution for this?
Thanks
Yash
-
- Yash
- July 28, 2008
- Like
- 0
- Continue reading or reply
System.Exception: Too many SOQL queries: 101
I am getting following exception:
System.Exception: Too many SOQL queries: 101
And body as solution for this?
Thanks
Yash
-
- Yash
- July 28, 2008
- Like
- 0
- Continue reading or reply
On click of radio button , want to disabled/hide the VF component.
I want to disable or hide 'apex:SelectList' on click of radio button.
Can any body have the solution for this?
Thank you,
Yash
-
- Yash
- July 24, 2008
- Like
- 0
- Continue reading or reply
How to call Visual force page on click of custom button
I want to call the visual force page (i.e ../apex/Item_Master) on click of custom button like we call Custom-S control.
Can any body help me?
Thank you in advance
Yash
-
- Yash
- July 23, 2008
- Like
- 0
- Continue reading or reply
Want to change the combo box value on selection of another combo box in VF
Parent - Category Master
Child - Sub Category Master
Relationship between above custom object is 1:M
I want to display the resepective sub category on selection of the category. I am not able to get the id of selected category and passed it to query to retreive the sub category list.
Code is as follow
<apex:page controller="Item_Master_Controller" sidebar="false" showHeader="true"> <apex:sectionHeader title="Item Master" subtitle="" description="" ></apex:sectionHeader> <apex:form > <apex:pageBlock title=""> <apex:outputPanel id="out1"> <apex:actionstatus id="status1" startText="starting..."> <apex:facet name="stop"> <apex:outputPanel > <h1> <apex:outputText style="font-style:bold" value="{!message}"></apex:outputText> <p/> </h1> </apex:outputPanel> </apex:facet> </apex:actionstatus> </apex:outputPanel> <p/> <h1><apex:outputText style="font-style:bold" value="Select the Category"></apex:outputText></h1> <apex:selectList value="{!selectedCategory}" multiselect="false" size="1"> <apex:selectOptions value="{!category}"/> <apex:actionSupport event="onchange" rerender="changeSubCategory"/> </apex:selectList><p/> <apex:outputPanel id="changeSubCategory"> <h1><apex:outputText style="font-style:bold" value="Select the Sub Category"></apex:outputText></h1> <apex:selectList value="{!selectedSubCategory}" multiselect="false" size="1"> <apex:selectOptions value="{!subCategory}"/> </apex:selectList><p/> </apex:outputPanel> <apex:pageblockButtons > <apex:commandButton value="Submit" action="{!save}" rerender="out1" status="status1"></apex:commandButton> </apex:pageblockButtons> </apex:pageBlock> </apex:form> </apex:page>
public class Item_Master_Controller{ String[] selectedCategory= new String[]{}; String[] selectedSubCategory= new String[]{}; String message=null; String itemName=null; String itemDesc=null; String upc=null; Integer itemNumber; List<Category_Master__c> category; List<Sub_Category_Master__c> subCategory; public PageReference save() { Boolean flag=true; //this.setMessage(String.valueOf(selectedCategory.size())); this.setMessage('in save method...'); return null; } public void setMessage(String message){ this.message=message; } public String getMessage(){ return this.message; } public List<SelectOption> getCategory() { List<SelectOption> options = new List<SelectOption>(); Integer i=0; for(Category_Master__c category : [select Category_Id__c,Category_Name__c from Category_Master__c]) { options.add(new SelectOption(String.valueOf(category.Category_Id__c),category.Category_Name__c)); } return options; } public List<SelectOption> getSubCategory() { List<SelectOption> options = new List<SelectOption>(); Integer catId=-1; if(selectedCategory.size()>=1){ catId=Integer.valueOf(selectedCategory[0]); } Integer i=0; for(Sub_Category_Master__c subCategory : [select Sub_Category_Id__c,Sub_Category_Name__c from Sub_Category_Master__c where Category_Id__c =: catId]) { i++; options.add(new SelectOption(String.valueOf(subCategory.Sub_Category_Id__c),subCategory.Sub_Category_Name__c)); } if(i==0){ options.add(new SelectOption('Zero',String.valueOf(catId))); }else{ options.add(new SelectOption('Not Zero',String.valueOf(catId))); } return options; } public String[] getSelectedCategory() { return selectedCategory; } public void setSelectedCategory(String[] selectedCategory) { this.selectedCategory= selectedCategory; } public String[] getSelectedSubCategory() { return selectedSubCategory; } public void setSelectedSubCategory(String[] selectedSubCategory) { this.selectedSubCategory= selectedSubCategory; } /* public Boolean isPresent(String agentId,String ruleId) { Boolean flag=false; for(AgentRule__c agRule : [select id from AgentRule__c where LP_Agent_Id__c = : agentId and LP_Rule_Id__c =: ruleId]) { flag=true; } return flag; } */ }
Thank you
-
- Yash
- July 22, 2008
- Like
- 0
- Continue reading or reply
apex:outputText and apex:outputLable is not working in IE
<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
-
- Yash
- July 14, 2008
- Like
- 0
- Continue reading or reply
Generated the pie chart in VF page using plotkit
<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
- July 03, 2008
- Like
- 0
- Continue reading or reply
Problem while generating a graph on visual force page using plotkit.
Hi,
The following html code is working fine.
<html>
<head>
<script type="text/javascript" src="E:/Study/plot-kit/plotkit-0.9.1/MochiKit/MochiKit.js"></script>
<script type="text/javascript" src="E:/Study/plot-kit/plotkit-0.9.1/PlotKit/Base.js"></script>
<script type="text/javascript" src="E:/Study/plot-kit/plotkit-0.9.1/PlotKit/Layout.js"></script>
<script type="text/javascript" src="E:/Study/plot-kit/plotkit-0.9.1/PlotKit/Canvas.js"></script>
<script type="text/javascript" src="E:/Study/plot-kit/plotkit-0.9.1/PlotKit/excanvas.js"></script>
<script type="text/javascript" src="E:/Study/plot-kit/plotkit-0.9.1/PlotKit/EasyPlot.js"></script>
<script type="text/javascript" src="E:/Study/plot-kit/plotkit-0.9.1/PlotKit/SweetCanvas.js"></script>
<script language="Javascript">
function drawGraph() {
var layout = new PlotKit.Layout("bar", {});
alert("drawGraph");
layout.addDataset("sqrt", [[0, 0], [1, 1], [2, 1.414], [3, 1.73], [4, 2]]);
alert("A");
layout.evaluate();
alert("B");
var canvas = MochiKit.DOM.getElement("graph");
alert("C");
var plotter = new PlotKit.SweetCanvasRenderer(canvas, layout, {});
alert("D");
plotter.render();
alert("E");
}
function generateGraph(){
drawGraph();
MochiKit.DOM.addLoadEvent(drawGraph);
}
</script>
</head>
<body onload="drawGraph();">
<form name="demoForm">
<div class="demo" id="canvaspie" width="600" height="200">a</div>
<div class="demo" id="canvasline" width="600" height="200">b</div>
<div class="demo" id="canvasbar" width="600" height="200">c</div>
<div><canvas id="graph" height="400" width="300"></canvas></div>
<input type="submit" onclick="javascript:generateGraph();"/>
</form>
</body>
</html>
Following is the code snippet of visual force page which is not generating the bar chart as of above code.
<apex:page >
<apex:form >
<apex:includeScript value="{!$Resource.MochiKit_js}"/>
<apex:includeScript value="{!$Resource.PlotKit_Base_js}"/>
<apex:includeScript value="{!$Resource.PlotKit_Canvas_js}"/>
<apex:includeScript value="{!$Resource.PlotKit_EasyPlot_js}"/>
<apex:includeScript value="{!$Resource.PlotKit_excanvas_js}"/>
<apex:includeScript value="{!$Resource.PlotKit_Layout_js}"/>
<apex:includeScript value="{!$Resource.PlotKit_SweetCanvas_js}"/>
<html>
<head>
<script language="Javascript">
function drawGraph() {
var layout = new PlotKit.Layout("bar", {});
alert("drawGraph layout="+layout);
layout.addDataset("sqrt", [[0, 0], [1, 1], [2, 1.414], [3, 1.73], [4, 2]]);
alert("A");
layout.evaluate();
alert("B");
var canvas = MochiKit.DOM.getElement("graph");
alert("C canvas="+canvas);
var plotter = new PlotKit.SweetCanvasRenderer(canvas, layout, {});
alert("D");
plotter.render();
alert("E");
}
function generateGraph(){
drawGraph();
MochiKit.DOM.addLoadEvent(drawGraph);
}
</script>
</head>
<body onload="drawGraph();">
<form name="demoForm">
<div><canvas id="graph" height="400" width="300"></canvas></div>
<input type="submit" onclick="javascript:generateGraph();"/>
</form>
</body>
</html>
</apex:form>
</apex:page>
1. It is not calling drawGraph() function at the time of loading the form.
2. It is not able to call the following line
new PlotKit.SweetCanvasRenderer(canvas, layout, {});
I have included the SweetCanvas.js file.
Please tell me the where i m making mistake.
-
- Yash
- July 01, 2008
- Like
- 0
- Continue reading or reply
Generating bar/pie chart on visual force page using ajax toolkit.
Thanks in advance.
:)
-
- Yash
- June 30, 2008
- Like
- 0
- Continue reading or reply
Problem with outputField in custom component
<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>
- modolea
- August 06, 2008
- Like
- 0
- Continue reading or reply
Using AJAX : Want to get the data from custom objects and display on VisualForce page.
I want to display the data grid on visual force page using AJAX and EXT JS library.
Can anybody has solution for this?
- Yash
- August 04, 2008
- Like
- 0
- Continue reading or reply
System.Exception: Too many SOQL queries: 101
I am getting following exception:
System.Exception: Too many SOQL queries: 101
And body as solution for this?
Thanks
Yash
- Yash
- July 28, 2008
- Like
- 0
- Continue reading or reply
apex:outputText and apex:outputLable is not working in IE
<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
- Yash
- July 14, 2008
- Like
- 0
- Continue reading or reply
Generated the pie chart in VF page using plotkit
<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
- July 03, 2008
- Like
- 0
- Continue reading or reply
VisualForce DOJO...URGENT
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.
- Persistent Sys
- July 01, 2008
- Like
- 0
- Continue reading or reply