Skip navigation

This Question is Answered (go to answer)

2 "helpful" answers available (2 pts)
3,848 Views 6 Replies Last post: Jul 15, 2010 1:59 AM by urpurush RSS
eriknjenga Valued Contributor 83 posts since
Sep 17, 2009
Currently Being Moderated

Jan 21, 2010 6:39 AM

Note Templates

I trying to expose the  note templates in openvista to a web interface and I'm just wondering how you guys generate a dialog when one clicks on a particular template. I already have a tree that displays all the templates. Now the problem is just generating the dialogs. Thanks in advance.

Pete Johanson Medspherian 50 posts since
Aug 6, 2008
Currently Being Moderated
1. Jan 22, 2010 7:34 AM in response to: eriknjenga
Re: Note Templates

Templates are "Hard (TM)". I see from Hardhats that you're already browsing the Delphi sourcecode for CPRS, if you want another reference implementation for displaying them, you can take a peak at the OpenVista CIS sourcecode.

 

In particular, the UI pieces are here: http://bazaar.launchpad.net/~fireball-medsphere/openvista-cis/mainline/files/head:/src/OpenVistaCIS/src/gui/documents/templates/

 

In particular the different types of fields are handled by these classes: http://bazaar.launchpad.net/~fireball-medsphere/openvista-cis/mainline/files/head:/src/OpenVistaCIS/src/gui/documents/templates/fieldelements/

 

and the RPC calls are here: http://bazaar.launchpad.net/~fireball-medsphere/openvista-cis/mainline/annotate/head:/src/Medsphere.OpenVista.CIS.Remoting/Templates.cs

 

I would imagine that any implementation of template dialogs would require a fair amount of Ajax to implement the necessary lazy-loading of fields, validation, etc. Hope this helps!

Pete Johanson Medspherian 50 posts since
Aug 6, 2008
Currently Being Moderated
5. Jan 28, 2010 9:22 AM in response to: eriknjenga
Re: Note Templates

You will need to parse/scan the boilerplate, when you hit any of the couple "special fields" (like the {FLD: FOO} ones or the |TEMPERATURE| ones), you'll need to handle those. From what I remember (and you'll have to check either the CIS or CPRS code to verify), the next piece after the FLD: piece is the type of field (VA*WP == Word Processor, ), and the part after the space is the unique ID/Name for that field. You can then make another call to get the details about the field based on the name, and use that information to populate that field UI. You'll need to make different handlers for each field type, etc, etc.

 

I don't think anybody can just "tell you how to make the UI" very easily because it involves a *lot* of details to do it all. See my statement about Note Templates being Hard (TM).

urpurush Contributor 27 posts since
Aug 3, 2009
Currently Being Moderated
6. Jul 15, 2010 1:59 AM in response to: Pete Johanson
Re: Note Templates

We are trying to play with template creation, and import & export features. Can you tell us how can i embed an 'url' in the template... as in what tags should i use in the xml document so that a cetain label appears as a web-link in the template?

 

Thanks for your help..

 

cheers

More Like This

  • Retrieving data ...

Bookmarked By (0)