• Manan_Shah
  • NEWBIE
  • 5 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies

Hi

I have created Custom objects and I want to display details of that objects into visual force page.

So whether I should write Standard Controller or Custom Controller?

If I write Standard Controller then How Should I write it and display fields in Visual force page?

Hi

 

I am creating page using Visualforce.

 

i have created input field like text box.

 

How can I create Select list so that all values of that list box coming from Salesforce custom object.

 

for example country is a select box and it has values like INDIA,USA,UK etc.

Hi

I am importing records of Custom object through Data loader into Salesforce.com.

 

Now I want to validata those records for example number should not be there in name field.

 

These validation can be done through Trigger before it is inserting into SFDC.

 

So how can I write that Trigger that validates record coming from Data Loader?

Hello everyone,

 

I am new to SFDC.

I have gone through SFDC training in classroom.

but I didn't understand from where I should start in SFDC?

Please can you help me for this?

 

Thanks and Regards,

Manan Shah

 

I am running into an issue in Apex outbound email. If I have an email message that is using a template, and that I am sending to a User (via setTargetObjectId), Apex won't let me set WhatId -- if I do, it gives me this error message

"System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_ID_FIELD, WhatId is not available for sending emails to UserIds."

Is there any easy way around this limitation? Obviously via workflow rules I am able to send emails to users that have a "What" context sent (for instance, send an email to Opportunity owner when stage change X occurs). Seems like a big limitation of the Apex email service to not allow this.

For now, I am intending to set up temporary Contact objects for Users who do not have them, just so I can send them email.

Here is the code that is hitting this error. "UserId" is the ID of a User object and "WhatId" is the ID of an Opportunity.

Code:
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
EmailTemplate template = [select Id from EmailTemplate where DeveloperName = :emailTemplateUniqueName];
mail.setTemplateId(template.Id);
mail.setReplyTo('no-reply@mycompany.com');
mail.setSenderDisplayName('Salesforce');
mail.setTargetObjectId(userId);
mail.setWhatId(whatId);
mail.setSaveAsActivity(false);
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
 
Any pointers much appreciated. If (as I suspect) this is just a straight Apex issue and cannot be done, I'll open an Idea to fix it.

Jeremy Kraybill
Austin, TX
Hi

I want to create a table which has, as it's last column, a radio button so that the user can select one item from the table.  So in this example fro the user guide:

<apex:page controller="dataTableCon" id="thePage">
<apex:dataTable value="{!accounts}" var="account" id="theTable" rowClasses="odd,even" styleClass="tableClass">
<apex:facet name="caption">table caption</apex:facet>
<apex:facet name="header">table header</apex:facet>
<apex:facet name="footer">table footer</apex:facet>
<apex:column>
<apex:facet name="header">Name</apex:facet>
<apex:facet name="footer">column footer</apex:facet>
<apex:outputText value="{!account.name}"/>
</apex:column>
<apex:column>
<apex:facet name="header">Owner</apex:facet>
<apex:facet name="footer">column footer</apex:facet>
<apex:outputText value="{!account.owner.name}"/>
</apex:column>
</apex:dataTable>

I want to add one more column and out a radio button in it, so that the user can select one Account. But there is no 'inputRadio' apex tag. There is a 'inputCheckbox' radio tag, but I want it to be a radio button.

Any ideas?

Thx,
Hamayoun
</apex:page>