• SAHG-SFDC
  • NEWBIE
  • 256 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 7
    Likes Received
  • 2
    Likes Given
  • 84
    Questions
  • 147
    Replies
Visualforce not seen on community
Hi,

I have a ViusualForce page which I want to see in the community
I am a system Admin and cannot see this page
 
Can we display VF page data on the standard page? 

I have a VF page where there is a field (ServiceDate) and I need to display that in the standard page

Any ideas?
Hi,

I want to display the output link if the checkbox (Custom checkbox-  Display__c on product2) is checked

<td> <apex:outputLink value="/{!p.id}" target="_top">{!p.product2.name} </apex:outputLink> </td>

Any thought?
Hi,

Any one has ideas on how to save the date when a particular field was clicked (This is the Formula field, called "Create" it takes to the create page" , There is a static resource looks like a button) , Use case is to get the date the user clicked create

We will store this in another field on the same object

Advance thanks for looking into this
Hi Users,

I am looking for displaying the Apex command button only if the list that I have has atleast one value Amny suggestions?
 
<script>
                                    function load()
                                    {
                                        window.open("/oppitm/multilineitem.jsp?oppId={!Opportunity.Id}&retURL={!Opportunity.Id}", "_parent");
                                    }
                                </script>
                            <apex:commandButton value="Edit All" oncomplete="load();"/>
This list is created in the Apex Class 
Public List<OpportunityLineItem> ProdList{get;set;}

Advance thanks for seeing the post
Hi , I am trying to acheive a functionality where I want to redirect the user to a particular page, I was able to do that using a link, I want to do it with a button
<apex:outputLink value="/oppitm/multilineitem.jsp?oppId={!Opportunity.id}&retURL={!Opportunity.id}" target="_top" style="color:blue ;" >Edit All</apex:outputLink>
Any suggestions?
I'm trying to create a VF page which needs to have a 4 column section, I have tried HTML code and regular VF code but no help, can anyone of you help me?

VF Code:
            <apex:pageBlockSection title="Fee Based Wealth Management Production - Annual"  >
            
            <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
            <apex:outputLabel style="font-weight:bold">Field1</apex:outputLabel>
            <apex:inputField value="{!COntact.Field1__c}" style="width:80px"/>
            </apex:pageBlockSectionItem>
            
            <apex:pageBlockSectionItem dataStyle="width:10%" labelStyle="width:23%" >
            <apex:outputLabel style="font-weight:bold">Field2</apex:outputLabel>
            <apex:inputField value="{!Contact.Field2__c}" style="width:80px"/>
            </apex:pageBlockSectionItem>
            
            <apex:pageBlockSectionItem dataStyle="width:20%" labelStyle="width:23%" >
            <apex:outputLabel style="font-weight:bold">Field3</apex:outputLabel>
            <apex:inputField value="{!BAQ__c.Field3__c}" style="width:80px"/>
            </apex:pageBlockSectionItem>
            
            <apex:pageBlockSectionItem dataStyle="width:20%" labelStyle="width:23%" >
            <apex:outputLabel style="font-weight:bold">Field4</apex:outputLabel>
            <apex:inputField value="{!Contact.Field4__c}" style="width:80px"/>
            </apex:pageBlockSectionItem>  
           </apex:pageBlockSection>

HTML Code:
<table style="width:1000px;">
<tr>
     <td style="text-align:right"><apex:outputlabel value="Field1" style="margin-left:-10px;width:200px;"></apex:outputlabel></td>
     <td> <span style="margin-left:20px"> </span> <apex:inputField value="{!Contact.Field1__c}" label="" style="width:160px" />
     </td>
              
     <td style="text-align:right"> <apex:outputlabel value="Field2" style="width:200px;"> </apex:outputlabel></td>
     <td><span style="margin-left:20px"></span> <apex:inputField value="{!Contact.Field2__c}" label="" style="width:160px"/>
     </td> 
      

     <td style="text-align:right"><apex:outputlabel value="Field3" style="width:200px;"></apex:outputlabel></td>
     <td> <span style="margin-left:20px"> </span> <apex:inputField value="{!Contact.Field3__c}" label="" style="width:160px" />
     </td>
              
     <td style="text-align:right"> <apex:outputlabel value="Field4" style="width:200px;"> </apex:outputlabel></td>
     <td><span style="margin-left:20px"></span> <apex:inputField value="{!Contact.Field4__c}" label="" style="width:160px"/>
     </td> 
      
</tr>
</table>
HI, I am trying to check a chk box if there is a child record present , if no then unchk this chk box (look up relation to the custom object from Opportunity)
list<id> ids = new list<id>();
    if(trigger.isinsert || trigger.isupdate){
        
        
       for(Apttus_Proposal__Proposal__c p : trigger.new){
            ids.add(p.Apttus_Proposal__Opportunity__c);
        }
        list<opportunity> opp = [select id,Has_Quote_Proposal__c from opportunity where id in :ids];
        list<opportunity> oppttyupdate = new list<opportunity>(); 
        for(opportunity o : opp){
            o.Has_Quote_Proposal__c=true;
            oppttyupdate.add(o);
        }
        update oppttyupdate;
    }
    
    
    if(trigger.isdelete){
        
        list <id> ids3 = new list<id>();
        for(Apttus_Proposal__Proposal__c p : trigger.old){
            ids3.add(p.Apttus_Proposal__Opportunity__c);
        }
      
      
        list<opportunity> opp = [select id,Has_Quote_Proposal__c,(select id,name from XXXXX0000001yUfDEAU__r) from opportunity where id in :ids3];
        list<opportunity> oppttyoupdate = new list<opportunity>(); 
        for(opportunity o : opp){
            
            if(o.XXXXXXX0000001yUfDEAU__r.size()<1){
                o.Has_Quote_Proposal__c = false;
                oppttyoupdate.add(o);
            }
        }
        update oppttyoupdate;              
            }
                                     }
                             
                     }
Advance thanks 

Hi

 

I am using pagination to show 500 records with 75 records/page in visualforce page. I have to make some fields inline edit and for that when i am ptting  mode="inlineEdit" in pageblock tag then it makes the entire 500 records with all fields inline edit and also the changes are not getting reflected.

 

Any help will be greatful.

 

Thanks

Pravin...

Hi all,

 

I am trying to make a field which displays this:

 

48 x 180 (8,640)

 

But I'm getting this (no separators):

 

48 x 180 (8640)

 

Here's the code I'm using:

 

TEXT(Lot__r.Unit_Count__c) & " x " & TEXT(Lot__r.kg_unit__c) &" (" & TEXT((Lot__r.Unit_Count__c * Lot__r.kg_unit__c)) & ")"

 

Is there a simple way to insert comma separators in TEXT numbers - or perhaps a better way to do this? I am stumped and think the only way must be to write some combination of RIGHT and TRIM statements - or something else? This must have come up before, right?

 

It's easy in APEX:

 

<apex:outputText value="{0, number, ###,###,###,###}"><apex:param value="{!Quote.Total_Price__c}"/></apex:outputText>

 

...but does not work in formula fields.

 

What am I missing? Thanks much for any help.

 

Alex

 

 

 

I have a VF page that I'm embedding in a standard page layout. I'd like to pass a parameter into the VF page. The VF page's controller will look at the parameter and the current record, then decide what to display on the embedded page.

 

I have the VF page and controller written. But how can I get the standard page layout editor to pass a parameter in to the VF page? Is that even possible? If not, do you have any other suggestions?

 

Thanks!