• Arun Tyagi
  • NEWBIE
  • 45 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 11
    Questions
  • 8
    Replies
I Want to add the location field of conUser-added imagetact in task view on home page ..how can we do this
I want to add the location field of contact in task view on home page .you can see in snap shoot .plz solve it if you have any idea about it .thanks in advance for expertsUser-added image
User-added image

Video Viewing All Template,Send Video,Demomail viewing,mailmerge viewing,Compaign viewing,DemoMail Sent,mailMerge sent,Exacttarget viewing all are tabs .but when i add bootstrap dropdown code tabs are not working .plz check the code and help me


<apex:page controller="temp"  sidebar="false" showHeader="false" >

    <apex:form >
        <apex:pageBlock >
            <style>
                .activeTab {background-color: #236FBD; color:white; background-image:none}
                .inactiveTab { background-color: lightgray; color:black; background-image:none}
            </style>

            <apex:tabPanel id="tabPanel" switchType="client" immediate="true">
                <apex:tab label="Video Viewing All Template">
                        
                           <!----------------------------dropdown code start-------------------------->
                            <!-- Bootstrap -->
        <!-- Bootstrap -->
         <apex:stylesheet value="{!URLFOR($Resource.bootstrap, 'bootstrap/css/bootstrap.min.css')}" />
         <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"/>
         
         <apex:includeScript value="{!URLFOR($Resource.bootstrap, 'js/bootstrap.min.js')}"/>

 
     
      <body>
         
                  <!-- Table on right side -->
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                     <tr>
                        
                        <td style="font-weight:bold;" class="divider">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                       
                         <td style="font-weight:bold;" class="Single">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                       
                         <td style="font-weight:bold;" class="Single">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                        
                          <td style="font-weight:bold;" class="Single">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                        
                          <td style="font-weight:bold;" class="Single">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                       
                       
                     </tr>
                     
                  </table>
                  
                  
                  
                
                  <!-- END -->
             
         
        
      </body>
 
                           <!----------------------------dropdown  code close-------------------------->    
                           
                </apex:tab>
                               
                <!----------------------------teb2-------------------------->
                               
                <apex:tab label="Send Video">
                    
                </apex:tab>
                                
                                
                <!---------------------------tab3---------------------------->
                
                <apex:tab label="Demomail viewing">
                    
                </apex:tab>
                
                <!---------------------------tab4---------------------------->
                
                <apex:tab label="mailmerge viewing">
                    
                </apex:tab>
                <!---------------------------tab5---------------------------->
                
                <apex:tab label="Compaign viewing">
                    
                </apex:tab>
                <!---------------------------tab6---------------------------->
                
                <apex:tab label="DemoMail Sent">
                    
                </apex:tab>
                <!---------------------------tab7---------------------------->
                
                <apex:tab label="mailMerge sent">
                    
                </apex:tab>
                <!---------------------------tab8---------------------------->
                
                <apex:tab label="Exacttarget viewing">
                    
                </apex:tab>
                
                
                
                     </apex:tabpanel>           
                </apex:pageblock>
                
    </apex:form>
</apex:page>

<!--------controller start from herce------->
public class temp {
public string Contact{get;set;}
public string lead{get;set;}
public string selectedTemplate{get; set;}
public EmailTemplate em{get; set;}

public void callEmailTemplate(){
em = [select id,name,HtmlValue,body from EmailTemplate where Id=: selectedTemplate];

}
public temp() {
}

list<EmailTemplate> temp1=[SELECT id ,Name,HtmlValue FROM EmailTemplate  ORDER by Name ASC];
public list<EmailTemplate> gettemp1(){
return temp1;

 }
 }
<!----------dropdown code close--------->
 
I make a 3 custom filed in standard object .first name ,last name and name.I make first name and last name in text field and I am storing the whole name in name field with the help of formula.but now I want all data in picklist in name field. when we save data in first name and lastname ..it store in name in picklist
When i click on marketing product inquiry response link, it fetch the the email template and show on the right side of page .but i want to show only email template not email template detail .how can we hide this email template deatils.plz help



thanks in advance
Arun Tyagi
User-added image
<apex:page controller="temp"  sidebar="false">

<apex:form >
<apex:pageBlock >


           
<style>
.activeTab {background-color: #236FBD; color:white; background-image:none}
.inactiveTab { background-color: lightgray; color:black; background-image:none}
</style>

<apex:tabPanel id="tabPanel" switchType="client" immediate="true">
           <apex:tab label="Select Mail Merge Template">
           <apex:pageBlockSection >
           <apex:pageBlockTable value="{!temp1}" var="t">
           <apex:column >
           <apex:commandLink action="{!callEmailTemplate}" reRender="temp_dt" >
           {!t.name}
           <apex:param name="temp_id" assignTo="{!selectedTemplate}" value="{!t.id }"/>
              
           </apex:commandLink>
            
           </apex:column>
          
           </apex:pageBlockTable>
                  
                      
          <apex:outputPanel id="temp_dt" >
           {!em.Name}
          </apex:outputPanel>  
        
     </apex:pageBlockSection>
      </apex:tab>
               
<!----------------------------teb2-------------------------->
               
<apex:tab label="Edit Template">
<apex:outputPanel id="temp_dt" >
<apex:detail subject="{!$CurrentPage.parameters.temp_id}"/>
</apex:outputPanel>  
</apex:tab>
                
                
                <!-------tab3---------------->
                
                <apex:tab label="Select Contact" >
                
                <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<style>
* {
  margin: 0;
  padding: 0;
}
.tabs {
  list-style: none;
  width: 200px;
  float: left
}

.tabs a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  background: #fff;
  color: #000;   
  border-bottom: 1px solid #ccc;
}

.tabContent {
  margin-left: 200px;
  min-height: 300px;
  border: 1px solid #ccc;
  padding: 10px;
}

.tabs a.active {
  background: rgba(0,0,0,0.2);
}
.tabContent .tabBox {
  display: none
}
.tabContent .activeTab {
  display: block
}
</style>
<script>
$(document).ready(function(){
  $('.tabs a').click(function(){
    var tabId = $(this).attr('href');
    $('.tabs a').removeClass('active');
    $(this).addClass('active');
    $('.tabContent .tabBox').removeClass('activeTab');
    $(tabId).addClass('activeTab')
  });
});
</script>
<ul class="tabs" >
  <li><a class="active" href="#tab1">Tab One</a></li>
  <li><a href="#tab2">Tab Two</a></li>
  <li><a href="#tab3">Tab Three</a></li>
  <li><a href="#tab4">Tab Four</a></li>
</ul>  
<div class="tabContent">
  <div class="tabBox activeTab" id="tab1">Tab One</div>
  <div class="tabBox" id="tab2">Tab Two</div>
  <div class="tabBox" id="tab3">Tab Three</div>
  <div class="tabBox" id="tab4">Tab Four</div>
</div>
                
                <apex:selectRadio >
        <apex:selectOption itemLabel="Contacts View" itemValue="1"></apex:selectOption>
        <apex:selectOption itemLabel="Leads View" itemValue="2"></apex:selectOption>
          
      </apex:selectRadio>
              </apex:tab>
              
              
                <apex:tab label="Preview & Send" >
               </apex:tab>
</apex:tabPanel>
</apex:pageblock>

</apex:form>

</apex:page>
<-.............................................->this is the controller for this visualforce code

public class temp {
public string Contact{get;set;}
public string lead{get;set;}
public string selectedTemplate{get; set;}
public EmailTemplate em{get; set;}

public void callEmailTemplate(){
em = [select id,name,HtmlValue,body from EmailTemplate where Id=: selectedTemplate];

}
public temp() {
}

list<EmailTemplate> temp1=[SELECT id ,Name,HtmlValue FROM EmailTemplate  ORDER by Name ASC];
public list<EmailTemplate> gettemp1(){
return temp1;

 }
 }


<-............................->
problem is that . tab is not working ..when we click on other its not work .plz check it on your end
How can we make a vertical tab in visualforce page
how can i make this page.give me some hint or give some similar link exampleimage
<apex:page controller="OppsController">
<apex:form>
<apex:dataTable value="{!OpportunitiesWithIndex}" var="oppWrapped">
<apex:column>
<apex:facet name="header">Opportunity</apex:facet>
<apex:outputField value="{!oppWrapped.opp.name}"/>
</apex:column>
<apex:column>
<apex:facet name="header">Amount</apex:facet>
<apex:inputField value="{!oppWrapped.opp.amount}"
tabindex="{!oppWrapped.tabIndex}"/>
</apex:column>
</apex:dataTable>
</apex:form>
</apex:page>
plz help , I am getting this error([Error] Error: Unsupported attribute tabindex in <apex:inputField> in tabbedAccount at line 11 column 36)
how can we make a visualforce page with office toolkit like this snap shoti need a this type of visulaforce page
how can we make a visualforce page with office toolkit like this snap shoti need a this type of visulaforce page
User-added image

Video Viewing All Template,Send Video,Demomail viewing,mailmerge viewing,Compaign viewing,DemoMail Sent,mailMerge sent,Exacttarget viewing all are tabs .but when i add bootstrap dropdown code tabs are not working .plz check the code and help me


<apex:page controller="temp"  sidebar="false" showHeader="false" >

    <apex:form >
        <apex:pageBlock >
            <style>
                .activeTab {background-color: #236FBD; color:white; background-image:none}
                .inactiveTab { background-color: lightgray; color:black; background-image:none}
            </style>

            <apex:tabPanel id="tabPanel" switchType="client" immediate="true">
                <apex:tab label="Video Viewing All Template">
                        
                           <!----------------------------dropdown code start-------------------------->
                            <!-- Bootstrap -->
        <!-- Bootstrap -->
         <apex:stylesheet value="{!URLFOR($Resource.bootstrap, 'bootstrap/css/bootstrap.min.css')}" />
         <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"/>
         
         <apex:includeScript value="{!URLFOR($Resource.bootstrap, 'js/bootstrap.min.js')}"/>

 
     
      <body>
         
                  <!-- Table on right side -->
                  <table width="100%" border="0" cellspacing="0" cellpadding="1">
                     <tr>
                        
                        <td style="font-weight:bold;" class="divider">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                       
                         <td style="font-weight:bold;" class="Single">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                       
                         <td style="font-weight:bold;" class="Single">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                        
                          <td style="font-weight:bold;" class="Single">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                        
                          <td style="font-weight:bold;" class="Single">
                           
                           <select id="SES__c" >
                              <option value="">Bootstrap Dropdown</option>
                              <option value="True">Yes</option>
                              <option value="False">No</option>
                           </select>
                        </td>
                       
                       
                     </tr>
                     
                  </table>
                  
                  
                  
                
                  <!-- END -->
             
         
        
      </body>
 
                           <!----------------------------dropdown  code close-------------------------->    
                           
                </apex:tab>
                               
                <!----------------------------teb2-------------------------->
                               
                <apex:tab label="Send Video">
                    
                </apex:tab>
                                
                                
                <!---------------------------tab3---------------------------->
                
                <apex:tab label="Demomail viewing">
                    
                </apex:tab>
                
                <!---------------------------tab4---------------------------->
                
                <apex:tab label="mailmerge viewing">
                    
                </apex:tab>
                <!---------------------------tab5---------------------------->
                
                <apex:tab label="Compaign viewing">
                    
                </apex:tab>
                <!---------------------------tab6---------------------------->
                
                <apex:tab label="DemoMail Sent">
                    
                </apex:tab>
                <!---------------------------tab7---------------------------->
                
                <apex:tab label="mailMerge sent">
                    
                </apex:tab>
                <!---------------------------tab8---------------------------->
                
                <apex:tab label="Exacttarget viewing">
                    
                </apex:tab>
                
                
                
                     </apex:tabpanel>           
                </apex:pageblock>
                
    </apex:form>
</apex:page>

<!--------controller start from herce------->
public class temp {
public string Contact{get;set;}
public string lead{get;set;}
public string selectedTemplate{get; set;}
public EmailTemplate em{get; set;}

public void callEmailTemplate(){
em = [select id,name,HtmlValue,body from EmailTemplate where Id=: selectedTemplate];

}
public temp() {
}

list<EmailTemplate> temp1=[SELECT id ,Name,HtmlValue FROM EmailTemplate  ORDER by Name ASC];
public list<EmailTemplate> gettemp1(){
return temp1;

 }
 }
<!----------dropdown code close--------->
 
Hi everyone!
I need a help with VF page.
 
I have the following VF code:
 <apex:page standardController="Improvement__c" recordSetVar="Improvement" sidebar="false" showHeader="false">
    <apex:sectionHeader title="Improvements" help="https://help.salesforce.com/apex/HTHome"/>
        <apex:form >
           <apex:pageBlock >
               <apex:pageBlockButtons >
                    <apex:commandButton value="Assign IMP" action="{!save}"/><!--alterar a Action-->
               </apex:pageBlockButtons>
                           
                           <apex:pageBlockSection title="Select Improvements" collapsible="false"/ >
                               <apex:pageBlockTable value="{!improvement}" var="imp"> 
                                   <apex:column value="{!imp.name}">
                                                          
                                   </apex:column>    
                               </apex:pageBlockTable>                                           
           </apex:pageBlock>      
        </apex:form>  
</apex:page>




However, it only displays the values (Attached file)
 
 My current page
 
I want to make it mult check box select-able in order to add it on a related list.
 
Does any body help me?
I make a 3 custom filed in standard object .first name ,last name and name.I make first name and last name in text field and I am storing the whole name in name field with the help of formula.but now I want all data in picklist in name field. when we save data in first name and lastname ..it store in name in picklist
Recently I went to 2 onsite interviews and they asked me the same question about reports. I answered each one of them perfectly but couldnt on this one. On the other hand my mind got stucked up somewhere each time when I heard the question... does anyone here help me out with some common question you would ask in a interview for salesforce administrator. Sorry for the very vague question on question!
How can we make a vertical tab in visualforce page
how can we make a visualforce page with office toolkit like this snap shoti need a this type of visulaforce page
Hi Experts,

I have a problem with email service in apex. When I reply to the salesforce generated email address, then in my email service handler the body contains all the previous replies and main email body(when the email was sent first time) along with the current reply.

Like:

    Test Notessssss......
    
    On Mon, May 4, 2015 at 11:58 AM, Pankaj <pankaj@gmail.com> wrote:
    Testjfdsfjdklsflkdsjflksdfjklsdfjlkdsfjsdklfj
    fjdslkfjsdklfjsdlkfjlsdkfjsdklfjdklsj

My reply body is Test Notesssssss..... only. But in email service handler I am getting the previous one as well.

Can someone suggest me how we can avoid the previous thread bodies?

Thanks in advance!
I have to create vertical tab in visualforce page using jquery.
The tab headings values come from <apex:repeat> which is list of names

<head>
    <apex:includeScript value="{!URLFOR($Resource.jquery, 'jquery-ui-1.10.4.custom/js/jquery-1.10.2.js')}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery, 'jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.min.js')}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery, 'jquery-ui-1.10.4.custom/js/jquery-ui-1.10.4.custom.js')}"/>
    <apex:stylesheet value="{!URLFOR($Resource.jquery, 'jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.css')}"/>
     <apex:stylesheet value="{!URLFOR($Resource.jquery, 'jquery-ui-1.10.4.custom/css/ui-lightness/jquery-ui-1.10.4.custom.min.css')}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery,'jquery-ui-1.10.4.custom/development-bundle/ui/jquery.ui.tabs.js')}"/>
    <script>
  $(function() {
$('#tabs').tabs().addClass( "ui-tabs-vertical ui-helper-clearfix" );;
$( "#tabs li" ).removeClass( "ui-corner-top" ).addClass( "ui-corner-left" );
  
  });
  </script>
  <style>
  .ui-tabs-vertical { width: 55em; }
  .ui-tabs-vertical .ui-tabs-nav { padding: .2em .1em .2em .2em; float: left; width: 12em; }
  .ui-tabs-vertical .ui-tabs-nav li { clear: left; width: 100%; border-bottom-width: 1px !important; border-right-width: 0 !important; margin: 0 -1px .2em 0; }
  .ui-tabs-vertical .ui-tabs-nav li a { display:block; }
  .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { padding-bottom: 0; padding-right: .1em; border-right-width: 1px; border-right-width: 1px; }
  .ui-tabs-vertical .ui-tabs-panel { padding: 1em; float: right; width: 40em;}
  </style>
</head>
<body>



<apex:repeat value="{!Categories}" var="assessmentcategory" >
  <div id="tabs">
  <ul>
    <li><a href="#tabs-{!assessmentcategory.name}">{!assessmentcategory.name}</a></li>
  </ul>
  <div id="tabs-{!assessmentcategory.name}">
   <p>{!assessmentcategory.name}</p>
  </div>
  </div>
</apex:repeat> 


Problem is only first item is in a tab the remaining elements appear as a link.

any pointers would be helpful.