• hokusai
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 42
    Replies

 

Deploy Results:
   File Name:    objects/Task.object
   Full Name:  Task.CICTask
   Action:  NO ACTION
   Result:  FAILED

   Problem: The label:CIC Task ABS on record type:Task.CICTask is not unique

 

 

 

I see the yellow highlight with the overwrite action on step 3 of the deployment wizard but then get the following error. 

 

Deploy Results:   File Name:    objects/Task.object   Full Name:  Task.CICTask   Action:  NO ACTION   Result:  FAILED   Problem: The label:CIC Task ABS on record type:Task.CICTask is not unique

  • September 15, 2010
  • Like
  • 0

Does this require contacting support for a feature activation?  Is it free?  

This should not be the case.  the browser appears to be accurate.  If I make a new ecplipse project it fixes the problem.  is this a bug?
On IE 6 and 7 I am seeing an intermittent problem where a column of checkboxes do not render.  It will work one minute and not the next I have asked the next person who hits this problem to send me the source.  We are following the basics of the Wrapperclass
http://wiki.apexdevnet.com/index.php/Wrapper_Class

 In the meantime:

Are there known issues rendering checkboxes in list controlllers?
Are there known VF issues on IE6?
Why would this column of checkboxes disappear intermittently?

Hi,

 

The Problem I’m having is that the actionSupport function SearchTemplates from my dependent picklist is only running once when I set the value. When I change the values again it does not run my SearchTemplates method. What is happening is that Salesforce is removing the onchange event from my select list after running the action once. I think this maybe a Salesforce bug. Is there a workaround with out changing my data model?

 

Below is a simple code example of what I am trying to do:

 

Visualforce Page

 

<apex:page controller="TemplateCont" >
<apex:form >
<apex:actionRegion >
<apex:inputField value="{!aTemplate.Category__c}"/>
<apex:inputField value="{!aTemplate.Subcategory__c}">
<apex:actionSupport action="{!SearchTemplates}" event="onchange" rerender="matchingTemplates" status="status"/>
</apex:inputField>
<apex:actionStatus startText=" Please wait..." id="status"/>
</apex:actionRegion>

<apex:pageBlock title="Matching Templates" id="matchingTemplates" >

{!MatchingTemplates.size}

</apex:pageBlock>

</apex:form>
</apex:page>

Controller

 

 

public with sharing class TemplateCont {
public Template__c aTemplate{get; set;}
public List<Template__c> matchingTemplates{get; private set;}
public TemplateCont(){ aTemplate = new Template__c(); matchingTemplates = new List<Template__c>(); } public void SearchTemplates(){ matchingTemplates = [SELECT name, category__c, subcategory__c FROM Template__c where category__c=:aTemplate.Category__c and subCategory__c=:aTemplate.Subcategory__c]; } }

 

 

Would be greatfull for any help.

 

Thanks

 

Peter

  • July 30, 2010
  • Like
  • 0

I am trying to use JavaScript in a Visual Force page to sort OpportunityLine Items in Professional Edition (i.e. can't use a controller to sort the data, so resorting to using JavaScript to sort) but the items don't display in the table.   Thanks for any help.

 

<apex:page standardController="Opportunity" showHeader="false" renderas="pdf">

<table border="0" cellspacing="0" cellpadding="0" width="100%" id="table1">
<tr>
    <td>
        <img src='{!URLFOR($Resource.Logo)}' title="logo" />
    </td>
    <td  align="right"><font face="Arial" >
    <b>Quote  for {!Opportunity.Account.Name}</b></font><br/>
    </td>
    
    
</tr>

<hr/>

</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" id="table1">
<tr>    <td><font face="Arial" >
        {!$Organization.Name}<br/>
        {!$Organization.Street}<br/>
        {!$Organization.City}, {!$Organization.State} {!$Organization.PostalCode}<br/>
        Phone: {!$Organization.Phone}<br/>
        Fax: {!$Organization.Fax}<br/>
        </font></td> 
        <td width="50%">&nbsp;</td>
   <td ><font face="Arial">Quote number: {!Opportunity.QuoteNumber__c}_
   {!Opportunity.QuoteVersion__c}<br/>
        <br/>
        Offer valid Through:&nbsp;<apex:OutputField value="{!Opportunity.CloseDate}"/><br/>    
        Proposed by: {!Opportunity.Owner.LastName} {!Opportunity.Owner.FirstName}</font>
     </td>
</tr>
</table>
<br/>
<hr/>
<p><b><font face="Arial" color="#000080">Address Information</font></b></p>

<table border="0" width="100%" id="table2">
<tr>
       <td colspan="3">
           <font face="Arial">Account Name: {!Opportunity.Account.Name} <br/><br/></font>
       </td>
</tr>
<tr>
       <td>          
           <font face="Arial">Bill To:<br/>
                             {!Opportunity.Account.BillingStreet}<br/>
                             {!Opportunity.Account.BillingCity}, {!Opportunity.Account.BillingState} {!Opportunity.Account.BillingPostalCode} 
           </font>
        </td>
        <td width="50%"></td>
        <td >
           <font face="Arial">Ship To:<br/>
                              {!Opportunity.Account.ShippingStreet}<br/>
                              {!Opportunity.Account.ShippingCity}, {!Opportunity.Account.ShippingState} {!Opportunity.Account.ShippingPostalCode} 
           </font>
        </td>
</tr>    
</table>
<br/>
<hr/>
<p><b><font color="#000080" face="Arial">Products</font></b></p>
<table border="0" width="100%" id="table4">
<tr>
       <td bgcolor="#C0C0C0"><font face="Arial">Product</font></td>
       <td bgcolor="#C0C0C0"><font face="Arial">Description</font></td>
       <td bgcolor="#C0C0C0"><font face="Arial">Qty/Hours</font></td>
       <td bgcolor="#C0C0C0"><font face="Arial">Unit Price</font></td>
       <td bgcolor="#C0C0C0"><font face="Arial">Total Price</font></td>
</tr>
<tr>
       <script>
               var sortArray = new Array();
               var idxArray = new Array();
               function newItem(idx,Name,Description,Quantity,UnitPrice,TotalPrice){
                   this.idx = idx;
                   this.Name= Name;
                   this.Description= Description;
                   this.Quantity= Quantity;
                   this.UnitPrice= UnitPrice;
                   this.TotalPrice= TotalPrice;
               }
           <apex:repeat value="{!Opportunity.OpportunityLineItems}" var="line">
               sortArray[sortArray.length++] = new newItem({!line.Sort_Order__c}, {!line.PricebookEntry.Name},{!line.Description},{!line.Quantity},{!line.UnitPrice},{!line.TotalPrice});
           </apex:repeat>  
            sortArray.sort();
               
               
       
         for (var i = 0; i < sortArray.length; i++) {
           <tr>
             <td>sortArray[i].idx}</td>
             <td>sortArray[i].Description</td>             
             <td>sortArray[i].Quantity</td>
             <td>sortArray[i].UnitPrice/></td>
             <td>sortArray[i].TotalPrice/></td>
          </tr>
         }
         
       </script>
</tr>
<tr>
       <td bgcolor="#C0C0C0" align="right" colspan="6">
       <font face="Arial"><b>Total:</b>&nbsp;<apex:OutputField value="{!Opportunity.Amount}"/></font></td>
</tr>
</table>
<hr/>
<p><b><font face="Arial" color="#000080">Additional Information</font></b></p>
{!Opportunity.Customer_Message__c}
<hr/>
<table width="100%" id="table5">
<tr>
   <td width="50%"><b>{!$Organization.Name}</b></td>
   <td width="50%"><b>{!Opportunity.Account.Name}</b></td>
</tr>
<tr>
   <td width="50%">&nbsp;</td>
   <td width="50%">&nbsp;</td>
</tr>
<tr>
   <td width="50%">Signature<hr color="black" size="1"/></td>
   <td width="50%">Signature<hr color="black" size="1"/></td>
</tr>
<tr>
   <td width="50%">Name<hr color="black" size="1"/></td>
   <td width="50%">Name<hr color="black" size="1"/></td>
</tr>
<tr>
   <td width="50%">Title<hr color="black" size="1"/></td>
   <td width="50%">Title<hr color="black" size="1"/></td>
</tr>
<tr>
   <td width="50%">Date<hr color="black" size="1"/></td>
   <td width="50%">Date<hr color="black" size="1"/></td>
</tr>
</table>
<p>&nbsp;</p>
<hr/>
<p align="center"><font face="Arial"><i>Copyright {!$Organization.Name}.</i></font></p>
</apex:page>

 

  • June 12, 2010
  • Like
  • 0

Is it possible to pass a parameter to an Apex page without the user having to perform an action (such as clicking a button or link)? Essentially, the idea would be to have a VF page that takes a parameter from the query string and passes it to the apex controller when my getter function is called. Page is something like this:

 

<apex:page controller="CompanyStatsDashboardController"> ...Some javascript to get the query string parameter... <apex:image url="{!UserCountChart}"></apex:image> </apex:page>

 The reason I can't just call something like System().currentPageReference().getParameters().get() is because the VF page lives on a Dashboard, and as such renders in an iFrame. The iFrame has it's own URL that does not contain the parameter, and as far as I can tell you can't tell the Dashboard to pass parameters to the VF page. I've also tried setting an <apex:param> with the value I want to pass and using apexPages().currentPage().getParameters(), but this doesn't work either. 

 

 

I have created a formula which is using a custom setting. The formula works fine on developer edition vfp page , but not working with customer portal page. It gives #Error ! as value on Page. 

 

the formula field is like this :

 

$Setup.x1_alpha__MyConfig__c.x1_alpha__MyField  

 

 

Any idea, please let me know whats the problem in using with customer portal.

 

This should not be the case.  the browser appears to be accurate.  If I make a new ecplipse project it fixes the problem.  is this a bug?
We had develop a page in visulaforce, this do a filter Accounts crossing with other objects. This page is for one client, they have arround 600.000 records in the Account Table, we have controled the limits governors but the result of a normal filter will can return more than 8000 records. We try to show the result with a component that paginates all the records but when the result have more than 1200 records aprox visualforce gives us this error:

 

Maximum view state size limit (128K) exceeded. Actual viewstate size for this page was  131,375K.

 

How can we control this limit to show a custom message or how we can do to show all the records?

 

thanks for all.
  • September 16, 2009
  • Like
  • 0

Hi All,

I need to find the distance in miles. If i provide to two zip codes of US, so it should calculate and give the distance in miles between the two. Can anyone help on this.

 

Thanks

Ruchie

 

Is there any way to retrieve the Report data? I didnt find the any API call for salesforce which supports this.

Your response is appreciated. 

 

Thanks

shaan 

  • July 22, 2009
  • Like
  • 0

Since you can't create a Field Update and attach it to a Workflow Rule that will perform any action on a Multi select picklist field, is it possible to create a trigger that will accomplish the same thing?

 

We have Contact records that are shoved into Salesforce from an external system.  I need to copy the "title" of the new record into a multi picklist field.  

 

How on earth?

I can access both Holidays and Business Hours, but I'm wondering where to find the junction table between the two.  I'm writing code where I'd like to access only the Holidays that are associated with the Business Hours marked as default and I'm not seeing it.  Any help would be appreciated.

I notice that Visual Force controller extensions seem to act like session-level "backer beans", and are not constructed for each HTTP request like, for example, a JavaServer Faces request-level backer bean would be (as defined as such in faces-config.xml).

 

Is there any documentation that describes the precise lifecycle management of server-side objects that are instantiated and managed automatically by the Visual Force runtime, such as controllers and controller extensions?  I do not see this information in any of the PDF documents...

 

Thanks!

 

Dave

 

  • May 30, 2009
  • Like
  • 0

Hi, I have this html in a visual force page. I am trying to repeat this code 6 times. Is there a for-loop function in apex that will allow me to do this.


such as


for (int x=0; x6; x++){

<table style="width:700px"><tr>
<td valign="middle" align="center">
<br/><br/><h1>Commercial Invoice</h1>
</td>
<td>
<img id="theImage" src="https://na1.salesforce.com/servlet/servlet.FileDownload?file=01530000000mvyc" />

</td>
</tr>
</table>

 
}

Message Edited by Alexandre on 05-25-2009 07:18 AM

Hey everyone. I have a page that we were rendering as a pdf. It was decided by the powers above that we wanted this as a Word document instead. I was hoping that I could easily make the switch by changing renderas="pdf" into contentType= "application/msword"  For grins, I also used .vnd.ms-excel and got the same red x.

 

For the most part this has worked. But I have one issue with an apex image on my page. It's calling a static resource (gif) which renders fine with a PDF or html - but shows up as a nice red X on the MS word. Anyone know how I can fix this? Is there a trick to using static resources for pages rendering as MS word  / excel that's different from PDF or HTML?

 

Page Code:

<apex:page standardcontroller="Opportunity" showheader="false" contentType="application/msword"> <!-- bunch of other stuff --> <apex:image url="{!$Resource.p1source_lrg_logo}" / > <!-- More bunches fo other stuff --> </page>

 

I don't change the apex image code at all between the renderas PDF, HTMl or setting the contenttype

I am developing an Apex class to create records by parsing a .csv file.  

I was expecting a CSV file to appear as a textAttachment in the email object. The MIME type for a CSV file is (according to RFC 4180) is text/csv. This actually appears as a binaryAttachment with MIME type application/vnd.ms-excel. I am saving the file as CSV (comma separated values) in Excel

 

Is there a way to get a CSV file as a text attachment (whose body is then a Apex String instead of a blob)?  

Any pointers would be greatly appreciated.

 

Thanks.  

 

 

  • March 04, 2009
  • Like
  • 0

I am creating an application that I will eventually distribute via the appExchange as a managed package and have some questions regarding potential limitations that I would like to have clarified.

 

1.  I would like to place a link to a report on a page layout.  I've followed the instructions in the documentation to find the id for the report and have successfully embedded the link to the report in my application by creating the a relative URL reference as instructed.  But it occurs to me that the report would not have the same id in the customer's installation.  Is that correct?  If so, how can I set up a link to a specific report in a page layout?

 

2.  I want to create custom buttons for placement on standard objects as well as custom objects.  I have done this successfully with both relative URL's (as in "/apex/mypage") and by linking the button directly to a visual force page.  There are some instances where I would prefer to use relative URL's because I can include parameters.  I have seen some references on these boards which indicate that a relative URL used on a custom button cannot be packaged.  I also heard the following in a recent Salesforce webinar: "You can't package a generic reference to a custom object on a custom button."  Can someone please clarify this for me?  Can relative references (URL's with parameters as I understand it such as /apex/mypage?parm1=test) be used in managed package?  If they can't be used on a button or link, can they be used as part of a pagereference in the apex code attached to the visual force page?  Is there any documentation on this issue?

 

3.  According to the help documentation, visual force pages are "editable, but not upgradable".  If I want to update a visual force page in my packaged application in a subsequent version, how do I accomplish that?

 

Any help on these concerns would be greatly appreciated.

  • January 28, 2009
  • Like
  • 0
I am getting this error when trying to add a currency type field to a VF page. I expect it has somethign to do with multicurrency being enabled in the org but I don't know how to handle it. Here is my apex code... if I remove the column and outputfields for opportunity.amount, then the page works fine.
 
How do I deal with correcting this? Thanks
 

<apex:pageBlockTable value="{!opportunities}" var="o" rendered="{!selectedSize <> 1}">

<apex:column rendered="{!selectedSize > 1}" headerValue="Action">

<apex:outputLink value="{!URLFOR($Action.Opportunity.View, o.id)}">view</apex:outputLink>

</apex:column>

<apex:column headerValue="Opporunity Name">

<apex:commandLink value="{!o.name}" action="{!setbubble}" status="status" rerender="thePlot,selectedBubbles">

<apex:param value="{!o.id}" name="foo" assignTo="{!selectedId}"/>

</apex:commandLink>

</apex:column>

<apex:column headervalue="Account Name"><apex:outputField value="{!o.accountId}"/></apex:column>

<apex:column headerValue="Amount"><apex:outputField value="{!o.amount}"/></apex:column>

<apex:column headerValue="Stage"><apex:outputField value="{!o.stageName}"/></apex:column>

<apex:column headerValue="Probability"><apex:outputField value="{!o.probability}"/></apex:column>

<apex:column headerValue="Close Date"><apex:outputField value="{!o.closeDate}"/></apex:column>

</apex:pageBlockTable>

<apex:pageBlockSection rendered="{!selectedSize == 1}">

<apex:outputField value="{!opportunity.name}"/>

<apex:outputField value="{!opportunity.account.name}"/>

<apex:outputField value="{!opportunity.probability}"/>

<apex:outputField value="{!opportunity.closeDate}"/>

<apex:outputField value="{!opportunity.amount}"/>

<apex:outputField value="{!opportunity.lastActivityDate}"/>

</apex:pageBlockSection>


 
Is anyone familiar with this tool and where I can get access to it?
  • October 24, 2008
  • Like
  • 0
Hello,

is it possible to use the Salesforce.com API to determine which fields are visible to a specified Profile and which of these are read-only?

I thought this information might be accessible from the Profile object, but as far as I can tell it isn't.

Thanks in advance

Regards

John
  • January 29, 2008
  • Like
  • 0