• rotviz
  • NEWBIE
  • 0 Points
  • Member since 2004

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

Hi, my problem is:

the code is in javascript

.... //connect to the ActiveXObject

//the field Amount in salesforce is "Amount : EUR 58.240,00"

importe = sobj.Item('Amount').Value;

iva = parseFloat(importe) * 0.16;

sobj.Item('TAXn__c').Value = iva;

document.writeln("\nCuanto de Iva = "+sobj.Item('TAXn__c').value );    

miArray[0] = sobj;

results = sfdc.Update(miArray,false);

 

When the Sforce Control execute document.writeln("\nCuanto de Iva = "+sobj.Item('TAXn__c').value );

in the explorer windows appear Cuanto de Iva = 9318.4 ,this is the CORRECT VALUE

but when i reload the salesforce window in the field TAXn appear TAXn : EUR 931.840,00 and this is not the value that i want.

Thanks.

Best Regards.

  • January 11, 2005
  • Like
  • 0

In a business point of view we need to "cancel" a contract, but in salesforce there´s only three values (Draft, In Approval, Activated) in the "contract status " field.

Also when a Contract finished (the "Contract End Date" equal to Today) the status field didn´t change.

Thanks.

Best Regards.

Víctor �lvarez

 

  • January 10, 2005
  • Like
  • 0
Can we add a new activity via API in Contract´s related list "Activity History"?

In a business point of view, what we want to do is :

We are developing a Java application via API that send mails when a contract finished, so we want to add a activity like "Mail sent to Customer" in the Contract´s related list "Activity History".

It is possible to do it in Java via API?

Thanks .

Best Regards.
  • January 10, 2005
  • Like
  • 0
In the JavaScript appear an error in the line :

------------------
var binding = new ActiveXObject('SForceOfficeToolkit.SForceSession');
-----------------

and the error is "error ActiveXObject is not defined"


I would like to know how to resolve the problem, or if we need to install any package or something like this

I am using Windows XP and Internet Explorer.

Thanks.

Regards.

Víctor Alvarez
  • December 14, 2004
  • Like
  • 0

Hi, my problem is:

the code is in javascript

.... //connect to the ActiveXObject

//the field Amount in salesforce is "Amount : EUR 58.240,00"

importe = sobj.Item('Amount').Value;

iva = parseFloat(importe) * 0.16;

sobj.Item('TAXn__c').Value = iva;

document.writeln("\nCuanto de Iva = "+sobj.Item('TAXn__c').value );    

miArray[0] = sobj;

results = sfdc.Update(miArray,false);

 

When the Sforce Control execute document.writeln("\nCuanto de Iva = "+sobj.Item('TAXn__c').value );

in the explorer windows appear Cuanto de Iva = 9318.4 ,this is the CORRECT VALUE

but when i reload the salesforce window in the field TAXn appear TAXn : EUR 931.840,00 and this is not the value that i want.

Thanks.

Best Regards.

  • January 11, 2005
  • Like
  • 0

In a business point of view we need to "cancel" a contract, but in salesforce there´s only three values (Draft, In Approval, Activated) in the "contract status " field.

Also when a Contract finished (the "Contract End Date" equal to Today) the status field didn´t change.

Thanks.

Best Regards.

Víctor �lvarez

 

  • January 10, 2005
  • Like
  • 0
Can we add a new activity via API in Contract´s related list "Activity History"?

In a business point of view, what we want to do is :

We are developing a Java application via API that send mails when a contract finished, so we want to add a activity like "Mail sent to Customer" in the Contract´s related list "Activity History".

It is possible to do it in Java via API?

Thanks .

Best Regards.
  • January 10, 2005
  • Like
  • 0
In the JavaScript appear an error in the line :

------------------
var binding = new ActiveXObject('SForceOfficeToolkit.SForceSession');
-----------------

and the error is "error ActiveXObject is not defined"


I would like to know how to resolve the problem, or if we need to install any package or something like this

I am using Windows XP and Internet Explorer.

Thanks.

Regards.

Víctor Alvarez
  • December 14, 2004
  • Like
  • 0