You need to sign in to do that
Don't have an account?

How to rerender a outputPanel once data is submitted
So I want to perform a search and then return the results on that same screen with rerender on an outputpanel but it never returns results heres my code what am i missing.
Public List<LLC_BI__Loan__c> AddLoans {get;set;} public String LoanSearch {get;set;} Public Boolean SearchStatus {get;set;} public void SeachLoans() { String BuildSearch; system.debug('**' + LoanSearch); BuildSearch = '\'%' + LoanSearch + '%\''; system.debug('**' + BuildSearch ); AddLoans = [SELECT Id, Name, LLC_BI__Account__c, LLC_BI__Account__r.Name, LLC_BI__lookupKey__c FROM LLC_BI__Loan__c WHERE Name LIKE :BuildSearch]; system.debug('**' + AddLoans ); this.SearchStatus = true; system.debug('**' + SearchStatus ); }
<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" id="LoanModal"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title" id="myModalLabel">Attach A Loan to this Deal Facility</h4> </div><!-- /.modal-header --> <div class="modal-body"> <div class="row"> <div class="col-md-offset-2 col-md-8"> <apex:form> <div class="input-group"> <span class="input-group-addon"> Loan Name: </span> <apex:inputText value="{!LoanSearch}" styleClass="form-control"/> <span class="input-group-btn"> <apex:commandButton value="Search" action="{!SeachLoans}" styleClass="btn btn-success" reRender="LoansList"> <apex:param value="{!LoanSearch}"/> </apex:commandButton> </span> </div><!-- /input-group --> </apex:form> <br/> <br/> </div><!-- /.col --> </div><!-- /.row --> <div class="row"> <div class="col-md-12"> <table class="table table-responsive table-hover" id="AddLoanTable"> <thead> <tr> <th></th> <th>Loan Name</th> <th>Loan Number</th> <th>Relationship Name</th> </tr> </thead> <tbody> <apex:form> <apex:outputPanel id="LoansList" rendered="{!SearchStatus}"> <apex:repeat value="{!AddLoans}" var="fa"> <tr> <td> <apex:commandButton value="Add" StyleClass="btn btn-xs btn-success"> <apex:param value="{!fa.Id}"/> </apex:commandButton> </td> <td><a href="/{!fa.Id}" target="_Blank">{!fa.Name}</a></td> <td>{!fa.LLC_BI__lookupKey__c}</td> <td><a href="/{!fa.LLC_BI__Account__c}" target="_Blank">{!fa.LLC_BI__Account__r.Name}</a></td> </tr> </apex:repeat> </apex:outputPanel> </apex:form> </tbody> </table> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.modal-body --> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div><!-- /.modal -->
Please let me know if this works.
thanks