• Uttirna Das
  • NEWBIE
  • 20 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 3
    Replies
I wrote c:pdfheader visualforce component for showing up header on dynamic pages. I dont want header on first page and at last page. For first page i wrote @page: first{}, t works but what to do for removing the last page's header.

please help me
 
I have Quote object which has Child object Quotation Line Item and I have PO object which has child object named Project .

PO has Lookup with Quote, So when I will create a new PO from Quote, Same number of Projects should create under PO against each Quotation Line Item,

I tried the following code but it is not capturing Quotation Line Item Name against which one which project created. Please Help me to Resolve this
User-added image
 
Q object's Child Object is QLI, related by Master-Detail relationship. OLI has child object OPLI, related by Master-Detail.
I am adding Products against one OLI and it is creating multiple records into OPLI.

Now I want to create PDF of a Q object's record with its related QLI and each QLI Object's OPLI records.

Can anyone help me with Apex Code Please.
I have one object named Purchase Order, its child object is Project ,Another Object is Quote and its child object is Quote line Item. Now I did a lookup relationship from Project to Quote, I want to fetch all Quote Line Items of the particular quote, into project object 
{!REQUIRESCRIPT("/soap/ajax/37.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/37.0/apex.js")}

var accnt = new sforce.SObject("Account");
var recType=sforce.connection.query("SELECT name, id FROM RecordType" );
//alert(recType);
var records = recType.getArray("records");
//alert(records);

accnt.Name='{!My_Leads__c.Company__c}';
if(accnt.Name !="")
{
accnt.RecordTypeId = records[0].Id;
//alert(records[0].Id);

accnt.Id = '{!Account.Id}';
accnt.Name = prompt('','{!CLead__c.Company__c}');
accnt.OwnerId='{!CLead__c.OwnerId}';

            var result = sforce.connection.create([accnt]); 
            if(result[0].getBoolean("success")) 
            { 
            alert('Account created successfully'); 

            }
Error is--- 

System.DmlException: Update failed. First exception on row 0 with id 00Q7F000001xDVEUA2; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Geolocation (Latitude), Geolocation (Longitude)]: [Geolocation (Latitude), Geolocation (Longitude)]
Error is in expression '{!Updatelocation}' in component <apex:commandButton> in page geolocation: Class.Geolocation.Updatelocation: line 13, column 1
Class.Geolocation.Updatelocation: line 13, column 1




My code is--- 

public with sharing class Geolocation {
    Public Decimal Lat {get; set;}
    Public Decimal lon {get; set;}
    Public Id lid {get; set;}
    public PageReference Updatelocation(){
       
         lid = ApexPages.currentPage().getParameters().get('id');
         Lead l= new Lead();
         
         l.id= lid;
         l.Geolocation__Latitude__s = lat;
         l.Geolocation__Longitude__s = lon;
        update l;
       
        return new PageReference('javascript:window.close()');
    }
}
I want to give search option for names of custom object menu list in vf page . Struggling in coding.

Please help me
I wrote c:pdfheader visualforce component for showing up header on dynamic pages. I dont want header on first page and at last page. For first page i wrote @page: first{}, t works but what to do for removing the last page's header.

please help me
 
I have Quote object which has Child object Quotation Line Item and I have PO object which has child object named Project .

PO has Lookup with Quote, So when I will create a new PO from Quote, Same number of Projects should create under PO against each Quotation Line Item,

I tried the following code but it is not capturing Quotation Line Item Name against which one which project created. Please Help me to Resolve this
User-added image
 
I am get this error: "Challenge Not yet complete... here's what's wrong: 
The 'Opp Stage by Adventure' report does not appear to be configured correctly. Make sure it has the correct report type, groupings, filters and chart type".

I believe i configured the report according to the instructions but it is still showing and error. Any assistance or insight would be apreciated.