• lindu
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies

Hi!

I am trying to put members in groups by using a popup with a pageblocktable inside with inputcheckboxes. So far, so good. But after I've chosen and processed the chosen groups, I want the popup to disappear. I thought it would be enough by setting isLookupfld to false and then rerender the popup (reRender="popup" in commandbutton). But it doesn't work. What is wrong in my code?

 

<apex:page standardcontroller="xx" extensions="ChooseNumberController,PopupController">
    <apex:form >
        
        <apex:pageBlock >

            
            <apex:pageBlockSection >
            <apex:pageBlockTable value="{!joinName}" var="j" width="100" columns="4">
                <apex:column value="{!j.jnd.usr.name}" headerValue="Name" />
                <apex:column headerValue="Popup">
                  <apex:commandLink rendered="{!lookupvisible}" value="..." id="lookupButton" action="{!setlookupmethod}" styleclass="btn" style="color:black;text-decoration:none;">
                 </apex:commandLink>
                </apex:column>
            </apex:pageBlockTable><br/>
         </apex:pageBlockSection>
         
         <apex:pageblockSection showheader="false">
             <apex:outputPanel id="popup" rendered="{!isLookupfld}" styleClass="customPopup" layout="block" >
                 <apex:pageBlockTable value="{!joinedWrp}" var="j">
                    <apex:column ><apex:inputCheckbox value="{!j.selected}" id="checkedone" >
                    </apex:inputCheckbox></apex:column>
                    <apex:column value="{!j.g.name}"/>
                 </apex:pageBlockTable>
                 <apex:commandButton value="Add Groups" action="{!processChosenGroups}" reRender="popup"/>
             </apex:outputPanel>
         </apex:pageblockSection>
        
         </apex:pageBlock> 
    </apex:form>
    
    <style type="text/css">
     .customPopup{
         background-color: white;
         border-color: grey;
         border-style: solid;
         border-width: 2px;
         left: 50%;
         padding:10px;
         position: absolute;
         z-index: 9999;
         width: 400px;
         margin-left: 160px;
         top:100px;
     }
    </style>

</apex:page>

    public Pagereference processChosenGroups() {
        
        List<Group__c> chosenGroups = new List<Group__c>();
        for(jnwrapper j : joinedlist){
            if(j.selected == true){
                chosenGroups.add(j.g);
            }
        }
        isLookupfld = false;
        return null;
    }  

 

Best regards!

  • February 21, 2012
  • Like
  • 0

Hi!

I am trying to put members in groups by using a popup with a pageblocktable inside with inputcheckboxes. So far, so good. But after I've chosen and processed the chosen groups, I want the popup to disappear. I thought it would be enough by setting isLookupfld to false and then rerender the popup (reRender="popup" in commandbutton). But it doesn't work. What is wrong in my code?

 

<apex:page standardcontroller="xx" extensions="ChooseNumberController,PopupController">
    <apex:form >
        
        <apex:pageBlock >

            
            <apex:pageBlockSection >
            <apex:pageBlockTable value="{!joinName}" var="j" width="100" columns="4">
                <apex:column value="{!j.jnd.usr.name}" headerValue="Name" />
                <apex:column headerValue="Popup">
                  <apex:commandLink rendered="{!lookupvisible}" value="..." id="lookupButton" action="{!setlookupmethod}" styleclass="btn" style="color:black;text-decoration:none;">
                 </apex:commandLink>
                </apex:column>
            </apex:pageBlockTable><br/>
         </apex:pageBlockSection>
         
         <apex:pageblockSection showheader="false">
             <apex:outputPanel id="popup" rendered="{!isLookupfld}" styleClass="customPopup" layout="block" >
                 <apex:pageBlockTable value="{!joinedWrp}" var="j">
                    <apex:column ><apex:inputCheckbox value="{!j.selected}" id="checkedone" >
                    </apex:inputCheckbox></apex:column>
                    <apex:column value="{!j.g.name}"/>
                 </apex:pageBlockTable>
                 <apex:commandButton value="Add Groups" action="{!processChosenGroups}" reRender="popup"/>
             </apex:outputPanel>
         </apex:pageblockSection>
        
         </apex:pageBlock> 
    </apex:form>
    
    <style type="text/css">
     .customPopup{
         background-color: white;
         border-color: grey;
         border-style: solid;
         border-width: 2px;
         left: 50%;
         padding:10px;
         position: absolute;
         z-index: 9999;
         width: 400px;
         margin-left: 160px;
         top:100px;
     }
    </style>

</apex:page>

    public Pagereference processChosenGroups() {
        
        List<Group__c> chosenGroups = new List<Group__c>();
        for(jnwrapper j : joinedlist){
            if(j.selected == true){
                chosenGroups.add(j.g);
            }
        }
        isLookupfld = false;
        return null;
    }  

 

Best regards!

  • February 21, 2012
  • Like
  • 0

Hi All,

 

I am getting below mention error in Toolkit Test Cases while installing "Force.com Toolkit for Facebook" package in my developer ORG. If any one has any clue on this, Please do let me know.

 

Regards,



 

System.QueryException: List has no rows for assignment to SObject
Class.FacebookObject.isAuthenticated: line 28, column 26
Class.FacebookObject.doAPICall: line 75, column 7
Class.FacebookUser.getActivityData: line 222, column 3
Class.FacebookUser.getActivityData: line 219, column 3
Class.FacebookTestUserController.getActivitiesData: line 102, column 3
Class.FacebookTestMethods.TestFacebookUserController: line 154, column 3
External entry point;
System.QueryException: List has no rows for assignment to SObject
Class.FacebookObject.isAuthenticated: line 28, column 26
Class.FacebookObject.doAPICall: line 75, column 7
Class.FacebookUser.getProfilePicture: line 131, column 3
Class.FacebookStandardController.getProfileImageUrl: line 100, column 10
Class.FacebookTestMethods.TestProfileImage: line 134, column 16
External entry point