• Nikhil Dev
  • NEWBIE
  • 0 Points
  • Member since 2012
  • Developer

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 2
    Questions
  • 5
    Replies
I have an Opportunity record which is accessible using a Visualforce page.
The Opportunity is currently in Approval Process and when I click Reassign link and try to assing the ne Approver it is throwing me Internal Server Error. I have enabled debugs to check if there is any issue but I cannot see logs created.

We are using below code to display Opportunity detail page.
<apex:detail inlineEdit="true" showChatter="true" relatedListHover="true" />
 
Hello All,

I have created a page which supports in Salesforce1 app using the code samples from http://sfdc-styleguide.herokuapp.com/.

Now when I rerender some part of the page the styling gets disturbed.

Can anyone sugget a solution.
Hello All,

I have created a page which supports in Salesforce1 app using the code samples from http://sfdc-styleguide.herokuapp.com/.

Now when I rerender some part of the page the styling gets disturbed.

Can anyone sugget a solution.

Hi,

 I have created Rest resource class to accept json(POST Method) from php.

@RestResource(urlmapping='/JsonService/*')  
global class AttorneyAdapter{    
    @HttpPost
    global static void  doPost()    {        
        RestRequest req = RestContext.request;
        RestResponse res = RestContext.response;
        string strJSON = req.requestBody.toString();          
        JSONparser parser = JSON.createParser(strJSON);           
        Type reqObj = Type.forName('MyClass');         
        MyClass myClassObj =(MyClass)parser.readValueAs(reqObj);  
             lead l=new lead();
             l.lastname=myClassObj.last_name;
             l.firstname=myClassObj.first_name;
             l.title=myClassObj.userid;
             l.state=myClassObj.state;
             l.company=myClassObj.firm_name;
             insert l;  }  }

getting  error:
message: "System.JSONException: No content to map to Object due to end of input (System Code) Class.AttorneyAdapter.doPost: line 15, column 1

Help me....

 

thanks,

Raviteja

An image should  appear as link and it should redirect to another visualforce page.

How can I achieve this?

  • September 24, 2012
  • Like
  • 0

I am getting this error when I try to deploy a change set in production org from my test org: 

 

tapinterview does not exist or is not a valid override for action New.

 

Does anyone know what that means?

Hi i was wondering if it is possible to create pdfs from the standard email templates i.e. when someone clicks on send email and chooses the email template that maybe using javascript render a pdf aswell, any ideas on implementation?
trigger LeadInsert on Lead (after insert) {
map<String,Account> accmap = new map<String,Account>();
list<Account> acclist = new list<Account>();
list<Contact> conlist =new list<Contact>();
list<Opportunity> Opplist = new list<Opportunity>();
for(Lead l:Trigger.new){
  Account acc = new Account ();
  acc.name = l.company;
  accmap.put(acc.name,acc);
}
insert accmap.values();
for(Lead l:Trigger.new){
  Contact con = new Contact();
  con.lastname =l.lastname ;
  con.AccountId= accmap.get(l.company).Id;
  conlist.add(con);
  Opportunity Opp=new Opportunity();
  Opp.AccountId = accmap.get(l.company).Id;
  Opp.Name = 'Opp' + l.lastname;
  Opp.StageName='Closed Won';
  Opp.CloseDate = System.Today();
  Opplist.add(Opp);
}
insert conlist;
insert Opplist;
}