You need to sign in to do that
Don't have an account?
How to Clear Values in Overlay
Hey Guys,
i have a requirement in which
when i select two record and click on myButton. it opens an overlay(Div type) which shows me two records.
there is an cancle button which close the overlay.
now when i select another two record and click on another link it shows me last two records and after 2 seconds it refreshes and shows me the latest record.
i am passing the value using JavaScript to controller and using pageblock table to display data on DIV.
Code for Onclick of Button:
<apex:outputPanel rendered="{!someThing}">
<input type="button" id="XYZ" disabled="disabled" styleClass="outputPanelButtons" value="myButton" onclick="displayDiv();"/>
</apex:outputPanel>
Code for displayDiv();
function displayDiv(){
doMerge(accountSAC,accountSPT );
$j("#displayMyDiv").show();
}
Code for displayMyDiv
<div id="displayMyDiv"
<apex:outputpanel >
<apex:pageBlock mode="edit">
<apex:repeat value="{!HiHiHI}" var="var1" id="selectedRows"><br/>
<apex:outputText Style="font-weight:bold" value=""></apex:outputText>
<apex:pageBlockTable value="{!value="{!HiHiHI}"}" var="Var2" id="selectedAc" rendered="true">
<apex:column style="width:120px">
<apex:facet name="header"> DOB </apex:facet>
<apex:outputtext value="{!dateOfBirth}" />
</apex:column>
</apex:pageBlockTable>
</apex:repeat>
</apex:pageBlock>
</apex:outputpanel>
</div>
Big Question is:
Is there any attribute to clear the value in Repeat , pageBlockTable , or Since i m using javascript function .so any way i can clear value in overlay
Regards,
Subham
It is solved!!!