• Priyanka7
  • NEWBIE
  • 20 Points
  • Member since 2016

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

Hi All,

I have two queries find it as follows:

String partid;
String proId;
id ProcessId = ApexPages.currentPage().getParameters().get('id');
proId = [select id,part__c,part_id__c from process_sheet__c where id=:ProcessId].Id;
partid = [select id,part__c,part_id__c from process_sheet__c where id=:ProcessId].part_id__c ;
att=[Select a.Id,a.ContentType,a.ParentId,a.Parent.Type,a.Parent.Name,a.BodyLength From Attachment a where  a.parent.Id=:partid ];
attch = [Select a.Id,a.ContentType,a.ParentId,a.Parent.Type,a.Parent.Name,a.BodyLength From Attachment a where  a.parent.Id=:proId ];
Now I need a result where parent.Id matches with both proId and partid. Please help me!!!

Thanks in advance 


    

Hi All,
I have a requirement to show the attachment of Object A using Visualforce page and add it to Custom Button. Whenever the button is clicked the Attachment of a particular record should be shown as pdf.

Please help me out...!
Thanks in advance.

Hi,

I have a number field in Contact and i want to show the sum of the number field for each contact in Account. How should I use without aggregate function?

Hi Guys,

I have a custom object that has lookup relationship with Product,When i select a Product its related record should be inserted in OpportunityLineItem.Please help me out!!!!

Thanks in advance.

Hi All,

I have two queries find it as follows:

String partid;
String proId;
id ProcessId = ApexPages.currentPage().getParameters().get('id');
proId = [select id,part__c,part_id__c from process_sheet__c where id=:ProcessId].Id;
partid = [select id,part__c,part_id__c from process_sheet__c where id=:ProcessId].part_id__c ;
att=[Select a.Id,a.ContentType,a.ParentId,a.Parent.Type,a.Parent.Name,a.BodyLength From Attachment a where  a.parent.Id=:partid ];
attch = [Select a.Id,a.ContentType,a.ParentId,a.Parent.Type,a.Parent.Name,a.BodyLength From Attachment a where  a.parent.Id=:proId ];
Now I need a result where parent.Id matches with both proId and partid. Please help me!!!

Thanks in advance 


    

Hi Guys,

I have a custom object that has lookup relationship with Product,When i select a Product its related record should be inserted in OpportunityLineItem.Please help me out!!!!

Thanks in advance.