I have a NetWebServiceMethod that delivers json packets. In the "Return" tab, i have a View that includes several fields of a file. I need for one of those fields to have a calculated value, in the form "IF thisfield = '' THEN thisfield = thisOtherfield.".
I cannot find where to put the calculation! No matter where I do this, the final value delivered is not changed.
I tried changing the queue value, for example
IF q:App_CliDocs.CDoc_DocDescription = '' THEN
q:App_CliDocs.CDoc_DocDescription = q:App_CliDocs.CDoc_DocOriginalName
END
PUT(q:App_CliDocs)
But it also doesn't work.
Is there a specific procedure, routine or embed where this SHOULD be like this, for it to work? Sounds like i'm missing something.
Kind regards,