Message Boards Message Boards

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

GROUPS:

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
Answer
3 months ago

Group Abstract Group Abstract