You need to sign in to do that
Don't have an account?
Chanagan Sakulteera
How to check if in apex:pageBlockTable
Hi all,
i want to make uploading attachment file in picture type to be on browse button. can i use the " use if function ". How can I do it?
this code.
<apex:pageBlock title="Day" id="selected">
<!-- we need two additinal variables, because "item" variable at pageblockSection
start at 0... -->
<apex:variable var="count" value="{!1}"/>
<apex:repeat id="tripDays" value="{!TripDays}" var="item">
<apex:pageblockSection title="{!'Day '}{!count}" columns="1">
<apex:variable var="count" value="{!count + 1}"/>
<apex:inputText id="dayName" value="{!tourInDay}" html-placeholder="Tour In Day" style="width:500px;"/>
<apex:commandLink value="Remove Day" action="{!removeTripDay}" reRender="selected">
<apex:param name="removeTripDay" value="{!item + 1}"/>
</apex:commandLink>
<apex:pageblockTable id="listProduct" value="{!ProductService2[item].ProductServices}" var="p" >
<apex:column >
<apex:commandButton value="Remove" action="{!removeTripService}" reRender="selected">
<apex:param name="removeService" value="{!p.TempID__c}" />
</apex:commandButton>
</apex:column>
<apex:column headerValue="Service Name">
<apex:inputField value="{!p.ServiceName__c}"/>
</apex:column>
<apex:column headerValue="Description">
<apex:inputField value="{!p.Description__c}" />
</apex:column>
<apex:column headerValue="Service Price" value="{!p.Sales_Price__c}" />
<apex:column headerValue="Time">
<apex:inputField value="{!p.Time__c}"/>
</apex:column>
</apex:pageblockTable>
</apex:pageblockSection>
</apex:repeat>
</apex:pageBlock>
Thank you in advance.
i want to make uploading attachment file in picture type to be on browse button. can i use the " use if function ". How can I do it?
this code.
<apex:pageBlock title="Day" id="selected">
<!-- we need two additinal variables, because "item" variable at pageblockSection
start at 0... -->
<apex:variable var="count" value="{!1}"/>
<apex:repeat id="tripDays" value="{!TripDays}" var="item">
<apex:pageblockSection title="{!'Day '}{!count}" columns="1">
<apex:variable var="count" value="{!count + 1}"/>
<apex:inputText id="dayName" value="{!tourInDay}" html-placeholder="Tour In Day" style="width:500px;"/>
<apex:commandLink value="Remove Day" action="{!removeTripDay}" reRender="selected">
<apex:param name="removeTripDay" value="{!item + 1}"/>
</apex:commandLink>
<apex:pageblockTable id="listProduct" value="{!ProductService2[item].ProductServices}" var="p" >
<apex:column >
<apex:commandButton value="Remove" action="{!removeTripService}" reRender="selected">
<apex:param name="removeService" value="{!p.TempID__c}" />
</apex:commandButton>
</apex:column>
<apex:column headerValue="Service Name">
<apex:inputField value="{!p.ServiceName__c}"/>
</apex:column>
<apex:column headerValue="Description">
<apex:inputField value="{!p.Description__c}" />
</apex:column>
<apex:column headerValue="Service Price" value="{!p.Sales_Price__c}" />
<apex:column headerValue="Time">
<apex:inputField value="{!p.Time__c}"/>
</apex:column>
</apex:pageblockTable>
</apex:pageblockSection>
</apex:repeat>
</apex:pageBlock>
Thank you in advance.
Check this article from Jeff Douglas that explains how to upload a document using visualforce and custom controller :
http://blog.jeffdouglas.com/2010/04/22/uploading-a-document-using-visualforce-and-a-custom-controller/
Hope this help !
Jerome