• Krishna Prabhakar
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies

Hi ,

 

We have a visual force page for adding the products for an opportunity where 

<apex:page standardController="OpportunityLineItem" extensions="ProductExtensionController" id="pg" tabStyle="Opportunity" showHeader="true">
<style type="text/css">
.longText { width:100px; }
</style>

    <apex:form id="frm">
    <!--Displays Error messages.--->
        <apex:pagemessages />
        <apex:pageBlock id="pgBlock0">
            <!--Display page to add products to oppurtunity from Cloud User Pricebook.--->
            <apex:pageBlockSection id="pgBlock1">
                <apex:pageBlockTable value="{!CloudProducts}" var="pro1">
                    <apex:column >
                        <apex:facet name="header">Product Name</apex:facet>
                        <apex:outputText styleClass="longText" value="{!pro1.prodWrapper .Name}">&nbsp;&nbsp;</apex:outputText>
                    </apex:column>            
                    <apex:column >  
                        <apex:facet name="header">Quantity/Term</apex:facet>

                            <apex:inputField value="{!pro1.oli.Quantity}" required="true"/>&nbsp;&nbsp;
                        
                    </apex:column>    
                    <apex:column >  
                        <apex:facet name="header">No.of Users</apex:facet>
                           <apex:inputField value="{!pro1.oli.No_of_Users__c}" required="true"/>&nbsp;&nbsp;
                       </apex:column>
                    <apex:column >  
                        <apex:facet name="header">Price per user/month</apex:facet>
                        


<apex:inputField value="{!pro1.oli.Price_per_user_month__c}" required="true"/>&nbsp;&nbsp;
       
                    </apex:column>  
                    <apex:column >  
                        <apex:facet name="header">Revenue Type</apex:facet>
                        <apex:inputField value="{!pro1.oli.Revenue_Type__c}" required="true"/>&nbsp;&nbsp;
                    </apex:column>                    
<apex:column >
                        <apex:facet name="header">Product Type</apex:facet>
                        <apex:inputField value="{!pro1.oli.Product_Type__c}" required="true" />&nbsp;&nbsp;   
                                    
</apex:column>           
                </apex:pageBlockTable>
            </apex:pageBlockSection>
            <!--Display navigation buttons--->
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:commandButton value="Save&More" action="{!saveMore}"/>
                <apex:commandButton value="Cancel" action="{!Cancel}"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 we want to display the helptext for the field "Product_Type__c" in the page, can someone help me how can we do this. I see some solutions saying to display as below:

<apex:pageBlockSectionItem helpText="{!$ObjectType.OpportunityLineItem.Fields.Product_Type__c.inlineHelpText}"/>

but not able to use this anywhere wherever i use i get the blank message whith no content.

 

Regards,

Krishna.

Hi All,

 

I am trying to build an authenticated site where i want to use partner portal authentication. For this process i have done below steps:

 

1. created a partner portal and enabled login.

2. create a profile and assigned it to the partner portal.

3. created a site and in the login settings i have given the login for the partner portal that i have created.

4. in the site home page i have given the site login page and in the login controller i am redirecting to the portal page(login controller provided).

 

global pageReference login()
{
String startUrl = 'https://cs13.salesforce.com/secur/login_portal.jsp';
startUrl += '?orgId=00DW0000000HjKa&portalId=060W0000000D0Xx&loginType=3';
startUrl += '&startUrl=';
startUrl += '&loginUrl=';
startUrl += '&useSecure=true';
startUrl += '&un=' + username;
startUrl += '&pw='+ password;

PageReference portalPage = new PageReference(startUrl);
portalPage.setRedirect(true);
PageReference p = Site.login(username, password, startUrl);
if (p == null) return Site.login(username, password, null);
else return portalPage;
}

 

But when i click on the site URL in the login page even if i give right credentials it is not redirecting to anywhere but when i follow the same process using the customer portal i am able to perform successfully. Does Salesforce doesnot provide support for Partner Portal licences for the sites? Did anyone of you implemented this before

 

Thanks in Advance,

Prabhakar

Hi All,

 

We have a requirement in our Org where we need to Customize in such a way that, whenever a member is Added to a account Team he should be added to Salesteam for the associated Account's Opportunities. As per my knowedge Salesforce doednot allow triggers on Account teams/ sales teams. How can we achieve this the flow should be realtime.

Any Ideas would be appreciated.

 

Regards,

Krishna.

Hi ,

 

We have a visual force page for adding the products for an opportunity where 

<apex:page standardController="OpportunityLineItem" extensions="ProductExtensionController" id="pg" tabStyle="Opportunity" showHeader="true">
<style type="text/css">
.longText { width:100px; }
</style>

    <apex:form id="frm">
    <!--Displays Error messages.--->
        <apex:pagemessages />
        <apex:pageBlock id="pgBlock0">
            <!--Display page to add products to oppurtunity from Cloud User Pricebook.--->
            <apex:pageBlockSection id="pgBlock1">
                <apex:pageBlockTable value="{!CloudProducts}" var="pro1">
                    <apex:column >
                        <apex:facet name="header">Product Name</apex:facet>
                        <apex:outputText styleClass="longText" value="{!pro1.prodWrapper .Name}">&nbsp;&nbsp;</apex:outputText>
                    </apex:column>            
                    <apex:column >  
                        <apex:facet name="header">Quantity/Term</apex:facet>

                            <apex:inputField value="{!pro1.oli.Quantity}" required="true"/>&nbsp;&nbsp;
                        
                    </apex:column>    
                    <apex:column >  
                        <apex:facet name="header">No.of Users</apex:facet>
                           <apex:inputField value="{!pro1.oli.No_of_Users__c}" required="true"/>&nbsp;&nbsp;
                       </apex:column>
                    <apex:column >  
                        <apex:facet name="header">Price per user/month</apex:facet>
                        


<apex:inputField value="{!pro1.oli.Price_per_user_month__c}" required="true"/>&nbsp;&nbsp;
       
                    </apex:column>  
                    <apex:column >  
                        <apex:facet name="header">Revenue Type</apex:facet>
                        <apex:inputField value="{!pro1.oli.Revenue_Type__c}" required="true"/>&nbsp;&nbsp;
                    </apex:column>                    
<apex:column >
                        <apex:facet name="header">Product Type</apex:facet>
                        <apex:inputField value="{!pro1.oli.Product_Type__c}" required="true" />&nbsp;&nbsp;   
                                    
</apex:column>           
                </apex:pageBlockTable>
            </apex:pageBlockSection>
            <!--Display navigation buttons--->
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
                <apex:commandButton value="Save&More" action="{!saveMore}"/>
                <apex:commandButton value="Cancel" action="{!Cancel}"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 we want to display the helptext for the field "Product_Type__c" in the page, can someone help me how can we do this. I see some solutions saying to display as below:

<apex:pageBlockSectionItem helpText="{!$ObjectType.OpportunityLineItem.Fields.Product_Type__c.inlineHelpText}"/>

but not able to use this anywhere wherever i use i get the blank message whith no content.

 

Regards,

Krishna.