Message Boards Message Boards


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

Posted 6 months ago
0 Replies
1 Total Likes

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] &] 
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract