-
ChatterFeed
-
22Best Answers
-
0Likes Received
-
0Likes Given
-
0Questions
-
132Replies
Do "Force.com Embedded Edition" licenses allow Apex source code to be deployed/executed?
Threads like Package install fail: missing feature apex class discuss editions that do and do not allow Apex source code to run. (Apex code in a managed package is treated somewhat differently.)
Can anyone point me to a data sheet that describes this capability for "Force.com Embedded Edition" licenses?
Thanks,
Keith
- Keith987
- May 25, 2011
- Like
- 0
- Continue reading or reply
Approval Process: How to Edit Pop-Up Warning Message on Clicking to "Submit For Approval"
Hello,
I have a "Submit For Approval" button for my Opportunity Record. The button is a standard button (therefore not a custom button).
When i click on the button it pops-up a warning type message with the following text and an "ok" and cancel" button.
"Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?"
i wish to change the warning message that appears for users clicking on this button. I've had a look at the Workflow & Approvals > Approval Processes settings but cannot find where this message is set in the first place.
Does anyone know where such settings are configured for Approval Process buttons?
Thanks in advance.
- RedSales
- May 05, 2011
- Like
- 0
- Continue reading or reply
VFP using pageblock table is not saving when i am using some filter
VFP:
<apex:page standardController="Account" extensions="AccountPageblock" recordSetVar="records" id="thePage">
<apex:form id="theForm">
<apex:pageBlock id="thePageBlock">
<apex:pageBlockTable value="{!records}" var="record" id="thePageBlockTable">
<apex:column >
<apex:inputField value="{!record.Name}" id="AccountNameDOM" />
<apex:facet name="header">Name</apex:facet>
</apex:column>
<apex:column >
<apex:inputField value="{!record.Type}" id="AccountTypeDOM" />
<apex:facet name="header">Type</apex:facet>
</apex:column>
<apex:column >
<apex:inputField value="{!record.Industry}"
id="AccountIndustryDOM" />
<apex:facet name="header">Industry</apex:facet>
</apex:column>
</apex:pageBlockTable>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}" id="saveButton" />
<apex:commandButton value="Cancel" action="{!cancel}" id="cancelButton" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Contoller:
public class AccountPageblock {
public AccountPageblock(ApexPages.StandardSetController controller) {
}
public List<Account> getrecords() {
return [SELECT Type, Name, Industry FROM Account where Industry =: 'Energy'];
}
public abstract class MyController{
Apexpages.StandardController controller;
public MyController(Apexpages.StandardController c){
controller = c;
}
public PageReference save() {
controller.save();//invoke standard Save method
return Apexpages.currentPage();//refresh current page
}
}
}
- Nagesh E
- April 14, 2011
- Like
- 0
- Continue reading or reply
Upsert Process Limitations?
Hi,
I am running into some duplicate external ID errors when I am using the upsert process of the DataLoader. I am hoping that I am just overlooking something, and the functionality exists within the Loader.
I am migrating data from one salesforce instance to another, using external IDs to build relationships within the new instance. I use an external ID in the Account and one in the Contact objects.
The problem arises when I run into an Account with more than one contact, I start running into errors like this:
Duplicate external id specified: 001a000000o7h1hiar |
Is this an actual limitation to the upsert process, or am I missing something? All the rows that returned this duplicate error have been pushed out into the error.csv, can I do anything with these? Thanks again, any help is appreciated. I would hate to have to migrate some rows manually!
- du-scodouglas
- April 13, 2011
- Like
- 0
- Continue reading or reply
Get A Parent/Page's Object ID in A Custom Link/Button
Hi,
I wish to add a custom button or custom link to a salesforce.com object's page. For example add such a button to an Account or Opportunity.
My custom link/button will Execute JavaScript. I would like to add/use the object id from the Account/Opportunity on which the button exists to a javascript function. Is there a way of retrieving the parent object ID on which the custom link or button will exist.
I know for the User object a function UserInfo.getUserId() which can be used. Is there a similar function (or other process) that can be used for an Account Object & for Opportunity objects?
Thanks.
- RedSales
- March 24, 2011
- Like
- 0
- Continue reading or reply
sforce.apex.execute Response : status - 500
Hi.
I try to call my web service from javascript over sforce.apex.execute method, but I get as response the status: 500.
what I did wrong?
Following error I get in AJAX Toolkit Shell:
Request: server- /services/Soap/package/WSHelper <textarea cols=80 rows=5 wrap=hard><se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="http://soap.sforce.com/schemas/package/WSHelper"/><se:Body><setName xmlns="http://soap.sforce.com/schemas/package/WSHelper"><n>Smith</n></setName></se:Body></se:Envelope></textarea> Response : status - 500 <textarea cols=80 rows=5 wrap=hard><?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="http://soap.sforce.com/2006/08/apex"><soapenv:Body><soapenv:Fault><faultcode>sf:INVALID_SESSION_ID</faultcode><faultstring>INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session</faultstring></soapenv:Fault></soapenv:Body></soapenv:Envelope></textarea>
here is the javascript code:
<script src="/soap/ajax/17.0/connection.js" type="text/javascript"></script> <script src="/soap/ajax/17.0/apex.js" type="text/javascript"></script> <script> function test(){ sforce.debug.trace=true; alert('test'); var name = sforce.apex.execute("WSHelper", "setName", {n:"Smith"}); alert(name); } </script>
Here is my web service code:
global class WSHelper { webService static String getName() { return 'WSHelper'; } webService static String setName(String n) { return n; } }
and here the generated xml-file of my web service:
<?xml version="1.0" encoding="UTF-8"?> <!-- Web Services API : WSHelper --> <definitions targetNamespace="http://soap.sforce.com/schemas/class/WSHelper" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://soap.sforce.com/schemas/class/WSHelper"> <types> <xsd:schema elementFormDefault="qualified" targetNamespace="http://soap.sforce.com/schemas/class/WSHelper"> <xsd:element name="DebuggingInfo"> <xsd:complexType> <xsd:sequence> <xsd:element name="debugLog" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:simpleType name="ID"> <xsd:restriction base="xsd:string"> <xsd:length value="18"/> <xsd:pattern value="[a-zA-Z0-9]{18}"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="LogCategory"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Db"/> <xsd:enumeration value="Workflow"/> <xsd:enumeration value="Validation"/> <xsd:enumeration value="Callout"/> <xsd:enumeration value="Apex_code"/> <xsd:enumeration value="Apex_profiling"/> <xsd:enumeration value="Visualforce"/> <xsd:enumeration value="All"/> </xsd:restriction> </xsd:simpleType> <xsd:simpleType name="LogCategoryLevel"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="Internal"/> <xsd:enumeration value="Finest"/> <xsd:enumeration value="Finer"/> <xsd:enumeration value="Fine"/> <xsd:enumeration value="Debug"/> <xsd:enumeration value="Info"/> <xsd:enumeration value="Warn"/> <xsd:enumeration value="Error"/> </xsd:restriction> </xsd:simpleType> <xsd:complexType name="LogInfo"> <xsd:sequence> <xsd:element name="category" type="tns:LogCategory"/> <xsd:element name="level" type="tns:LogCategoryLevel"/> </xsd:sequence> </xsd:complexType> <xsd:simpleType name="LogType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="None"/> <xsd:enumeration value="Debugonly"/> <xsd:enumeration value="Db"/> <xsd:enumeration value="Profiling"/> <xsd:enumeration value="Callout"/> <xsd:enumeration value="Detail"/> </xsd:restriction> </xsd:simpleType> <xsd:element name="DebuggingHeader"> <xsd:complexType> <xsd:sequence> <xsd:element name="categories" minOccurs="0" maxOccurs="unbounded" type="tns:LogInfo"/> <xsd:element name="debugLevel" type="tns:LogType"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="CallOptions"> <xsd:complexType> <xsd:sequence> <xsd:element name="client" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="SessionHeader"> <xsd:complexType> <xsd:sequence> <xsd:element name="sessionId" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="AllowFieldTruncationHeader"> <xsd:complexType> <xsd:sequence> <xsd:element name="allowFieldTruncation" type="xsd:boolean"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="getName"> <xsd:complexType> <xsd:sequence/> </xsd:complexType> </xsd:element> <xsd:element name="getNameResponse"> <xsd:complexType> <xsd:sequence> <xsd:element name="result" type="xsd:string" nillable="true"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="setName"> <xsd:complexType> <xsd:sequence> <xsd:element name="n" type="xsd:string" nillable="true"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="setNameResponse"> <xsd:complexType> <xsd:sequence> <xsd:element name="result" type="xsd:string" nillable="true"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </types> <!-- Message for the header parts --> <message name="Header"> <part name="AllowFieldTruncationHeader" element="tns:AllowFieldTruncationHeader"/> <part name="CallOptions" element="tns:CallOptions"/> <part name="DebuggingHeader" element="tns:DebuggingHeader"/> <part name="DebuggingInfo" element="tns:DebuggingInfo"/> <part name="SessionHeader" element="tns:SessionHeader"/> </message> <!-- Operation Messages --> <message name="getNameRequest"> <part element="tns:getName" name="parameters"/> </message> <message name="getNameResponse"> <part element="tns:getNameResponse" name="parameters"/> </message> <message name="setNameRequest"> <part element="tns:setName" name="parameters"/> </message> <message name="setNameResponse"> <part element="tns:setNameResponse" name="parameters"/> </message> <portType name="WSHelperPortType"> <operation name="getName"> <input message="tns:getNameRequest"/> <output message="tns:getNameResponse"/> </operation> <operation name="setName"> <input message="tns:setNameRequest"/> <output message="tns:setNameResponse"/> </operation> </portType> <binding name="WSHelperBinding" type="tns:WSHelperPortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="getName"> <soap:operation soapAction=""/> <input> <soap:header use="literal" part="SessionHeader" message="tns:Header"/> <soap:header use="literal" part="CallOptions" message="tns:Header"/> <soap:header use="literal" part="DebuggingHeader" message="tns:Header"/> <soap:header use="literal" part="AllowFieldTruncationHeader" message="tns:Header"/> <soap:body use="literal" parts="parameters"/> </input> <output> <soap:header use="literal" part="DebuggingInfo" message="tns:Header"/> <soap:body use="literal"/> </output> </operation> <operation name="setName"> <soap:operation soapAction=""/> <input> <soap:header use="literal" part="SessionHeader" message="tns:Header"/> <soap:header use="literal" part="CallOptions" message="tns:Header"/> <soap:header use="literal" part="DebuggingHeader" message="tns:Header"/> <soap:header use="literal" part="AllowFieldTruncationHeader" message="tns:Header"/> <soap:body use="literal" parts="parameters"/> </input> <output> <soap:header use="literal" part="DebuggingInfo" message="tns:Header"/> <soap:body use="literal"/> </output> </operation> </binding> <service name="WSHelperService"> <documentation/> <port binding="tns:WSHelperBinding" name="WSHelper"> <soap:address location="https://na7-api.salesforce.com/services/Soap/class/WSHelper"/> </port> </service> </definitions>
Thanks.
- Alex85
- March 21, 2011
- Like
- 0
- Continue reading or reply
Dynamically list all methods from DescribeSObjectResult
I would like to create a drop-down list of all the methods returned from a DescribeSObjectResult (e.g., "getLabel", "getName", "getKeyPrefix", etc.). I have been able to create a list of fields (using DescribeFieldResult) as well as child relationships, record type info, etc., but not a list of just the methods.
How can I accomplish this?
Thanks,
Barb R.
- BARJRD
- March 18, 2011
- Like
- 0
- Continue reading or reply
Default pageBlockSection to collapsed?
Hi,
I am working on some visualforce pages which have many pageBlockSections.
I would like to default a number of them to collapsed - is this possible?
Thanks
- MikeGill
- March 06, 2011
- Like
- 0
- Continue reading or reply
Using Conditional (If-Else) Statements In A String Concatenation
Hello,
I wish to include an "if" statement in a section of my code where I am building up a string by concatenating data.
The purpose of the "if" statement is to check if a value is null, & if not to then use the function "String.escapeSingleQuotes" on it.
An example is as follows (Note you can ignore the fact I have no single quotes in my example as it's just strings made up for the example. I will be taking my value from object fields so in my actual live system there is a chance that a single quote may appear)
String buildString = 'Just a test string to check concatenation';String tester = 'Test String';
buildString = buildString + 'hello : ' + if(tester=null) tester; else String.escapeSingleQuotes(tester); + ' : goodbye';
When I run the above code I get an error as follows.
"Compile error at line 4 column 41
unexpected token: 'if'"
Does anyone know why my error is occuring in the above code & how I can resolve it? I'm going to have about 30 values to check & add to my string while building it so would like to do in one line each time as opposed to different lines
if ([Boolean_condition])
// Statement 1
else
// Statement 2
Thanks in advance for your suggestions!
- RedSales
- February 24, 2011
- Like
- 0
- Continue reading or reply
Lead Owner Custom Fields not available in Custom Report Types
I am trying to create a custom report type for leads. I need to add some custom user fields in the report type, for filtering options.
The issue is, when I click on "add fields related via lookup" and select "Lead Owner", it gives me an option to select only a few Standard User fields. Lead owner custom fields are not available as an option to be added in the report type.
Can someone help me. It is quite urgent. Is there something I am missing.
- Dastan
- February 24, 2011
- Like
- 0
- Continue reading or reply
can std getrecord() be used in extension's constructor
the getrecord() of the standard controller is used within a constructor method of custom object's extension controller.
when accessing a field of the custom object afterwords, error comes:
System.SObjectException: SObject row was retrived via SOQL without querying the requested field: Status__c
Class.xxxControllerExtension.<init>: line ? colum ?
is this banned to use getrecord in constructor?
Tryed moving doConfirm() out of constructor, say a public void test method, got the same error?
Tryed accessing standard field [Id], ok, return the right id passed in through a custom button click;
Tryed accessing standard field [Name], same error;
the code seems normal after looking around. but what's wrong or missing? idea? any doc?
[code partially]
public RequestControllerExtension(ApexPages.StandardController stdController)
{
controller=stdController;
doConfirm();
}
private void doConfirm()
{
this.req=(Request__c)controller.getRecord();
if(req.Status__c=='New')
{
req.Status__c='Dispatched';
controller.save();
Msg='Change status:' + req.Status__c + '.';
}
else
{
Msg='Invalid status:' + req.Status__c + '.';
}
}
I found a similar Q:
- maxout2
- February 21, 2011
- Like
- 0
- Continue reading or reply
How to run my class from within Force.com IDE?
Hello,
Note I am very new to Force.com/Apex/Salesforce. I received some very good tips in my earlier question
The referenced links were as follows:
Review the Apex Developer guide and in particular the section which explains Apex classes:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_understanding.htm
and the one which compares Apex to Java:
and the one which explains triggers:
The documents are very good.
However I'm still a bit confused by something. I have created a class just to test out some basic Apex functions. I have one method within which I test out the functions. I also have a static method in which I create an instance of my class & from this instance call the method (within which my functions exist). I have no SQL updates & do not want to interact with any stored objects (I just want to get familair with functions so I'm giving dummy string values etc...)
My code compiles correctly so that is all good. I'm wondering though how I can I then run the class to test what happens. I have some System.debug functions used & I'd like to see the output. As I am developing this on my sandbox it is not for production use.
If I click on "Run" from the Force.Com IDE menu it then has option for "External Tools", In which there are options for "Run As", "External Tools Configurations", and "Organize Favourites". The "Run As" option's sub option is greyed out.
As I have no DB interactions & no requirement to interact with any objects I don't think I need to use a trigger to invoke my class (from reading the documentation triggers seem to interact with DB calls). Other class invoking options I see are to use a Scheduler, Anonymous Blocks or AJAX.
If running a similiar Java application/program in eclipse I'd just choose Run As -> Java Application.
i guess this may be due to my lack of familiarity with cloud based development, but how do I actually run my application to see the output?
Any suggestions would be welcome & apologies for my lack of understanding on this (even after reading the docs).
Thanks in Advance!
- RedSales
- February 17, 2011
- Like
- 0
- Continue reading or reply
Using System.debug('hello'); Gives "expecting a right parentheses" error?
Hello,
I'm new to Apex & in a clas I'm writing I want to print out debug statements at various steps however I can't seem to get these to work.
if I do
System.debug('hello');
I get an error as follows
Multiple markers at this line
- expecting a right parentheses, found 'hello'
- Save error: expecting a right parentheses,
found 'hello'
Does anyone have any ideas as to why this may be occuring? If I look at sample code online the above should work.
- RedSales
- February 17, 2011
- Like
- 0
- Continue reading or reply
Moving Beyond Point-and-Click App Development - cancel button problem
Running through the Recruitment app creation in the Force.com Platform Fundamentals I have come across a problem.
Using the Mass Update Button created on the Job Applications related list, I find that pressing cancel produces an error message:-
core.apexpages.exceptions.ApexPagesHandledException: Filter Id value 00BA0000005siUC is not valid for the Job_Application__c standard controller
Obviously the Job_application__c standard controller is system generated, and the VF page is:-
<apex:page standardController="Job_Application__c" recordSetVar="applications">
<apex:sectionHeader title="Mass Update the Status of Job Applications"/>
<apex:form >
<apex:pageBlock >
<apex:pageMessages />
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
<apex:commandButton value="Cancel" action="{!cancel}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Status Update" collapsible="false">
<apex:inputField value="{!Job_Application__c.Status__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Selected Job Applications" columns="1">
<apex:pageBlockTable value="{!selected}" var="application">
<apex:column value="{!application.name}"/>
<apex:column value="{!application.position__r.name}"/>
<apex:column headerValue="Candidate Name">
<apex:outputText value="{!application.candidate__r.First_Name__c &
' ' &
application.candidate__r.Last_Name__c}"/>
</apex:column>
<apex:column value="{!application.Status__c}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
- ie as per the salesforce documment.
So what's going on? Is this a salesforce bug, or am I doing something wrong here (not correctly invoking the 'cancel' method)?
- Patrick Dixon
- February 14, 2011
- Like
- 0
- Continue reading or reply
Spring 11, How do I change the "Related List Label" of an object in a managed package
Super, I can now change the label of my managed package custom objects in Spring 11.
But I can not figure out how do I change the "Related List Label" of an object in a managed package, it continues to show with the original name?
Am I missing something, its not in the translation workbench overwrite either?
Thanks,
Matt
- guenthmn
- February 12, 2011
- Like
- 0
- Continue reading or reply
Use of libriary
Use of library files.
How can I create a library file and use in all apex class, any sample code ?
- Alone
- February 10, 2011
- Like
- 0
- Continue reading or reply
Visualforce Email - How to filter datatable?
<apex:datatable align="left" var="nt" width="100%" value="{!relatedTo.Network_Trial_Items__r}"> <apex:column width="40%" value="{!nt.Product__c}" headerValue="Product"/> <apex:column width="30%" value="{!nt.USIM__c}" headerValue="USIM"/> </apex:datatable>
The above gives me a great table of related items, but I need to filter and only show a specific category.
How do we do this in a Visualforce email?
- Ross James
- February 09, 2011
- Like
- 0
- Continue reading or reply
trigger syntax
HI,
I am new to apex and triggers when i write the below code its not firing trigger can any one please help me.
Trigger webaccount on Account (after insert) {
for(Account a: Trigger.new)
{
if(a.Website ==null){
a.Website = 'www.google.com';
}
else a.Website = 'froce.com';
}
}
Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger webaccount caused an unexpected exception, contact your administrator: webaccount: execution of AfterInsertcaused by: System.FinalException: Record is read-only: Trigger.webaccount: line 5, column 1
- chok
- February 07, 2011
- Like
- 0
- Continue reading or reply
How to display picklist values on the visual force page without writing any code.
I want to show the picklist value for global variable User on a visual force page.
But it is showing me incorrect parameter.
I have written code within vf as
<apex:outputlabel value="{! TEXT($User.UserType) }"/>
Does anyone knows how to do it.
I have tried different things.
I dont want to write any apex code for it.
- amitashtekar
- February 07, 2011
- Like
- 0
- Continue reading or reply
Need Help Creating Test Method for Web2Lead Extension
I am newbie and found out when I tried to deploy to production, I need to create a test method for the following code. This code came from a cookbook and it works fabulous in staging, but I can't deploy to production because it returns 0% test coverage. Any help would be appreciated!
public class myWeb2LeadExtension {
private final Lead weblead;
public myWeb2LeadExtension(ApexPages.StandardController
stdController) {
weblead = (Lead)stdController.getRecord();
}
public PageReference saveLead() {
try {
insert(weblead);
}
catch(System.DMLException e) {
ApexPages.addMessages(e);
return null;
}
PageReference p = Page.ThankYou;
p.setRedirect(true);
return p;
}
}
Here is my Visualforce page:
<apex:page standardController="Lead" extensions="myWeb2LeadExtension" title="Contact Us" showHeader="false" standardStylesheets="true">
<apex:composition template="{!$Site.Template}">
<apex:define name="body">
<apex:form >
<apex:messages id="error" styleClass="errorMsg" layout="table" style="margin-top:1em;"/>
<apex:pageBlock title="" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!saveLead}"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Contact us" collapsible="false" columns="1">
<apex:inputField value="{!Lead.FirstName}" required="true"/>
<apex:inputField value="{!Lead.LastName}"/>
<apex:inputField value="{!Lead.Title}" required="true"/>
<apex:inputField value="{!Lead.Company}" />
<apex:inputField value="{!Lead.Phone}" required="true"/>
<apex:inputField value="{!Lead.Email}" required="true"/>
<apex:inputField value="{!Lead.City}" required="true"/>
<apex:inputField value="{!Lead.State}" required="true"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:define>
</apex:composition>
</apex:page>
- CJ413121
- February 03, 2011
- Like
- 0
- Continue reading or reply
Do "Force.com Embedded Edition" licenses allow Apex source code to be deployed/executed?
Threads like Package install fail: missing feature apex class discuss editions that do and do not allow Apex source code to run. (Apex code in a managed package is treated somewhat differently.)
Can anyone point me to a data sheet that describes this capability for "Force.com Embedded Edition" licenses?
Thanks,
Keith
- Keith987
- May 25, 2011
- Like
- 0
- Continue reading or reply
Approval Process: How to Edit Pop-Up Warning Message on Clicking to "Submit For Approval"
Hello,
I have a "Submit For Approval" button for my Opportunity Record. The button is a standard button (therefore not a custom button).
When i click on the button it pops-up a warning type message with the following text and an "ok" and cancel" button.
"Once you submit this record for approval, you might not be able to edit it or recall it from the approval process depending on your settings. Continue?"
i wish to change the warning message that appears for users clicking on this button. I've had a look at the Workflow & Approvals > Approval Processes settings but cannot find where this message is set in the first place.
Does anyone know where such settings are configured for Approval Process buttons?
Thanks in advance.
- RedSales
- May 05, 2011
- Like
- 0
- Continue reading or reply
how to create field dependance between picklist and Text filed using visualforce page in salesforce
how to create field dependance between picklist and Text filed using visualforce page in salesforce
- kittu
- May 03, 2011
- Like
- 0
- Continue reading or reply
Exception when triggering a Post Feed from a Portal User
Hello,
I wrote a simple trigger to add a post on the project object whenever a new case is logged under that project. The trigger is working fine whenever I use a standard user but when it is a portal user creating the case, I'm getting the exception:
System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, Entity is read-only: FeedItem: []
Thanks,
Pedro
- PedroL
- May 02, 2011
- Like
- 0
- Continue reading or reply
Installed package usage - adoption
Hello,
I would like to check if there is any way to find out the usage of the Installed packages.
I would like to check which user is using the installed package? Which page layouts use features from custom packages?
Do I have to write any custom query to find out these details?
Thanks
uma
- SFDummy
- April 28, 2011
- Like
- 0
- Continue reading or reply
VFP using pageblock table is not saving when i am using some filter
VFP:
<apex:page standardController="Account" extensions="AccountPageblock" recordSetVar="records" id="thePage">
<apex:form id="theForm">
<apex:pageBlock id="thePageBlock">
<apex:pageBlockTable value="{!records}" var="record" id="thePageBlockTable">
<apex:column >
<apex:inputField value="{!record.Name}" id="AccountNameDOM" />
<apex:facet name="header">Name</apex:facet>
</apex:column>
<apex:column >
<apex:inputField value="{!record.Type}" id="AccountTypeDOM" />
<apex:facet name="header">Type</apex:facet>
</apex:column>
<apex:column >
<apex:inputField value="{!record.Industry}"
id="AccountIndustryDOM" />
<apex:facet name="header">Industry</apex:facet>
</apex:column>
</apex:pageBlockTable>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}" id="saveButton" />
<apex:commandButton value="Cancel" action="{!cancel}" id="cancelButton" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Contoller:
public class AccountPageblock {
public AccountPageblock(ApexPages.StandardSetController controller) {
}
public List<Account> getrecords() {
return [SELECT Type, Name, Industry FROM Account where Industry =: 'Energy'];
}
public abstract class MyController{
Apexpages.StandardController controller;
public MyController(Apexpages.StandardController c){
controller = c;
}
public PageReference save() {
controller.save();//invoke standard Save method
return Apexpages.currentPage();//refresh current page
}
}
}
- Nagesh E
- April 14, 2011
- Like
- 0
- Continue reading or reply
Creating a new field on an object with Apex code
Is there a way to create a new field on an object with Apex code? I'm pretty sure it can be done with the Metadata API, but I wondered if there's a way directly from within Apex.
- chrisbellamy
- April 14, 2011
- Like
- 0
- Continue reading or reply
how can i get object's metadata from a managed package
I installed a managed package ,and created some customer field in sandbox.
When i will deploy object and program ,i need object's metadata file .
But in eclipes ,i just have stander object and customer object .
I can't get object metadata with pkg.
- powergx
- April 14, 2011
- Like
- 0
- Continue reading or reply
how can we save data through YUI data Table to salesforce objects
I have a VF page:--
- Aman
- April 14, 2011
- Like
- 0
- Continue reading or reply
Invoke web service from another Salesforce instance
Hi all,
I want to ask about is it possible to call web service that is generated from another salesforce instance? I just want to know about this possiblity... Any suggestions would be great.. Thanks
Regrads
- Edwin K
- April 14, 2011
- Like
- 0
- Continue reading or reply
Inline Editing Dependent Picklists
I have a visualforce page that contains dependent picklists but I want to have inline editing enabled. When I do this I get a VF error that says inline editing isn't available for dependent picklists.
Does anyone know a workaround?
- JJJenkins
- April 13, 2011
- Like
- 0
- Continue reading or reply
Exporting Salesforce leads and information
I am attempting to back up all of our information from SalesForce and am trying to export all of our leads and information. I saw a previous discussion which mentioned that I could simply export from the data management tab in the administrative settings. However, that options does not seem to exist any longer. I'd appreciate any advice and also what is the best format for exporting the data a well.
Eric
http://boards.developerforce.com/t5/Excel-Connector/Exporting-data-from-Salesforce/td-p/46023
- E_J_P
- April 13, 2011
- Like
- 0
- Continue reading or reply
Upsert Process Limitations?
Hi,
I am running into some duplicate external ID errors when I am using the upsert process of the DataLoader. I am hoping that I am just overlooking something, and the functionality exists within the Loader.
I am migrating data from one salesforce instance to another, using external IDs to build relationships within the new instance. I use an external ID in the Account and one in the Contact objects.
The problem arises when I run into an Account with more than one contact, I start running into errors like this:
Duplicate external id specified: 001a000000o7h1hiar |
Is this an actual limitation to the upsert process, or am I missing something? All the rows that returned this duplicate error have been pushed out into the error.csv, can I do anything with these? Thanks again, any help is appreciated. I would hate to have to migrate some rows manually!
- du-scodouglas
- April 13, 2011
- Like
- 0
- Continue reading or reply
follow people on chatter developer edition
Hi
To begin with, I am building a very basic app to explore and evaluate chatter for our requirements.
Have enrolled for Developer edition. Now I have to add couple of more people to follow on chatter. Thereafter get the updates of all the people whom I follow via Oauth and Rest API.
Now here comes a newbie problem -
Even after creating our accounts, we cannot search for each other in our respective chatter accounts. Is that due to developer edition or something else?
Thanks in advance
Neeti
- nr
- April 13, 2011
- Like
- 0
- Continue reading or reply
Retrieving comments
I am very new to this sorry. I've tried to use the chatter code recipie to retrieve comments on a feed item, but what code can I use to display it on my visual force page?
- TatianaSmirno
- April 13, 2011
- Like
- 0
- Continue reading or reply
When is Siteforce available?
Is there anybody knows when Siteforce application is available?
- pmichaelpt
- April 12, 2011
- Like
- 0
- Continue reading or reply
Berichtserstellung und dort Doppelteabfrage bei Feldfiltern
Sehr geehrte Damen und Herren,
Ich habe vor einigen Tagen ein Problem mit dem Support besprochen.
Dieser konnte, trotz großen Bemühungen, mein Problem nicht beheben.
Er bat mich dieses hier anzusprechen. Diese kann dann von einem Entwickler beantwortet werden, meinte er.
mein Problem:
Ich bin dabei einen Bericht zwischen "Kunde und Bestelungen" zu erstellen.
Nun bin ich auf ein Problem gestoßen, welches (laut der SalesForce Hilfe) keines sein sollte.
Ich möchte bestimmte Kundennummern (beginnt mit), diese Kunden sollen ein bestimmtes Produkt (gleich) bestellt und andere Produkte nicht bestellt haben.
Bsp.:
Produkt -> gleich -> Visitenkarte
Kundennummern -> beginnt mit -> xxxxx
Produkt -> gleich -> Flyer
NOT 1 AND (2 AND 3), Visitenkarten möchte ich ausschließen
Nun habe ich die untenstehende Hilfe gelesen und eingebaut.
Leider gibt der Filter mir trotzdem Kunden mit Visitenkarten aus.
"...
Bedingungen können mit dem Ausdruck NOT beginnen, nicht jedoch enden.
So findet “NOT 1 AND (2 OR 3 OR 4)” beispielsweise Datensätze, die einem der letzten drei Filter entsprechen, und schließt Datensätze aus, die dem ersten Filter entsprechen.
..."
Antwort von Support:
Es gibt eventuell eine Möglichkeit, abhängig von der Anzahl der Produkte die Sie verwenden.
Für jedes Produkt müsste ein Lookup Feld erstellt werden, das auf das gewünschte Produkt zeigt.
Anschließend kann man mit APEX Triggern arbeiten um die Accounts auszuschließen, die nicht den Kritierien entsprechen.
Allerdings bieten wir für Programmierungen dieser Art keinen Support.
In diesem Fall müsste ich Sie dann an das Entwicklerforum unter http://boards.developerforce.com/sforce/?category.id=developers verweisen, wo Sie Ihre Frage posten können.
Ich hoffe das mir hier jemand helfen kann.
Für weitere Fragen stehe ich gerne zur Verfügung.
Mit freundlichen Grüßen
Heiko
(bei entstehnden Kosten bitte Rückmeldung vorab geben)
- upHeiko
- April 12, 2011
- Like
- 0
- Continue reading or reply
Dashboard table: more than 2 columns?
Is it possible to create a dashboard table component with more than 2 columns?
E.g.: ACCOUNT 1 CITY TURNOVER
ACCOUNT 2 CITY TURNOVER
ACCOUNT 3 CITY TURNOVER
...
Thanks.
- Sapamrm
- April 11, 2011
- Like
- 0
- Continue reading or reply