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

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();"/>


Code for displayDiv();


function displayDiv(){

                doMerge(accountSAC,accountSPT );


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}" />


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







It is solved!!!