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
Guyver118Guyver118 

Help how do i set a vairbale if someone clicks a row on a data table?

Hi i have a data table that shows the avaiable list with other descriptions like length, byte etc..

 

 

now in column label name i have  added a command link if the field is a picklist value

now how can i set a variable in my controller to the name of this field that the user clicked on?

 

so far i done this:

 

 

<apex:actionSupport event="onclick"> <apex:actionFunction> <apex:param name="objectName" assignTo="{!pickListField}" value="{!object.name}" /> </apex:actionFunction> <apex:commandLink action="{!ShowPickListPage}" value="{!object.label}"

id="pickListLink" rendered="{!IF(object.type = 'picklist', 'true', 'false')}"/> </apex:actionsupport>