• BoolsEye
  • NEWBIE
  • 5 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 18
    Replies
Hi,

I have an urgent problem that needs to figure out ASAP.

We have an app on appexchange. In our app, we use some internal link like so "https://na5.salesforce.com/servlet/servlet.FileDownload?file=01540000000KqY6" in our S-Control. As I understand, When an user install our app, AppExchange will will update these links with their environment setting. Everything is working fine since last week. But today, when a new user installed our app, the links don't update properly. Any ideas? does saleforce/appexchange change something? I need this resolves quickly. Please response. Thanks.

William
Hi all,

I have a question regarding visualforce. I have a page which shows the contact lists. I use apex:datatable to show those and add checkbox in every row. What I want to do is send email to every contact that is checked. I don't have a clue on how to do this.
Or is there any apex control besides apex:datatable that already show checkbox ? Any suggestions would be great.

thanx,
edwin
I'm trying to set up a custom list controller to take advantage of the new build-in pagination capabilities in the new release, but the example provided in the docs doesn't appear to be working.

The sample code:

public class opportunityList2Con {
  public ApexPages.StandardSetController setCon {
  get {
    if(setCon == null) {
      setCon = new ApexPages.StandardSetController(Database.getQueryLocator([select
      name,closedate from Opportunity]));
    }
  return setCon;
  }
  set;
  }
}

<apex:page controller="opportunityList2Con">
  <apex:pageBlock >
    <apex:pageBlockTable value="{!setCon.records}" var="o">
      <apex:column value="{!o.name}"/>
      <apex:column value="{!o.closedate}"/>
    </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>


Produces a compiler error: "Unknown Property: 'SObject.name'"    My dev account is on NA6 so I do have the winter '09 release.

Has anyone succeeded in using the pagination feature with a custom list controller??

Thanks,
Hi,
I am developing an apex class which is getting fired by a cron toolkit. In this Apex class I am checking for the name of the day for today(Example. Sunday, Monday etc.). I need to perform some database operations in today is the Wednesday. But I am not getting method in date object static and instance methods which will geive me the name of the day for  specified date. Can anyone tell me the syntax of such method. Please note that it should be Apex class method.
Thanks for the help :)
I have a weird behaviour when adding apex:detail and apex:commandButton on different tabs on a tabpanel.
 
In my code when I click on the commandButton on Tab2 the page gets refreshed.
 
Now I click on the standard 'Edit' button for the contact on Tab1, click on 'Cancel' and the Contact is gone.
 
It seems as if the ID is lost when the edit page is redirected back to my VF page.

It works if I do not click on the commandButton on Tab2 before using the edit button.
 
Is there any workaround for this or am I doing something wrong ?
 
Thanks.
 
 
Code:
<apex:page standardcontroller="Contact" extensions="MyContactControllerExt">
 <apex:tabpanel >
  <apex:tab label="Tab1">
   <apex:detail subject="{!Contact.Id}"/>
  </apex:tab>
  <apex:tab label="Tab2">
   <apex:form >
   <apex:commandButton value="Go" action="{!doSomething}"/>
   </apex:form>
  </apex:tab>
 </apex:tabpanel>
</apex:page>

 
Code:
public class MyContactControllerExt{

    private Contact c;
    
    public MyContactControllerExt(ApexPages.StandardController controller) {
        c = (Contact)controller.getRecord();
    }

    public PageReference doSomething() {
        return null;
    }
    
    public Contact getContact() {
        return c;
    }
}

 
I tried to create the ApexPages.StandardSetController example from the Winter 09 Apex Developers Guide in our Pre-Release environment.
 
I create the controller and the page as displayed below. The controller is ok but when I try to save the page I get the error:
 
Error: Unknown property 'SObject.name' 
 
I first tried this with a custom object and got the same error, can anyone confirm this.
 
Is there a cast missing somewhere ?
 
Code:
public class opportunityList2Con {
public ApexPages.StandardSetController setCon {
get {
if(setCon == null) {
setCon = new ApexPages.StandardSetController(Database.getQueryLocator([select
name,closedate from Opportunity]));
}
return setCon;
}
set;
}
}

 
Code:
<apex:page controller="opportunityList2Con">
<apex:pageBlock >
<apex:pageBlockTable value="{!setCon.records}" var="o">
<apex:column value="{!o.name}"/>
<apex:column value="{!o.closedate}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>

 
In the FAQ for Visualforce pages I found this:
 
>> With Professional edition you cannot create custom logic for your pages, you must build pages with only standard controllers. <<
 
Is the "standardController"/"controller" attribute restricted in some way or is the "extensions" attribute not supported in Professional Edition ?
 
Is it possible that a Professional Edition user installs my certified managed package and create a new page using my custom controller class as an extension or will he get an error when saving the page ?

 
An example would be that we provide a controller class within our package that collects data for a quote from custom objects (as in the Quote2PDF example) and the user creates a VF page to be displayed as a PDF with his own layout.
 
Thanks.
Hi,

I saw this : http://blogs.salesforce.com/features/2008/05/visualforce-pag.html

In Summer 08 Will we be available to create Visualforce pages into Production ? Or it's already available ?

Thank you
Is there anyway for a trigger to know if is being executed in the context of a user interface or a web service?

What i want to do is this:

I am extracting pdf data and putting it in salesforce objects through a client application using webservice. I don't want to give errors -
I want to just insert the data and send an e-mail to the user and letting them know if there are errors. When they go into salesforce, they will see the data.
When they edit the data, saving it would require fixing the errors - I would use .addError when used in the UI context.





Hi,
 
I created a custom style for a custom tab and added an icon from the document folder to it.
 
I can see the icon in the custom style dialog and in the custom tabs list but it is not shown in the caption when I go to this tab or the detail page of the related custom object.
 
It was working and I think it did not work anymore after the Spring 07 release.
 
Anyone else noticed that ?
 
Thanks,
 
BoolsEye
Code:
function runQuery() {
 sforceClient.setBatchSize(5);
 sforceClient.query("Select Id, Name From Account", queryCallBack, true);
}

function queryCallBack(qr) {
 if (qr.size > 0) {
   alert(qr.records.length);
  if (qr.done != true) {
   sforceClient.queryMore(qr.queryLocator, queryCallBack, true);
  }
 }
}

 
I set setBatchSize to 5 but I always get all my Accounts with this code and 'done' is always true. I only have nearly 50 accounts in my database but does setBatchSize only has an effect on the query if there are more than that in the database ?  I cannot find anything I'm doing wrong in this code. (I use AJAX toolkit 3.3 beta).
 
Thanks,
 
// Juergen
 
 
 
 
 
 
 
I tried to set a custom currency (double) field to null using the AJAX toolkit (beta 3.3) but it does not work.
 
The field is in the fieldsToNull array of the DynaBean and nillable is true but it is ignored during saving. The value stays the same.
 
Setting my value to 0 works, so saving is fine.
 
Is it not possible to set a currency field to null using the toolkit ?
 
Thanks,
 
// Juergen
I am working on an AJAX application with S-controls which reference third party javascript libraries and images from a folder on the documents tab.

It works fine but when I upload my application to AppExchange and someone installs the application the file ids in the download urls change

"https://na1.salesforce.com/servlet/servlet.FileDownload?file=015300000005Gll"
"https://emea.salesforce.com/servlet/servlet.FileDownload?file=015300000006846"

Even the server name changes from n1.salesforce.com to emea.salesforce.com. How can I resolve this ?

Is this good practice or should I host the libraries and images on our own website.

I looked into the "Sforce Explorer" s-control and it includes javascript files from "http://sandbox.sforce.com/ajax/sforceExplorer/". What other options do I have in salesforce to upload files.

Thanks,

Juergen