More Suggestions ...
More Suggestions ...
Hi:
Just another delivery from the Suggestion Factory.
I have built a generic Function defined as ...
string gkutility.gkReplaceText(string fromText, string subsText, string replText)
I normally invoke this Function like ...
thisText = thisapp.gkutility.gkReplaceText(thisText, "$$$LastName$$$", input.custLastName);
While I can invoke this Function like so ...
someVariable = "$$$LastName$$$";
...
...
thisText = thisapp.gkutility.gkReplaceText(thisText, someVariable, input.custLastName);
... I can not do something like ...
someVariable = "$$$LastName$$$";
anotherVariable = "input.custLastName";
...
...
thisText = thisapp.gkutility.gkReplaceText(thisText, someVariable, anotherVariable);
... as the third parameter passed to the Function will be input.custLastName ... not the content of input.custLastName.
Would be nice if there was a built-in ZOHO Creator function like eval() so ...
xyz = "input.custLastName";
myText = eval(xyz);
... would result in myText containing the contents of input.custLastName.
Another/Alternate suggestion would be to enhance the Map variable functions to load specified record <collections> e.g.
map1.putCollection("input");
map1.putCollection("old");
map1.putCollection("current");
... which would result in Map1 containing fieldName/fieldValue pairs of elements.
Gaev