I'm planning to wrap my FormFunction
expression in Cloulddeploy
but am having trouble giving input to the required data to Encde
, the function I want to run inside FormFunction
. Encde
runs fine in a notebook on its own, but not inside FormFunction
. The websites I've looked at for help (with my untrained eye, including Mathematic.SE) seem to offer contradictory examples of how the function is suppose to be formatted inside FormFunction
.
What is the correct way to include a user defined function inside a FormFunction
expression?
Encde[v1_, p1_] :=
TableForm[
Flatten[
ToUpperCase[
IntegerString[
{Times[ToExpression[ToCharacterCode[v1]], p1]}, 16]]
], TableDirections ->Row
]
FormFunction[{"v1"->"String", "p1"->"Integer"}, Encde]