Re: [Hardhats-members] Exporting Word Processing Fields Using VA Fileman
At first I tried exporting WP fields to flat files with a simple loop, but have since started using XML for this purpose. Using the MXML parser it's actually quite straightforward. --- Kevin Toppenberg [EMAIL PROTECTED] wrote: Ann, It would be a fairly short program to print out the fields to a text file. But what will you do if your word-processor field contains a comma? Won't that mess up your comma delineation of fields? What about writing out the data in XML format? Could you use that? Kevin --- ann cooney [EMAIL PROTECTED] wrote: I am looking for a workaround for VA Fileman's export limitation with word processing fields - quote from VA Fileman's reference can't use the Import or Export Tools to exchange word processing fields from VA FileMan files... I am just starting out using Fileman without knowing how to program in mumps (tho I do program in v.basic, e.g) - but am willing to learn M. I have been asked to export specific fields from the M database to comma delimited file and import into MS Access for data analysis. I have been successful except for the word processing fields. From the archives, I have a sense or what is the most likely solutions, but would like a little more detail on #1 below: 1) extracting multiline fields one by one - How would one go about doing this? Is it part of the export tool? or 2) Creating a print template and capturing the output. ACee - Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members = A practical man is a man who practices the errors of his forefathers. --Benjamin Disraeli Greg Woodhouse [EMAIL PROTECTED] [EMAIL PROTECTED] --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
[Hardhats-members] Xdialog, dialog, m2web
I'm aiming toward Boston and I'm attempting to fancy up Bhaskar's install/run script. My ultimate goal is to include the installation of m2web into the scripts: 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox X not running 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? 2.) Now I have a new script ...OpenVistA/dvista that uses dialog instead of Xdialog. I will post that here if anyone needs it before Boston. 3.) I've added a menu option to do a rundown to both scripts. This works nicely and can be branched to on exit from GTM so the user can agree to rundown routinely: case $action in Run)...snip Erase) ...snip Install (and run)) ...snip ;; Rundown) clear `$gtm_dist/mupip rundown -r *` Xdialog --infobox rundown finished 0 0 6000 ; exit 1 ;; esac 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web=/usr/local/m2web export vista_home=/usr/local/vista/OpenVistA export gtm_sysid=vista.net export gtm_dist=/usr/local/gtm export gtm_log=$gtm_dist/log export gtmgbldir=$vista_home/g/mumps.gld export gtmroutines=$vista_home/o($m2web/w $vista_home/r) $gtm_dist Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Guidance from Bhaskar and Jim would be appreciated. regards, jlz better grandfather than programmer. Bhaskar, KS wrote: [KSB] If you are still in the process of setting up GT.M and the environment (vs. configuring VistA itself), let me suggest a much faster alternative. You will need Xdialog (http://xdialog.dyns.net) on your PC for this approach. Download an OpenVistA SemiVivA file (either OpenVistA SemiVivA 0.4 or OpenVistA SemiVivA FOIA Gold 20050212), say to /Distrib/OpenVistA. The following will install GT.M and OpenVistA (replace the filename in the second line with appropriate name of downloaded file): Healthcare, a human right. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Exporting Word Processing Fields Using VA Fileman
Greg, I think I may even add this as a function to my fileman. Would you mind posting your code to save me the time? Thanks Kevin --- Greg Woodhouse [EMAIL PROTECTED] wrote: At first I tried exporting WP fields to flat files with a simple loop, but have since started using XML for this purpose. Using the MXML parser it's actually quite straightforward. --- Kevin Toppenberg [EMAIL PROTECTED] wrote: Ann, It would be a fairly short program to print out the fields to a text file. But what will you do if your word-processor field contains a comma? Won't that mess up your comma delineation of fields? What about writing out the data in XML format? Could you use that? Kevin --- ann cooney [EMAIL PROTECTED] wrote: I am looking for a workaround for VA Fileman's export limitation with word processing fields - quote from VA Fileman's reference can't use the Import or Export Tools to exchange word processing fields from VA FileMan files... I am just starting out using Fileman without knowing how to program in mumps (tho I do program in v.basic, e.g) - but am willing to learn M. I have been asked to export specific fields from the M database to comma delimited file and import into MS Access for data analysis. I have been successful except for the word processing fields. From the archives, I have a sense or what is the most likely solutions, but would like a little more detail on #1 below: 1) extracting multiline fields one by one - How would one go about doing this? Is it part of the export tool? or 2) Creating a print template and capturing the output. ACee - Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members = A practical man is a man who practices the errors of his forefathers. --Benjamin Disraeli Greg Woodhouse [EMAIL PROTECTED] [EMAIL PROTECTED] --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Xdialog, dialog, m2web
Zimmer, comments below --- John Leo Zimmer [EMAIL PROTECTED] wrote: I'm aiming toward Boston and I'm attempting to fancy up Bhaskar's install/run script. My ultimate goal is to include the installation of m2web into the scripts: Do you mean that you will have the script automatically install M2web on the system? Why not simply install it, then create a master disk. This would involve having Bhaskar burn a new Viva disk. The same could apply for VPE. I think it should come pre-installed. 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox X not running 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? Xdialog is a file that lives in /urs/bin. I think you could do a file-exists type function. I don't know what this is in Linux, but it should be standard. 2.) Now I have a new script ...OpenVistA/dvista that uses dialog instead of Xdialog. I will post that here if anyone needs it before Boston. 3.) I've added a menu option to do a rundown to both scripts. This works nicely and can be branched to on exit from GTM so the user can agree to rundown routinely: case $action in Run)...snip Erase) ...snip Install (and run)) ...snip ;; Rundown) clear `$gtm_dist/mupip rundown -r *` Xdialog --infobox rundown finished 0 0 6000 ; exit 1 ;; esac I like this a lot. I you were to try to make that script act like a Windows install wizard, it might be nice to have it create a text file that specifies the state of the computer. This way it could recognize that GTM has already been installed, and change the options presented to the user. I.e. don't prompt for a uninstall option unless it has been installed etc. Also, do you know Xdialog well enough to include a graphic on the dialog box at start up. It would make it look much more professional. 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web=/usr/local/m2web export vista_home=/usr/local/vista/OpenVistA export gtm_sysid=vista.net export gtm_dist=/usr/local/gtm export gtm_log=$gtm_dist/log export gtmgbldir=$vista_home/g/mumps.gld export gtmroutines=$vista_home/o($m2web/w $vista_home/r) $gtm_dist Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Not sure I can help you here. I think that the $vista_home variable will only be referenced from the install script. I don't think that GT.M needs it, and VistA don't need it. So you could search-and-replace it in Bhaskar's install script. On the other hand, M2Web may well reference the variable, so it might be dicey changing that. So if I were doing this, I would try to search in Bhaskar's script for all $vista_home instances and rename them to $vista_home_1 or something. Glad you are working on this. Kevin P.S. Can you post a URL where I can download the M2Web code and install it? Kevin Guidance from Bhaskar and Jim would be appreciated. regards, jlz better grandfather than programmer. Bhaskar, KS wrote: [KSB] If you are still in the process of setting up GT.M and the environment (vs. configuring VistA itself), let me suggest a much faster alternative. You will need Xdialog (http://xdialog.dyns.net) on your PC for this approach. Download an OpenVistA SemiVivA file (either OpenVistA SemiVivA 0.4 or OpenVistA SemiVivA FOIA Gold 20050212), say to /Distrib/OpenVistA. The following will install GT.M and OpenVistA (replace the filename in the second line with appropriate name of downloaded file): Healthcare, a human right. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ --- SF email is sponsored by - The IT Product Guide Read honest candid
[Hardhats-members] One port CPRS
I am disappointed to report to Kevin and all that his one port callback solution for CPRS, at least on my system, is not working. I tried modifying the code and compiling CPRS and it didn't work, so I contacted Kevin and tried his version, and Ethereal showed the disappointing callback on a random port. ;-( It is probably moot for most people considering the VAs solution is now available, but I REALLY want to get this going for the VA Demo, not to mention, that now I have a bee in my bonnet and want to figure out how to do this. S, Roy Gaber, watch you email because I hope you can help and I am GOING to figure out how to see the stack in Delphi when CPRS starts (I hope). Kevin and David have given me some hints already. Nancy Anthracite --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Xdialog, dialog, m2web
s My ultimate goal is to include the installation of m2web into the scripts: Do you mean that you will have the script automatically install M2web on the system? Why not simply install it, then create a master disk. This would involve having Bhaskar burn a new Viva disk. [jlz] That's my target. One Xdialog/dialog script to install and run the whole demo system... coLinux compatable as well. The same could apply for VPE. I think it should come pre-installed. [jlz] Agreed. But that can just be included in the OpenVistA tar 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox X not running 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? Xdialog is a file that lives in /urs/bin. I think you could do a file-exists type function. I don't know what this is in Linux, but it should be standard. [jlz] I know the expertise is out there.. and searchable if I weren't so lazy... and on call all weekend. ;; Rundown) clear `$gtm_dist/mupip rundown -r *` Xdialog --infobox rundown finished 0 0 6000 ; exit 1 ;; esac Also, do you know Xdialog well enough to include a graphic on the dialog box at start up. It would make it look much more professional. [jlz] I am already spending too much time on Xdialog. Pure, simple, old dialog is probably more functional. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Xdialog, dialog, m2web
[jlz] I am already spending too much time on Xdialog. Pure, simple, old dialog is probably more functional. I think that Xdialog has all the functionality of dialog. I have made a M interface for Xdialog and dialog if you ever need it. Kevin __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Xdialog, dialog, m2web
Is the M2Web code namespaced in a VA recognized namespace? I think it is essential to maintain the VistA coding practices in some areas in order to avoid large conflicts in the future. Kevin Toppenberg wrote: Zimmer, comments below --- John Leo Zimmer [EMAIL PROTECTED] wrote: I'm aiming toward Boston and I'm attempting to fancy up Bhaskar's install/run script. My ultimate goal is to include the installation of m2web into the scripts: Do you mean that you will have the script automatically install M2web on the system? Why not simply install it, then create a master disk. This would involve having Bhaskar burn a new Viva disk. The same could apply for VPE. I think it should come pre-installed. 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox "X not running" 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? Xdialog is a file that lives in /urs/bin. I think you could do a "file-exists" type function. I don't know what this is in Linux, but it should be standard. 2.) Now I have a new script "...OpenVistA/dvista" that uses dialog instead of Xdialog. I will post that here if anyone needs it before Boston. 3.) I've added a menu option to do a rundown to both scripts. This works nicely and can be branched to on exit from GTM so the user can agree to rundown routinely: case $action in "Run")...snip "Erase") ...snip "Install (and run)") ...snip ;; "Rundown") clear `$gtm_dist/mupip rundown -r "*"` Xdialog --infobox "rundown finished" 0 0 6000 ; exit 1 ;; esac I like this a lot. I you were to try to make that script act like a Windows install wizard, it might be nice to have it create a text file that specifies the state of the computer. This way it could recognize that GTM has already been installed, and change the options presented to the user. I.e. don't prompt for a uninstall option unless it has been installed etc. Also, do you know Xdialog well enough to include a graphic on the dialog box at start up. It would make it look much more professional. 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. >From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web="/usr/local/m2web" export vista_home="/usr/local/vista/OpenVistA" export gtm_sysid="vista.net" export gtm_dist="/usr/local/gtm" export gtm_log="$gtm_dist/log" export gtmgbldir="$vista_home/g/mumps.gld" export gtmroutines="$vista_home/o($m2web/w $vista_home/r) $gtm_dist" Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Not sure I can help you here. I think that the $vista_home variable will only be referenced from the install script. I don't think that GT.M needs it, and VistA don't need it. So you could search-and-replace it in Bhaskar's install script. On the other hand, M2Web may well reference the variable, so it might be dicey changing that. So if I were doing this, I would try to search in Bhaskar's script for all $vista_home instances and rename them to $vista_home_1 or something. Glad you are working on this. Kevin P.S. Can you post a URL where I can download the M2Web code and install it? Kevin Guidance from Bhaskar and Jim would be appreciated. regards, jlz better grandfather than programmer. Bhaskar, KS wrote: [KSB] If you are still in the process of setting up GT.M and the environment (vs. configuring VistA itself), let me suggest a much faster alternative. You will need Xdialog (http://xdialog.dyns.net) on your PC for this approach. Download an OpenVistA SemiVivA file (either OpenVistA SemiVivA 0.4 or OpenVistA SemiVivA FOIA Gold 20050212), say to /Distrib/OpenVistA. The following will install GT.M and OpenVistA (replace the filename in the second line with appropriate name of downloaded file): Healthcare, a human right. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
Re: [Hardhats-members] Xdialog, dialog, m2web
I bet I know who we can ask where to put it. ;-) On Saturday 05 March 2005 02:07 pm, Greg Kreis wrote: Is the M2Web code namespaced in a VA recognized namespace? I think it is essential to maintain the VistA coding practices in some areas in order to avoid large conflicts in the future. Kevin Toppenberg wrote: Zimmer, comments below --- John Leo Zimmer [EMAIL PROTECTED] wrote: I'm aiming toward Boston and I'm attempting to fancy up Bhaskar's install/run script. My ultimate goal is to include the installation of m2web into the scripts: Do you mean that you will have the script automatically install M2web on the system? Why not simply install it, then create a master disk. This would involve having Bhaskar burn a new Viva disk. The same could apply for VPE. I think it should come pre-installed. 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox X not running 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? Xdialog is a file that lives in /urs/bin. I think you could do a file-exists type function. I don't know what this is in Linux, but it should be standard. 2.) Now I have a new script ...OpenVistA/dvista that uses dialog instead of Xdialog. I will post that here if anyone needs it before Boston. 3.) I've added a menu option to do a rundown to both scripts. This works nicely and can be branched to on exit from GTM so the user can agree to rundown routinely: case $action in Run)...snip Erase) ...snip Install (and run)) ...snip ;; Rundown) clear `$gtm_dist/mupip rundown -r *` Xdialog --infobox rundown finished 0 0 6000 ; exit 1 ;; esac I like this a lot. I you were to try to make that script act like a Windows install wizard, it might be nice to have it create a text file that specifies the state of the computer. This way it could recognize that GTM has already been installed, and change the options presented to the user. I.e. don't prompt for a uninstall option unless it has been installed etc. Also, do you know Xdialog well enough to include a graphic on the dialog box at start up. It would make it look much more professional. 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web=/usr/local/m2web export vista_home=/usr/local/vista/OpenVistA export gtm_sysid=vista.net export gtm_dist=/usr/local/gtm export gtm_log=$gtm_dist/log export gtmgbldir=$vista_home/g/mumps.gld export gtmroutines=$vista_home/o($m2web/w $vista_home/r) $gtm_dist Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Not sure I can help you here. I think that the $vista_home variable will only be referenced from the install script. I don't think that GT.M needs it, and VistA don't need it. So you could search-and-replace it in Bhaskar's install script. On the other hand, M2Web may well reference the variable, so it might be dicey changing that. So if I were doing this, I would try to search in Bhaskar's script for all $vista_home instances and rename them to $vista_home_1 or something. Glad you are working on this. Kevin P.S. Can you post a URL where I can download the M2Web code and install it? Kevin Guidance from Bhaskar and Jim would be appreciated. regards, jlz better grandfather than programmer. Bhaskar, KS wrote: [KSB] If you are still in the process of setting up GT.M and the environment (vs. configuring VistA itself), let me suggest a much faster alternative. You will need Xdialog (http://xdialog.dyns.net) on your PC for this approach. Download an OpenVistA SemiVivA file (either OpenVistA SemiVivA 0.4 or OpenVistA SemiVivA FOIA Gold 20050212), say to /Distrib/OpenVistA. The following will install GT.M and OpenVistA (replace the filename in the second line with appropriate name of downloaded file): Healthcare, a human right. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members __ Celebrate Yahoo!'s 10th Birthday!
Re: [Hardhats-members] Xdialog, dialog, m2web
Yes, m2web does have a VA namespace, but the application is not written to the namespacing conventions. That has been an issue we want to help rectify, but it will not be simple to do. - Original Message - From: Greg Kreis To: hardhats-members@lists.sourceforge.net Sent: Saturday, March 05, 2005 11:07 AM Subject: Re: [Hardhats-members] Xdialog, dialog, m2web Is the M2Web code namespaced in a VA recognized namespace? I think it is essential to maintain the VistA coding practices in some areas in order to avoid large conflicts in the future.Kevin Toppenberg wrote: Zimmer, comments below --- John Leo Zimmer [EMAIL PROTECTED] wrote: I'm aiming toward Boston and I'm attempting to fancy up Bhaskar's install/run script. My ultimate goal is to include the installation of m2web into the scripts: Do you mean that you will have the script automatically install M2web on the system? Why not simply install it, then create a master disk. This would involve having Bhaskar burn a new Viva disk. The same could apply for VPE. I think it should come pre-installed. 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox "X not running" 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? Xdialog is a file that lives in /urs/bin. I think you could do a "file-exists" type function. I don't know what this is in Linux, but it should be standard. 2.) Now I have a new script "...OpenVistA/dvista" that uses dialog instead of Xdialog. I will post that here if anyone needs it before Boston. 3.) I've added a menu option to do a rundown to both scripts. This works nicely and can be branched to on exit from GTM so the user can agree to rundown routinely: case $action in "Run")...snip "Erase") ...snip "Install (and run)") ...snip ;; "Rundown") clear `$gtm_dist/mupip rundown -r "*"` Xdialog --infobox "rundown finished" 0 0 6000 ; exit 1 ;; esac I like this a lot. I you were to try to make that script act like a Windows install wizard, it might be nice to have it create a text file that specifies the state of the computer. This way it could recognize that GTM has already been installed, and change the options presented to the user. I.e. don't prompt for a uninstall option unless it has been installed etc. Also, do you know Xdialog well enough to include a graphic on the dialog box at start up. It would make it look much more professional. 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. >From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web="/usr/local/m2web" export vista_home="/usr/local/vista/OpenVistA" export gtm_sysid="vista.net" export gtm_dist="/usr/local/gtm" export gtm_log="$gtm_dist/log" export gtmgbldir="$vista_home/g/mumps.gld" export gtmroutines="$vista_home/o($m2web/w $vista_home/r) $gtm_dist" Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Not sure I can help you here. I think that the $vista_home variable will only be referenced from the install script. I don't think that GT.M needs it, and VistA don't need it. So you could search-and-replace it in Bhaskar's install script. On the other hand, M2Web may well reference the variable, so it might be dicey changing that. So if I were doing this, I would try to search in Bhaskar's script for all $vista_home instances and rename them to $vista_home_1 or something. Glad you are working on this. Kevin P.S. Can you post a URL where I can download the M2Web code and install it? Kevin Guidance from Bhaskar and Jim would be appreciated. regards, jlz better grandfather than programmer. Bhaskar, KS wrote: [KSB] If you are still in the process of setting up GT.M and the environment (vs. configuring VistA itself), let me suggest a much faster alternative. You will need Xdialog (http://xdialog.dyns.net) on your PC for this approach. Download an OpenVistA SemiVivA file (either OpenVistA SemiVivA 0.4 or OpenVistA SemiVivA FOIA Gold 20050212), say to /Distrib/OpenVistA. The following will install GT.M and OpenVistA (replace the filename in the second line with appropriate name of downloaded file): Healthcare, a human right. --- SF email is
[Hardhats-members] request
Could you please provide the article in Modern Physicians(the HomePage of hardhats.org provides thelink but I/my University doesn't have subscription for the journal) Thanks! Article: Health IT connectivity hinges on VA software - So goes the claim in the article in Modern Physician. Thanks to a sharp Hardhat for bringing this to our attention. -Sam Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web
Re: [Hardhats-members] Xdialog, dialog, m2web
John, It appears that I have not yet received your original message in this thread so I will respond to your questions about M2Web here. Actually, my use of the variable vista_home was borrowed from one of Bhaskar's scripts. He used vista_home to refer to the location that vista was (to be) installed in and vista_source as the location *from* which it would be installed. The M2Web script is only concerned with running GT.M, not installing it --- John Leo Zimmer [EMAIL PROTECTED] wrote: 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web=/usr/local/m2web export vista_home=/usr/local/vista/OpenVistA export gtm_sysid=vista.net Change gtm_sysid to whatever name you want to give your server. export gtm_dist=/usr/local/gtm export gtm_log=$gtm_dist/log I think you can delete gtm_log. At the least put it somewhere else. Bhaskar has noted before that the log should not be located in $gtm_dist. export gtmgbldir=$vista_home/g/mumps.gld export gtmroutines=$vista_home/o($m2web/w $vista_home/r) $gtm_dist Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Kevin P.S. Can you post a URL where I can download the M2Web code and install it? http://vista.vmth.ucdavis.edu/home/index/48.html --- Jim Self Systems Architect, Lead Developer VMTH Computer Services, UC Davis (http://www.vmth.ucdavis.edu/us/jaself) --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
Re: [Hardhats-members] Xdialog, dialog, m2web
Greg; Jim does have a namespace, but most of his routines are not using the namespace. This plus, Jim has re-written a number of the DI utilities so that theywork with his code. There is little conflict at this point because most of Jim's routines and globalsuse lower-case, but most of the m2web globals are not fileman compatible, and someparallel the OPTION and PROTOCOL files, but are different. He has been developing in his own isolatedenvironment and hasn't had to deal with the VA standards. His namespace is a lower case, m2w. His routines include ht* and some others. Jim, have I described it correctly? - Original Message - From: Greg Kreis To: hardhats-members@lists.sourceforge.net Sent: Saturday, March 05, 2005 12:43 PM Subject: Re: [Hardhats-members] Xdialog, dialog, m2web When you say 'not to the namespacing conventions', what do you mean specifically? I am glad to hear it has an official namespace.Chris Richardson wrote: Yes, m2web does have a VA namespace, but the application is not written to the namespacing conventions. That has been an issue we want to help rectify, but it will not be simple to do. - Original Message - From: Greg Kreis To: hardhats-members@lists.sourceforge.net Sent: Saturday, March 05, 2005 11:07 AM Subject: Re: [Hardhats-members] Xdialog, dialog, m2web Is the M2Web code namespaced in a VA recognized namespace? I think it is essential to maintain the VistA coding practices in some areas in order to avoid large conflicts in the future.Kevin Toppenberg wrote: Zimmer, comments below --- John Leo Zimmer [EMAIL PROTECTED] wrote: I'm aiming toward Boston and I'm attempting to fancy up Bhaskar's install/run script. My ultimate goal is to include the installation of m2web into the scripts: Do you mean that you will have the script automatically install M2web on the system? Why not simply install it, then create a master disk. This would involve having Bhaskar burn a new Viva disk. The same could apply for VPE. I think it should come pre-installed. 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox "X not running" 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? Xdialog is a file that lives in /urs/bin. I think you could do a "file-exists" type function. I don't know what this is in Linux, but it should be standard. 2.) Now I have a new script "...OpenVistA/dvista" that uses dialog instead of Xdialog. I will post that here if anyone needs it before Boston. 3.) I've added a menu option to do a rundown to both scripts. This works nicely and can be branched to on exit from GTM so the user can agree to rundown routinely: case $action in "Run")...snip "Erase") ...snip "Install (and run)") ...snip ;; "Rundown") clear `$gtm_dist/mupip rundown -r "*"` Xdialog --infobox "rundown finished" 0 0 6000 ; exit 1 ;; esac I like this a lot. I you were to try to make that script act like a Windows install wizard, it might be nice to have it create a text file that specifies the state of the computer. This way it could recognize that GTM has already been installed, and change the options presented to the user. I.e. don't prompt for a uninstall option unless it has been installed etc. Also, do you know Xdialog well enough to include a graphic on the dialog box at start up. It would make it look much more professional. 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. >From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web="/usr/local/m2web" export vista_home="/usr/local/vista/OpenVistA" export gtm_sysid="vista.net" export gtm_dist="/usr/local/gtm" export gtm_log="$gtm_dist/log" export gtmgbldir="$vista_home/g/mumps.gld" export gtmroutines="$vista_home/o($m2web/w $vista_home/r) $gtm_dist" Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Not sure I can help you here. I think that the $vista_home variable will only be referenced from the install script. I don't think that GT.M needs it, and VistA don't need it. So you could search-and-replace it in Bhaskar's install script. On the other hand, M2Web may well reference the variable, so it might be dicey changing that. So if I were doing this, I would try to search in Bhaskar's script for all $vista_home
Re: [Hardhats-members] Xdialog, dialog, m2web
Greg Kreis wrote: Is the M2Web code namespaced in a VA recognized namespace? I think it is essential to maintain the VistA coding practices in some areas in order to avoid large conflicts in the future. No it is not. It is purposely written outside the VA coding conventions to ensure that there will be no conflict. The M2Web routines and variables are named in lowercase or mixed case. The ones associated with basic web features like HTTP, CGI, HTML all begin with ht. --- Jim Self Systems Architect, Lead Developer VMTH Computer Services, UC Davis (http://www.vmth.ucdavis.edu/us/jaself) --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
[Hardhats-members] Xdialog, dialog, m2web
I'm aiming toward Boston and I'm attempting to fancy up Bhaskar's install/run script. My ultimate goal is to include the installation of m2web into the scripts: 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox X not running 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? 2.) Now I have a new script ...OpenVistA/dvista that uses dialog instead of Xdialog. I will post that here if anyone needs it before Boston. 3.) I've added a menu option to do a rundown to both scripts: case $action in Run)...snip Erase) ...snip Install (and run)) ...snip ;; Rundown) clear `$gtm_dist/mupip rundown -r *` Xdialog --infobox rundown finished 0 0 6000 ; exit 1 ;; esac 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web=/usr/local/m2web export vista_home=/usr/local/vista/OpenVistA export gtm_sysid=vista.net export gtm_dist=/usr/local/gtm export gtm_log=$gtm_dist/log export gtmgbldir=$vista_home/g/mumps.gld export gtmroutines=$vista_home/o($m2web/w $vista_home/r) $gtm_dist Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Guidance from Bhaskar and Jim would be appreciated. regards, jlz better grandfather than programmer. Bhaskar, KS wrote: [KSB] If you are still in the process of setting up GT.M and the environment (vs. configuring VistA itself), let me suggest a much faster alternative. You will need Xdialog (http://xdialog.dyns.net) on your PC for this approach. Download an OpenVistA SemiVivA file (either OpenVistA SemiVivA 0.4 or OpenVistA SemiVivA FOIA Gold 20050212), say to /Distrib/OpenVistA. The following will install GT.M and OpenVistA (replace the filename in the second line with appropriate name of downloaded file): --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members
RE: [Hardhats-members] Xdialog, dialog, m2web
Title: RE: [Hardhats-members] Xdialog, dialog, m2web John -- Something is really screwed up with e-mail. I received your e-mail after the responses in the thread it initiated! Comments below. -- Bhaskar -Original Message- From: [EMAIL PROTECTED] on behalf of johnleozimmer Sent: Sat 3/5/2005 10:46 AM To: hardhats-members@lists.sourceforge.net Cc: Subject: [Hardhats-members] Xdialog, dialog, m2web I'm aiming toward Boston and I'm attempting to fancy up Bhaskar's install/run script. My ultimate goal is to include the installation of m2web into the scripts: [KSB] Actually, you can integrate M2web without touching the /usr/local/OpenVistA/vista script. Assuming that you have the database installed in (for example) /mnt/hda4/myVistA/OpenVistA/g/mumps.dat, then just put the routines for M2Web in /mnt/hda4/myVistA/OpenVistA/r/. The object files will automatically get compiled into /mnt/hda4/myVistA/OpenVistA/o/. 1.) I've added a test to ...OpenVistA/vista to switch from Xdialog to plain old dialog in the absence of Xwindows, like so: ### if [[ -z $DISPLAY ]] ; then dialog --infobox X not running 0 0 ; $vista_source/dvista ; exit 1 fi ### 1b.) ?? How do I add a test for the absence of Xdialog itself?? [KSB] Try something like: export DIALOG=${DIALOG:=`which Xdialog`} ; if [[ -z $DIALOG ]] ; then export DIALOG=`which dialog` ; fi and in your script use $DIALOG as the program to use. Now that I think about it, a construct like the following might be even better: if [[ -z $DISPLAY ]] ; then export DIALOG=`which dialog` ; else ... ; fi 2.) Now I have a new script ...OpenVistA/dvista that uses dialog instead of Xdialog. I will post that here if anyone needs it before Boston. 3.) I've added a menu option to do a rundown to both scripts: case $action in Run) ...snip Erase) ...snip Install (and run)) ...snip ;; Rundown) clear `$gtm_dist/mupip rundown -r *` Xdialog --infobox rundown finished 0 0 6000 ; exit 1 ;; esac 3.) The addition of m2web's installation is giving me trouble, partly because Jim Self uses environmental variables differently. From m2web-vista-cgi: #!/bin/bash #invoke GT.M for M2Web CGI export m2web=/usr/local/m2web export vista_home=/usr/local/vista/OpenVistA export gtm_sysid=vista.net export gtm_dist=/usr/local/gtm export gtm_log=$gtm_dist/log export gtmgbldir=$vista_home/g/mumps.gld export gtmroutines=$vista_home/o($m2web/w $vista_home/r) $gtm_dist Bhaskar's script uses $vista_source where Jim's has $vista_home. And Bhaskar uses $vista_home for the location of the directory in which Vista will run. Guidance from Bhaskar and Jim would be appreciated. [KSB] I don't know about the environment variables that M2Web uses, but I would hazard a guess that if you are using M2Web, then the /usr/local/OpenVistA/vista script is superfluous. regards, jlz better grandfather than programmer. [KSB] Yes, but better physician than programmer, I'm sure!
Re: [Hardhats-members] Exporting Word Processing Fields Using VA Fileman
It's actually pretty simple. The tricky part, of course, is that certain characters must be represented as entities (i.e., encoded) within an XML document. Fortunately, there's a utility to do that for you. Without looking it up, I believe it's $$SYMENC^MXMLUTIL. Having said that, the easiest way to get a WP field into an array is to call $$GET1^DIQ. You jusst then $ORDER through the array reading lines, encoding them and writing them out. For the reverse operation (taking text contained within an XML element and saving it in a WP field) the procedure depends on whether you're using the event driven (SAX) parser or MXMLDOM In the former case, you'll get one text event per line of text within the document (though the specification only says that you will receive SOME of the text without saying anything about how it's broken up). Keep track of the line number and save each line in an array. With MXMLDOM it's easier (of course): when you reach the element containing the text, just call TEXT^MXMLDOM (if you know there's only one line, you can call it as an extrinsic). Anyway, this will copy the text into an array you pass by name, and that array can be used as an argument to WP^DIE to copy the text into a WP field. --- Kevin Toppenberg [EMAIL PROTECTED] wrote: Greg, I think I may even add this as a function to my fileman. Would you mind posting your code to save me the time? Thanks Kevin --- Greg Woodhouse [EMAIL PROTECTED] wrote: At first I tried exporting WP fields to flat files with a simple loop, but have since started using XML for this purpose. Using the MXML parser it's actually quite straightforward. --- Kevin Toppenberg [EMAIL PROTECTED] wrote: Ann, It would be a fairly short program to print out the fields to a text file. But what will you do if your word-processor field contains a comma? Won't that mess up your comma delineation of fields? What about writing out the data in XML format? Could you use that? Kevin --- ann cooney [EMAIL PROTECTED] wrote: I am looking for a workaround for VA Fileman's export limitation with word processing fields - quote from VA Fileman's reference can't use the Import or Export Tools to exchange word processing fields from VA FileMan files... I am just starting out using Fileman without knowing how to program in mumps (tho I do program in v.basic, e.g) - but am willing to learn M. I have been asked to export specific fields from the M database to comma delimited file and import into MS Access for data analysis. I have been successful except for the word processing fields. From the archives, I have a sense or what is the most likely solutions, but would like a little more detail on #1 below: 1) extracting multiline fields one by one - How would one go about doing this? Is it part of the export tool? or 2) Creating a print template and capturing the output. ACee - Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members = A practical man is a man who practices the errors of his forefathers. --Benjamin Disraeli Greg Woodhouse [EMAIL PROTECTED] [EMAIL PROTECTED] --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members __ Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web http://birthday.yahoo.com/netrospective/ --- SF email is sponsored by - The IT Product Guide Read honest candid reviews
Re: [Hardhats-members] MDC Revival
Not a thing, just for you, big boy!;-) Do I really need to write a proposal to NOT change something? Couldn't I just wait and address any proposals for change? On Mar 4, 2005, at 10:04 PM, Chris Richardson wrote: Geez, Chuck; You don't call, you don't write, and then you come out of left field with a difference of opinion That is OK. Write up the proposal for the specification as you see it and float it as an RFC. You might get a following for your opinion. This is the wonderful thing about community, there is so much opportunity for difference of opinion. It would be boreing if everyone thought the same way. By the way, what are you wearing?? Chris - Original Message - From: chuck5566 [EMAIL PROTECTED] To: hardhats-members@lists.sourceforge.net Sent: Friday, March 04, 2005 7:55 PM Subject: Re: [Hardhats-members] MDC Revival I'm afraid that I still couldn't disagree more. (I know, like THAT really matters.) I LIKE writing in M. One of things I appreciate about M is it's simple left-to-right order of precedence (OoP). I know M's OoP swims against almost every other language, as does my opinion. Maybe it's because I've used M's OoP long enough to appreciate and make use of it, or maybe I'm just too simple minded. ;-) Serious, maybe order of precedence could be an M system parameter in future versions. Cheers, Chuck On Mar 4, 2005, at 7:59 PM, Chris Richardson wrote: I could not agree with you more, Kevin. Grouping the equations is the most rational idea. Depending upon precidence is a great way to build in an obscure bug. I haven't trusted a precident since Nixon. ;^) Have a great weekend. - Original Message - From: Kevin Toppenberg [EMAIL PROTECTED] To: hardhats-members@lists.sourceforge.net Sent: Friday, March 04, 2005 4:11 PM Subject: RE: [Hardhats-members] MDC Revival Greg, I agree that the M way of calculating this is different from other languages. But you couldn't change this without breaking old code. I would say, for good coding practice, that the line be written like this: (2+3)*4 or 2+(3*4) depending which you were really wanting. In other words, just make the extra effort to be clear. Kevin --- Greg Woodhouse [EMAIL PROTECTED] wrote: Oh, that's easy: MUMPS is hard to learn because 2+3*4 = 20. :-) Can you think of even one other language (using infix notation, that is) where this is true? (Okay, okay, I don't know MIIS, but it might be an exception.) --- Sowinski, Richard J. [EMAIL PROTECTED] wrote: When did everyone get so dumb ? You learned M. I learned M. When did it all of a sudden get so difficult to learn it ? Are you saying we were smarter than the upcoming generation ? I don't think so. The real problem with Vista right now is not the language. It is the shear size of it, and the rat's nest of poorly documented code under the hood, which is the result of years of patching already patched code. I liken it to a huge wad of gum. A redesign in M is as valid as a redesign in any other language. In fact, it would be much simpler. VA already has the installed base, and the in-house expertise. We'll find out 10 years from now (maybe) when the current redesign is finished, how well it works , and how many people it takes to support it. Oh yeah, by the way, outsourcing has worked really well. CoreFLS was a grand success. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of steven mcphelan Sent: Tuesday, March 01, 2005 8:06 AM To: hardhats-members@lists.sourceforge.net Subject: Re: [Hardhats-members] MDC Revival I believe Cameron's statement about the VA management not being able to back off of migrating to a newer platform is probably very close to the truth. However, I am sure that there were some real business management decisions made (or at least I hope so). I saw an article recently that estimated that 40-50% of the current VA IT staff will be retiring in the next 5 years. If I was a manager of VA IT I would be very concerned about that. I would seriously consider moving my technology to a platform that enables me to recruit competent IT staff without having to rely on in-house training for the next generation of VA IT support. I would even consider technology that is inferior to my current technology as long as the new technology meets my needs and gives me greater flexibilty in personnel matters or provide me the opportunity to competitively outsource some IT functions. = A practical man is a man who practices the errors of his forefathers. --Benjamin Disraeli Greg Woodhouse [EMAIL PROTECTED] [EMAIL PROTECTED] --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Hardhats-members