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
RAJU_DEEPRAJU_DEEP 

Render in the same pageBlockTable.

Hello,

           here i am creating a visualforce page which is performing two task:

1. Display the search records in the pageBlockTable.

2. Display the whole recordsin the pageBlockTable.

           there are two different pageBlockTable to do this task, but i want this task to be rendered in the same pageBlockTable, the visualforce code which i have tried is given below. Is there any way to do this. Any idea related will be greatly appreciated...

 

 

<apex:page controller="theController">
<apex:form >
<apex:pageBlock mode="edit" id="block">
<apex:pageBlockSection >
<apex:pageBlockSectionItem >
<apex:outputLabel >Search Text</apex:outputLabel>
<apex:panelGroup >
<apex:inputText id="searchText" value="{!searchText}"/>
<apex:commandButton value="Go!" action="{!doSearch}" rerender="block" status="status"/>
</apex:panelGroup>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
<apex:actionStatus id="status" startText="requesting..."/>
<apex:pageBlockSection title="Results" id="results" columns="1">
<apex:pageBlockTable value="{!results}" var="l" rendered="{!NOT(ISNULL(results))}" id="searchLead">
<apex:column value="{!l.name}"/>
<apex:column value="{!l.email}"/>
<apex:column value="{!l.phone}"/>
</apex:pageBlockTable>
<apex:pageBlockTable value="{!invoice}" var="i" id="iName">
<apex:column value="{!i.name}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>

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

 

 

Jeremy.NottinghJeremy.Nottingh

I'm not positive I understand what you mean. Can you describe how you would have one table with "search records"and "whole records" both in it? What is the relationship between these two things? If you could post your controller code too, that might help.

 

Jeremy