• BManojKumar
  • NEWBIE
  • 135 Points
  • Member since 2010

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

Hi All,

 

 

I have a visual force page to override the standard opportunity creation page for a particular recordtype. I want to increase the font size of the help text that appears when roll-over the help image for the fields in the page. The below is a part of my code in visual force page.

 

<apex:page StandardController="Opportunity" extensions="opportunityRedirect" showHeader="true">
 <apex:pageBlock title="Opportunity Edit" helpTitle="Help for this page" helpUrl="/help/doc/user_ed.jsp?loc=help&target=opp_edit.htm&section=Opportunities">
  <apex:form >
   <table>
   <tr><td colspan="7" align="center"><apex:commandButton action="{!save}" value="Save"/><apex:commandButton action="{!cancel}" value="Cancel"/></td></tr>
   <tr>
       <td align="right">Opportunity Name</td><td><span class="helpButton"><img class="helpOrb" style="background-position: right top" src="/s.gif" alt="{!$ObjectType.Opportunity.Fields.Name.inlineHelpText}"
           title="" /> </span> </td><td><apex:inputField required="true" value="{!Opportunity.Name}"/></td><td width="10%"></td>
       <td align="right">Close Date</td><td><span class="helpButton"><img class="helpOrb" style="background-position: right top" src="/s.gif" alt="{!$ObjectType.Opportunity.Fields.CloseDate.inlineHelpText}"
           title="" /> </span> </td><td><apex:inputField required="true" value="{!Opportunity.CloseDate}"/></td>
   </tr>
   <tr>.......

 

Please help me out to increase the font size of the help text as the standard help text font size.

 

Thanks

Manoj

Dear All,

 

I am overriding the opportunity creation page for a particular record type using a visual force page. I would like to show the opportunity owner name in the visual force page as the standard page does. Please help me to find out the way to get the user detail who creates the opportunity.

 

Thanks

Manoj

Hi All,

 

I would like to set the value for the account name field in visual force page when it is opening. I just want to pre-populate the value. I dont find the way to do it. Can anyone help me out ?

 

Thanks in Advance.

 

Manoj 

Hi All,

 

I have a custom button in opportunity object. I have a visual force page . What I would like to perform is, I want to place the custom button in the visual force page. Please help me out to achieve this.

 

Thanks in Advance.

 

Manoj

 

 

Hi All,

 

I have a visual force page to override the opportunity new button. I have some business logics based on the user creating the opportunity. I am trying to pre-populate account name in the opportunity page based on the user's information. Is der a way to get the user information in the visual force page ?

 

If we create a new opportunity the opportunity owner name is pre-populated in the page. So , there must be a way to find the user information.

 

Thanks in Advance.

 

Manoj.

Hi All,

 

Good Day.

 

I would like to override the opportunity creation page for a particular record type.

I have 2 visual force pages "recordTypeSelect" and "opportunityPage". The below are my visual force pages.

 

recordTypeSelect :

 

<apex:page standardController="Opportunity" extensions="SaveClass" action="{!Redirect}">
<h1> Opportunity Record Type Select </h1>
</apex:page>

 

opportunityPage :

 

<apex:page StandardController="Opportunity" extensions="SaveClass">
<apex:pageBlock >
<apex:form >
<table>
<tr>
<td>Opportunity Name</td><td><apex:inputField required="true" value="{!Opportunity.Name}"/></td><td></td>
<td>CloseDate</td><td><apex:inputField required="true" value="{!Opportunity.CloseDate}"/></td>
</tr>
<tr>
<td>Account Name</td><td><apex:inputField required="true" value="{!Opportunity.AccountId}"/></td><td></td>
<td>StageName</td><td><apex:inputField required="true" value="{!Opportunity.StageName}"/></td>
</tr>
<tr><td>Inquiry Number</td><td><apex:inputField value="{!Opportunity.Inquiry_Number__c}"/></td></tr>

<tr><td>Product</td><td><apex:inputField required="true" value="{!Opportunity.Product__c}"/></td></tr>
<tr><td>Engine Model - Primary</td><td><apex:inputField required="true" value="{!Opportunity.Engine_Model_Primary__c}"/></td></tr>
<tr><td><apex:commandButton action="{!save}" value="Save"/><apex:commandButton action="{!cancel}" value="Cancel"/></td></tr>
</table>
</apex:form>
</apex:pageBlock>

</apex:page>
 

 

SaveClass:

public with sharing class SaveClass {

    public SaveClass(ApexPages.StandardController controller) {

    }

 

    public PageReference cancel() {
        PageReference pr = new PageReference('/006/o');
        pr.setRedirect(true);
        return pr;
    }
    
    public pagereference Redirect()
    {
       String rt = ApexPages.currentPage().getParameters().get('RecordType');
       if(rt.equals('012Q0000000CmCZ'))
      {
         String optyURL2 = '/apex/opportunityPage';
         pagereference pageref = new pagereference(optyURL2);
         pageref.setredirect(true);
         return pageref;
      }
      else
      {
         String optyURL2 = '/006/e?retURL=%2F006%2Fo&RecordType=012300000004ISs&ent=Opportunity';
         pagereference pageref = new pagereference(optyURL2);
         pageref.setredirect(true);
         return pageref;  
      }
      
    }
   
}

 

 

I have 6 types of recordtypes. I am overriding the "New" button in the opportunity home page with "recordTypeSelect" vf page.  So, Whenever the user selects the record type from the drop down , he will be redirected as shown in the "SaveClass". I have created a code like , whenever a user is selecting the particular recordtype he will redirected to the vf page "opportunityPage". otherwise he will redirected to a standard opportunity creation page.

 

What I need is , I am able to redirect the user to "opportunityPage" vf page , when he is selecting the particular recordtype. But I am not able to redirect him to the standard opportunity creation page when other record type is selected. The page is keep on refreshing and showing the "recordTypeSelect" vf page alone.

 

How can I fix this..?

 

Thanks in Advance.

 

Manoj.

Hi All,

 

I have a set of record types for opportunities in my organization. I have a visual force page. I would like to redirect the user to the visual force page whenever a particular record type is selected in the drop down list.

 

Can anyone help me out , how to do this ?

 

Thank in Advance.

Good Day.

Dear All,

 

I have prompted the users to add products whenever they are creating a new opportunity. The save button will redirect the users to product selection page once they saved the opportunity.

 

What I need is , I would like to prompt a set of users from adding a product. But I am not sure how to do this..

 

Is their a way to override the "Save & Add product" button or adding a condition to check for the users role , so that it will redirect the particular users to opportunity details page rather than the product selection page. I have trigger to add product  for the opportunity created by that particuler users.

Hi All,

 

 

I have a visual force page to override the standard opportunity creation page for a particular recordtype. I want to increase the font size of the help text that appears when roll-over the help image for the fields in the page. The below is a part of my code in visual force page.

 

<apex:page StandardController="Opportunity" extensions="opportunityRedirect" showHeader="true">
 <apex:pageBlock title="Opportunity Edit" helpTitle="Help for this page" helpUrl="/help/doc/user_ed.jsp?loc=help&target=opp_edit.htm&section=Opportunities">
  <apex:form >
   <table>
   <tr><td colspan="7" align="center"><apex:commandButton action="{!save}" value="Save"/><apex:commandButton action="{!cancel}" value="Cancel"/></td></tr>
   <tr>
       <td align="right">Opportunity Name</td><td><span class="helpButton"><img class="helpOrb" style="background-position: right top" src="/s.gif" alt="{!$ObjectType.Opportunity.Fields.Name.inlineHelpText}"
           title="" /> </span> </td><td><apex:inputField required="true" value="{!Opportunity.Name}"/></td><td width="10%"></td>
       <td align="right">Close Date</td><td><span class="helpButton"><img class="helpOrb" style="background-position: right top" src="/s.gif" alt="{!$ObjectType.Opportunity.Fields.CloseDate.inlineHelpText}"
           title="" /> </span> </td><td><apex:inputField required="true" value="{!Opportunity.CloseDate}"/></td>
   </tr>
   <tr>.......

 

Please help me out to increase the font size of the help text as the standard help text font size.

 

Thanks

Manoj

Dear All,

 

I am overriding the opportunity creation page for a particular record type using a visual force page. I would like to show the opportunity owner name in the visual force page as the standard page does. Please help me to find out the way to get the user detail who creates the opportunity.

 

Thanks

Manoj

Hi All,

 

I would like to set the value for the account name field in visual force page when it is opening. I just want to pre-populate the value. I dont find the way to do it. Can anyone help me out ?

 

Thanks in Advance.

 

Manoj 

Hi All,

 

I have a custom button in opportunity object. I have a visual force page . What I would like to perform is, I want to place the custom button in the visual force page. Please help me out to achieve this.

 

Thanks in Advance.

 

Manoj

 

 

Hi All,

 

I have a visual force page to override the opportunity new button. I have some business logics based on the user creating the opportunity. I am trying to pre-populate account name in the opportunity page based on the user's information. Is der a way to get the user information in the visual force page ?

 

If we create a new opportunity the opportunity owner name is pre-populated in the page. So , there must be a way to find the user information.

 

Thanks in Advance.

 

Manoj.

Hi All,

 

Good Day.

 

I would like to override the opportunity creation page for a particular record type.

I have 2 visual force pages "recordTypeSelect" and "opportunityPage". The below are my visual force pages.

 

recordTypeSelect :

 

<apex:page standardController="Opportunity" extensions="SaveClass" action="{!Redirect}">
<h1> Opportunity Record Type Select </h1>
</apex:page>

 

opportunityPage :

 

<apex:page StandardController="Opportunity" extensions="SaveClass">
<apex:pageBlock >
<apex:form >
<table>
<tr>
<td>Opportunity Name</td><td><apex:inputField required="true" value="{!Opportunity.Name}"/></td><td></td>
<td>CloseDate</td><td><apex:inputField required="true" value="{!Opportunity.CloseDate}"/></td>
</tr>
<tr>
<td>Account Name</td><td><apex:inputField required="true" value="{!Opportunity.AccountId}"/></td><td></td>
<td>StageName</td><td><apex:inputField required="true" value="{!Opportunity.StageName}"/></td>
</tr>
<tr><td>Inquiry Number</td><td><apex:inputField value="{!Opportunity.Inquiry_Number__c}"/></td></tr>

<tr><td>Product</td><td><apex:inputField required="true" value="{!Opportunity.Product__c}"/></td></tr>
<tr><td>Engine Model - Primary</td><td><apex:inputField required="true" value="{!Opportunity.Engine_Model_Primary__c}"/></td></tr>
<tr><td><apex:commandButton action="{!save}" value="Save"/><apex:commandButton action="{!cancel}" value="Cancel"/></td></tr>
</table>
</apex:form>
</apex:pageBlock>

</apex:page>
 

 

SaveClass:

public with sharing class SaveClass {

    public SaveClass(ApexPages.StandardController controller) {

    }

 

    public PageReference cancel() {
        PageReference pr = new PageReference('/006/o');
        pr.setRedirect(true);
        return pr;
    }
    
    public pagereference Redirect()
    {
       String rt = ApexPages.currentPage().getParameters().get('RecordType');
       if(rt.equals('012Q0000000CmCZ'))
      {
         String optyURL2 = '/apex/opportunityPage';
         pagereference pageref = new pagereference(optyURL2);
         pageref.setredirect(true);
         return pageref;
      }
      else
      {
         String optyURL2 = '/006/e?retURL=%2F006%2Fo&RecordType=012300000004ISs&ent=Opportunity';
         pagereference pageref = new pagereference(optyURL2);
         pageref.setredirect(true);
         return pageref;  
      }
      
    }
   
}

 

 

I have 6 types of recordtypes. I am overriding the "New" button in the opportunity home page with "recordTypeSelect" vf page.  So, Whenever the user selects the record type from the drop down , he will be redirected as shown in the "SaveClass". I have created a code like , whenever a user is selecting the particular recordtype he will redirected to the vf page "opportunityPage". otherwise he will redirected to a standard opportunity creation page.

 

What I need is , I am able to redirect the user to "opportunityPage" vf page , when he is selecting the particular recordtype. But I am not able to redirect him to the standard opportunity creation page when other record type is selected. The page is keep on refreshing and showing the "recordTypeSelect" vf page alone.

 

How can I fix this..?

 

Thanks in Advance.

 

Manoj.

Hi All,

 

I have a set of record types for opportunities in my organization. I have a visual force page. I would like to redirect the user to the visual force page whenever a particular record type is selected in the drop down list.

 

Can anyone help me out , how to do this ?

 

Thank in Advance.

Good Day.

Hi , 

          I want to create Custom field datatype as radiobutton say eg. like (Male or Female) , 

 

1.      While Creating For this Custom field which datatype should i use ?. there is no radio button.

2.      Actually Creating Objects are like creating tables in SQL. and custom fields are Columns and datatypes.

         so i m little bit confused i searched for boolean datatype but it is also not available . 

 

any help thanks in advance 

 

 

 

 

I'm using this bit of code to allow a save button on a page to save a list, but I'd like the button to redirect the user to a different page after they click Save, much like the Cancel button does now.

 

 

public PageReference cancel() {
          PageReference pr = new PageReference('/a0G/o');
          pr.setRedirect(true);
          return pr;
          }
    public void save() {
    
        try{
            update pfc;
        }
        catch(DmlException ex){
            ApexPages.addMessages(ex);
            
        }
        }
           

 

 

The save method works, in that what is edited in the list saves, I would just like to add the same PageReference bit from the cancel method to the save method, and I don't know how to do that. :smileyindifferent:

 

Ideally both cancel and save buttons would direct the user back to the List View from where the visualforce page that uses this class is accessed, but simply redirecting back to the object URL is fine.

 

Any help would be greatly appreciated!

 

  • May 14, 2010
  • Like
  • 0
Maybe I'm missing the obvious here, but I can't figure out how to deactivate a trigger in a production environment. I created a simple trigger in the sandbox, tested and deployed it to production. Everything works fine and the trigger works as expected in production. However now I would like to deactivate and/or undeploy it from production. In the sandbox I can edit the trigger and uncheck the IsActive field, but I can't edit the trigger in production (I am the system administrator) because there is no Edit link.

I tried deactivating in the sandbox and then redeploying to production, but that didn't work either. Do I need to write a deployment script, access the metadata, use Ant? Without the ability to roll back triggers from production, I can't use Apex. What am I missing? I searched all the documentation and this forum and didn't find anything other than references to the UI checkbox, which doesn't exist in production.

Mark

Message Edited by MarkL on 02-21-2008 09:48 AM