You need to sign in to do that
Don't have an account?
prady-cm
Have a command button as a part of output text
Hi,
I have a wrapper class in a list and in my Vf page i am checking if the object of the wrapper contains null, if it has null then i am displaying 'Free' else displaying the appointment details.
I want to have a button create Appointment instead of 'Free'.
What would the correct way to insert the button code ?
<apex:repeat var="slot" value="{!liTimeSlots}"> <tr class="{!IF(ISNULL(slot.sAppointment), 'Free', 'Fill')}"> <td ><apex:outputText value="{!slot.tstart1}"/></td> <td><apex:outputText value="{!IF(ISNULL(slot.sAppointment), 'Free', slot.sAppointment.name)}"/></td> <td><apex:outputText value="{!IF(ISNULL(slot.sAppointment), '', slot.sAppointment.Appointment_Type__c)}"/></td> <td><apex:outputText value="{!IF(ISNULL(slot.sAppointment), '', slot.sAppointment.Patient__c)}"/></td> </tr> <tr> <td></td> <td><apex:outputText value="{!IF(ISNULL(slot.sAppointmentOverlap), ' ', slot.sAppointmentOverlap.name)}"/></td> <td><apex:outputText value="{!IF(ISNULL(slot.sAppointmentOverlap), '', slot.sAppointmentOverlap.Appointment_Type__c)}"/></td> <td><apex:outputText value="{!IF(ISNULL(slot.sAppointmentOverlap), '', slot.sAppointmentOverlap.Patient__c)}"/></td> </tr> </apex:repeat>
You cant use Command button directly as a part of Wrapper Class.
Nilesh,
i understand you cant use command buton on a wrapper class...
What i was looking for is a way to include the command button on the IF statement