• Gowri Shankar Palanaismay
  • NEWBIE
  • 10 Points
  • Member since 2015
  • Associate IT Consultant
  • ITC Infotech

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 6
    Replies
First we create Lightning App which is  helloAttributes.app.After that we need to create helloAttributes.cmp , it prompt error saying DUPLICATE_VALUE while I haven't create any component yet.With this error, I am not sure how to proceed with the rest.
  • September 15, 2015
  • Like
  • 0
While run a following code i have got error like 
[Error] Error: Mycontroller Compile Error: Illegal assignment from List<Account> to Account at line 6 column 3
Can anybody give a solution ?
CODE:
<apex:page controller="Mycontroller" tabStyle="Account">
<apex:form >
<apex:pageBlock title="Account Details">
<apex:pageBlockSection title="Account information">
    <apex:inputField value="{!Account.Name}"/>
    <apex:inputField value="{!account.Phone}"/>
    <apex:inputField value="{!account.Industry}"/>
    <apex:inputField value="{!account.Website}"/>
</apex:pageBlockSection>
<apex:pageBlockSection title="Account Details">
    <apex:inputField value="{!Account.Fax}"/>
    <apex:inputField value="{!Account.Shippingcity}"/>
    <apex:inputField value="{!Account.AnnualRevenue}"/>     
</apex:pageBlockSection>
<apex:pageBlockButtons>
 <apex:commandButton action="{!Save}" value="Save"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
CLASS:
public with sharing class Mycontroller
{
 Public Account acc;
 Public Mycontroller()
 {
  acc=[SELECT id,Name,Phone,Industry,Website,Fax,Shippingcity,AnnualRevenue from account Where id=:ApexPages.currentpage().getparameters().get('id')];
  }
 Public account getaccount()
 {
  return acc;
  }
 Public Pagereference Save()
 {
 update acc;
 pagereference page=new Apexpages.StandardController(acc).view();
  return Page; 
 }
}
Hi,

When I started to learn Salesforce I used my personal Salesforce Developer account to login and gain badges of Trailhead. Currently, I am employeed at a company which requested to gain Salesforce badges with my company e-mail. Is there a possibility to merge these accounts or explain Salesforce that the accounts belong to the same user and therefore the badges are interchangeable?

I hope there is a possiblity to avoid unnecessary work :)

Kind regards!
Reinier
Hi,

Can anyone let me know what is the use of coords in apex:commandlink or outputlink and what are the scenarios it is used.

Regards

When someone takes the time/effort to repspond to your question, you should take the time/effort to either mark the question as "Solved", or post a Follow-Up with addtional information.  

 

That way people with a similar question can find the Solution without having to re-post the same question again and again. And the people who reply to your post know that the issue has been resolved and they can stop working on it.