• sinsiterrulez
  • NEWBIE
  • 205 Points
  • Member since 2009

  • Chatter
    Feed
  • 8
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 52
    Replies

This should be simple, but I can't figure it out.

 

I have a repeated list of record ID's, and I want to link them all to the respective record, the same way a list view links the Name field to the record.

 

 

<apex:pageBlock>
        <apex:panelgroup >
            <apex:pageblocktable value="{!sRecords}" var="r" >
                <apex:column >
                    <apex:commandLink value="{!r.Id}"  action="{!linkToRecord}">//How do I pass r.Id to the controller method?                                        
                    </apex:commandLink> 
                </apex:column>
            </apex:pageblocktable>
        </apex:panelgroup>
    </apex:pageBlock>

 

public PageReference linkToRecord() {
      String recordId='001A000000P4ZYy';//How do I make this a variable based on the Id clicked?
      PageReference recordPage= new PageReference('/'+recordId);
      return recordPage;
    }

 

 

 

Hi

 

I have an application that displays data from a WSDL. Now the require ment is that whenever a new entry is made the user should get a pop up that there is a new entry. I have achieved refreshing using action poller i want to add a pop up which will alert the user that a new record has come.

 

Please help its little urgent

Hi I am trying to redirect from a page to object layout.

 

This is what I am trying but is not working any help will be much appreciated

 

 

public PageReference value(){
    Account accnt = new Account();

    PageReference acctPage = new ApexPages.StandardController(accnt).view();
      acctPage.setRedirect(true);

      return acctPage;

}

 

 

  • August 05, 2010
  • Like
  • 0

Hi All,

 

I would like to set the value for the account name field in visual force page when it is opening. I just want to pre-populate the value. I dont find the way to do it. Can anyone help me out ?

 

Thanks in Advance.

 

Manoj 

Hi,

I am trying to make a Visualforce email template which will display a list of Contacts from an Account associated with an Opportunity.  However, it seems that I am unable to do this.  Below is a snippet of my code.  I know that the problem lies within the <apex:repeat var="ct" value="{!relatedTo.Contacts}"> line since Contacts is not related to Opportunity.  However, I am not sure how to make this work.  I've tried Accounts.Contacts and other combinations that come to mind but I'm unable to get this working.  Since Opportunities - Accounts - Contacts are all related (in that order) I thought there would be a way to do this.   Any help on this would be greatly appreciated.  Thanks!  


<messaging:emailTemplate recipientType="User"    

relatedToType="Opportunity"    

subject="Contact list for: {!relatedTo.Account.Name}"    

replyTo="aaa@aaa.com" >    

 

<messaging:htmlEmailBody > 

<html>

<body>

         <STYLE type="text/css">

               TH {font-size: 12px; font-face: arial;background: #CCCCCC; border-width: 1;  text-align: left}

                TD  {font-size: 12px; font-face: arial}

                TABLE {border: solid #CCCCCC; border-width: 1}

               TR {border: solid #CCCCCC; border-width: 1}

         </STYLE>

             <font face="arial" size="2">

 

             <p>Dear <b>{!recipient.name}</b>,</p>

               <p>Below is a list of all contacts related to this opportunity.</p>

         <table border="0" cellpadding="5" cellspacing="0">

                 <tr >

                      <th>Name</th>

                  </tr>

    <apex:repeat var="ct" value="{!relatedTo.Contacts}">

 

<apex:outputPanel rendered="{!or(ct.User_Type__c = 'TrialUser',ct.Inst_Mkt_Type__c = 'Trial')}">

      <tr>          

<td>{!ct.Name}</td>

     </tr>    

</apex:outputPanel>    

</apex:repeat>
        </table>        

</font>            

</body>

</html>

</messaging:htmlEmailBody><messaging:plainTextEmailBody >"

Hello,

 

I have added a custom HTML component in the home page with a reference to a  visualforce page I have. The FrontPageNews  object will contain the info I want to show in the page blocks. It needs to be one page block per record. 

I need to iterate over the records and for each one, create a page block with the block title taken from a field in the custom object, and the page section has an outputText tag that would also get the text from a field in the custom object.

 

How can this be achieved? I have no clue how to iterate over objects in visualforce. Much lessdynamically create pageblocks and pageBlockSections.

 

Hi All,

 

I have a set of record types for opportunities in my organization. I have a visual force page. I would like to redirect the user to the visual force page whenever a particular record type is selected in the drop down list.

 

Can anyone help me out , how to do this ?

 

Thank in Advance.

Good Day.

HI,

I need to insert images probably thumbnails in RTF(Rich Text area field) of an object using ETL tool. Can anyone help me on this. I'm not sure whether its possible and if yes, how to do it?

Also, Can I achieve it using Informatica??

Hey,

I'm trying to insert image of size of a thumbnail in Rich text area field in SFDC using Informatica but to my surprise I could not find the field in Informatica. I used 16.0 api in Informatica to import the object. IF I try using a higher api it does not fetch the objects in Informatica.

 

Please let me know how should I migrate the images in RTF field using Informatica?

 

Also, on looking at the content of the RTF field in debug log it seems that the image is not stored in field but in some other location & is just referenced in RTF. The data stored in the field is like:

<img src="https://c.<servername e.g. na6>.content.force.com/servlet/rtaImage?eid=<recordID to which image needs to be linked>&refid=0EMXXXXXXXXXXXXX&feoid=<RTF field ID>"></img>

I tried finding out the object label whose keyprefix is 0EM but I couldnt..is it a standard object & if so, which one? Can I load image directly in that standard object & then link to my record's RTF field??

 

Hi,

Does any1 have any idea about limitations of the things that can be done from an action method in an apex:page tag

I have an action method in apex:page tag which redirects user to another VF page but its not working.

What I observed that the VF page redirected to other VF page only when the controller of the other VF page was different than its own but when I redirected to a VF page having the same controller its just dint do it!!

 

I also tried it by switching off the development mode but it dint work. Has nay1 faced any such kind of issue & if so how can some1 resolve it!!

 

Please check code here.

I have two visualforce pages that share the same controller. When the user goest to Page1 and meets specific criteria (defined in the Controller), I want Page1 to "skip" and have the user redirected to Page2. If the user doesn't meet the criteria, Page1 should appear.

 

I need to maintain the view state..I dont want to setredirect(true)..Does any one ahve any idea about it??

<apex:page controller="Enroll" action="{!SACCheck}">

 Here is the controller method

 

public Pagereference SACCheck()
    {
        Map<string,string> ServiceStat = new Map<string,string>();
        ServiceStat = obj.ServiceStat(opptyID);
        System.debug('ServiceStat: ' +ServiceStat);
        List<string> temp = new list<string>();
        temp.addall(ServiceStat.keyset());
        System.Debug('temp value: '+temp);
        
        if(!ServiceStat.isEmpty() && ServiceStat.size() < 2)
        {
            Requesttype = temp.get(0);
            System.debug(' Temps first value: ' +Requesttype);
            enroll = (ServiceStat.get(RequestType)== 'Request')? new Support_Request__c(Opportunity__c = opptyID,Request_Type__c = RequestType): [Select Support_Request_Type__c,Support_Request_Type_Others__c,Request_Type__c from Support_request__c where Opportunity__c=:opptyId and Request_Type__c =:RequestType limit 1];
            SupportReqd = (enroll.Support_Request_Type__c =='Support not Required')? TRUE : FALSE;            
            Pagereference data = new Pagereference('/apex/EnrollmentForm?id='+opptyid);
            data.setredirect(false);
            return data;
        }
        return null;        
    }

 

 

 

Hi,

I have a VF email template which is sent via a Workflow on inserting a record.The VF email template was working fine in production but after just adding few new VF tags to the email the body gets populated with wierd data.

the VF tags added are: 

 

 

<apex:outputPanel >
<br/><br/><b><u>Comments for Support Provider:</u></b><br/><br/>
<apex:outputField value="{!relatedTo.Support_Request_Type_Others__c}"/><br/>
</apex:outputPanel>

  The field Support_Request_Type_Others__c is a long text area (32000 characters) field.

 

And now the email contains such kind of data: 

 

Comments for Support Provider:  if(!window.sfdcPage){window.sfdcPage = new ApexPage();} UserContext.initialize({"locale":"en_US","timeFormat":"h:mm a","today":"5\/26\/2010 5:22 PM","userPreferences":[{"index":112,"name":"HideInlineEditSplash","value":false} ,{"index":114,"name":"OverrideTaskSendNotification","value":false} ,{"index":115,"name":"DefaultTaskSendNotification","value":false} ,{"index":119,"name":"HideUserLayoutStdFieldInfo","value":false} ,{"index":116,"name":"HideRPPWarning","value":false} ,{"index":87,"name":"HideInlineSchedulingSplash","value":false} ,{"index":88,"name":"HideCRUCNotification","value":false} ,{"index":89,"name":"HideNewPLESplash","value":false} ,{"index":90,"name":"HideNewPLEWarnIE6","value":false} ,{"index":122,"name":"HideOverrideSharingMessage","value":false} ,{"index":91,"name":"HideProfileILEWarn","value":false} ,{"index":93,"name":"HideProfileElvVideo","value":false} ,{"index":97,"name":"ShowPicklistEditSplash","value":true} ,{"index":92,"name":"HideDataCategorySplash","value":false} ,{"index":128,"name":"ShowDealView","value":false} ,{"index":129,"name":"HideDealViewGuidedTour","value":false} ,{"index":132,"name":"HideKnowledgeFirstTimeSetupMsg","value":false} ,{"index":104,"name":"DefaultOffEntityPermsMsg","value":false} ,{"index":133,"name":"HideCSNWelcomeMessage","value":false} ,{"index":135,"name":"HideNewCsnSplash","value":false} ,{"index":101,"name":"HideBrowserWarning","value":false} ],"startOfWeek":"1","isAccessibleMode":false,"ampm":["AM","PM"],"userId":"00530000000zpuv","dateTimeFormat":"M\/d\/yyyy h:mm a","dateFormat":"M\/d\/yyyy","uiSkin":"Theme2","language":"en_US","siteUrlPrefix":""} );

 Though this problem is not faced in all the emails but few emails do get this data.

Also, just due to this issue the entire email body is distorted.

 

Can some please help on this or provide any insights as this issue is of high priority for the end user

 

I am trying to create a report based upon the report type: Account with Custom object1 with Custom Object2. Custom object 1 is having look up to Accounts and Custom object 2 is having Master detail to Custom object1. Now, I want to include Account fields in the report but, standard filters should be based upon . With this report type, Account fields are achievable but Standard filters are based on Accounts ( View Filters). Another option I tried is, by creating report type Custom Object 1 with Custom Object 2 but here I am not able to extract account fields though standard filters are having views from Custom object 1.

 

 Is there any way I can create a report where I can include Account fields as well as Standard filters from Custom Object1

Hi, I have a Javascript function onload which has a for loop..But the for loop is not working.Its throwing some absurd error. Please help

Below is the code & the error:

 

Code:

window.onload = function()
{
    if(("{!$CurrentPage.parameters.id}").length > 0)
    {
        alert('Im in begin function');
        var Sprod = ("{!PSS.AT_Product__c}").split(';');
        alert(Sprod.length);
        var mainElem=document.getElementById(Hidden);
        var sElem=document.getElementById("Productd_selected");
        var uElem=document.getElementById("Productd_unselected");
        var sI=0;
        var uI=0;
        sElem.length=0;
        uElem.length=0;
        alert(mainElem.length);
        for (i=0;i<Sprod.length;i++)
        {
            mainElem.options[parseInt(Sprod[i])].selected=true;
        }   
     }      
}

 

 

The error which I 'm getting is:

Uncaught SyntaxError:Unexpected identifier 

 

On viewing the page source what I get is:

window.onload = function()
 {
  if(("*******************").length> 0)
  {
  alert('Im in begin function');
  var Sprod = ("abc;cde;def").split(';');
  alert(Sprod.length);
  var mainElem=document.getElementById(Hidden);
  var sElem=document.getElementById("Productd_selected");
  var uElem=document.getElementById("Productd_unselected");
  var sI=0;
  var uI=0;
  sElem.length=0;
  uElem.length=0;
  alert(mainElem.length);
  insert();
  for (i=0;i<Sprod label="Chosen" .length;i++)
  {
  mainElem.options[parseInt(Sprod[i])].selected=true;
  }
  }
 }
Can anyone help me.I have tried everything..Please HELP!!!!!!!!!!!

Hi,

I have created a custom multi select picklist in VF using apex:selectlist & apex:selectOptions but I want the look and feel of the picklist as that provided by salesforce(the left pane with available values & right pane with selected values).

How can I achieve it?

 

Please Help!!!!!!!!!!!!!

I am new to Apex and not quite sure the syntax for passing a variable into one of my methods from a Visualforce page. I have an apex:repeat loop on my VF page that I'd like to perform a call to one of my apex methods within.

 

The VF page loop looks like this:

 

<apex:repeat value="{!ListCategories}" var="this">
   {!this.name} - SUBTOTAL HERE <br/>
</apex:repeat>

 

 The method looks like this:

 

 

 

Public Decimal calcSubtotal(String Category) {
     Decimal count = 0;

     for (QuoteLineItem a : [select category__c, UnitPrice from QuoteLineItem where category__c = :Category AND Quote.Opportunity.Id = :qte.Opportunity.Id]) {       
          count += a.UnitPrice;
     }
        
     return count;
}

 

What I want to do is replace where it says "SUBTOTAL HERE" on my VF page with the subtotal for that particular category. What I can't seem to figure out is how do I pass the "this.name" variable from my VF loop into my calcSubtotal method? The Standard controller is Quote and this method is a controller extension.

 

  • December 13, 2010
  • Like
  • 0

for example how the row heightlight works for a pageBlockTable. if i am using a dataTable instead and I want the same or a border to appear around the entire row when you mouse over the row. i can put a onmouseover on a element in a column.

Having some issues figuring this one out.  This is what i need:

  • Display a table, reach row displaying id, username, and a command button
  • When the command button is clicked, take the ID of the record on that row and send it to a method on the controller where it will be output using a system.debug.

Visualforce

 

<apex:page controller="vftest">
    <apex:form > 
        <apex:pageBlock >
            <apex:dataTable value="{!TestUsers}" var="tu">
                <apex:column headerValue="Id">
                    <apex:inputField value="{!tu.Id}"/>
                </apex:column>
                <apex:column headerValue="UserName">
                    <apex:inputField value="{!tu.UserName}"/>
                </apex:column>
                <apex:column>
                    <apex:commandButton action="{!TestParams}" value="TestParam">
                        <apex:param name="testuser" value="{!tu.UserName}"/>
                    </apex:commandButton>
                </apex:column>
            </apex:dataTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>

 

Class

 

public class vftest
{
    string selected_user;

    public List<User> getTestUsers()
    {
        List<User> testuserlist = [select id, username from user where user_type__c = 'Test'];
        return testuserlist;
    }
    
    
    public void TestParams()
    {
        Id id1 = ApexPages.currentPage().getParameters().get('testuser');
        system.debug('-----------------tp-id1-------------------' + id1);
        
        Id id2 = System.currentPageReference().getParameters().get('testuser');
        system.debug('-----------------tp-id2-------------------' + id2);    
    }    
}

 

Any help would be appreciated.

 

 

This should be simple, but I can't figure it out.

 

I have a repeated list of record ID's, and I want to link them all to the respective record, the same way a list view links the Name field to the record.

 

 

<apex:pageBlock>
        <apex:panelgroup >
            <apex:pageblocktable value="{!sRecords}" var="r" >
                <apex:column >
                    <apex:commandLink value="{!r.Id}"  action="{!linkToRecord}">//How do I pass r.Id to the controller method?                                        
                    </apex:commandLink> 
                </apex:column>
            </apex:pageblocktable>
        </apex:panelgroup>
    </apex:pageBlock>

 

public PageReference linkToRecord() {
      String recordId='001A000000P4ZYy';//How do I make this a variable based on the Id clicked?
      PageReference recordPage= new PageReference('/'+recordId);
      return recordPage;
    }

 

 

 

Hi Guys,

 

I have a datalist which lists records based on certain criteria and with each record I include a button too. I have the button coded to show or hide an OutputPanel relative to it's row in the datalist. The problem is that I can't seem to get the button to perform the task for a single item in the datalist. It will only show or hide every OutputPanel in the list.

 

I've tried playing with the var attribute but haven't found anything that works.

 

Hope you can help.

 

Regards,

 

Paul

 

 

Hello ,

 

I want to display values of child window on parent window. e.g.  i have one page and when on that page when i click on textbox a new window popup. in that popu window some lookup fileds are present and i want when i slect value from tha lookup fields and click on save button. value wil be saved in record and it also display on that textbox in the parent window and popup window close after that.

 

Please anyone tell me how to fetch the values on parent window.

 

 

Thank in Advance.

  • October 20, 2010
  • Like
  • 0

Hi

 

I have an application that displays data from a WSDL. Now the require ment is that whenever a new entry is made the user should get a pop up that there is a new entry. I have achieved refreshing using action poller i want to add a pop up which will alert the user that a new record has come.

 

Please help its little urgent

I am writing a custom Visualforce email template for one of approval process. When the request is approved, I want to add Approved By and Approval Comments fields in the template. Any idea how to do it?

 

<messaging:emailTemplate recipientType="User"

    relatedToType="Custom_Object"

    subject="Your Request has been approved: {!relatedTo.name}">

    <messaging:htmlEmailBody >

 

     <html>

        <body>

                <font face="arial" size="2">

 

              <p>*** REQUEST APPROVAL NOTIFICATION ***</p>

 

              <P>The following request has been approved.</p>

              <p> Request Name:                {!relatedTo.Name} </p>

              <p> Approved By: ???? </p>

              <p>Approval Comments:              ?????</p>

       <p />

       <p><a href="https://www.salesforce.com/{!relatedTo.id}">https://www.salesforce.com/{!relatedTo.id}</a></p>

 

         <p>Thank you.</p>

 

 </font>

        </body>

    </html>

 

    </messaging:htmlEmailBody>

Hi,

Does any1 have any idea about limitations of the things that can be done from an action method in an apex:page tag

I have an action method in apex:page tag which redirects user to another VF page but its not working.

What I observed that the VF page redirected to other VF page only when the controller of the other VF page was different than its own but when I redirected to a VF page having the same controller its just dint do it!!

 

I also tried it by switching off the development mode but it dint work. Has nay1 faced any such kind of issue & if so how can some1 resolve it!!

 

Please check code here.

I need to pass a string from a form to my StandardSetController. So far what I'm doing is not working. I would appreciate any help. Thanks.

 

VF:

 

 

<apex:sectionHeader title="Zip Map" subtitle="Map Company/Branch by Zip" />
<apex:form >
	<apex:pageBlock title="Search by Zip">
		<apex:inputText value="{!zips}" />
		<apex:commandButton value="Search" action="{!find}" />
	</apex:pageBlock>
	
	<apex:pageBlock rendered="{!(zips != null) && (pages == 0)}">
		<apex:outputText value="Your search returned no values" />
	</apex:pageBlock>

	<apex:pageBlock title="Nearby Company/Branch" rendered="{!pages > 0}">
		<apex:pageBlockTable value="{!accounts}" var="acct" id="accountTable">
			<apex:column headerValue="Company/Branch">
				<apex:outputLink value="/{!acct.Id}" target="_top">{!acct.Name}</apex:outputLink>
			</apex:column>
			<apex:column headerValue="Address" colspan="2">
				<apex:outputText >{!acct.BillingStreet}, {!acct.BillingCity}, {!acct.BillingState}, {!acct.BillingPostalCode}</apex:outputText>
			</apex:column>
			<apex:column >
				<apex:outputLink value="http://maps.google.com/maps?f=d&source=s_d&saddr=&daddr={!acct.BillingStreet},{!acct.BillingCity},{!acct.BillingState},{!acct.BillingPostalCode}" target="_blank">Get Directions</apex:outputLink>
			</apex:column>
		</apex:pageBlockTable>
	</apex:pageBlock>

	<apex:panelGrid columns="4" style="margin-bottom: 25px;" rendered="{!pages > 0}">
		<apex:commandLink action="{!first}" rendered="{!pages > 1}">First</apex:commandLink>
		<apex:commandLink action="{!previous}" rendered="{!hasPrevious}">Previous</apex:commandLink>
		<apex:commandLink action="{!next}" rendered="{!hasNext}">Next</apex:commandLink>
		<apex:commandLink action="{!last}" rendered="{!pages > 1}">Last</apex:commandLink>
	</apex:panelGrid>
</apex:form>

 

 

Controller:

 

 

public with sharing class zipMap {
	
	public String zips { get; set; }
	
	public PageReference find() {
		
		return null;
	
	}
	
	public ApexPages.StandardSetController accts {
		
		get {
			
			if(accts == null) {
			
				//List<String> zList;
				
				//zList = zips.split(',');	
				
				accts = new ApexPages.StandardSetController(Database.getQueryLocator([SELECT Id, Name, BillingStreet, BillingCity, BillingState, BillingPostalCode FROM Account WHERE BillingPostalCode =: zips ORDER BY BillingPostalCode, Name]));
				
				accts.setPageSize(2);
				
			}
				
			return accts;
			
		}
		
		set;
	
	}
	
	public List<Account> getAccounts() {
		
		return (List<Account>) accts.getRecords();
		
	}
	
	public Boolean hasNext {
		
		get {
			
			return accts.getHasNext();
			
		}
		
		set;
		
	}
	
	public Boolean hasPrevious {
		
		get {
			
			return accts.getHasPrevious();
			
		}
		
		set;
		
	}
	
	public Integer pageNumber {
		
		get {
			
			return accts.getPageNumber();
			
		}
		
		set;
		
	}

	public Integer pages {
		
		get {
		
			pages = accts.getResultSize()/accts.getPageSize();
			
			return pages;
			
		}
		
		set;
		
	}
	
	public void first() {
		
		accts.first();
		
	}
	
	public void last() {
		
		accts.last();
		
	}
	
	public PageReference previous() {
		
		Integer p = accts.getPageNumber();
		
		if(hasPrevious) {
		
			accts.setPageNumber(p-1);
		
		}
		
		return null;
		
	}
	
	public PageReference next() {
		
		Integer p = accts.getPageNumber();
		
		if(hasNext) {
		
			accts.setPageNumber(p+1);
		
		}
		
		return null;
		
	}

	public void cancel() {
		
		accts.cancel();
		
	}
}

 

 

  • August 23, 2010
  • Like
  • 0

Hi I am trying to redirect from a page to object layout.

 

This is what I am trying but is not working any help will be much appreciated

 

 

public PageReference value(){
    Account accnt = new Account();

    PageReference acctPage = new ApexPages.StandardController(accnt).view();
      acctPage.setRedirect(true);

      return acctPage;

}

 

 

  • August 05, 2010
  • Like
  • 0

Hi,

 

I have a VF page to display the today's event details. It is displaying good. I need a spacing between rows now.

 

My code is,

 

<apex:page standardController="Event" extensions="dataTableCon1" >
 <style>
 .odd{background-color: white;}
 .even{background-color: #DFEFFB;}
 .line{line-height: 18pt;}
</style>
<script>
  window.onload = alternate("thetable");
  function alternate(id){
 if(document.getElementsByTagName){  
   var table = document.getElementById(id);  
   var rows = table.getElementsByTagName("tr");  
   for(i = 0; i < rows.length; i++){          
 //manipulate rows
     if(i % 2 == 0){
       rows[i].className = "even";
     }else{
       rows[i].className = "odd";
     }      
   }
 }
}
</script>
 <input type="button" value="print" onClick="window.print()"></input>
 <apex:form >
  <apex:sectionHeader title="Events"/>
  <apex:pageBlock >
  <apex:pageBlockSection >

  <apex:dataTable style="width:125%;" cellpadding="3" cellspacing="1"  value="{!Tasks}" var="tak"  id="theTable" rowClasses="odd,even"
   styleClass="tableClass">
  <apex:column style="width:8%;" >
  <apex:facet name="header">Start Date</apex:facet>
  <apex:outputText value="{!tak.StartDate__c}"/>
  </apex:column>

  <apex:column style="width:8%;">
  <apex:facet name="header">Start Time</apex:facet>
  <apex:outputText value="{!tak.StartTime__c}"/>
  </apex:column>

  <apex:column style="width:8%;">
  <apex:facet name="header">End Time</apex:facet>
  <apex:outputText value="{!tak.EndTime__c}"/>
  </apex:column>

 
  <apex:column style="width:8%;">
  <apex:facet name="header">Name</apex:facet>
  <apex:outputText value="{!tak.who.FirstName} {!tak.who.LastName}"/>
  </apex:column>
 

 
  <apex:column style="width:8%;">
<apex:facet name="header">Subject</apex:facet>
<apex:outputLink target="_blank"  value="/{!tak.id}">{!tak.Subject}</apex:outputLink>

</apex:column>
 
 
  <apex:column style="width:6%;">
   <apex:facet name="header">Type</apex:facet>
   <apex:outputText value="{!tak.who.Type}"/>
  </apex:column>

  <apex:column style="width:10%;">
   <apex:facet name="header">Account Name</apex:facet>
   <apex:outputText value="{!tak.AccName__c}"/>
  </apex:column>

  <apex:column style="width:10%;">
   <apex:facet name="header">Account Type</apex:facet>
   <apex:outputText value="{!tak.AccType__c}"/>
  </apex:column>


  <apex:column >
<apex:facet name="header">Description</apex:facet>
<apex:outputText value="{!tak.Description}"/>
</apex:column>

</apex:dataTable>

   <apex:outputLabel rendered="{!(ISNULL(Tasks))}" value="No Events on this day.." styleClass="noRowsHeader"></apex:outputLabel>
<br/><br/>

<apex:commandButton value="Back" action="{!taskfin}"/>

</apex:pageBlockSection>
</apex:pageBlock>

</apex:form>

</apex:page>

 

 

If you give some useful examples then I feel better in understanding.

 

Thanks,

I am new to Visaulforce pages. I have a requirement to cuztomize Call Log page, to remove the followup section and the Stauts picklist value should have a "Completed" value. I tried removing followup=1 parameter from URL that takes away the Follow up section but I am not sure how to set the picklist value when the page is rendered. Should I write my own controller and set the value there  in constructor or is there any easy way to set the value in page load event?

 

Thansk in advance