• KRama
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 14
    Replies

Hi,

 

Could someone please tell me how assignment rules work. I have a created a new queue and an assignment rule for Leads. The assigment rule does not work as per the criteria that I have set. Please give me some pointers.

 

Thanks

KD

Hi,

 

I am trying to create a visual force page but keep getting this error ID when doing so. It says to contact support@salesforce.com, though I have sent them a mail, yet to get a response.

 

Is any one else facing this problem? I have noticed it only when using <apex:relatedlist> option, if i remove that section the page displays fine. Is there a solution for this.

 

Thanks

KD

Hi,

 

I have created a VF page that list out a set of records. I have include an inputtype checkbox in the page. I would like to select the records from the list and send email only to those.

Can this be done in VF? Is there any other way to do this?

 

Hi,

 I am trying to create a tabbed view of customer objects and am following the method provided in the Visualforce PDF file. When referencing a child object I am getting the following error

'Job_Application__r' is not a valid child relationship name for entity Position

 Position is a custom object and Job Application is a custom object that is related to it. It is also made visible in the page layout area. What needs to be done to avoid this error. I am not able to get this done for any of the customer objects. Sample of the line is

<apex:relatedList subject="{!Position__c.id}" list="Job_Application__r" />

Please do let me know how to reference a custom object.

 

I used Apex Explorer and Sforce Explorer. I was not able to find one of my Custom Object in them. But when I check in the setup>Create>Objects I find it listed there. What could be the reason for that?

 

Thanks

KD

Hi,

 

I was trying the example provided in the visualforce pdf, about creating a tab view for the Account page. It worked fine when I just used the same but when trying to reference it with custom objects created it does not work.

The example provided in the pdf

<apex:page standardController="Account" showHeader="true" tabStyle="account" > <style> .activeTab {background-color: #236FBD; color:white; background-image:none} .inactiveTab { background-color: lightgrey; color:black; background-image:none} </style> <apex:tabPanel switchType="client" selectedTab="tabdetails" id="AccountTabPanel" tabClass='activeTab' inactiveTabClass='inactiveTab'> <apex:tab label="Details" name="AccDetails" id="tabdetails"> <apex:detail relatedList="false" title="true"/> </apex:tab> <apex:tab label="Contacts" name="Contacts" id="tabContact"> <apex:relatedList subject="{!account}" list="contacts" /> </apex:tab> <apex:tab label="Opportunities" name="Opportunities" id="tabOpp"> <apex:relatedList subject="{!account}" list="opportunities" /> </apex:tab> <apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct"> <apex:relatedList subject="{!account}" list="OpenActivities" /> </apex:tab> <apex:tab label="Notes and Attachments" name="NotesAndAttachments" id="tabNoteAtt"> <apex:relatedList subject="{!account}" list="NotesAndAttachments" /> </apex:tab> </apex:tabPanel> </apex:page>

I am trying to do the same for some custom object. I have a Customer object called Position, there are 2 objects in the related list Job Application and Employment Website.

when I try to execute my code I get message that they are not child object for the entity.

My code is

 

<apex:page standardController="Position__c" showHeader="true"> <style> .activeTab {background-color: #236FBD; color:white; background-image:none} .inactiveTab { background-color: lightgrey; color:black; background-image:none} </style> <apex:tabPanel switchType="client" selectedTab="tabdetails" id="PositionTabPanel" tabClass="activeTab" inactiveTabClass="inactiveTab"> <apex:tab label="Details" name="positionDetails" id="tabdetails"> <apex:detail relatedList="false" title="true"/> </apex:tab> <apex:tab label="Job Application" name="Job Application" id="tabjobapp"> <apex:relatedList subject="{!Position__c}" list="" /> </apex:tab> <apex:tab label="Employment Websites" name="employment websites" id="tabempweb"> <apex:relatedList subject="{!Position__c}" list="" /> </apex:tab> </apex:tabPanel> </apex:pag

Hi,

I am trying to write a trigger on a custom object called Job Application. It has 2 fields that are lookup type called Candidate and Position. I am trying to write a trigger that would not let the a candidate apply for a position more than once.

Though at this point I am not expecting the code to do what is required, I am quite baffled with the compile error. And am not able to shake it.

The code is given below, getting Error: Compile Error: Unexpected Token: ja.Candidate__c at line 8 column 14

 

trigger jaduplicate on Job_Application__c (before insert, before update) {
    Map <String, Job_Application__C> jamap = new Map <String, Job_Application__c>();
    for (Job_Application__c ja : system.trigger.new){
        if(ja.Candidate__c != null && ja.Candidate__c != system.trigger.oldMap.get.(ja.id).Candidate__c){
        jamap.put(ja.Candidate__c, ja);
        jamap.put(ja.Position__c, ja);
        } else {
        for (ja.Candidate__c == system.trigger.oldMap.get.(ja.id).Candidate__c){
            if (ja.Position__c == system.trigger.oldMap.get.(ja.id).Position__c){
                ja.Position__c.adderror('Job Application already exists for the candidate');
            } else {
            jamap.put(ja.Candidate__c, ja);
            jamap.put(ja.Position__c, ja);
            }
        }
        }
    }
}

 

Any help or suggestion as to why I am getting the error. And what that error means.

 

Thanks

KD

Hi,

I am trying to write a trigger on a custom object called Job Application. It has 2 fields that are lookup type called Candidate and Position. I am trying to write a trigger that would not let the a candidate apply for a position more than once.

Though at this point I am not expecting the code to do what is required, I am quite baffled with the compile error. And am not able to shake it.

The code is given below, getting Error: Compile Error: Unexpected Token: ja.Candidate__c at line 8 column 14

 

trigger jaduplicate on Job_Application__c (before insert, before update) {
    Map <String, Job_Application__C> jamap = new Map <String, Job_Application__c>();
    for (Job_Application__c ja : system.trigger.new){
        if(ja.Candidate__c != null && ja.Candidate__c != system.trigger.oldMap.get.(ja.id).Candidate__c){
        jamap.put(ja.Candidate__c, ja);
        jamap.put(ja.Position__c, ja);
        } else {
        for (ja.Candidate__c == system.trigger.oldMap.get.(ja.id).Candidate__c){
            if (ja.Position__c == system.trigger.oldMap.get.(ja.id).Position__c){
                ja.Position__c.adderror('Job Application already exists for the candidate');
            } else {
            jamap.put(ja.Candidate__c, ja);
            jamap.put(ja.Position__c, ja);
            }
        }
        }
    }
}

 

Any help or suggestion as to why I am getting the error. And what that error means.

 

Thanks

KD

Hi,

 

I am trying to follow the following trigger

 

trigger leadDupCheck on Lead(before insert, before update) {
if (Trigger.new.Email != null) {
    Integer dupCount =[select count() from Lead WHERE email = :Trigger.new.Email];
     if ( dupCount > 0 ) {
       Trigger.new.email.addError('Lead is a duplicate');
      } else {
      }
  }
 }

 

 

I am able to excecute this trigger when used on the Object Lead, while trying to follow the same syntax on a custom object am getting an error

 

Error: Compile Error: Initial term of field expression must be a concrete SObject: LIST:SOBJECT:

 

i have replaced the object and field name appropriately

 trigger t on Candidate__c (before insert, before update) {
    if (trigger.new.Email__c != null){
        integer ecount = [select count() from Candidate__c WHERE Email__c = :Trigger.new.Email__c];
        if (ecount > 0){
            Trigger.new.Email__c.addError('Candidate already exists');
        }
    }
}

 

Please let me know what this error is about and how to proceed further

 

thanks

KD

I have created an custom object and am trying to use visual force to show the details. I keep getting error that the object is not available. If I use the same on an object that is there by default it works.

Why am I not able to do the same to my custom objects?

 

(I was trying some examples with the pdf file on visual force)