- Powered by Domino 8.5.2 Domino Accelerator Pack
- Reduce network traffic
Lotus Triple Search DominoExperts + Blogs + R8 forum -> Trouble shooter

 Dynamically declare public variables in a LS class?

Joacim BoivePost date: 2007-05-15 10:51

I'm writing WebServices and one thing would be really nice to do is to generate the public variables for one of the classes dynamically.

The "same" WS is used in a lot of databases, the only difference is the data it returns. What I mean to say is: It's the same functions that are used: hasErrands, getList, getDetails.

The different databases have different data of course, but the only thing that changes is the way the views are setup to display the contents. I could easily enough construct the views so that I could retrive the fieldnames to be used in the Class. But I can't construct the public variables in the class based on this information, they have to be hardcoded. Or do they?

I was thinking maybe something with "Execute"?


The benefit would be that any, less skilled, developer could easily update the WS just by updating the corresponding view. Also meaning that you could have one central repository for storing the WS and then have the different databases inherit the design from there.


Any Thoughts?



Tomas NielsenPost date: 2007-05-19 22:44

Have you looked into DXL? Maybe you could dynamically create your web service?

Joacim BoivePost date: 2007-05-22 17:49

Mmm, I can't see that working.

If I used DXL I would have to import it every time the WS got triggered and that wouldn't be efficent.

I could do a lookup for some config parameters, but I don't like that solution either for efficency reasons.


I think the Execute-method is the way to go, but I can't figure out how...


Thanks anyway!



RSS feed
Subscribe to Forum

Share this page

Top posters
Tomas Nielsen212
Joacim Boive27
Fredrik Stöckel27
Niklas Waller13
Kenneth Haggman11
Bryan Kuhn10
Daniel Lehtihet9
Jonas Israelsson8