• Mary Pamishetty 3
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 6
    Replies
Hi,
I have inputtext field(<apex:inputText id="idSearchGlobal" />) in  vf page (not using any custom controller and extender in vf page)and  want to pass that inputtext  value to the component .
So my question is how to assign this inputtextfield value to component attribute.
     <c:GlobalSearch_Component attributevalue='..how i need to pass inputtextfield value here............'></c:GlobalSearch_Component>
 
How can use custom button with javascript on visual force page.
I've used below code but I'm getting 'URL No Longer Exists  <apex:commandbutton value=" Process" action="{!URLFOR($Action.Lead.Begin__Process,Lead.id)}"/>

 
How can use custom button with javascript on visual force page.
I've used below code but I'm getting 'URL No Longer Exists  <apex:commandbutton value=" Process" action="{!URLFOR($Action.Lead.Begin__Process,Lead.id)}"/>
 
How to write test class for the below code.

 public String[] MPItemsQues5 { 
        get {
            String[] selected = new List<String>();
            List<SelectOption> sos = this.MPOptionsQues5;
            for(SelectOption s : sos) {
                if (this.oQuestion.Question5__c !=null && this.oQuestion.Question5__c.contains(s.getValue()))
                    selected.add(s.getValue());
            }
            return selected;
        }public set {
            String selectedCheckBox = '';
            for(String s : value) {
                if (selectedCheckBox == '') 
                    selectedCheckBox += s;
                else selectedCheckBox += ';' + s;
            }
            oQuestion.Question5__c = selectedCheckBox;
        }
    } 
Hi 

I want to use bootstrap in vf page with <apex:page showHeader="true"> , but it override the bootstrap styles.I want to keep both header and bootstrap styles.How can I do this? 
 
I want to use disabled and html-data-toggle attributes in commandcommand, ​first i want to show error messages if no errors show modal popup

Following is not working.How can i achieve this?
<apex:commandbutton    value="Save"  rerender="frmLead" status="status" disabled="{!hasError==true}"   html-data-toggle="modal" html-data-target="#userEConsent"  ></apex:commandbutton>
How to write test class for the below code.

 public String[] MPItemsQues5 { 
        get {
            String[] selected = new List<String>();
            List<SelectOption> sos = this.MPOptionsQues5;
            for(SelectOption s : sos) {
                if (this.oQuestion.Question5__c !=null && this.oQuestion.Question5__c.contains(s.getValue()))
                    selected.add(s.getValue());
            }
            return selected;
        }public set {
            String selectedCheckBox = '';
            for(String s : value) {
                if (selectedCheckBox == '') 
                    selectedCheckBox += s;
                else selectedCheckBox += ';' + s;
            }
            oQuestion.Question5__c = selectedCheckBox;
        }
    } 
Hi,
I have inputtext field(<apex:inputText id="idSearchGlobal" />) in  vf page (not using any custom controller and extender in vf page)and  want to pass that inputtext  value to the component .
So my question is how to assign this inputtextfield value to component attribute.
     <c:GlobalSearch_Component attributevalue='..how i need to pass inputtextfield value here............'></c:GlobalSearch_Component>
 
How can use custom button with javascript on visual force page.
I've used below code but I'm getting 'URL No Longer Exists  <apex:commandbutton value=" Process" action="{!URLFOR($Action.Lead.Begin__Process,Lead.id)}"/>
 
How to write test class for the below code.

 public String[] MPItemsQues5 { 
        get {
            String[] selected = new List<String>();
            List<SelectOption> sos = this.MPOptionsQues5;
            for(SelectOption s : sos) {
                if (this.oQuestion.Question5__c !=null && this.oQuestion.Question5__c.contains(s.getValue()))
                    selected.add(s.getValue());
            }
            return selected;
        }public set {
            String selectedCheckBox = '';
            for(String s : value) {
                if (selectedCheckBox == '') 
                    selectedCheckBox += s;
                else selectedCheckBox += ';' + s;
            }
            oQuestion.Question5__c = selectedCheckBox;
        }
    } 
I want to use disabled and html-data-toggle attributes in commandcommand, ​first i want to show error messages if no errors show modal popup

Following is not working.How can i achieve this?
<apex:commandbutton    value="Save"  rerender="frmLead" status="status" disabled="{!hasError==true}"   html-data-toggle="modal" html-data-target="#userEConsent"  ></apex:commandbutton>