Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. </apex:pageBlockTable>
  2. <div id="dis" Class="popup">
  3. <div Class="divclose">
  4. <apex:commandLink value="X" reRender="dis" onclick="hideDiscription()"/>
  5. </div>
  6. {!oppdislst}
  7. <apex:repeat value="{!oppdislst}" var="dis1">
  8. <apex:outputtext value="{!dis1.Description}" />
  9. </apex:repeat>
  10. </div>
  11. </apex:pageBlock>
  12.  
  13.  
  14. <script>
  15. function showDiscription(){
  16.  
  17. document.getElementById("dis").style.display = "block";
  18.  
  19. }
  20. function hideDiscription(){
  21. alert('hello close');
  22. document.getElementById("dis").style.display = "none";
  23. }
  24. </script>
  25.  
  26. public class opportunityPageReport{
  27. public list<opportunity> oppLst {get ; set; }
  28.  
  29. public opportunityPageReport(){
  30. system.debug('<<<<<<<<<'+oppdislst);
  31. oppdislst = new list<opportunity>();
  32. oppLst = new list<opportunity>();
  33. list<opportunity> oppTemLst = [SELECT Amount, Name, closeDate, LeadSource, StageName, Type , Description FROM Opportunity ];
  34.  
  35. for(opportunity opp : oppTemlst){
  36. if(opp.description !=null){
  37. oppLst.add(opp);
  38. }
  39. }
  40. }
  41. public pageReference Showdiscription(){
  42.  
  43. oppdislst = [ select id , Description from opportunity where id =: ApexPages.currentPage().getParameters().get('discriptionid')];
  44. system.debug('>>>>>>>>>>>>>>>'+oppdislst);
  45. return null;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement