• Atul Thakur 16
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi,

I am creating a visualforce page on opportunity. I am refering 4 lookup fields in this page. I am inserting this page in opportunity page layout. The page looks as

User-added image

The visualforce code section for Teleasales Partner is

<apex:pageBlockSectionItem id="section1" >
<apex:outputLabel value="Telesales Partner" for="tp_id" />
<apex:panelGroup >
  <apex:outputField value="{!opportunity.Telesales_Partner__c}" id="tp_id">
   <apex:inlineEditSupport showOnEdit="saveButton, cancelButton" event="ondblclick" changedStyleClass="myBoldClass" resetFunction="resetInlineEdit"/>
  </apex:outputField>
  <apex:outputLabel value="Commission Applicable? " for="tp_id2" style="font-weight:bold;font-family:Arial,Helvetica,sans-serif;" />
  <apex:inputField value="{!opportunity.Telesales_Partner_Commission_Flag__c}" id="tp_id2" onchange="selectFlag()">
  </apex:inputField>
</apex:panelGroup>
</apex:pageBlockSectionItem>

How can I disable link to lookup field but need to keep look up functionality. I want to disable link becase link opens record in page layout section as
User-added image

which I don't need ?

Could you please help ? Let me know if you need more details

Thanks,

clouddev@surashri

My requirement is to automatically close VF Page after clicking the save command button.

 

 

<script>
function closeRefresh()
{
top.parent.window.opener.location.href = "/003/o";
top.parent.window.close();
}
</script>

<apex:commandButton value="save" action="{!save1}" onclick="javascript&colon;closeRefresh();"/>

 

 

 

I am clicking on the link on the List view section of the consoleconsole. VF Pages open which have a save button. Which when clicked updates some values on the contact Object and should close this opened VF Page.

 

I am trying this with as shown above but not able to get it to work. Please advise!!!Thanks..

 

 

Message Edited by renuami on 08-19-2009 01:18 PM