• Akanksha Patel
  • NEWBIE
  • 15 Points
  • Member since 2013
  • Salesforce Technical Analyst
  • Plan International USA

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
There is a Junction object Posting__c with two Masters Position__c and Employment_Website__c. There i a look up relationship of Position__c with Contact.(field ContactA__c)
I need to create a VF Page to display Employment_Website__c field URL__c on Contact Page.

I am able to get Employment Website field on Posting.
Code is
<apex:page StandardController="Position__c">
  <apex:sectionHeader title="Positions: {!Position__c.Name}"/>
  <apex:pageBlock title="Employment Website">
      <apex:pageBlockTable value="{!Position__c.Job_Posting__r}" var="post">
          <apex:column value="{!post.Employment_Website__r.Name}"/>
          <apex:column value="{!post.Employment_Website__r.URL__c}"/>
      </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>

The above code works fine on Position Page displaying Employment Website details. But I need to use this  VF Page on Contact Page Layout displaying all related Employment Websites.

Thanks friends in advance !
I am new to apex testing and I am stuck on writing a test class for my production org. I had to write a custom controller for a visualforce page I created and now I have to test this code in order to transfer it to my production org. I have no idea what to do in order to test a soql query despite trying the salesforce examples. Any help is greatly appreciated.
public class LoanProspectsController {
    Public List<Prospect__c> getProspects() {
        List<Prospect__c> Prospects=[Select Name,Email__c
                                     From Prospect__c
                                     Where Loan_Amount__c = 9];
        return Prospects;
    }
}
This is my custom controller which I used to query loan prospects with a loan amount of 9.

How am i able to test this?

 
Hi,

We have implemented live chat in our organisation. The steps leading up to chat are:

1) A Customer creates a Case via a Customer Portal.
2) The Chat Button is THEN presented to the Customer (once a Case has already been created in Salesforce).
3) The Customer Requests the Chat the normal way by selecting the button.
4) The Agent Accepts the Chat Request and the initial Case opened as a Subtab.

Requirement: I am looking for a way to update that Case's Owner to the be the Agent who accepted the Case.

I built a trigger that ran on the LiveChatTranscriptEvents Object, but have since discovered that a transcript is not created until after a chat has ended. As a transcript event cannot exist without a transcript I presume these events also do not exist until after the chat has ended.

Is there any way we can access the event that occurs when the Agent selects the Accept button? 
There is a Junction object Posting__c with two Masters Position__c and Employment_Website__c. There i a look up relationship of Position__c with Contact.(field ContactA__c)
I need to create a VF Page to display Employment_Website__c field URL__c on Contact Page.

I am able to get Employment Website field on Posting.
Code is
<apex:page StandardController="Position__c">
  <apex:sectionHeader title="Positions: {!Position__c.Name}"/>
  <apex:pageBlock title="Employment Website">
      <apex:pageBlockTable value="{!Position__c.Job_Posting__r}" var="post">
          <apex:column value="{!post.Employment_Website__r.Name}"/>
          <apex:column value="{!post.Employment_Website__r.URL__c}"/>
      </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>

The above code works fine on Position Page displaying Employment Website details. But I need to use this  VF Page on Contact Page Layout displaying all related Employment Websites.

Thanks friends in advance !