Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2009-03-17T18:19:25Z by SystemAdmin
SystemAdmin
SystemAdmin
334 Posts
ACCEPTED ANSWER

Pinned topic Domino Formula With SOA Imlementation without Domino formula Builder

‏2009-03-10T02:45:42Z |
Hi,
attachment below contains my issue.
Updated on 2009-03-17T18:19:25Z at 2009-03-17T18:19:25Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    334 Posts
    ACCEPTED ANSWER

    Re: Domino Formula With SOA Imlementation without Domino formula Builder

    ‏2009-03-17T18:19:25Z  in response to SystemAdmin
    To 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.