• Nitesh K.
  • 35 Points
  • Member since 2015
  • Salesforce Developer
  • ApplikonTech IT Solution

  • Chatter
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 9
All VF gurus,
I have to add a <a href link in a table column, which when clicked, should be able to jump in a particular section in VF page.
following is my code and I need the <a href in column 3 to jump to the corresponding section in VF page. Can this be achieved?
Both are dealing with same collection named someObjects. So basically each row in the first table is displayed in detail view in the <apex:repeat code. The href (underlined  text), when clicked to the portion of the PageBlockTable in bold below.

<apex:pageBlockTable id="someTable" value="{! someObjects }" var="someObject" >
    <apex:column id="column1" headerValue="someObject Name" ><apex:outputLink value="{!Some value)}" target="_blank">
        <apex:column id="column1" headerValue="Status" value="{! someObject.Icon_Status__c }" />
        <apex:column id="column3" headerValue="Comments" ><a href="#name" >View Comments</a></apex:column>
<apex:repeat value="{! someObjects }" var="someObject" >
 <apex:outputPanel >
  <div style="float: left; width: 24px" ></div>
        <div style="overflow: hidden; width: auto;  padding: 5px; font-weight: bold; color: white" >
                            {! object.RecordType.Name }


Any links or ideas welcome.
Thanks in advance!
apex:inputField does not seem to work with datePicker and dateTimePicker, if the SF standardStylesheet is not used. A page with the simple code

<apex:page sidebar="false" showHeader="false" standardStylesheets="false" standardController="Contact">
        <apex:form><apex:inputField showDatepicker="true" value="{!contact.birthdate}"/></apex:form>

produces Javascript error messages as soon as the input field gets the focus in the rendered page:

Uncaught TypeError: Cannot read property 'currentStyle' of null
    at Object.getStyle (main.js:407)
    at Object.setStyle (main.js:406)
    at iframeShim.setStyle (main.js:1350)
    at DatePicker.hide (main.js:658)
    at HTMLDocument.DatePicker.closeHandler (main.js:646)
getStyle @ main.js:407
setStyle @ main.js:406
setStyle @ main.js:1350
DatePicker.hide @ main.js:658
DatePicker.closeHandler @ main.js:646
Navigated to [...]
main.js:18 Uncaught TypeError: Cannot read property 'addEventListener' of null
    at main.js:18
    at new DatePicker (main.js:646)
    at Function.DatePicker.getDatePicker (main.js:659)
    at Function.DatePicker.pickDate (main.js:660)
    at HTMLInputElement.onfocus (Test:7)

Is this a bug in Salesforce's Javascript? Or what limitations exist in the use of date and date-time pickers? Or have I missed anything?

Hi All,
I am trying to download csv file when i click on button. But when i click button i am getting like this in csv file.

{"index":93 name:"HideProfileElvVideo" value:false}. Below is my code

VF Page:

<apex:page controller="MyCustomListViewController" contentType="application/vnd.ms-excel#filename.csv">{!header}
<!-- <apex:pageBlock >
<apex:pageBlockTable value="{!Contacts}" var="contact" id="pbt"> 
<apex:column >
<apex:outputField value="{!contact.con.Name}"/>

<apex:column >
<apex:outputField value="{!contact.con.Account.name}"/> 
<apex:column >
<apex:outputField value="{!contact.con.Phone}"/>
<apex:column >
<apex:outputField value="{!contact.con.Email}"/>
</apex:pageBlock> -->
<!-- <apex:repeat value="{!Contacts}" var="contact" >
</apex:repeat> -->

<apex:pageBlock >
<apex:pageBlockTable value="{!Contacts}" var="contact" id="pbt"> 


i need help from tou 
How to write a code to given scenario
User-added image
this is my vf page in this vf page insert values and click on save button.
After click of save button record will save and it will redirecting to object.
here i dont want to go object record page. after click of save button record save and page will redirect same vf page like below
User-added image
difference between "Trigger.New" and "Trigger.old".