• Shifs Salheen
  • NEWBIE
  • 15 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 25
    Questions
  • 6
    Replies
Hi All,
I have a GET request and I want to set request parameter programCode whose value is 7015B0000000mx0QAA . I am using HttpRequest .Please help me how to set the request parameter?
Hi ,
I have a data table in which one field which is checkbox is editable. But when I edit it,I am not able to get teh updated valeu in controller..Here is my code

VF Page
<apex:page sideBar="false" showHeader="false" controller="businessGoalList" standardStylesheets="false" docType="html-5.0" language="en-US" applyHTMLTag="false">
    <!-- Intro Section -->
  <!-- <apex:stylesheet value="{!URLFOR($Resource.Bootstrap_3_3_6, '/bootstrap-3.3.6-dist/css/bootstrap.min.css')}"/> 
    <apex:Stylesheet value="{!URLFOR($Resource.Bootstrap_3_3_6,'/bootstrap-3.3.6-dist/css/bootstrap.css')}"/> -->
   <script>
   function setSelectedContacts()
{
... code to visually highlight the rows and then call to actionFunction...

 apex_selectContacts();
}

   </script>
    <apex:composition template="indegeneTemplate">
         <apex:define name="body">
                <section id="intro" class="intro-section">
                    <div class="container" id= "mainDiv">
                 
                    <apex:form id="abc" >
                     
                  
                        <div class="row">
                        
                          
 
                            <div class="col-sm-12">
                                <div class="">
                                   
                                    <div class="row">
                                    
                                    
                                    <div class="panel panel-primary"> 

                                                <div class="panel-heading"> 
                                                    <h3 class="panel-title">Business Goals</h3> 
                                                </div> 
                                                <div class="panel-body"> 
                                   <apex:actionRegion >
                                    <apex:dataTable id="pgblock" value="{!listToBeDisplayeds}" var="bGoal"  styleClass="table">
                                 
                                         <apex:column >
                                             <apex:facet name="header" >  
                                               
                                               Business Goal
                                            </apex:facet> 
                                            
                                        <apex:outputText value="{! IF((bGoal.Value == null), 'NA', bGoal.Value) }"/>
                                  
                                         </apex:column>
                                        
                                        
                                          <apex:column >
                                             <apex:facet name="header" >  
                                               
                                              Response Variable
                                            </apex:facet> 
                                            <apex:outputText value="{! IF((bGoal.Label == null), 'NA', bGoal.Label) }"/>
                                         </apex:column>
                                          <apex:column >
                                             <apex:facet name="header" >  
                                           Inactive 
                                            </apex:facet> 
                                          <apex:inputCheckbox value="{!bGoal.Disabled}"  id="checkedone"  style="text-align:center">
                                            <apex:actionSupport event="onclick" action="{!CheckAll}"  reRender="none">
                                        <apex:param name="rowData" value="{!bGoal.Disabled}"/>
                                            </apex:actionSupport>
                                          </apex:inputCheckbox>



                                         </apex:column>
                                
                                
                                </apex:dataTable>
                                   <div class="col-md-10 col-md-offset-5">
                                    <apex:commandButton styleClass="btn btn-primary" value="Submit"  immediate="true"  reRender="out" action="{!saveBusinessGoals}"   />
 </div>
 </apex:actionRegion>
</div>
</div>
                                                        

                                    </div>   
                       <!-- <p><a class="btn btn-primary btn-lg page-scroll" href="http://uix.indegenexcloud.com/#header">Lets go!<div class="ripple-container"></div></a></p> -->
                    </div>
                </div>
            </div>
           
             
             
             
             
            </apex:form>
        </div>
        
        
       
        
     </section>
   </apex:define>
  </apex:composition>
  <style type="text/css">
        .custPopup {
    left: 30%;
    /* right: 25%; */
    padding: 10px;
    position: absolute;
    z-index: 9999;
    width: auto;
    height: auto;
    margin-left: 0px;
    scrollbar: yes;
    resizable: yes;
    top: 47%;
}        .buttonCss{
        text-align:center;
          width: 10%;
        }
        .popupBackground{
             background-color:rgba(0,0,0,0.4);             
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                z-index: 9998;
        }
        
 </style>
</apex:page>


Controller
public class businessGoalList {

  


    public  List<SelectOption> listToBeDisplayeds { get; set; }

   

List<Business_Goal__c> allbusinessGoals  = new List<Business_Goal__c>();
List<Client_Business_Goal__c> clientBusinessGoals { get; set; }
Map<ID,String> mapOfClientBIdWithStatus = new Map<ID,String>();
 
    
    public String selectedCheckBox { get; set; }

 public businessGoalList() {
 System.debug('In constructor');
getMasterBusinessGoals();

   }

public List<SelectOption> getMasterBusinessGoals()
{
// Retrieve Client business Goals Status 

listToBeDisplayeds = new List<SelectOption>();

 clientBusinessGoals = [SELECT Business_Goal_Name__c,Business_Goal__c,Id,Name,Status__c FROM Client_Business_Goal__c];
if(clientBusinessGoals != null)
{
for(Client_Business_Goal__c cBGoal:clientBusinessGoals)
{
mapOfClientBIdWithStatus.put(cBGoal.Business_Goal__c,cBGoal.Status__c);
}
}


// retrieve All Master BusinessGoals
allbusinessGoals = new List<Business_Goal__c>();
 allbusinessGoals =  [SELECT Business_Goal_Code__c,Id,Name,Response_Variable__c,Status__c FROM Business_Goal__c ];
if(allbusinessGoals != null)
{
    
    for(Business_Goal__c bGoal : allbusinessGoals){
    System.debug('entruess'+bGoal);
    SelectOption selectOption = new SelectOption(bGoal.Name,bGoal.Response_Variable__c);
        if(mapOfClientBIdWithStatus != null && mapOfClientBIdWithStatus.containsKey(bGoal.Id))
        { 
            Boolean inActive = false;
           String status = mapOfClientBIdWithStatus.get(bGoal.Id);
          
          System.debug('Status:::'+status +'---'+bGoal.Id);
            if(status == 'Active'){
                inActive = false;
            }else
            {
                inActive = true;
            }
            selectOption.setDisabled(inActive);
            
            }else
            {
               selectOption.setDisabled(true);
            }
        listToBeDisplayeds.add(selectOption);
    }
}


return listToBeDisplayeds;
}

 public PageReference saveBusinessGoals() {
 System.debug('submiy business Goal::'+listToBeDisplayeds);
 
 
        return null;
    }


  public PageReference CheckAll() {
     String programId=System.currentPageReference().getParameters().get('rowData');
        System.debug('program ID::'+programId);
        return null;
    }

}

In saveBusinessGoals I am not getting the updated list instead m getting the list which comes on load
Hi,
How can my make my Visualforce pages responsive?
Hi ,
I need locale format for apex:outputText.
 
Hi All,

I have two drop down component and add icon ,When I select the values in both the dropdown and click on add icon,the selected values should be displayed in the table below.So everytime I add new values,it should get reflected in the table below.Please help me.
Hi All,

I found Salesforce File which can be used for uploading files.I have Files as related list in my campaign object.
Now my requirement is to upload a file specific to campaign through Visualforce page,and it should be binded to Salesforce Files.So that when I click on specific campaign,I can see the uploaded file name in related list Files
Hello,
I am having sandbox account.I need to do Salesforce to Salesforce communication as well as I need to use Managed Packages for distributing application to various clients.Somewhere I read that Developer Edition is required for using above functionalities.Please correct me and how can I move my objects,VF pages from sandbox to Developer Edition.
Hi All,
I need to move my objects,VF pages,Apex classes from sandbox to Developer Edition.Please guide me .
Hi,
I have a Business Goal Object ,now in Campaign ,Business Goal is a lookup field.In list page,I want to display Business Goal NAme instead of Id.
Somewhere I read use Business_Goal__r.Name .But when I do this, it gives error that "
SObject row was retrieved via SOQL without querying the requested field: Campaign.Business_Goal__r 
"
Hi All,

I want to insert records when i click on Save button of VF page in another Salesforce organization using Apex. Please help me how to achieve this.Currently I have done locally but how to do ifor inserting records in another Salesforce org.
Hello All,

I have some aligning issues .I want the Brand as same alignment to other fields. Here is the code
<div>
   <apex:panelGrid columns="4" id="abcd" styleClass="col-md-offset-1">
          <apex:outputLabel value="Brand" id="theFirst" />

            <apex:selectList id="sel1" value="{!leftselected}" label="abc" multiselect="true" style="width:100px" size="5">
                <apex:selectOptions value="{!unselectedvalues}" />
            </apex:selectList>
                <apex:panelGroup >
                    <br/>
                    <apex:image value="{!$Resource.multiselected}">
                        <apex:actionSupport event="onclick" action="{!selectclick}" reRender="abcd"/>
                    </apex:image>
                    <br/><br/>
                    <apex:image value="{!$Resource.multiunselected}">
                        <apex:actionSupport event="onclick" action="{!unselectclick}" reRender="abcd"/>
                    </apex:image>
                </apex:panelGroup>
            <apex:selectList id="sel2" label="asdwq" value="{!rightselected}" multiselect="true" style="width:100px" size="5">
                <apex:selectOptions value="{!SelectedValues}" />
            </apex:selectList>
        </apex:panelGrid>
</div>
 
  User-added image
Hi All,
Is there any provision in Salesforce that on clicking my Custom App i.e. selecting app from top right screen and it opens my custom Visualforce landing page.
 
Hi All,
I installed Eclipse and tried to add Force.com but it gives me below error: 
Cannot complete the install because one or more required items could not be found.
  Software being installed: Force.com IDE 36.0.0.201601221512 (com.salesforce.ide.feature.feature.group 36.0.0.201601221512)
  Missing requirement: Force.com IDE 36.0.0.201601221512 (com.salesforce.ide.feature.feature.group 36.0.0.201601221512) requires 'org.apache.log4j 0.0.0' but it could not be found

Please help..
Hi All,
I am going for 100% coding By Visualforce in Apex.Is it the correct approach?
Hi All,
I have a multi select picklist on VF page.From detail(list) page ,if I click on Edit button,it redirects me to the edit page with all the fields filled.When I keep the component as single select it shows the selected data,but when I keep it multi select picklist it does not.Can anyone please tell me what is the issue? 
Hello,
I have created a custom VF list page which show all my campaigns in list view,now when I click on Edit button ,it should redirect me to a new VF page which is edit form with details filled.Please help me with this.

I have fetched the id and retrieved the record in Apex Controller,but how to bind it with VF page fields.












































 
Hi ,
I am creating a managed package X . Lets say I have a VF page which is going to fetch some records based on the user and save some records.Now a client has installed the package,so if I perform save ,then will the data be saved locally or in the master org.
Similarly I have a master org which has all the details about every client.Now if I need to fetch the client details am I supposed to use Rest API for fetching from master org .For saving to cloud am I supoposed to use RestAPI
Hello All,
In "View SetUp Audit Trail" we can see a list of things performed on Objects.Is there any provision that how can we rollback these changes.Suppose I have changed the component type of field from Number to Text.Is there any provision to rollback all changes upto specific point.
Hi everyone,
I have a field which is of text field type,but on visualforce page I am creating it as dropdown using <apex:selectList> .Due to this I am unable to attach required error message to it .Is there any solution to it?
Hi,
I don't want some of my users to give the right for deleting/ editing or creating new  custom objects.Can anyone tell me how to achieve this
Hi,
I have a Business Goal Object ,now in Campaign ,Business Goal is a lookup field.In list page,I want to display Business Goal NAme instead of Id.
Somewhere I read use Business_Goal__r.Name .But when I do this, it gives error that "
SObject row was retrieved via SOQL without querying the requested field: Campaign.Business_Goal__r 
"
Hi All,

I want to insert records when i click on Save button of VF page in another Salesforce organization using Apex. Please help me how to achieve this.Currently I have done locally but how to do ifor inserting records in another Salesforce org.
Hello,
I have created a custom VF list page which show all my campaigns in list view,now when I click on Edit button ,it should redirect me to a new VF page which is edit form with details filled.Please help me with this.

I have fetched the id and retrieved the record in Apex Controller,but how to bind it with VF page fields.












































 
Hello All,
In "View SetUp Audit Trail" we can see a list of things performed on Objects.Is there any provision that how can we rollback these changes.Suppose I have changed the component type of field from Number to Text.Is there any provision to rollback all changes upto specific point.
Hi everyone,
I have a field which is of text field type,but on visualforce page I am creating it as dropdown using <apex:selectList> .Due to this I am unable to attach required error message to it .Is there any solution to it?
Hi,
I don't want some of my users to give the right for deleting/ editing or creating new  custom objects.Can anyone tell me how to achieve this