• lakshmi25
  • NEWBIE
  • 0 Points
  • Member since 2012

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

<apex:page controller="selectobject" >
<apex:form >
<apex:pageBlock id="pb">
<apex:outputLabel ><b>Objects :</b></apex:outputLabel>&nbsp;
<apex:SelectList value="{!selectedObject}" size="1" >
<apex:SelectOptions value="{!objectsList}"/>
<apex:actionSupport event="onchange" rerender="pb"/>
</apex:SelectList>
<apex:commandButton value="Get Fields" action="{!showFields}" reRender="pb1" status="fetchStatus" />&nbsp;
<apex:actionStatus id="fetchStatus" >
<apex:facet name="start">
<img src="/img/loading.gif" class="waitingImage" title="Please Wait..."/>
</apex:facet>
</apex:actionStatus> <br/><br/>
</apex:pageBlock>
<apex:pageBlock id="pb1">
<apex:SelectList value="{!selectedField}" size="1">
<apex:SelectOptions value="{!items}"/>
</apex:SelectList>
</apex:pageBlock>
</apex:form>
</apex:page>

how to  display the objects as pick list field,display the corresponding object fields as picklist field  in visualforce page

Error:unable to fetch and save Force.com components to project

if emailID, password is correct how to redirect  anotherpage

Id,password is correct then openthe account page(Log in page)

i created one object&created one record after 5 min i modified that record .

if i queried  that created , modified Datetime different from actual created,modified DateTime. how to get both are same?

if i check one checkbox in checkbox field how to disable another checkbox field checkbox? i wrote this code but not working

please corect it.

 

<script>
  function disable(Id1,Id2)
   {
 var  x =document.getElementById("Id1");
 var  y = document.getElementById("Id2");
  for ( var i=0; i <x.length; i++){
  if (x[i].checked =true)
{
  y[i].disabled ='true';
}  
  }
   
   }
   </script>

 

 <apex:inputCheckbox value="{!s.absent__c}" id="ch" onclick="disable('{!$Component.ch}','{!$Component.ch1}');" >

 

 <apex:inputCheckbox value="{!s.present__c}" id="ch1" onclick="disable('{!$Component.ch1}','{!$Component.ch}');" >

 

 if check present field one of checkbox  want to disable beside absent field checkbox

if i check one checkbox in checkbox field how to disable another checkbox field checkbox? i wrote this code but not working

please corect it.

 

<script>
  function disable(Id1,Id2)
   {
 var  x =document.getElementById("Id1");
 var  y = document.getElementById("Id2");
  for ( var i=0; i <x.length; i++){
  if (x[i].checked =true)
{
  y[i].disabled ='true';
}  
  }
   
   }
   </script>

i created one custom button DeleteAll in account object listview how to  perform the mass delition of the  records using BatchApex .please send the sample code

mass delete custom object records in Professional

how to perform the  mass deletion operation  for custom object records

hai i want quotes and invoice APP tril from appExchange please send the url

  i have 2 checkbox fields  if i check one of the checkbox in first field checkbox want to disable  another  field checkbox  checkbox

<script type="text/javascript">
   
   function disable()
   {
   for (i=0; i<document.form.pb.ch1.length; i++){
if (document.form.pb.ch1[i].checked =true)
{
  document.form.pb.ch3[i].disabled='true';
}
  }
   
   }
   </script>

i have 2 checkbox fields in pageblock table one is  present another one is absent like below

 

 <apex:inputCheckbox value="{!s.present__c}" id="ch">

<apex:inputCheckbox value="{!s.absent__c}" id="ch1">

 

if i check the one of the checkbox  in present field  beside absent field checkbox want  to disable how to write the code please  send me sample code

i have one custom object, in that object one picklist field is there, in  that picklist(product,pricebook,customer three standardobjects). if  i select one i.e product then click on next button navigate to another page, in that page display the  schema values of the product  in one pick list, and input  custom object fields also,  if i choose one  of schema value and give the input  custom object fields values& click on save button save to custom object..........and displayed in another page..

 

please slave this problem, if this type any code is there plese send me

 

 In this  below page if i  check the ch checkbox ch2,ch3 checkboxes  want to disable but  only ch2 checkbox disabled and if i  check the ch2 checkbox ch,ch1 checkboxes  want to disable but  only ch  checkbox disabled.how to disable ch1,ch3 checkboxes please correct this code.

 

 

 

 

<apex:page controller="checkbox1" >
<apex:form >

<script>
function confirmDisbaled(ifchecked, id1 ,id2,id3) {


document.getElementById(id1).disabled = ifchecked;
document.getElementById(id2).disabled = ifchecked;
document.getElementById(id3).disabled = ifchecked;

}
</script>
<apex:pageBlock title="student details" id="pb" >
<apex:actionRegion >
<apex:pageBlockTable value="{!items}" var="s">
    <apex:column value="{!s.Name}"/>
 
    <apex:column >
    <apex:facet name="header">
    <apex:inputCheckbox onclick="checkAll1(this)" id="ch"  onchange="return confirmDisbaled(this.checked, '{!$Component.ch2}','{!$Component.ch3}');">
    <apex:actionSupport event="onclick" reRender="ch,ch1"/></apex:inputCheckbox>
    </apex:facet>
    
    <apex:inputCheckbox value="{!s.present__c}" id="ch1"  >
    </apex:inputCheckbox>
    </apex:column>
   <!-- onclick="if (this.checked) document.getElementById('ch3').disabled=true; else document.getElementById('ch3').disabled = false;"-->
    <apex:column >
    <apex:facet name="header">
    <apex:inputCheckbox onclick="checkAll2(this)" id="ch2"  onchange="return confirmDisbaled(this.checked, '{!$Component.ch}','{!$Component.ch1}');" >
   <apex:actionSupport event="onclick" reRender="ch2,ch3" /></apex:inputCheckbox>
    </apex:facet>
    
    <apex:inputCheckbox value="{!s.absent__c}" id="ch3"  >
   </apex:inputCheckbox>
    </apex:column>
    
    
</apex:pageBlockTable>
</apex:actionRegion>
</apex:pageBlock>
</apex:form>
<script>
        function checkAll1(cb)
        {
            var inputElem = document.getElementsByTagName("input");
            for(var i=0; i<inputElem.length; i++)
            {
                if(inputElem[i].id.indexOf("ch1")!=-1)
                {
                inputElem[i].checked = cb.checked;
                
                
                }
                 
            }
        }    
    </script>
    <script>
        function checkAll2(cb)
        {
            var inputElem = document.getElementsByTagName("input");
            for(var i=0; i<inputElem.length; i++)
            {
                if(inputElem[i].id.indexOf("ch3")!=-1)
                inputElem[i].checked = cb.checked;
                 
                 
            }
        }    
    </script>
    
</apex:page>

<apex:page controller="checkbox1" >
<apex:form >

<script>
function confirmDisbaled(ifchecked, id1 ,id2,id3) {


document.getElementById(id1).disabled = ifchecked;
document.getElementById(id2).disabled = ifchecked;
document.getElementById(id3).disabled = ifchecked;
}
</script>
<apex:pageBlock title="student details" >
<apex:actionRegion >
<apex:pageBlockTable value="{!items}" var="s">
    <apex:column value="{!s.Name}"/>
 
    <apex:column >
    <apex:facet name="header">
    <apex:inputCheckbox onclick="checkAll1(this)" id="ch"  onchange="return confirmDisbaled(this.checked, '{!$Component.ch2}','{!$Component.ch3}');"/>
    </apex:facet>
    
    <apex:inputCheckbox value="{!s.present__c}" id="ch1"  />
    </apex:column>
   <!-- onclick="if (this.checked) document.getElementById('ch3').disabled=true; else document.getElementById('ch3').disabled = false;"-->
    <apex:column >
    <apex:facet name="header">
    <apex:inputCheckbox onclick="checkAll2(this)" id="ch2"  onchange="return confirmDisbaled(this.checked, '{!$Component.ch}','{!$Component.ch1}');"/>
    </apex:facet>
    
    <apex:inputCheckbox value="{!s.absent__c}" id="ch3"/>
    </apex:column>
    
</apex:pageBlockTable>
</apex:actionRegion>
</apex:pageBlock>
</apex:form>
<script>
        function checkAll1(cb)
        {
            var inputElem = document.getElementsByTagName("input");
            for(var i=0; i<inputElem.length; i++)
            {
                if(inputElem[i].id.indexOf("ch1")!=-1)
                inputElem[i].checked = cb.checked;
                
                 
            }
        }    
    </script>
    <script>
        function checkAll2(cb)
        {
            var inputElem = document.getElementsByTagName("input");
            for(var i=0; i<inputElem.length; i++)
            {
                if(inputElem[i].id.indexOf("ch3")!=-1)
                inputElem[i].checked = cb.checked;
                 
                 
            }
        }    
    </script>
    
</apex:page>

 

in this page ch1,ch3 checkboxes  did'nt disable how to disable those please correct it

 

 

 

if one field input checkbox  is checked  then how to disable another field checkbox in pageblock table

if header checkbox is disabled how to disable all under checkboxes in pageblock table

in pageblock table header check box is diable how to disable under checkboxes

<apex:page controller="selectobject" >
<apex:form >
<apex:pageBlock id="pb">
<apex:outputLabel ><b>Objects :</b></apex:outputLabel>&nbsp;
<apex:SelectList value="{!selectedObject}" size="1" >
<apex:SelectOptions value="{!objectsList}"/>
<apex:actionSupport event="onchange" rerender="pb"/>
</apex:SelectList>
<apex:commandButton value="Get Fields" action="{!showFields}" reRender="pb1" status="fetchStatus" />&nbsp;
<apex:actionStatus id="fetchStatus" >
<apex:facet name="start">
<img src="/img/loading.gif" class="waitingImage" title="Please Wait..."/>
</apex:facet>
</apex:actionStatus> <br/><br/>
</apex:pageBlock>
<apex:pageBlock id="pb1">
<apex:SelectList value="{!selectedField}" size="1">
<apex:SelectOptions value="{!items}"/>
</apex:SelectList>
</apex:pageBlock>
</apex:form>
</apex:page>