• Rohan Gupta 4
  • NEWBIE
  • 45 Points
  • Member since 2016

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 11
    Replies
I want to created the exact image below for a visualforce page that'll render as a pdf. The border-line is needed also. 

User-added image

 MY CODE: 
<apex:page standardController="Newsletter__c" renderAs="pdf" extensions="MyPageController">   
 
<div class="header">
    Contact: First Last Name<br/>
    Demo, Inc. <br/>
    Phone: (301)222-2222
    <img src="{!$Resource.companylogo}" width="20%"/>
  </div>       
&nbsp;
&nbsp;        

 
Hello Team,

I have user (lookup field )on opportunty i want to make that field manadatory through trigger..

i want show message user is manadatory field please select user.

trigger opportunityTeamMemberTrigger  on OpportunityTeamMember (Before Insert, Before Update) {
     for (OpportunityTeamMember oppTeam: Trigger.new)
       { 
           
           if(oppTeam.User == Null){
           
           
           oppTeam.addError('please select the user');
                     
           }
                  
                } 
      
}


the trigger is active and it not working can any one tell what went wrong 
Hi All,
I have developed a VF page by using standard controller. I have alignment issue. Please see below image.
User-added image
If you see above image Account name and produ order number are not in same line. If I use showheader="false" then there is no alignment issue.
I want it as responsive design that even if i expand or minimize screen I want both fields shoud be aligned.
<apex:page standardController="Account" showHeader="true">
     <apex:form >       
        <apex:sectionHeader title="title1"/>
        <apex:pageBlock title="title2" tabStyle="account">
                  
                <apex:pageBlockSection title="PBS2" collapsible="false"  id="myPbSec2" columns="2">
                        <apex:outputField value="{!account.name}"/>
                        <apex:outputField value="{!account.description}"/>
                       <apex:outputPanel >
                       <span style="margin-left:102px"><apex:outputLabel value="Produ Order Number"/><span style="margin-left:18px"><apex:inputtext label="" id="ST"/>
                        &nbsp;
                         <apex:commandButton value="Button1!" /></span></span>
                      </apex:outputPanel>
                            
                </apex:pageBlockSection>
                </apex:pageBlock>
                </apex:form>
                </apex:page>

Please help me in this
Thanks in Advance​
I want to created the exact image below for a visualforce page that'll render as a pdf. The border-line is needed also. 

User-added image

 MY CODE: 
<apex:page standardController="Newsletter__c" renderAs="pdf" extensions="MyPageController">   
 
<div class="header">
    Contact: First Last Name<br/>
    Demo, Inc. <br/>
    Phone: (301)222-2222
    <img src="{!$Resource.companylogo}" width="20%"/>
  </div>       
&nbsp;
&nbsp;        

 
Hi,

 I am following below link how to pass values to URL to set values as default

  http://www.salesforceben.com/salesforce-url-hacking-tutorial/

  Below link open the opportunity partner I am using below link to pass parameter

  /opp/partneredit.jsp?id=0060v000003MhCg&fid=0010v000009Iyqn&retURL=%2F0060v000003MhCg

Please suggest me how to pass default value {!Opportunity.Partner__c} to the above URL {!Opportunity.Partner__c} is a custom field i.e. lookup value of partner accounts.  Please suggest me how to find the ID for below image lookup to pass value

 User-added image

   Please Sugggest me

Thanks
Maheem.


 
 I have to create a vf page with account object as a tab and when we click on account tab its record should display in form of custom links and when we click on record link the fields which we want to populate should be displayed

please help me to achieve this

Thanks in Advance
I am beginner :  Not able to solve Trailhead challange for-Developer Beginner :Process Automation-Automate Basic Business Processes with Process Builder
"
Create a process to update child record when the parent is updated.
You've been given a requirement to keep Contact addresses in sync with the Account they belong to. Use Process Builder to create a new process that updates all child Contact addresses when the address of the Account record is updated. This process:
Can have any name.
Must be activated.
Must update Contact mailing address fields (Street, City, State, Post Code, Country) when the parent Account shipping address field values are updated.
NOTE: You may have to deactivate the validation rule for the Contacts object (created from a previous challenge) in order to complete this challenge."

 What I had tried 
Deleted validation rule on contact  from previous challange.
 Using Process builder created new Process with below details
Object: Account
Criteria:'Update Address' with condidtion

Field: selected shipping street, city, state,postalcode and country
Operator: Ischanged
Type: boolean
value: true

Condition:
Any condition met (OR)

 For Immediate action
Action name: Mailing address change
Records: Account.contacts
Criteria for Updating Records:No criteria—just update the records!

Set new field values for the records you update:

Field: selected Mailing street, city, state,postalcode and country
Type: Reference
value:  selected shipping street, city, state,postalcode and country

 after this saved and activated. So Once I check challange got below error:
"Challenge Not yet complete... here's what's wrong:
An update to an account record failed to update the mailing address fields of all child contact records. Make sure that the process is correct and that it is activated."

So Please help.





 

>>

>>

 I WANT TO DISPLAY MY OWNER FIELD ON VISUAL FORCE FIELD.

 

Example:

 

I HAVE UNIVERSITIES__C CUSTOME OBJECT OWNER IS SIVASANKAR ADMIN

 

 

I'm unable to display my woner field on the visual force page

 

<apex:inputField value=" {!Universities__c.owner} "/>

 

OR

 

<apex:outputField value="{!Universities__C.Owner}"/>