• Kathir Devan
  • NEWBIE
  • 5 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 2
    Likes Given
  • 21
    Questions
  • 57
    Replies
I created a resource to insert an Account record with fields- Name and Description in SF1(say), and i want to send the values from another instance SF2(say) using REST API from URL parameters.

I created one VF page with fields Name and Description. when i entered Name and Description fields respectively they should go to contoller dynamically and create the record in resource instance.

My question is how to pass the values from VF page to Controller(into URL parameters.)?
how to hide standard tabs using vf pages ....?
I am working with list view , after fetching id's i want to access that record using those id's , so what will be query .?

{!REQUIRESCRIPT("/soap/ajax/21.0/connection.js")}

var records = {!GETRECORDIDS($ObjectType.student__c)};
Hi,

I am having 2 VF pages which shares the same controller

I want to consolidate these 2 VF page into a single one , Please help me how to do it


VF PAGE 1 :

<apex:page controller="AF_AccountExtension">
   <apex:form >
    <apex:pageMessages >
    </apex:pageMessages>

    <apex:pageBlock id="exRepTable">
        <apex:pageBlockTable value="{!exMyRepList}"  var="exRep">
          <apex:column headerValue="Action">
                <apex:commandLink target="_blank" value="Generate Report" action="{!generateReport}" styleClass="btn" style="color:Black;text-decoration:none">
                    <apex:param name="repLink" value="{!exRep.Report_Link__c}" assignTo="{!repLink}"/>
                    <apex:param name="acPDN" value="{!accnt.Ally_Primary_Dealer_Number__c}" assignTo="{!acPDN}"/>
                    <apex:param name="repName" value="{!exRep.Id}" assignTo="{!repName}"/>
                    <apex:param name="storageLocation" value="{!exRep.Storage_Location__c}" assignTo="{!storageLocation}"/>
                    <apex:param name="FileName" value="{!exRep.FileNameFilter__c}" assignTo="{!fileNameFilter}"/>
                    <apex:param name="extension" value="{!exRep.FileName_Extension__c}" assignTo="{!fileNameExtension}"/>
                </apex:commandLink>
            </apex:column>
          
            <apex:column headerValue="Name">
                <apex:outputLink value="/{!exRep.Id}" target="_blank">{!exRep.Name}</apex:outputLink>
            </apex:column>
            <apex:column headerValue="Report Description" value="{!exRep.Short_Description__c}"/>
            <apex:column headerValue="Primary Contact" value="{!exRep.Primary_Contact__c}"/>


        </apex:pageBlockTable>
      
      
    </apex:pageBlock>
</apex:form>
</apex:page>

VF PAGE 2 :

<apex:page controller="AF_AccountExtension">
   <apex:form >
    <apex:pageMessages >
    </apex:pageMessages>

    <apex:pageBlock id="exRepTable">
        <apex:pageBlockTable value="{!exPivotRepList}" var="exRep">
          <apex:column headerValue="Action">
                <apex:commandLink target="_blank" value="Generate Report" action="{!generateReport}" styleClass="btn" style="color:Black;text-decoration:none">
                    <apex:param name="repLink" value="{!exRep.Report_Link__c}" assignTo="{!repLink}"/>
                    <apex:param name="acPDN" value="{!accnt.Ally_Primary_Dealer_Number__c}" assignTo="{!acPDN}"/>
                    <apex:param name="repName" value="{!exRep.Id}" assignTo="{!repName}"/>
                    <apex:param name="storageLocation" value="{!exRep.Storage_Location__c}" assignTo="{!storageLocation}"/>
                    <apex:param name="FileName" value="{!exRep.FileNameFilter__c}" assignTo="{!fileNameFilter}"/>
                    <apex:param name="extension" value="{!exRep.FileName_Extension__c}" assignTo="{!fileNameExtension}"/>
                </apex:commandLink>
            </apex:column>
          
            <apex:column headerValue="Name">
                <apex:outputLink value="/{!exRep.Id}" target="_blank">{!exRep.Name}</apex:outputLink>
            </apex:column>
            <apex:column headerValue="Report Description" value="{!exRep.Short_Description__c}"/>
            <apex:column headerValue="Primary Contact" value="{!exRep.Primary_Contact__c}"/>

        </apex:pageBlockTable>
    </apex:pageBlock>
</apex:form>
</apex:page>

Those 2 highlighted lists are used in my controller


Please help me how to combine those 2 to one, so that if i click on the link related to 1st list only th e 1st list to be displayed not the second one

Thanks in advance
Hi folks 
     My developer console doesnt work properly..It shows like
User-added image