-
ChatterFeed
-
1Best Answers
-
0Likes Received
-
0Likes Given
-
36Questions
-
21Replies
How can I Rerender a pageblock section when clicking on a pageblocktable row.
I have a page which queries to data from a customer table. This is then displayed in a pageblocktable in a pageblock with many row.
I want to have (if possible) a pageblock that will display the details of a record based on a record being selected 'onclick' but I can't seem to figure out how to rerender the pageblock based on clicking an item in the pageblocktable. I have tried using the actionSupport but this doesn't see to work inside the pageblocktable?
Any help is appreciated.
- PipDenno
- December 01, 2012
- Like
- 0
- Continue reading or reply
- Siddharth
- April 11, 2011
- Like
- 0
- Continue reading or reply
Unable to query Owner.ManagerId field from Lead
Hi,
My query "Select l.Owner.ManagerId, l.OwnerId, l.Name From Lead l" is not giving me any results. I have tried using eclipse, SForce explorer and even th debugger, but it returns "No such column 'ManagerId' on entity 'Name'." I am able to access all other fields from the User object.
Can someone confirm me if this is a bug or whether this field is not accessible.
Thanking you in anticipation
Siddharth
- Siddharth
- May 25, 2010
- Like
- 0
- Continue reading or reply
Integrating Public sites to display data from google blogs?
Hi All,
I am trying to integrate public sites to show data from google blogs, but the issue is that everytime I fetch data I am asked to provide access to gdata API. I am using Google toolkit and AuthSub authentication process. Also I want this authentication process to be hidden from end user and should actually be once. Is there a API where i can send google signing credentials in URL and that returns me token to access my data anytime.
Thanks
Siddharth
- Siddharth
- June 10, 2009
- Like
- 0
- Continue reading or reply
How can we delete all the data from SF instance with using Data Loader
Hi All,
Is there a way to delete all the data from Salesforce production accounts with using data loader. I am looking for a button or a link in salesforce to perform this action.
Thanks
Siddharth
- Siddharth
- April 09, 2009
- Like
- 0
- Continue reading or reply
URGENT: Setting ClientId for PE users in Flex
We have a managed package which uses FLEX, can some tell me how to set the value for ClientId in Flex in SOAP Header.
Thanks
Siddharth
Astadia
- Siddharth
- March 12, 2009
- Like
- 0
- Continue reading or reply
Apex classes not available after install in EE
We have installed a force.com package in sandbox environment using the system admin profile. While installation we turned off the apex warning and configured field level security. It installed smoothly but for system admin profile client is not getting access to all the apex classes.
When we go to profile and try to edit and add apex class access it doesnot show all the classes there, its only one apex class that has got access out of 20 classes. However i can see all the classes available under develeopement -> Apex Class section.
Any idea why this is happening as it is only for this install or is it some issue with spring 09 release because for all other instances it worked fine.
Thanks
Siddharth
- Siddharth
- February 04, 2009
- Like
- 0
- Continue reading or reply
New components not getting reflected in managed package upgrade
All,
We are facing issues with the deployment of Dashboards through the manages package.
We have components in one of our Dashboard that display the Top and Bottom 5 rows with certain value e.g. Top 5 Campaigns with Max ROI.
Issue #1: Dashboard component setting not set during New Package InstallationWhen this Dashboard is deployed in a freash SF instance through a Managed Package, all components are displayed but the setting in "Maximum Values Displayed" field of the Components is not reflected. This results in all records getting displayed in the Component (instead of Top '5').
Issue #2: Dashboard changes not reflected in Package UpgradeIt appears that when we install a managed package upgrade, we do not get the benefit of the new components in a Dashboard. We have a managed application installed in our SF instance and when an upgrade to the Package was released, Dashboard changes (new components, deleted components and changed components) didn't reflect even though the supporting custom reports got deployed. We have tired installing the package upgrade in 3 different instances, but the issue persists.
Please suggest the possible root cause and if this is a know issue with Package installation. Thanks.
Thanks
Siddharth
- Siddharth
- January 27, 2009
- Like
- 0
- Continue reading or reply
How can we hide visualforce pages and SControls when packaging application
Thanks
Siddharth
- Siddharth
- January 06, 2009
- Like
- 0
- Continue reading or reply
Multi Currency and Visualforce implemenation with wrappers
- Siddharth
- December 29, 2009
- Like
- 0
- Continue reading or reply
Can we call javascript and ActionSupport together on SelectList
<apex:selectList id="PeriodOptions" value="{!PeriodOptions}" size="1" onclick="return ValidateShowAll();">
<apex:selectOption itemValue="1" itemLabel="This Month" />
<apex:selectOption itemValue="2" itemLabel="Last Month" />
<apex:selectOption itemValue="3" itemLabel="Last Year" />
<apex:actionSupport action="{!FilterCampaigns}" event="onchange" rerender="MainPanel">
</apex:actionSupport>
If I remove my javascript my action support functions good, but I need to validate my page before invoking this. Other possibility could have been if i can use AJAX call from javascriot but i need to rebind my panel with updated data.
Can some some one help me out.
Thanks
Siddharth
- Siddharth
- September 04, 2008
- Like
- 0
- Continue reading or reply
get selected item value from selectlist when clicking on output link
<apex:selectList id="type" value="{!ROIOptions}" size="1" >
<apex:selectOptions value="{!ROIFieldValues}"/>
</apex:selectList>
<apex:pageBlockTable value="{!Campaigns}" var="cmp">
<apex:column width="10%">
<apex:outputLink value="/apex/Marketing_Campaign?pcnt=0&id={!cmp.Id}">{!cmp.ExtnName}
<apex:param value="{!ROIOptions}" name="mode" ></apex:param>
</apex:outputLink>
</apex:column>
- Siddharth
- August 20, 2008
- Like
- 0
- Continue reading or reply
Does the field lkid remain same
- Siddharth
- August 20, 2008
- Like
- 0
- Continue reading or reply
Apex function is being binded multiple times on click of command button
private Integer IsPostBack = 1;
WrapperCalender[] wrapExtn;
{
MonthSDate = '';
MonthEDate = '';
MonthStartDate = null;
MonthEndDate = null;
this.FitlerStatus = 1;
IsPostBack = 4;
wrapExtn = getCampaigns();
return null;
}
{
if (IsPostBack == 2 && FitlerStatus == 0)
{
cmpList = [Select c.StartDate,c.EndDate,c.Id, (Select id, Name, Budget_Status__c From CMOExtensions__r) from Campaign c
where IsActive = true and startdate >=: MonthStartDate and startdate <=: MonthEndDate
and startdate != null order by c.StartDate asc];
}
else
{
if (IsPostBack == 3)
{
cmpList = [Select c.StartDate,c.EndDate,c.Id, (Select id, Name, Budget_Status__c From CMOExtensions__r) from Campaign c
where IsActive = true and startdate >=: MonthStartDate and enddate <=: MonthEndDate
and startdate != null order by c.StartDate asc];
}
if (IsPostBack == 4)
{
cmpList = [Select c.StartDate,c.EndDate,c.Id, (Select id, Name, Budget_Status__c From CMOExtensions__r) from Campaign c
where IsActive = true and startdate != null order by c.StartDate asc];
}
}
wrapExtn = new WrapperCalender[cmpList.size()];
if(cmpList !=null && cmpList.size()>0)
{
//
}
}
- Siddharth
- August 19, 2008
- Like
- 0
- Continue reading or reply
Cross Object Validations to check Ids of related objects should be same?
- Siddharth
- June 09, 2008
- Like
- 0
- Continue reading or reply
Do we have Query More functionality in APEX?
- Siddharth
- February 28, 2008
- Like
- 0
- Continue reading or reply
Using DescribeCalls in Apex
- Siddharth
- February 27, 2008
- Like
- 0
- Continue reading or reply
Invoke APEX code using salesforce API using .Net
- Siddharth
- February 26, 2008
- Like
- 0
- Continue reading or reply
Using APEX WSDL in ASP.NET...how to pass sessionid and serverurl
protected void Page_Load(object sender, EventArgs e)
{
Test.HelloWorld2Service obj = new CellsMerge.Test.HelloWorld2Service();
string a = obj.Hello("s");
}
Any suggestions as how can we achieve this functionality.
Siddharth
- Siddharth
- February 26, 2008
- Like
- 0
- Continue reading or reply
Using APEX class as WSDL in ASP.Net
protected void Page_Load(object sender, EventArgs e)
{
Test.HelloWorld2Service obj = new CellsMerge.Test.HelloWorld2Service();
string a = obj.Hello("s");
}
Any suggestions as how can we achieve this functionality.
Siddharth
- Siddharth
- February 26, 2008
- Like
- 0
- Continue reading or reply
Lead Conversion mapping does not work with all field types
- Siddharth
- October 25, 2007
- Like
- 0
- Continue reading or reply
How can I Rerender a pageblock section when clicking on a pageblocktable row.
I have a page which queries to data from a customer table. This is then displayed in a pageblocktable in a pageblock with many row.
I want to have (if possible) a pageblock that will display the details of a record based on a record being selected 'onclick' but I can't seem to figure out how to rerender the pageblock based on clicking an item in the pageblocktable. I have tried using the actionSupport but this doesn't see to work inside the pageblocktable?
Any help is appreciated.
- PipDenno
- December 01, 2012
- Like
- 0
- Continue reading or reply
too many script statements
I have a before trigger that calls this class which auto assigns the region and the ownerid to the account based on the recordtype, state and zip of the region object. the region object holds all the assignments. It works great but when I execute a batch load through data laoder I hit too many script statements 200001 error. any way i can fix?
public with sharing class AccountUtilities
{
public static void acctAssign(List<Account> aList)
{
List<region__c> rList = [select id, zip_start__c, zip_end__c, state__c,sales_user__c, business_unit__c, recordTypeId from region__c];
Map<Id,RecordType> rtMap = new Map<Id,RecordType>([Select id,Name from RecordType where sObjectType IN ('Account','region__c')]);
for(Account a:aList)
{
try
{
for(integer i= 0; i< rList.size(); i++)
{
String billingPostalCode= String.valueOf(a.BillingPostalCode);
if(a.billingstate== rList.get(i).state__c && a.Protected__c != true && rtMap.get(a.recordtypeid).Name == rtMap.get(rList.get(i).recordtypeid).Name && a.business_unit__c == tList.get(i).business_unit__c)
{
if(a.billingPostalCode >= rList.get(i).zip_start__c && a.billingPostalCode<=rList.get(i).zip_end__c || rList.get(i).zip_start__c ==null && rList.get(i).zip_end__c ==null )
{
a.region__c = rList.get(i).id;
a.OwnerId = rList.get(i).sales_user__c;
}
}
}
}
catch (System.Exception e)
{
// process exception
}
}
}
- tdevman
- November 30, 2012
- Like
- 0
- Continue reading or reply
Creating a "Last Called" Field
Has anyone created a code for this? We would like to create a new field that returns the last time a lead, or contact, was called. The problem with the "last activity" field is that it includes mass emails which doesn't really help us. Figure we need to use Apex code to query the type of activity etc. and bring back the date of the last phone call.
- RDenis
- November 29, 2012
- Like
- 0
- Continue reading or reply
- nmnbawa
- November 29, 2012
- Like
- 0
- Continue reading or reply
Unable to query Owner.ManagerId field from Lead
Hi,
My query "Select l.Owner.ManagerId, l.OwnerId, l.Name From Lead l" is not giving me any results. I have tried using eclipse, SForce explorer and even th debugger, but it returns "No such column 'ManagerId' on entity 'Name'." I am able to access all other fields from the User object.
Can someone confirm me if this is a bug or whether this field is not accessible.
Thanking you in anticipation
Siddharth
- Siddharth
- May 25, 2010
- Like
- 0
- Continue reading or reply
URGENT: Setting ClientId for PE users in Flex
We have a managed package which uses FLEX, can some tell me how to set the value for ClientId in Flex in SOAP Header.
Thanks
Siddharth
Astadia
- Siddharth
- March 12, 2009
- Like
- 0
- Continue reading or reply
How can we hide visualforce pages and SControls when packaging application
Thanks
Siddharth
- Siddharth
- January 06, 2009
- Like
- 0
- Continue reading or reply
Apex function is being binded multiple times on click of command button
private Integer IsPostBack = 1;
WrapperCalender[] wrapExtn;
{
MonthSDate = '';
MonthEDate = '';
MonthStartDate = null;
MonthEndDate = null;
this.FitlerStatus = 1;
IsPostBack = 4;
wrapExtn = getCampaigns();
return null;
}
{
if (IsPostBack == 2 && FitlerStatus == 0)
{
cmpList = [Select c.StartDate,c.EndDate,c.Id, (Select id, Name, Budget_Status__c From CMOExtensions__r) from Campaign c
where IsActive = true and startdate >=: MonthStartDate and startdate <=: MonthEndDate
and startdate != null order by c.StartDate asc];
}
else
{
if (IsPostBack == 3)
{
cmpList = [Select c.StartDate,c.EndDate,c.Id, (Select id, Name, Budget_Status__c From CMOExtensions__r) from Campaign c
where IsActive = true and startdate >=: MonthStartDate and enddate <=: MonthEndDate
and startdate != null order by c.StartDate asc];
}
if (IsPostBack == 4)
{
cmpList = [Select c.StartDate,c.EndDate,c.Id, (Select id, Name, Budget_Status__c From CMOExtensions__r) from Campaign c
where IsActive = true and startdate != null order by c.StartDate asc];
}
}
wrapExtn = new WrapperCalender[cmpList.size()];
if(cmpList !=null && cmpList.size()>0)
{
//
}
}
- Siddharth
- August 19, 2008
- Like
- 0
- Continue reading or reply
Linking to Record in PageBlockTable
I assume this is simple enough, but don't want to waste time figuring it out. I'm trying to render the Name of a Record as a link to the Record in a column of a pageBlockTable.
I'm using this syntax currently:
<apex:column headerValue="Name"> <apex:outputLink value="{!lead.Id}">{!lead.Name}</apex:outputLink> </apex:column>
Supposing I'm on a na2.salesforce.com, this will output the link as https://na2.salesforce.com/apex/00Q4000000HA9xUEAT. Obviously I don't want the /apex/ in the URL. I know I want to use the current server as the value in outputLink and the Record ID as a param, but how do I merge in the URL of the current server?
Thanks!
- Michael Haddad.ax365
- July 31, 2008
- Like
- 2
- Continue reading or reply
How can change toolbar color.
<apex:toolbarGroup itemSeparator="line" location="left" id="toobarGroupForm2">
<apex:outputLink value="/apex/DashBoard" id="myPage" target="theIframe" >My Page</apex:outputLink>
<apex:outputLink value="/apex/DashBoard1" id="DashBoard1" target="theIframe" >DashBoard1</apex:outputLink>
<apex:outputLink value="/apex/Program_Setup" id="Program_Setup" target="theIframe">Program Setup</apex:outputLink>
<apex:outputLink value="/apex/Forecasting" id="Forecasting" target="theIframe">Forecasting</apex:outputLink>
<apex:outputLink value="/apex/Inventory_Management" id="Inventory_Management" target="theIframe">Inventory Management</apex:outputLink>
<apex:outputLink value="/apex/Store_Performance" id="Store_Performance" target="theIframe">Store Performance</apex:outputLink>
</apex:toolbarGroup>
</apex:toolbar>
- Brijesh Kumar
- July 18, 2008
- Like
- 0
- Continue reading or reply
Using variable in APEX SOQL
- Middha
- March 07, 2008
- Like
- 0
- Continue reading or reply
Using APEX WSDL in ASP.NET...how to pass sessionid and serverurl
protected void Page_Load(object sender, EventArgs e)
{
Test.HelloWorld2Service obj = new CellsMerge.Test.HelloWorld2Service();
string a = obj.Hello("s");
}
Any suggestions as how can we achieve this functionality.
Siddharth
- Siddharth
- February 26, 2008
- Like
- 0
- Continue reading or reply
"2007-10-29T10:38:36.000Z" how to convert this into datetime format for c#
- salesforce inte
- October 29, 2007
- Like
- 0
- Continue reading or reply
Strange Error when Trying to Create Task
Dim sForceService As New sforce.SforceService
sForceService.Url = mSessionURL
sForceService.SessionHeaderValue = New sforce.SessionHeader
sForceService.SessionHeaderValue.sessionId = mSessionID
Dim taskArray(0) As sforce.sObject
Dim sTask As sforce.Task = New sforce.Task
sTask.CreatedById = mUserID
sTask.OwnerId = mRecipientID
sTask.ActivityDate = DateTime.Now
sTask.Description = "Test Description"
sTask.Priority = "Normal"
sTask.Status = "Completed"
sTask.Subject = "Email: Test Email"
taskArray(0) = sTask
Dim sr() As sforce.SaveResult = sForceService.create(taskArray)
When I try to run the code in Visual Studio's Debug mode, everything seems to work fine until it gets to the very last line above; when the Dim sr() As sforce.SaveResult = sForceService.create(taskArray) code executes, I get the following error: "Unable to automatically step into the server. Connecting to the server machine "na2-api.salesforce.com" failed. The format of the specified network name is invalid."
I've tried researching this error and verifying that what I'm trying to do is valid, but I can't find any answers. Has anyone tried creating their own task objects before? Note that I'm presuming that the same SalesForce server is used to create new objects as well as read existing company data. All help is appreciated.
- Senyors
- October 12, 2007
- Like
- 0
- Continue reading or reply
Out bound returns Salesforce 8.0 URL
- Siddharth
- October 09, 2007
- Like
- 0
- Continue reading or reply
How to insert Null Value of a field in API 8.0
- Nikhil_J
- March 02, 2007
- Like
- 0
- Continue reading or reply
How to use Ajax 8.0 with visual studio.net 2005
function setup()
{
var callback = {onSuccess: display, onFailure: failed};
var lr = sforce.connection.login(Username,password);
var userInfo = sforce.connection.getUserInfo(callback);
}
var doc = document.getElementById("name-span");
doc.innerHTML = userInfo.userName;
}
document.getElementById("name-span").innerHTML =
error.toString();
}
</script>
Hi there! <span id="name-span"></span>
<div>
</div>
</form>
</body>
This what i have found on one of the samples on community, but it doesn't seems to be working. Please help me out as how should i make use of AJAX. Also is there any way where we can call this from a simple HTML page. Do we need API support to use AJAX or is it the reference script that will make it all. Any suggestion and help would be appreciated.
- Siddharth
- January 10, 2007
- Like
- 0
- Continue reading or reply
Unable to update UnitPrice
Hi,
We are facing a problem in updating Sales Price for an Opportunity Line Item.
As per the API document the label Sales Price on the screen represents field Unit Price in Opportunity Line Item Object.(Is this correct??)
We are making an API call to update a few custom fields along with Unit Price. Other Fields are getting updated but Unit Price is not getting updated. Our objective is to set Sales Price to a value equal to value of a Custom Field.
Is there some catch into it that we are missing?
Any help would be appreciated.
- Siddharth
- May 20, 2005
- Like
- 0
- Continue reading or reply
LastModified date and ADI_LAst_Calculated Date
Hi,
There is a problem in getting the dates. I update the Opportunity table and insert the ADI_Last_Calculated_date as the Server Timestamp and at the same time SalesForce updates the last modified date for the opportunity. So there is difference in the Time. Can anyone suggest why is it so? I have tried using different date formats.
***********************************Function Description*********************************
Public Function updateRevenueToOpportunity(ByVal ID As String, ByVal Opp_ExpTotalValue As Integer, ByVal Opp_TotalValue As Integer, ByVal Opp_PeakAnnualValue As Integer, ByVal Opp_ExpPeakAnnualValue As Integer)
Dim saveResults() As SaveResult
Dim updateOpp As sObject = New sObject
Dim ilength = 0, iError As Integer = 0
Dim xElemnt(6) As System.Xml.XmlElement
Dim Doc As New System.Xml.XmlDocument
Try
xElemnt(0) = Doc.CreateElement("ADI_Expected_Total_Amount__c")
xElemnt(0).InnerText = Opp_ExpTotalValue
xElemnt(1) = Doc.CreateElement("ADI_Total_Amount__c")
xElemnt(1).InnerText = Opp_TotalValue
xElemnt(2) = Doc.CreateElement("ADI_Peak_Annual_Amount__c")
xElemnt(2).InnerText = Opp_PeakAnnualValue
xElemnt(3) = Doc.CreateElement("ADI_Expected_Peak_Annual_Amount__c")
xElemnt(3).InnerText = Opp_ExpPeakAnnualValue
xElemnt(4) = Doc.CreateElement("ADI_Last_Calculated_Date__c")
xElemnt(4).InnerText = Replace(Format(objService.getServerTimestamp.timestamp, "yyyy-MM-ddThh:mm:ss.millisZ"), "illi", "", 1)
xElemnt(5) = Doc.CreateElement("ADI_Generate_Forecast__c")
xElemnt(5).InnerText = "False"
updateOpp.Id = ID
updateOpp.Any = xElemnt
updateOpp.type = "Opportunity"
saveResults = objService.update(New SFPartner.sObject() {updateOpp})
Dim Err As [Error]
While (ilength < saveResults.Length)
If saveResults(ilength).success Then
_Logger.LogInfo("OpportunityLineItem successfully updated with " + saveResults(ilength).id + " as the ID")
Else
While (iError < saveResults(ilength).errors.Length)
Err = saveResults(ilength).errors(iError)
_Logger.LogError("Opportunity Line Item could not be updated : '" + Err.message + "'", "updateRevenueToOpportunitylineItem")
iError = iError + 1
End While
End If
ilength = ilength + 1
End While
Catch ex As Exception
Throw New Exception("Failed to update Opportunity")
End Try
End Function
*************************************Output Result***************************************
OpportunityID - 006000000077XUuAAM
LastModifiedDate - 5/19/2005 5:01 PM
Name - Punit Opportunity 1 Product
ADI_Last_Calculated_date - 5/19/2005 10:31 AM
- Siddharth
- May 19, 2005
- Like
- 0
- Continue reading or reply