Message Boards Message Boards

1
|
2991 Views
|
0 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Why a code that works locally does not work when deployed to the cloud?

Posted 6 years ago

When I run this code locally it does what I expect. When CloudDeploy-ed, it fails. What I am I doing wrong? ( I am a totally new user of WL) Thanks.

Conversor1 = FormPage[

  {{"Amount", "Amount in Euros"} -> "Number", 
   "Currency" -> {"US dollars", "British Pounds"}, {"Date", 
     "Invoice Date"} -> "Date"},

  DatedRate[moneda_, fecha_] := UnitConvert[
    Quantity[1, DatedUnit["Euros", fecha]], 
    DatedUnit[moneda, fecha]];

  Conversion[cantidad_, moneda_, fecha_] :=

   Return[Times[cantidad, DatedRate[moneda, fecha]]];

  Conversion[#Amount, #Currency, #Date] &] 
POSTED BY: jose rubio
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract