attachment below contains my issue.
This topic has been locked.
1 reply Latest Post - 2009-03-17T18:19:25Z by SystemAdmin
Pinned topic Domino Formula With SOA Imlementation without Domino formula Builder
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2009-03-17T18:19:25Z at 2009-03-17T18:19:25Z by SystemAdmin
SystemAdmin 110000D4XK334 PostsACCEPTED ANSWER
Re: Domino Formula With SOA Imlementation without Domino formula Builder2009-03-17T18:19:25Z in response to SystemAdminTo paraphrase: From a service provider model you are trying to return the value of the @Username Domino formula.
Create a model to serve as your provider model
Add a Domino Data Access builder with appropriate values.
Create an Action List. Perhaps call it getUName. In the Action List, call foo.evaluateFormula(@Username,) (where foo is the name you gave to your Domino Data Access builder)
Add a Service Definition builder. Enable Testing support in the advanced section
Add a Service Operation builder. Have it call the getUName action list.
Since you enabled testing support, you can run the provider model to test it out.
From your post, you seem to be storing the formula you wish to run in a variable, then passing that variable to evaluateFormula. This will work, but I don't recommend it. You must properly protect this variable and/or limit the value it can contain. It would be careless and dangerous to allow user to specify a formula to run. The attached sample does NOT store the formula in a variable.
Also, you mentioned you were unable to get your's to work. See the following sample and see if that helps.
See attached sample.