• Gaurav Raj
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 28
    Questions
  • 17
    Replies

public class customAccountController{
    public Account ac {get;set;}
   
    Id accId = apexpages.currentpage().getparameters().get('id');

 

  Account acc = [select Name,AccountNumber, Site,NumberOfEmployees,Fax,Ownership,Industry from account where id=:accid];

 


}

If following is my vf page: How to write the controller to obtain the fields with the id dynamically passed?

 

<apex:page standardController="Account">
<apex:form>
<apex:pageBlock title="My Content" mode="edit">
<apex:pageBlockButtons>
<apex:commandButton action="{!save}" value="Save"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="My Content Section" columns="2">
<apex:inputField value="{!account.name}"/>
<apex:inputField value="{!account.site}"/>
<apex:inputField value="{!account.type}"/>
<apex:inputField value="{!account.accountNumber}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

Am trying to fetch all the fields and its values of Account object on a vf page

 

here is the piece of code i have written

 

pex:page controller="DetailAc" tabStyle="Account">
     <apex:pageBlockSection columns="2">
                    <apex:outputField value="{!acc.Name}"/>
                    <apex:outputField value="{!acc.AccountNumber}"/>
                    <apex:outputField value="{!acc.Owner}"/>
                    <apex:outputField value="{!acc.Site}" />
                    <apex:outputField value="{!acc.NumberOfEmployees}" />
                    <apex:outputField value="{!acc.Fax}" />
                    <apex:outputField value="{!acc.Ownership}" />
                    <apex:outputField value="{!acc.ShippingAddress}" />
                    <apex:outputField value="{!acc.Type}"/>
                    <apex:outputField value="{!acc.Industry}" />
                 </apex:pageBlockSection>

 

Controller

 

public class DetailAc{
    public Account acc {get;set;}
   
    acc.Name=Account.Name;
           acc.AccountNumber=Account.AccountNumber;
                      acc.Owner=Account.Owner;

 

Help me with the code. Also i need to pass the id dynamically.

Is there someway to reduce the time which a quote generally takes while generation in SalesforceThe generation of Quote takes more than 2 minutes. Is there someway to reduce this timing.

I need to get all the fields of Quote page layout onto a VF page

I am writing a trigger on dsfs__DocuSign_Status, i have written the following query

 

select id, (select id,name from attachments order by lastmodifieddate desc limit 1)
from dsfs__DocuSign_Status__c order by lastmodifieddate desc limit 1

 

how do i assign it to a variable, what datatype should i use for its execution?

i want to store the id of the attachement from the above query

 

this id i want to pass to a url

How to query a file id from a custom objects Notes and Attachment and append this id to the salesforce's url?

 

can someone help me with the code

Need help writing this trigger

 

whenever the status field on Docusign_Status shows completed, i need to fetch the pdf's link from its Notesand Attachement section.

 

I have written something like this

 

if docusign_status_c="completed"{

Select Id,(SELECT Id FROM Attachments)
FROM dsfs__DocuSign_Status__c
ORDER BY LastModifiedDate DESC LIMIT 1

 

can someone help me with further logic

hi,

 

Need to write a trigger to get the Quote document which has been signed.

 

Once a quote is signed, the Envelop_Status field becomes completed.

 Based on this i want to fetch this document and also make this link accessible outside the salesforce environment.

 

help me with fetching the url of the signed documents and making the link accesible even outside salesforce for those who don't have salesforce login

 

Can some one help me Finding the date on which the instance CS17 was upgraded to Winter '14 Release.? I just found that the CS17 has been already upgraded. Thank You

Hi,

 

May someone help with writing a query in my trigger to get a pdf doc'd url. I need the piece of code.

 

I need to get this link from the Notes and Attachment object.

 

Below is the piece of triger i ahve written

 

trigger DoconQuote on dsfs__DocuSign_Status__c (after insert, after update) {

try
 {
    system.debug('In trigger');
    dsfs__DocuSign_Status__c dssNew = Trigger.new[0]; 
    dsfs__DocuSign_Status__c dssOld = null;
    if (!System.Trigger.isInsert) dssOld = Trigger.old[0];
    if (System.Trigger.isInsert || dssOld.dsfs__Envelope_Status__c != dssNew.dsfs__Envelope_Status__c)
    {
        if (dssNew.dsfs__Envelope_Status__c == 'Completed')
        {
         // I want the logic for fetching Pdf's url to go here           }
        }
    }
}
catch (Exception ex)
{}
}

Hi,

 

I am writing a trigger to fetch the recently updated document from the Notes and Attachement Object. This document would appear as a link.

May someone help me with how to fetch the link of the document?

Hi,

 

I am writing a trigger to show a document in a custom field when the status of the related document is  completed in the DocuSign Status object.

how to fetch the document's link in the custom field?

Hi,
On the Quotes page I have a custom field as DocuSign_Signed_Doc_Link__c.
The DocuSign Status Object has a lookup with Quote. The DocuSign Status object has a field Envelope Status.
Whenever the Envelope Status is Completed i want to show the Doc's link in the field named DocuSign_Signed_Doc_Link__c.
How can this be achieved?”

Hi,

 

Need to build a report on the following criteria:

 

 

A Reportthat shows how many calendar days a dealer logged into the portal at least one time.

My requirement is to count the number of days a user loged in last 1 month for eg.  In the process if a user logged in n number of times on a single day, it should be counted as one.

Hi,

Need to create a report which comprise of 3 objects.

2 objects are in Master detail relationship, while the other is having a lookup with one of those 2 .  

 

for eg.

Objects P and Q are in a master-detail relationship, while R is having a lookup with P.

Hi, 

i am using the following to extract data

 

this is my process-config.xml

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

<bean id="Account"

class="com.salesforce.dataloader.process.ProcessRunner"

singleton="false">

<description>Export Account Data</description>

<property name="name" value="Account"/>

<property name="configOverrideMap">

<map>

<entry key="sfdc.enableLastRunOutput" value="false"/>

<entry key="sfdc.entity" value="Account"/>

<entry key="process.operation" value="extract"/>

<entry key="sfdc.extractionRequestSize" value="500"/>

<entry key="sfdc.extractionSOQL" value="SELECT Id FROM Account"/>

<entry key="dataAccess.name" value="D:\Data Load"/>

<entry key="dataAccess.type" value="csvWrite"/>

<entry key="dataAccess.writeUTF8" value="true" />

</map>

</property>

</bean>

</beans>

 

 

its not working and throws error.

Hi,

I was using the DEVELOPER CONSOLE, in my Public class i had  two variables. inspite of declaring those variables as PRIVATE, i was accessing its values outside my class, but it shouldn't have been this way. if i was use the PRIVATE variables outside my Class, i should have use GET SET methods inside my class. for eg: the program goes like this

 

public class SFDC{
private string name;
private integer num;

private integer getnum(){
return num;}

}

SFDC sf = new SFDC();
sf.name='GAURAV';
sf.num=100;
system.debug(sf.getnum());

Help me with installing of Force.com IDE plugin in my Eclipse JUNO. It does not show up Force.com IDE in its Marketplace. And the other method which is to install using Install a New Software throws error and hinders installation.

Hi,
I hace encountered the following error while installing Force.com IDE in eclipse 3.6 

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.jst.common.frameworks,1.1.403.v201012160000.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work4156391723566006466\p2.optimizers.incoming5554674595698595770.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.jst.common.frameworks_1.1.403.v201012160000.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.jst.common.ui,1.0.3.v201101101700.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work4219688490303160469\p2.optimizers.incoming2672154805032333935.jar
Unable to read repository at http://ftp.neu.edu.cn/mirrors/eclipse/releases/helios/201102250900/aggregate/plugins/org.eclipse.jst.common.ui_1.0.3.v201101101700.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.jst.j2ee.core,1.2.4.v201102101900.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work7740751923448050223\p2.optimizers.incoming5284717371190109306.jar
Unable to read repository at http://ftp.cs.pu.edu.tw/pub/eclipse/releases/helios/201102250900/aggregate/plugins/org.eclipse.jst.j2ee.core_1.2.4.v201102101900.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.jst.jee,1.0.302.v201101122300.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work812154278832794334\p2.optimizers.incoming8526438693230391506.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.jst.jee_1.0.302.v201101122300.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.jst.jsp.core,1.2.304.v201102160550.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work4490939944298773861\p2.optimizers.incoming6354730458678918067.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.jst.jsp.core_1.2.304.v201102160550.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.jst.jsp.ui,1.1.503.v201101262228.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work2276594139202254706\p2.optimizers.incoming4943259299808047201.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.jst.jsp.ui_1.1.503.v201101262228.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.common.emfworkbench.integration,1.2.3.v201012020600.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work1929460959618698436\p2.optimizers.incoming1816592640553303119.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.common.emfworkbench.integration_1.2.3.v201012020600.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.common.modulecore,1.2.5.v201101270100.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work293619304186834783\p2.optimizers.incoming7921578674788273044.jar
Unable to read repository at http://mirror.switch.ch/eclipse/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.common.modulecore_1.2.5.v201101270100.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.common.modulecore.ui,1.0.4.v201101101700.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work4145601168816464016\p2.optimizers.incoming9174817561811997738.jar
Unable to read repository at http://mirror.switch.ch/eclipse/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.common.modulecore.ui_1.0.4.v201101101700.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.common.project.facet.ui,1.4.103.v201101271715.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work1975891928589443659\p2.optimizers.incoming2242887091757786902.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.common.project.facet.ui_1.4.103.v201101271715.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.css.core,1.1.402.v201102031915.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work7977470943601346707\p2.optimizers.incoming8704870350386223717.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.css.core_1.1.402.v201102031915.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.dtd.core,1.1.401.v201101122255.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work1503734520000027935\p2.optimizers.incoming3473255770872631238.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.dtd.core_1.1.401.v201101122255.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.html.core,1.1.404.v201101190004.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work5930303808894727881\p2.optimizers.incoming3052930262935434399.jar
Unable to read repository at http://carroll.aset.psu.edu/pub/eclipse/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.html.core_1.1.404.v201101190004.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.html.ui,1.0.504.v201101122108.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work8136419634998528426\p2.optimizers.incoming8639071224559059819.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.html.ui_1.0.504.v201101122108.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.jsdt.core,1.1.4.v201102102045.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work8492186343444402272\p2.optimizers.incoming6840278897980862244.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.jsdt.core_1.1.4.v201102102045.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.jsdt.ui,1.1.4.v201102160540.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work6671675823250171836\p2.optimizers.incoming6925495090144931897.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.jsdt.ui_1.1.4.v201102160540.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.jsdt.web.support.jsp,1.0.303.v201012160047.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work8145836542407873303\p2.optimizers.incoming1184222438974093371.jar
Unable to read repository at http://mirror.bit.edu.cn/eclipse/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.jsdt.web.support.jsp_1.0.303.v201012160047.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.server.core,1.1.206.v20110110.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work2943476779447281518\p2.optimizers.incoming5910635185958623879.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.server.core_1.1.206.v20110110.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.server.ui,1.1.207.v20110119.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work4533558507970685994\p2.optimizers.incoming3071499092762211346.jar
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.server.ui_1.1.207.v20110119.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.web,1.1.402.v201012160000.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work3518099648204815285\p2.optimizers.incoming3115053736440004088.jar
Unable to read repository at http://carroll.aset.psu.edu/pub/eclipse/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.web_1.1.402.v201012160000.jar.
Read timed out
Multiple problems occurred while downloading.
Problems downloading artifact: osgi.bundle,org.eclipse.wst.xml.core,1.1.503.v201102102045.
Unpacking fails because intermediate file is empty: C:\DOCUME~1\299028\LOCALS~1\Temp\work70877662571057080\p2.optimizers.incoming6562150124517004171.jar
Unable to read repository at http://eclipse.dcc.fc.up.pt/releases/helios/201102250900/aggregate/plugins/org.eclipse.wst.xml.core_1.1.503.v201102102045.jar.
Read timed out
Unable to read repository at http://www.adnsandbox.com/tools/ide/install/plugins/com.salesforce.ide_26.0.0.201210261118.jar.
Read timed out
Unable to read repository at http://www.adnsandbox.com/tools/ide/install/plugins/com.salesforce.ide.api_26.0.0.201210261118.jar.
Read timed out
Unable to read repository at http://www.adnsandbox.com/tools/ide/install/plugins/com.salesforce.ide.core_26.0.0.201210261118.jar.
Read timed out
Unable to read repository at http://www.adnsandbox.com/tools/ide/install/plugins/com.salesforce.ide.deployment_26.0.0.201210261118.jar.
Read timed out
Unable to read repository at http://www.adnsandbox.com/tools/ide/install/plugins/com.salesforce.ide.documentation_26.0.0.201210261118.jar.
Timeout while reading input stream.
The following system properties can be used to adjust the readTimeout, retryAttempts, and closeTimeout
org.eclipse.ecf.provider.filetransfer.retrieve.readTimeout=<default:1000>
org.eclipse.ecf.provider.filetransfer.retrieve.retryAttempts=<default:30>
org.eclipse.ecf.provider.filetransfer.retrieve.closeTimeout=<default:1000>

Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.jst.web_core.feature_3.2.3.v201102101900-7Q7BG7HFE9Le9HDKz-hZ-Rlojqz-.jar.
Read timed out
Unable to read repository at http://eclipse.saplabs.bg//releases/helios/201102250900/aggregate/features/org.eclipse.jst.web_ui.feature_3.2.3.v201101262333-7F77FJ_C25TkfyypjhqQuxNYsMrJ.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.common.fproj_3.2.3.v201101121727-377AC8s73543C6H4A5H.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.common_core.feature_3.2.3.v201011031800-7B7DFEsF7RZHOaLfS0KpNJ.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.common_ui.feature_3.2.3.v201011031800-7C78FPlEdhO_oXWe4k_elbMgT1Lq.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.jsdt.feature_1.2.3.v201102160540-7C78FGUF9JgLWNO2UCNqfa.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.server_core.feature_3.2.3.v20101104-30F8X8s734D3A4C.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.server_ui.feature_3.2.3.v20101104-7B4FBuAtJb1qEKLnCKHHHI347.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.web_core.feature_3.2.3.v201102160541-7E7AFI3AJrn5TN32vSJ8nRIWLD7_.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.ws_core.feature_3.2.3.v201102160541-7L7RFf0FGtGd-nipy6nDoi4852.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.ws_ui.feature_3.2.3.v201102160541-7I78FZIEtEoO2d7AsK6jSNqC-8jj.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/releases/helios/201102250900/aggregate/features/org.eclipse.wst.xml_ui.feature_3.2.3.v201102160550-7H7AFUWDxumQJOi9ghcTb5YgkwEZ.jar.
Read timed out

public class customAccountController{
    public Account ac {get;set;}
   
    Id accId = apexpages.currentpage().getparameters().get('id');

 

  Account acc = [select Name,AccountNumber, Site,NumberOfEmployees,Fax,Ownership,Industry from account where id=:accid];

 


}

Am trying to fetch all the fields and its values of Account object on a vf page

 

here is the piece of code i have written

 

pex:page controller="DetailAc" tabStyle="Account">
     <apex:pageBlockSection columns="2">
                    <apex:outputField value="{!acc.Name}"/>
                    <apex:outputField value="{!acc.AccountNumber}"/>
                    <apex:outputField value="{!acc.Owner}"/>
                    <apex:outputField value="{!acc.Site}" />
                    <apex:outputField value="{!acc.NumberOfEmployees}" />
                    <apex:outputField value="{!acc.Fax}" />
                    <apex:outputField value="{!acc.Ownership}" />
                    <apex:outputField value="{!acc.ShippingAddress}" />
                    <apex:outputField value="{!acc.Type}"/>
                    <apex:outputField value="{!acc.Industry}" />
                 </apex:pageBlockSection>

 

Controller

 

public class DetailAc{
    public Account acc {get;set;}
   
    acc.Name=Account.Name;
           acc.AccountNumber=Account.AccountNumber;
                      acc.Owner=Account.Owner;

 

Help me with the code. Also i need to pass the id dynamically.

I am writing a trigger on dsfs__DocuSign_Status, i have written the following query

 

select id, (select id,name from attachments order by lastmodifieddate desc limit 1)
from dsfs__DocuSign_Status__c order by lastmodifieddate desc limit 1

 

how do i assign it to a variable, what datatype should i use for its execution?

i want to store the id of the attachement from the above query

 

this id i want to pass to a url

Can some one help me Finding the date on which the instance CS17 was upgraded to Winter '14 Release.? I just found that the CS17 has been already upgraded. Thank You

Hi,

Need to create a report which comprise of 3 objects.

2 objects are in Master detail relationship, while the other is having a lookup with one of those 2 .  

 

for eg.

Objects P and Q are in a master-detail relationship, while R is having a lookup with P.

Help me with installing of Force.com IDE plugin in my Eclipse JUNO. It does not show up Force.com IDE in its Marketplace. And the other method which is to install using Install a New Software throws error and hinders installation.
Iam trying to integrate oracle erp with saleforce ... in between there are webmethods... so how proceed with the flow.
Iam not able to figure out .
Please help ... do i have to consume the wsdl and expose through apex class or something else i have to .. how to go around inbound and outbound process from salesforce

If anyone knows the flow how it works plz help me to understand
Please dont put the salesforce docs i have already gone through if you have some relevant docs then only post

OnClick of a button i want to fetch all the details in a page named detailpage to be shown in another page named Confirmation. The values should pertain to same id i.e. all the values should be tha same on both the pages.

I'm fetcheng record details on the detailpage from my object Product and same details should be fetched on the Confirmation page . after which i can use the upsert to save this record in a new object named Booking. 

How to create a not allowed list in “Custom Settings” and add values are exe, vbs, dll, bat  ( We can add more later). Implement a filter to restrict file upload types in Saleforce environment by fetching values from custom setting.

Hi,

 

Can anyone tell me how to get the extension of the file being uploaded in the documents tab ?

Hi,

 Can anyone please help me in implimenting a functionallity. I want to delete multiple records from apex page block table, using apex checkboxes.All checked checkboxes must get deleted on click of a single button "mass delete".The visualforce code of my page is given below, need  help in method.Thanks in advance...

<apex:page Controller="TeamMemberAssignmentController" >
 <apex:sectionHeader title="Edit Records"/>
  <apex:form >
    <apex:pageBlock mode="inlineEdit" id="block">
        <apex:pageMessages />
        <apex:pageBlockSection >
            <apex:outputLabel value="User" for="searchUser"/>
            <apex:inputField value="{!accTeamMem.UserId}" id="searchName" required="false"/>
            <apex:outputLabel value="Account" for="searchAccount"/>
            <apex:inputField value="{!accTeamMem.AccountId}" id="searchAccount" required="false"/>
            <apex:outputLabel value="Role" for="searchRole"/>
            <apex:inputField value="{!accTeamMem.TeamMemberRole}" id="searchRole" required="false"/>
            

            <apex:commandButton value="Search" action="{!search}" rerender="block" status="status"/>
            <apex:commandButton value="Save"  action="{!save}" id="saveButton" rerender="block" status="status1"/>
         <apex:commandButton action="{!update1}"  id="editButton" value="Edit And Save"   />
        <apex:commandButton action=""  id="DeleteButton" value="Delete"   />

                           
         </apex:pageBlockSection><br/>


        <apex:actionStatus id="status" startText="Searching... please wait..."/>
         <apex:actionStatus id="status1" startText="Saving your record... please wait..."/>
              
              

                     <apex:pageBlockSection title="Search Results" id="resultsBlock" columns="2">
        <apex:pageBlockTable value="{!searchResults}" var="AccountTeamMember" rendered="{!NOT(ISNULL(searchResults))}">
         
       

                 


          <apex:column >
      <!-- <apex:outputLink title="" value="/{!row.id}/e?retURL=/apex/{!$CurrentPage.Name}" style="font-weight:bold">Edit</apex:outputLink>&nbsp;|&nbsp;-->
       <a href="javascript&colon;if (window.confirm('Are you sure?')) DeleteAccount('{!AccountTeamMember.Id}');" style="font-weight:bold">Del</a>
     </apex:column>

             <apex:column HeaderValue="Mass Delete">
                     <apex:inputCheckbox title="mass delete" value="{!AccountTeamMember.Id}" />
             </apex:column>

    
          <apex:column value="{!AccountTeamMember.User.Name}" headerValue="User" width="100"/>
          <apex:column value="{!AccountTeamMember.Account.Name}" headerValue="Account" width="100"/>
                      <apex:column headerValue="Role" width="200">
 

            <apex:outputField value="{!AccountTeamMember.TeamMemberRole}">
             <apex:inlineEditSupport showOnEdit="saveButton, cancelButton,editButton" 
                        event="ondblclick" 
                        changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>

 



            </apex:outputfield>
            </apex:column>
        </apex:pageBlockTable>
        </apex:pageBlockSection>
    </apex:pageBlock>




<apex:actionFunction action="{!DeleteAccount}" name="DeleteAccount" reRender="form" >
   <apex:param name="accountteammemberid" value="" assignTo="{!SelectedAccountTeamMemberId}"/>
</apex:actionFunction>

  </apex:form>
</apex:page>

 i have funtion to delete, all i need to do is pass pass values of id's in checkboxes to this set accTeamToDeleteSet.

 Set  accTeamToDeleteSet = new Set
 List accTeamMemberToDeleteList = new List
 for (AccountTeamMember accTeam : [SELECT Id,AccountID,UserId from AccountTeamMember where Id in: accTeamToDeleteSet ])
 {
                    accTeamMemberToDeleteList.add(accTeam);
                }
delete accTeamMemberToDeleteList;