• Abrar Ul Haq
  • NEWBIE
  • 25 Points
  • Member since 2011

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

I'm trying to create a custom button on a custom object called Job that when used would mark a custom check box called Job_Item_Call_Out true.

 

Here is the code that i have:

 

{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}
var a = new sforce.SObject("Job");
a.Id = "{!Job__c.Id}";
a.{!Job__c.Job_Item_Call_Out__c} = true;
sforce.connection.update([a]);
location.reload(true);
When the button is executed i'm getting an error

 

A problem with the OnClick JavaScript for this button or link was encountered:

Unexpected number '.0'

I'm trying to create a custom button on a custom object called Job that when used would mark a custom check box called Job_Item_Call_Out true.

 

Here is the code that i have:

 

{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}
var a = new sforce.SObject("Job");
a.Id = "{!Job__c.Id}";
a.{!Job__c.Job_Item_Call_Out__c} = true;
sforce.connection.update([a]);
location.reload(true);
When the button is executed i'm getting an error

 

A problem with the OnClick JavaScript for this button or link was encountered:

Unexpected number '.0'

Hi,

 

I'm getting System.LimitException in the test case for the below query.

 

User sender = [SELECT Email from USER where Id =: thisOppty.OwnerID];

 

But the above query returns only one record.

 

Need your suggestions to resolve the above..

 

 

 

 

there is an application(custom object).there are 2 record types for an application.I want to create a custom button on detail page on application which when clicked changes the record type of application.How to do this?