function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ssssssss 

how to call the method without commandlink

Hi,

 

i want to call the method with out command link.plz tell me how to modify this code.i dont want display links for the second and third column in the data table.

 

my code is as follows:

 

<apex:page standardController="CAF_Charge__c" extensions="testwindow">

<apex:form >

<apex:dataTable value="{!DesCharge}" var="a" cellPadding="4" border="1"  >

<apex:column headervalue="Charge header information" >
<apex:commandLink action="{!filltextval1}">
<apex:param name="name1" value="{!a.Charges_Head__c}"/>
{!a.Charges_Head__c}</apex:commandLink></apex:column>

<apex:column headervalue="Description of charge">
<apex:commandLink action="{!filltextval1}">
<apex:param name="name1" value="{!a.Description_Of_Charges__c}"/>
{!a.Description_Of_Charges__c}</apex:commandLink></apex:column>

<apex:column headervalue="Percentage">
  <apex:commandLink action="{!filltextval1}">
  <apex:param name="name1" value="{!a.Percentage__c}"/>
  {!a.Percentage__c}</apex:commandLink>
</apex:column>


</apex:dataTable>

</apex:form>
</apex:page>

 

Controller:

 

global class testwindow
{
    

    public testwindow(ApexPages.StandardController controller) {

    }
    Public String Charge;
    Public string chargeshead{get;set;}
    Public string doc{get;set;}
    Public string percentage{get;set;}
      
    public List<chiranjeevi__CAF_Charge__c> getDesCharge()
    {
     List<chiranjeevi__CAF_Charge__c> descharge=[select chiranjeevi__Charges_Head__c,chiranjeevi__Description_Of_Charges__c,chiranjeevi__Percentage__c  from chiranjeevi__CAF_Charge__c  limit 10];
     return descharge;
    }
    
    Public void filltextval1()
    {
    chargeshead= apexpages.currentpage().getparameters().get('name1');
    }
   
   
   
   
}

 

Thanks