You need to sign in to do that
Don't have an account?
Nagaraju Mogili
Here is My code....
<apex:page controller="NewController_cntrlr" sidebar="false" id="thepage" ShowHeader="false">
<apex:form >
<apex:pageBlock id="Thepage" title="Account Details">
<apex:pageBlockSection collapsible="true">
<apex:inputField value="{!acc.name}"/>
<apex:inputField value="{!acc.rating}"/>
<apex:inputField value="{!acc.AnnualRevenue}"/>
<apex:inputField value="{!acc.Fax}"/>
<apex:inputField value="{!acc.Industry}"/>
</apex:pageBlockSection>
<apex:pageBlockSection >
<apex:pageBlock title="Opportunities Information">
<apex:pageBlockTable value="{!opplist}" var="x" columns="1">
<apex:column headerValue="Name">
<apex:inputText value="{!x.Name}"/>
</apex:column> <br/> <br/>
<apex:column footerValue="stagename">
<apex:inputText value="{!x.StageName}"/>
</apex:column>
<apex:column headerValue="CloseDate">
<apex:inputText value="{!x.CloseDate}"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!AddRow}" value="Addrow"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!DelRow}" value="Delrow"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!Edit}" value="Edit"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!remove}" value="Remove"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
I Was unable to show the column header values in my visualforcepage, can anyone suggest me how to show the header value in my vf page..
Here is My code....
<apex:page controller="NewController_cntrlr" sidebar="false" id="thepage" ShowHeader="false">
<apex:form >
<apex:pageBlock id="Thepage" title="Account Details">
<apex:pageBlockSection collapsible="true">
<apex:inputField value="{!acc.name}"/>
<apex:inputField value="{!acc.rating}"/>
<apex:inputField value="{!acc.AnnualRevenue}"/>
<apex:inputField value="{!acc.Fax}"/>
<apex:inputField value="{!acc.Industry}"/>
</apex:pageBlockSection>
<apex:pageBlockSection >
<apex:pageBlock title="Opportunities Information">
<apex:pageBlockTable value="{!opplist}" var="x" columns="1">
<apex:column headerValue="Name">
<apex:inputText value="{!x.Name}"/>
</apex:column> <br/> <br/>
<apex:column footerValue="stagename">
<apex:inputText value="{!x.StageName}"/>
</apex:column>
<apex:column headerValue="CloseDate">
<apex:inputText value="{!x.CloseDate}"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!AddRow}" value="Addrow"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!DelRow}" value="Delrow"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!Edit}" value="Edit"/>
</apex:column>
<apex:column >
<apex:commandButton action="{!remove}" value="Remove"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
May I suggest you please check with below links from the forums community with a similar issue and a suggested workaround.
- https://developer.salesforce.com/forums/?id=906F000000098R1IAI
Hope this helps.Mark this as solved if it's resolved.
Thanks,
Nagendra