• srikforce
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 8
    Replies

Hi frnds!


Please provide some examples of Triggers using  the below context variables

 

                                                                                                    "isInsert    isUpdate  isExecuting  isDelete "

 

Thanks..

Plz tell me the Relationships between the standard objects given below.

I will be waiting for ur reply..

thank u so much..

 

 

 

 

Output should be like this..

 

if we select DeptName from dropdown then all the details(deptno,loc) of that particular "dept name" should be displyed by quering the records from the "custom object"....

 

in the below code, "dept" is the custom object..

 

I tried like this  but didnt get the required output.

 

///////////////////////////////////////////////////////

 

public class DeptDropDownCon
{
   string dept;

public List<selectoption> getItems(){

List<selectoption> dept = new List<selectoption>();
dept.add(new selectoption('SPORTS','SPORTS'));
dept.add(new selectoption('SALES','SALES'));

return dept;
}

      public PageReference test() {
            return null;
        }

public void setDept(string dept)
{
   
  this.dept=dept;      

}

public List<dept__c> getDept()
{
   return[select name,loc__c from dept__c];

}
}

 

 

 

//////////////////////////////////////////////////////

 

<apex:page controller="DeptDropDownCon">


      <apex:form >


                  <apex:selectList value="{!dept}" size="1">
                       <apex:selectOptions value="{!items}"/>
                  </apex:selectList><p/>

 

                 <apex:commandButton value="Test" action="{!test}" rerender="out" status="status"/>


       </apex:form>

 

<apex:outputPanel id="out">
         <apex:actionstatus id="status" startText="testing...">
                  <apex:facet name="stop">
<apex:outputPanel >
        <p>You have selected:</p>

<apex:dataTable value="{!dept}" var="d" width="50%" >
             <apex:column VAlue="{!d.ID}" headerValue="dept ID"/>
                    <apex:column VAlue="{!d.name}" headerValue="dept Name"/>
                       <apex:column VAlue="{!d.LOC__c}" headerValue="dept location"/>
                             <!-- <apex:column VAlue="{!d.DEPTNO__c}" headerValue="dept no"/> -->
</apex:dataTable>

<!-- <apex:outputText value="{!dept}"/> -->

</apex:outputPanel>
</apex:facet>
</apex:actionstatus>
</apex:outputPanel>
</apex:page>

 

 

/////////////////////////////////////////////////////////////////

 

with the above controller and the VF page,  the same dept details will be displayed for all deptnames before click on test(immediately after saving).. 

 

dept details should be displayed only after I select the "deptname" and click on test..

 

I will be waiting for ur reply..

tc..

 

 

hi frnds..  following PAGE and CONTROLLER are the examples given in the VisualForce Guide..

 

<!-- Page: -->


<apex:page controller="sampleCon">
<apex:form>
<apex:selectList value="{!countries}" multiselect="true">
<apex:selectOptions value="{!items}"/>
</apex:selectList><p/>
<apex:commandButton value="Test" action="{!test}" rerender="out" status="status"/>
</apex:form>
<apex:outputPanel id="out">
<apex:actionstatus id="status" startText="testing...">
<apex:facet name="stop">
<apex:outputPanel>
<p>You have selected:</p>
<apex:dataList value="{!countries}" var="c">{!c}</apex:dataList>
</apex:outputPanel>
</apex:facet>
</apex:actionstatus>
</apex:outputPanel>
</apex:page>

 

 


/*** Controller: ***/


public class sampleCon {
String[] countries = new String[]{};
public PageReference test() {
return null;
}
public List<SelectOption> getItems() {
List<SelectOption> options = new List<SelectOption>();
options.add(new SelectOption('US','US'));
options.add(new SelectOption('CANADA','Canada'));
options.add(new SelectOption('MEXICO','Mexico'));
return options;
}
public String[] getCountries() {
return countries;
}
public void setCountries(String[] countries) {
this.countries = countries;
}
}

I followed the steps given in the following link..

 

getting following error while installing new software (FORCE.COM IDE plugin) to the ECLIPSE

 

installing software " has encountered a problem

An error occured while collecting items to be installed

 

 

MD5 hash is not as expected

 

 

I have created List 1 and List 2



after creating objects to 2 diff classes I have added some elements.



List1.add(obj1); // adding obj1 to the List 1

List2.add(obj2) // adding obj2 to the List 2



Return type for both the Lists are different...



now I would like to return List 2 on debug logs but List 2 should contains elements of both List 1 and List 2...



Please try to resolve this..

thank u so much ,,,,,

I have created List 1 and List 2

 

after creating objects to 2 diff classes I have added some elements.

 

List1.add(obj1);  // adding obj1 to the List 1

List2.add(obj2)  // adding obj2 to the List 2

 

Return type for both the Lists are different...

 

now I would like to return List 2 on debug logs but List 2 should contains elements of both List 1 and List 2...

 

Please try to resolve this..

thank u so much ,,,,, 

Hi frnds!


Please provide some examples of Triggers using  the below context variables

 

                                                                                                    "isInsert    isUpdate  isExecuting  isDelete "

 

Thanks..

Plz tell me the Relationships between the standard objects given below.

I will be waiting for ur reply..

thank u so much..

 

 

 

 

Output should be like this..

 

if we select DeptName from dropdown then all the details(deptno,loc) of that particular "dept name" should be displyed by quering the records from the "custom object"....

 

in the below code, "dept" is the custom object..

 

I tried like this  but didnt get the required output.

 

///////////////////////////////////////////////////////

 

public class DeptDropDownCon
{
   string dept;

public List<selectoption> getItems(){

List<selectoption> dept = new List<selectoption>();
dept.add(new selectoption('SPORTS','SPORTS'));
dept.add(new selectoption('SALES','SALES'));

return dept;
}

      public PageReference test() {
            return null;
        }

public void setDept(string dept)
{
   
  this.dept=dept;      

}

public List<dept__c> getDept()
{
   return[select name,loc__c from dept__c];

}
}

 

 

 

//////////////////////////////////////////////////////

 

<apex:page controller="DeptDropDownCon">


      <apex:form >


                  <apex:selectList value="{!dept}" size="1">
                       <apex:selectOptions value="{!items}"/>
                  </apex:selectList><p/>

 

                 <apex:commandButton value="Test" action="{!test}" rerender="out" status="status"/>


       </apex:form>

 

<apex:outputPanel id="out">
         <apex:actionstatus id="status" startText="testing...">
                  <apex:facet name="stop">
<apex:outputPanel >
        <p>You have selected:</p>

<apex:dataTable value="{!dept}" var="d" width="50%" >
             <apex:column VAlue="{!d.ID}" headerValue="dept ID"/>
                    <apex:column VAlue="{!d.name}" headerValue="dept Name"/>
                       <apex:column VAlue="{!d.LOC__c}" headerValue="dept location"/>
                             <!-- <apex:column VAlue="{!d.DEPTNO__c}" headerValue="dept no"/> -->
</apex:dataTable>

<!-- <apex:outputText value="{!dept}"/> -->

</apex:outputPanel>
</apex:facet>
</apex:actionstatus>
</apex:outputPanel>
</apex:page>

 

 

/////////////////////////////////////////////////////////////////

 

with the above controller and the VF page,  the same dept details will be displayed for all deptnames before click on test(immediately after saving).. 

 

dept details should be displayed only after I select the "deptname" and click on test..

 

I will be waiting for ur reply..

tc..

 

 

hi frnds..  following PAGE and CONTROLLER are the examples given in the VisualForce Guide..

 

<!-- Page: -->


<apex:page controller="sampleCon">
<apex:form>
<apex:selectList value="{!countries}" multiselect="true">
<apex:selectOptions value="{!items}"/>
</apex:selectList><p/>
<apex:commandButton value="Test" action="{!test}" rerender="out" status="status"/>
</apex:form>
<apex:outputPanel id="out">
<apex:actionstatus id="status" startText="testing...">
<apex:facet name="stop">
<apex:outputPanel>
<p>You have selected:</p>
<apex:dataList value="{!countries}" var="c">{!c}</apex:dataList>
</apex:outputPanel>
</apex:facet>
</apex:actionstatus>
</apex:outputPanel>
</apex:page>

 

 


/*** Controller: ***/


public class sampleCon {
String[] countries = new String[]{};
public PageReference test() {
return null;
}
public List<SelectOption> getItems() {
List<SelectOption> options = new List<SelectOption>();
options.add(new SelectOption('US','US'));
options.add(new SelectOption('CANADA','Canada'));
options.add(new SelectOption('MEXICO','Mexico'));
return options;
}
public String[] getCountries() {
return countries;
}
public void setCountries(String[] countries) {
this.countries = countries;
}
}

I followed the steps given in the following link..

 

getting following error while installing new software (FORCE.COM IDE plugin) to the ECLIPSE

 

installing software " has encountered a problem

An error occured while collecting items to be installed

 

 

MD5 hash is not as expected