https://wiki.uio.no/mn/ifi/inf5750/api.php?action=feedcontributions&user=Roland%40uio.no&feedformat=atommn/ifi/inf5750 - User contributions [en]2024-03-19T08:09:22ZUser contributionsMediaWiki 1.27.4https://wiki.uio.no/mn/ifi/inf5750/index.php?title=Webstorm_deploy&diff=1747Webstorm deploy2014-11-12T13:46:55Z<p>Roland@uio.no: </p>
<hr />
<div><div>You can set up webstorm to deploy your local project files using SFTP (SSH) to the group server. This is a simple way to update your server so that you can test the files. Other IDEs support similar deployment functions, but Webstorm only is covered here.&nbsp;</div><div><br/></div><div>First install an app using the standard web dhis interface. You files will be available in a folder like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>which will be the following address on your server:</div><div><br/></div><div>[http://servername/apps/app-name http://servername/apps/app-name]</div><div><br/></div><div>Go to Tools->Deployment->Configuration in the menu.&nbsp;</div><div><br/></div><div>A window will appear, and click + to add a new service.<br/></div><div>[[File:Webstorm configuration upload 1.png]]<br/></div><div>&nbsp;</div><div><br/></div><div>Then enter your server name, '/' as the root path and your UIO username and password (the same as you use to SSH into the server).&nbsp;</div><div><br/></div><div>Then under mappings, add a mapping directory.&nbsp;</div><div><br/></div><div>The local path should be on your local hard-disk, where your project is.&nbsp;</div><div><br/></div><div>For me this is: C:\Users\roland\WebstormProjects\Example\app</div><div><br/></div><div>The deployment path is the path on the server where Webstorm will copy the files from your local directory. It should look something like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>but instead of app-name, use your app-name&nbsp;</div><div><br/></div><div><span style="font-size: 12px;">TIP: Set up separate app names for each group member, so you can use the same server but have parallell apps.&nbsp;</span></div><div><br/></div><div>The web path would be something like this: /apps/app-name</div><div><br/></div><div><br/></div><div>[[File:Webstorm configuration upload 2.png]]<br/></div><div><br/></div><div><br/></div><div>Under 'Excluded paths', you need to exclude your manifest file, since you don't want to overwrite the server's version of this.&nbsp;</div><div><br/></div><div>My excluded path says this: C:/Users/roland/WebstormProjects/Example/app/manifest.webapp</div><div><br/></div><div>[[File:Webstorm configuration upload 3.png]]<br/></div><div><br/></div><div>You can experiment with 'automatic upload' to upload files automatically as you save them.</div><div><br/></div><div>Remember that you have to refresh your browser to get the new files. They are cached in your browser.&nbsp;</div><div><br/></div></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=File:Webstorm_configuration_upload_2.png&diff=1746File:Webstorm configuration upload 2.png2014-11-12T13:41:15Z<p>Roland@uio.no: </p>
<hr />
<div></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Webstorm_deploy&diff=1745Webstorm deploy2014-11-12T13:40:38Z<p>Roland@uio.no: </p>
<hr />
<div><div>You can set up webstorm to deploy your local project files using SFTP (SSH) to the group server. This is a simple way to update your server so that you can test the files. Other IDEs support similar deployment functions, but Webstorm only is covered here.&nbsp;</div><div><br/></div><div>First install an app using the standard web dhis interface. You files will be available in a folder like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>which will be the following address on your server:</div><div><br/></div><div>[http://servername/apps/app-name http://servername/apps/app-name]</div><div><br/></div><div>Go to Tools->Deployment->Configuration in the menu.&nbsp;</div><div><br/></div><div>A window will appear, and click + to add a new service.<br/></div><div>[[File:Webstorm configuration upload 1.png]]<br/></div><div>&nbsp;</div><div><br/></div><div>Then enter your server name, '/' as the root path and your UIO username and password (the same as you use to SSH into the server).&nbsp;</div><div><br/></div><div>The under mappings, add a mapping directory.&nbsp;</div><div><br/></div><div>The local path should be on your local hard-disk, where your project is.&nbsp;</div><div><br/></div><div>For me this is: C:\Users\roland\WebstormProjects\Example\app</div><div><br/></div><div>The deployment path is the path on the server where Webstorm will put your files. It should look something like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>but instead of app-name, use your app-name&nbsp;</div><div><br/></div><div><span style="font-size: 12px;">TIP: Set up separate app names for each group member, so you can use the same server but have parallell apps.&nbsp;</span></div><div><br/></div><div>The web path would be something like this: /apps/app-name</div><div><br/></div><div><br/></div><div>[[File:Webstorm configuration upload 2.png]]<br/></div><div><br/></div><div><br/></div><div>Under 'Excluded paths', you need to exclude your manifest file, since you don't want to overwrite the server's version of this.&nbsp;</div><div><br/></div><div>My excluded path says this: C:/Users/roland/WebstormProjects/Example/app/manifest.webapp</div><div><br/></div><div>[[File:Webstorm configuration upload 3.png]]<br/></div><div><br/></div><div>You can experiment with 'automatic upload' to upload files automatically as you save them.</div><div><br/></div><div>Remember that you have to refresh your browser to get the new files. They are cached in your browser.&nbsp;</div><div><br/></div></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Webstorm_deploy&diff=1744Webstorm deploy2014-11-12T13:39:53Z<p>Roland@uio.no: </p>
<hr />
<div><div>You can set up webstorm to deploy your local project files using SFTP (SSH) to the group server. This is a simple way to update your server so that you can test the files. Other IDEs support similar deployment functions, but Webstorm only is covered here.&nbsp;</div><div><br/></div><div>First install an app using the standard web dhis interface. You files will be available in a folder like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>which will be the following address on your server:</div><div><br/></div><div>[http://servername/apps/app-name http://servername/apps/app-name]</div><div><br/></div><div>Go to Tools->Deployment->Configuration in the menu.&nbsp;</div><div><br/></div><div>A window will appear, and click + to add a new service.<br/></div><div>[[File:Webstorm configuration upload 1.png]]<br/></div><div>&nbsp;</div><div><br/></div><div>Then enter your server name, '/' as the root path and your UIO username and password (the same as you use to SSH into the server).&nbsp;</div><div><br/></div><div>The under mappings, add a mapping directory.&nbsp;</div><div><br/></div><div>The local path should be on your local hard-disk, where your project is.&nbsp;</div><div><br/></div><div>For me this is: C:\Users\roland\WebstormProjects\Example\app</div><div><br/></div><div>The deployment path is the path on the server where Webstorm will put your files. It should look something like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>but instead of app-name, use your app-name&nbsp;</div><div><br/></div><div>TIP: Set up separate app names for each group member, so you can use the same server but have parallell apps.&nbsp;</div><div><br/></div><div>The web path would be something like this: /apps/app-name</div><div><br/></div><div>Under 'Excluded paths', you need to exclude your manifest file, since you don't want to overwrite the server's version of this.&nbsp;</div><div><br/></div><div>My excluded path says this: C:/Users/roland/WebstormProjects/Example/app/manifest.webapp</div><div><br/></div><div>[[File:Webstorm configuration upload 3.png]]<br/></div><div><br/></div><div>You can experiment with 'automatic upload' to upload files automatically as you save them.</div><div><br/></div><div>Remember that you have to refresh your browser to get the new files. They are cached in your browser.&nbsp;</div><div><br/></div></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Webstorm_deploy&diff=1743Webstorm deploy2014-11-12T13:39:25Z<p>Roland@uio.no: </p>
<hr />
<div><div>You can set up webstorm to deploy your local project files using SFTP (SSH) to the group server. This is a simple way to update your server so that you can test the files. Other IDEs support similar deployment functions, but Webstorm only is covered here.&nbsp;</div><div><br/></div><div>First install an app using the standard web dhis interface. You files will be available in a folder like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>which will be the following address on your server:</div><div><br/></div><div>[http://servername/apps/app-name http://servername/apps/app-name]</div><div><br/></div><div>Go to Tools->Deployment->Configuration in the menu.&nbsp;</div><div><br/></div><div>A window will appear, and click + to add a new service.<br/></div><div>[[File:Webstorm configuration upload 1.png]]<br/></div><div>&nbsp;</div><div><br/></div><div>Then enter your server name, '/' as the root path and your UIO username and password (the same as you use to SSH into the server).&nbsp;</div><div><br/></div><div>The under mappings, add a mapping directory.&nbsp;</div><div><br/></div><div>The local path should be on your local hard-disk, where your project is.&nbsp;</div><div><br/></div><div>For me this is: C:\Users\roland\WebstormProjects\Example\app</div><div><br/></div><div>The deployment path is the path on the server where Webstorm will put your files. It should look something like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>but instead of app-name, use your app-name&nbsp;</div><div><br/></div><div>TIP: Set up separate app names for each group member, so you can use the same server but have parallell apps.&nbsp;</div><div><br/></div><div>The web path would be something like this: /apps/app-name</div><div><br/></div><div>Under 'Excluded paths', you need to exclude your manifest file, since you don't want to overwrite the server's version of this.&nbsp;</div><div><br/></div><div>My excluded path says this: C:/Users/roland/WebstormProjects/Example/app/manifest.webapp</div><div><br/></div><div>You can experiment with 'automatic upload' to upload files automatically as you save them.</div><div><br/></div><div>Remember that you have to refresh your browser to get the new files. They are cached in your browser.&nbsp;</div><div><br/></div></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Webstorm_deploy&diff=1742Webstorm deploy2014-11-12T13:38:23Z<p>Roland@uio.no: </p>
<hr />
<div><div>You can set up webstorm to deploy your local project files using SFTP (SSH) to the group server. This is a simple way to update your server so that you can test the files. Other IDEs support similar deployment functions, but Webstorm only is covered here.&nbsp;</div><div><br/></div><div>First install an app using the standard web dhis interface. You files will be available in a folder like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>which will be the following address on your server:</div><div><br/></div><div>http://servername/apps/app-name</div><div><br/></div><div>Go to Tools->Deployment->Configuration in the menu.&nbsp;</div><div><br/></div><div>A window will appear, and click + to add a new service.&nbsp;</div><div><br/></div><div>Then enter your server name, '/' as the root path and your UIO username and password (the same as you use to SSH into the server).&nbsp;</div><div><br/></div><div>The under mappings, add a mapping directory.&nbsp;</div><div><br/></div><div>The local path should be on your local hard-disk, where your project is.&nbsp;</div><div><br/></div><div>For me this is: C:\Users\roland\WebstormProjects\Example\app</div><div><br/></div><div>The deployment path is the path on the server where Webstorm will put your files. It should look something like this:</div><div><br/></div><div>/usr/share/tomcat/webapps/ROOT/apps/app-name</div><div><br/></div><div>but instead of app-name, use your app-name&nbsp;</div><div><br/></div><div>TIP: Set up separate app names for each group member, so you can use the same server but have parallell apps.&nbsp;</div><div><br/></div><div>The web path would be something like this: /apps/app-name</div><div><br/></div><div>Under 'Excluded paths', you need to exclude your manifest file, since you don't want to overwrite the server's version of this.&nbsp;</div><div><br/></div><div>My excluded path says this: C:/Users/roland/WebstormProjects/Example/app/manifest.webapp</div><div><br/></div><div>You can experiment with 'automatic upload' to upload files automatically as you save them.</div><div><br/></div><div>Remember that you have to refresh your browser to get the new files. They are cached in your browser.&nbsp;</div><div><br/></div></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Webstorm_deploy&diff=1741Webstorm deploy2014-11-12T13:29:09Z<p>Roland@uio.no: </p>
<hr />
<div><p>You can set up Webstorm to deploy your local files to the external group server easily. This is good to do during development.&#160;<br />
</p><p><br /><br />
<img _fck_mw_valid="false" _fck_mw_filename="Webstorm configuration upload 1" alt="" class="fck_mw_notfound" /><br />
</p><p><img _fck_mw_valid="false" _fck_mw_filename="Webstorm configuration upload 2" alt="" class="fck_mw_notfound" /><br />
</p><p>You should exclude your manifest file from being uploaded, since the one on your local disk should be different from the one that's on the server. The one on the server is changed automatically as the app is installed. <br />
</p><p><img _fck_mw_valid="false" _fck_mw_filename="Webstorm configuration upload 3" alt="" class="fck_mw_notfound" /><br />
</p><span class="fck_mw_category" sort="">Pages with broken file links</span></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=File:Webstorm_configuration_upload_1.png&diff=1740File:Webstorm configuration upload 1.png2014-11-12T13:26:34Z<p>Roland@uio.no: </p>
<hr />
<div></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=File:Webstorm_configuration_upload_3.png&diff=1739File:Webstorm configuration upload 3.png2014-11-12T13:24:31Z<p>Roland@uio.no: </p>
<hr />
<div></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Webstorm_deploy&diff=1738Webstorm deploy2014-11-12T13:23:53Z<p>Roland@uio.no: </p>
<hr />
<div>You can set up Webstorm to deploy your local files to the external group server easily. This is good to do during development.&nbsp;<br />
<br />
<br />
[[File:Webstorm configuration upload 1]]<br />
<br />
[[File:Webstorm configuration upload 2]]<br />
<br />
You should exclude your manifest file from being uploaded, since the one on your local disk should be different from the one that's on the server. The one on the server is changed automatically as the app is installed. <br />
<br />
[[File:Webstorm configuration upload 3]]</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Webstorm_deploy&diff=1737Webstorm deploy2014-11-12T13:23:02Z<p>Roland@uio.no: Created page with "You can set up Webstorm to deploy your local files to the external group server easily. This is good to do during development.&nbsp;"</p>
<hr />
<div>You can set up Webstorm to deploy your local files to the external group server easily. This is good to do during development.&nbsp;</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=173320162014-11-12T13:17:15Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2014 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2014.&nbsp;<br />
<br />
The 2013 page is available [[2013|here]].&nbsp;<br />
<br />
The overview of group project tasks can be found [https://docs.google.com/presentation/d/10b7ptKaA2nH-YeCm6tRCNs7onhs20z9UZzfVMZHnXjM/pub?start=false&loop=false&delayms=60000 here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*How to [[webstorm_deploy|deploy your project files easily from Webstorm]], so you can edit files in Webstorm, but test on a remote server.&nbsp;<br />
*It is not possible to upload the same app twice to DHIS2. If you want to update the app, you either have to edit the files directly on the server (log in using ssh) or delete it and reinstall it via the web. You delete the app via the web by going tp App management -> Settings and the clicking the name of the app, and pressing 'Delete'.&nbsp;<br />
*When you zip your app files, make sure you zip then so that the AppManifest and other files are in the root of the zip-file. If you select the folder and zip, the files won't be zipped correctly. You need to go into your folder and then select all files and zip.&nbsp;<br />
*[[GroupServer|This page]] has information about how to log in and use the group servers. Feel free to add more information to the page .<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [http://git.uio.no/git/?p=inf5750/roland/Example.git;a=blob_plain;f=example.zip;hb=HEAD Mobilars' example app], fixed with a bug that made it not who the Leaflet map properly.&nbsp;Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
*How to install [http://jeffmcmahan.info/blog/installing-cordova-on-linux/ Cordova] because there's a lot of hidden problems with python if not installed when you're installing nodejs. You have to remember when you run the android command(which is the same as the android sdk manager) you need to add api x(x depending on which version you're going to test on) or else you might get problems when running 'cordova platform add android'. It may also be mentioned if you have problems running the 'cordova emulate android', you could try and make your own custom avd with the command 'android avd' instead, this will make a default image so that you can skip to the 'cordova run android'.<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
Add a link to your own group's main page here.&nbsp;<br />
<br />
*Groupname (link)<br />
*[[Foxtrot]]<br />
*[[Jura]]<br />
*[[FireHorse]]<br />
*[[Jokrijo]]<br />
*[[INF5750Unity]]<br />
*[[VJFS]]<br />
*[[ANNK]]<br />
*[[BHJS]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/JonasBrothers%2B1 JonasBrothers+1]<br />
*[[Overdressed]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/CAO CAO]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/ØJSS ØJSS]<br />
*[[Bestevenner]]<br />
*[[TeamNSA]]<br />
*[[Architect Wireless Web Services|Architect_Wireless_Web_Services]]<br />
*[[The kake is a lie]]<br />
*[[InvalidGroupNameException]]<br />
*[[Placeholder]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/PHEM PHEM]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/TheAcademy [TheAcademy]]<br />
*[[Stack workers]]<br />
*[[Untitled Group]]<br />
*[[JQwerty|JQwerty]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Meatballs Meatballs]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/NinjaTurtles Ninja Turtles]<br />
*[[Fabulous four|Fabulous four]]<br />
*[[Gitignore]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Wapp Wapp]<br />
*[[MORDE]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/GHR GHR]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/JM_inf5750 JM INF5750]<br />
<br />
<br />
<br />
Resources<br />
<br />
[https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html]<br />
<br />
[https://www.dhis2.org/appstore https://www.dhis2.org/appstore]</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=161120162014-11-05T21:34:24Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2014 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2014.&nbsp;<br />
<br />
The 2013 page is available [[2013|here]].&nbsp;<br />
<br />
The overview of group project tasks can be found [https://docs.google.com/presentation/d/10b7ptKaA2nH-YeCm6tRCNs7onhs20z9UZzfVMZHnXjM/pub?start=false&loop=false&delayms=60000 here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*It is not possible to upload the same app twice to DHIS2. If you want to update the app, you either have to edit the files directly on the server (log in using ssh) or delete it and reinstall it via the web. You delete the app via the web by going tp App management -> Settings and the clicking the name of the app, and pressing 'Delete'.&nbsp;<br />
*When you zip your app files, make sure you zip then so that the AppManifest and other files are in the root of the zip-file. If you select the folder and zip, the files won't be zipped correctly. You need to go into your folder and then select all files and zip.&nbsp;<br />
*[[GroupServer|This page]] has information about how to log in and use the group servers. Feel free to add more information to the page .<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [http://git.uio.no/git/?p=inf5750/roland/Example.git;a=blob_plain;f=example.zip;hb=HEAD Mobilars' example app], fixed with a bug that made it not who the Leaflet map properly.&nbsp;Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
*How to install [http://jeffmcmahan.info/blog/installing-cordova-on-linux/ Cordova] because there's a lot of hidden problems with python if not installed when you're installing nodejs. You have to remember when you run the android command(which is the same as the android sdk manager) you need to add api x(x depending on which version you're going to test on) or else you might get problems when running 'cordova platform add android'. It may also be mentioned if you have problems running the 'cordova emulate android', you could try and make your own custom avd with the command 'android avd' instead, this will make a default image so that you can skip to the 'cordova run android'.<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
Add a link to your own group's main page here.&nbsp;<br />
<br />
*Groupname (link)<br />
*[[Foxtrot]]<br />
*[[Jura]]<br />
*[[FireHorse]]<br />
*[[Jokrijo]]<br />
*[[INF5750Unity]]<br />
*[[VJFS]]<br />
*[[ANNK]]<br />
*[[BHJS]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/JonasBrothers%2B1 JonasBrothers+1]<br />
*[[Overdressed]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/CAO CAO]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/ØJSS ØJSS]<br />
*[[Bestevenn]]<br />
*[[TeamNSA]]<br />
*[[Architect Wireless Web Services|Architect_Wireless_Web_Services]]<br />
*[[The kake is a lie]]<br />
*[[InvalidGroupNameException]]<br />
*[[Placeholder]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/PHEM PHEM]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/TheAcademy [TheAcademy]]<br />
*[[Stack workers]]<br />
*[[Untitled Group]]<br />
*[[JQwerty|JQwerty]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Meatballs Meatballs]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/NinjaTurtles Ninja Turtles]<br />
*[[Fabulous four|Fabulous four]]<br />
*[[Gitignore]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Wapp Wapp]<br />
*[[MORDE]]<br />
<br />
<br />
<br />
Resources<br />
<br />
[https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html]<br />
<br />
[https://www.dhis2.org/appstore https://www.dhis2.org/appstore]</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=GroupServer&diff=1598GroupServer2014-11-05T14:23:20Z<p>Roland@uio.no: </p>
<hr />
<div>= <span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Introduction</span></span> =<br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Each group will be given a virtual server to use for your groups project. To see if your group has been allocated a server yet, please look at the group list available </span>[https://docs.google.com/a/roland.bz/spreadsheets/d/1wJ_RNi7ztY2xFRP-m5iqSaajG1KR_neET_R2jlpNmj4/pubhtml <span style="font-size: 15px; font-family: Arial; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">here</span>]<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The server has the following name template: inf5750-&lt;groupnumber&gt;.uio.no</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">For example: inf5750-1.uio.no</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">To log in to this server, you may need to be logging in from a UIO computer (such as login.uio.no). Use SSH and use your normal UIO username and password to log in.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">If you are not able to log in, please contact a group teacher or Lars Roland for help.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Your server is pre-installed with Postgres, Tomcat and DHIS2. The sample database has been installed on the postgres server.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The postgres server has username dhis and password dhis.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">You can use psql to log into postgres if you want to do changes. Use the following command:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">psql -U dhis</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">with the password dhis</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">You can log into the web-interface of dhis using admin as a user and district as a password.</span></span><br />
<br />
= Various notes =<br />
<div style="font-family: arial; font-size: small;">1. The home directories are not set. I'm looking into how to fix this, but it shouldn't be a major concern. Running SSH from the standard location can be a problem for example if you want to use GIT, but there are other ways of accessing GIT than SSH.&nbsp;</div><div style="font-family: arial; font-size: small;"><br/></div><div style="font-family: arial; font-size: small;">2. The setting called "<span style="font-family: LiberationSans, arial, sans-serif; font-size: 13px; line-height: 18.6666660308838px;">App base URL</span>" in the dhis2 app management is pointing to the wrong URL (inf5750-mal), which means your links will come out wrong. You should fix this manually inside your apps.&nbsp;</div><div style="font-family: arial; font-size: small;"><br/></div><div style="font-family: arial; font-size: small;">3. When installing an app, it's been reported that the files get the wrong permissions. A workaround is to install the files manually, but if you want to install via the web, talk to a group teacher or me to open up access to the files.&nbsp;</div><div style="font-family: arial; font-size: small;"><br />
The example app available on&nbsp;[http://git.uio.no/git/?p=inf5750/roland/Example.git;a=blob_plain;f=example.zip;hb=HEAD this link]&nbsp;had a few bugs:<br />
<br />
1. The links to external libraries were not https, which caused some issues when loaded on the demo-server that uses https. Leaflet and jquery files are now bundled with the app.&nbsp;<br />
<br />
2. The angularjs-controller had a bug for the leaflet page.&nbsp;<br />
<br />
Note also that the example app already installed&nbsp;on your server&nbsp;probably doesn't work out-of-the box. You need to reinstall the app, since the API-url is pointing to the wrong URL (inf5750-mal).&nbsp;<br />
</div><br />
= <span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Useful locations</span></span> =<br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The hibernate.properties for the dhis installation is available here:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/opt/dhis/hibernate.properties</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Your tomcat server webapp is available in the following directory:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/var/lib/tomcat/webapps/ROOT/</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 13px; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;">The web apps installed on DHIS2 are installed in the following directory (which should be writable also for your user)</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/var/lib/tomcat/webapps/ROOT/apps</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 13px; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;">When you install your webapp into DHIS2, you can also modify the files in the above directory directly instead of uploading it via DHIS2 every time.</span></span></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=159620162014-11-05T14:18:43Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2014 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2014.&nbsp;<br />
<br />
The 2013 page is available [[2013|here]].&nbsp;<br />
<br />
The overview of group project tasks can be found [https://docs.google.com/presentation/d/10b7ptKaA2nH-YeCm6tRCNs7onhs20z9UZzfVMZHnXjM/pub?start=false&loop=false&delayms=60000 here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*When you zip your app files, make sure you zip then so that the AppManifest and other files are in the root of the zip-file. If you select the folder and zip, the files won't be zipped correctly. You need to go into your folder and then select all files and zip.&nbsp;<br />
*[[GroupServer|This page]] has information about how to log in and use the group servers. Feel free to add more information to the page .<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [http://git.uio.no/git/?p=inf5750/roland/Example.git;a=blob_plain;f=example.zip;hb=HEAD Mobilars' example app], fixed with a bug that made it not who the Leaflet map properly.&nbsp;Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
*How to install [http://jeffmcmahan.info/blog/installing-cordova-on-linux/ Cordova] because there's a lot of hidden problems with python if not installed when you're installing nodejs. You have to remember when you run the android command(which is the same as the android sdk manager) you need to add api x(x depending on which version you're going to test on) or else you might get problems when running 'cordova platform add android'. It may also be mentioned if you have problems running the 'cordova emulate android', you could try and make your own custom avd with the command 'android avd' instead, this will make a default image so that you can skip to the 'cordova run android'.<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
Add a link to your own group's main page here.&nbsp;<br />
<br />
*Groupname (link)<br />
*[[Foxtrot]]<br />
*[[Jura]]<br />
*[[FireHorse]]<br />
*[[Jokrijo]]<br />
*[[INF5750Unity]]<br />
*[[VJFS]]<br />
*[[ANNK]]<br />
*[[BHJS]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/JonasBrothers%2B1 JonasBrothers+1]<br />
*[[Overdressed]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/CAO CAO]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/ØJSS ØJSS]<br />
*[[Bestevenn]]<br />
*[[TeamNSA]]<br />
*[[Architect Wireless Web Services|Architect_Wireless_Web_Services]]<br />
*[[The kake is a lie]]<br />
*[[InvalidGroupNameException]]<br />
*[[Placeholder]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/PHEM PHEM]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/TheAcademy [TheAcademy]]<br />
*[[Stack workers]]<br />
*[[Untitled Group]]<br />
*[[JQwerty|JQwerty]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Meatballs Meatballs]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/NinjaTurtles Ninja Turtles]<br />
*[[Fabulous four|Fabulous four]]<br />
*[[Gitignore]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Wapp Wapp]<br />
*[[MORDE]]<br />
<br />
<br />
<br />
Resources<br />
<br />
[https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html]<br />
<br />
[https://www.dhis2.org/appstore https://www.dhis2.org/appstore]</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=158520162014-11-05T12:20:50Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2014 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2014.&nbsp;<br />
<br />
The 2013 page is available [[2013|here]].&nbsp;<br />
<br />
The overview of group project tasks can be found [https://docs.google.com/presentation/d/10b7ptKaA2nH-YeCm6tRCNs7onhs20z9UZzfVMZHnXjM/pub?start=false&loop=false&delayms=60000 here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*When you zip your app files, make sure you zip then so that the AppManifest and other files are in the root of the zip-file. If you select the folder and zip, the files won't be zipped correctly. You need to go into your folder and then select all files and zip.&nbsp;<br />
*[[GroupServer|This page]] has information about how to log in and use the group servers. Feel free to add more information to the page .<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [http://git.uio.no/git/?p=inf5750/roland/Example.git;a=blob_plain;f=example.zip;hb=HEAD Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
*How to install [http://jeffmcmahan.info/blog/installing-cordova-on-linux/ Cordova] because there's a lot of hidden problems with python if not installed when you're installing nodejs. You have to remember when you run the android command(which is the same as the android sdk manager) you need to add api x(x depending on which version you're going to test on) or else you might get problems when running 'cordova platform add android'. It may also be mentioned if you have problems running the 'cordova emulate android', you could try and make your own custom avd with the command 'android avd' instead, this will make a default image so that you can skip to the 'cordova run android'.<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
Add a link to your own group's main page here.&nbsp;<br />
<br />
*Groupname (link)<br />
*[[Foxtrot]]<br />
*[[Jura]]<br />
*[[FireHorse]]<br />
*[[Jokrijo]]<br />
*[[INF5750Unity]]<br />
*[[VJFS]]<br />
*[[ANNK]]<br />
*[[BHJS]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/JonasBrothers%2B1 JonasBrothers+1]<br />
*[[Overdressed]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/CAO CAO]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/ØJSS ØJSS]<br />
*[[Bestevenn]]<br />
*[[TeamNSA]]<br />
*[[Architect Wireless Web Services|Architect_Wireless_Web_Services]]<br />
*[[The kake is a lie]]<br />
*[[InvalidGroupNameException]]<br />
*[[Placeholder]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/PHEM PHEM]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/TheAcademy [TheAcademy]]<br />
*[[Stack workers]]<br />
*[[Untitled Group]]<br />
*[[JQwerty|JQwerty]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Meatballs Meatballs]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/NinjaTurtles Ninja Turtles]<br />
*[[Fabulous four|Fabulous four]]<br />
*[[Gitignore]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Wapp Wapp]<br />
<br />
<br />
<br />
Resources<br />
<br />
[https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html]<br />
<br />
[https://www.dhis2.org/appstore https://www.dhis2.org/appstore]</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=GroupServer&diff=1568GroupServer2014-11-05T08:18:00Z<p>Roland@uio.no: </p>
<hr />
<div>= <span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Introduction</span></span> =<br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Each group will be given a virtual server to use for your groups project. To see if your group has been allocated a server yet, please look at the group list available </span>[https://docs.google.com/a/roland.bz/spreadsheets/d/1wJ_RNi7ztY2xFRP-m5iqSaajG1KR_neET_R2jlpNmj4/pubhtml <span style="font-size: 15px; font-family: Arial; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">here</span>]<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The server has the following name template: inf5750-&lt;groupnumber&gt;.uio.no</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">For example: inf5750-1.uio.no</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">To log in to this server, you may need to be logging in from a UIO computer (such as login.uio.no). Use SSH and use your normal UIO username and password to log in.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">If you are not able to log in, please contact a group teacher or Lars Roland for help.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Your server is pre-installed with Postgres, Tomcat and DHIS2. The sample database has been installed on the postgres server.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The postgres server has username dhis and password dhis.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">You can use psql to log into postgres if you want to do changes. Use the following command:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">psql -U dhis</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">with the password dhis</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">You can log into the web-interface of dhis using admin as a user and district as a password.</span></span><br />
<br />
= <span><span style="font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;"></span></span>Various notes =<br />
<div style="font-family: arial; font-size: small;">1. The home directories are not set. I'm looking into how to fix this, but it shouldn't be a major concern. Running SSH from the standard location can be a problem for example if you want to use GIT, but there are other ways of accessing GIT than SSH.&nbsp;</div><div style="font-family: arial; font-size: small;"><br/></div><div style="font-family: arial; font-size: small;">2. The setting called "<span style="font-family: LiberationSans, arial, sans-serif; font-size: 13px; line-height: 18.6666660308838px;">App base URL</span>" in the dhis2 app management is pointing to the wrong URL (inf5750-mal), which means your links will come out wrong. You should fix this manually inside your apps.&nbsp;</div><div style="font-family: arial; font-size: small;"><br/></div><div style="font-family: arial; font-size: small;">3. When installing an app, it's been reported that the files get the wrong permissions. A workaround is to install the files manually, but if you want to install via the web, talk to a group teacher or me to open up access to the files.&nbsp;</div><br />
= <span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Useful locations</span></span> =<br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The hibernate.properties for the dhis installation is available here:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/opt/dhis/hibernate.properties</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Your tomcat server webapp is available in the following directory:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/var/lib/tomcat/webapps/ROOT/</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 13px; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;">The web apps installed on DHIS2 are installed in the following directory (which should be writable also for your user)</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/var/lib/tomcat/webapps/ROOT/apps</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 13px; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;">When you install your webapp into DHIS2, you can also modify the files in the above directory directly instead of uploading it via DHIS2 every time.</span></span></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=135120162014-10-29T12:38:37Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2014 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2014.&nbsp;<br />
<br />
The 2013 page is available [[2013|here]].&nbsp;<br />
<br />
The overview of group project tasks can be found [https://docs.google.com/presentation/d/10b7ptKaA2nH-YeCm6tRCNs7onhs20z9UZzfVMZHnXjM/pub?start=false&loop=false&delayms=60000 here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*[[GroupServer|This page]] has information about how to log in and use the group servers. Feel free to add more information to the page .<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [http://git.uio.no/git/?p=inf5750/roland/Example.git;a=blob_plain;f=example.zip;hb=HEAD Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
Add a link to your own group's main page here.&nbsp;<br />
<br />
*Groupname (link)<br />
*[[Foxtrot]]<br />
*[[Jura]]<br />
*[[FireHorse]]<br />
*[[Jokrijo]]<br />
*[[INF5750Unity]]<br />
*[[VJFS]]<br />
*[[ANNK]]<br />
*[[BHJS]]<br />
*[[Overdressed]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/CAO CAO]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/ØJSS ØJSS]<br />
*[[Bestevenn]]<br />
*[[TeamNSA]]<br />
*[[Architect Wireless Web Services|Architect_Wireless_Web_Services]]<br />
*[[The kake is a lie]]<br />
*[[InvalidGroupNameException]]<br />
*[[Placeholder]]<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/PHEM PHEM]</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=GroupServer&diff=1350GroupServer2014-10-29T12:37:32Z<p>Roland@uio.no: Created page with "= <span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; bac..."</p>
<hr />
<div>= <span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Introduction</span></span> =<br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Each group will be given a virtual server to use for your groups project. To see if your group has been allocated a server yet, please look at the group list available </span>[https://docs.google.com/a/roland.bz/spreadsheets/d/1wJ_RNi7ztY2xFRP-m5iqSaajG1KR_neET_R2jlpNmj4/pubhtml <span style="font-size: 15px; font-family: Arial; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">here</span>]<span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The server has the following name template: inf5750-&lt;groupnumber&gt;.uio.no</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">For example: inf5750-1.uio.no</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">To log in to this server, you may need to be logging in from a UIO computer (such as login.uio.no). Use SSH and use your normal UIO username and password to log in.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">If you are not able to log in, please contact a group teacher or Lars Roland for help.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Your server is pre-installed with Postgres, Tomcat and DHIS2. The sample database has been installed on the postgres server.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The postgres server has username dhis and password dhis.</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">You can use psql to log into postgres if you want to do changes. Use the following command:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">psql -U dhis</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">with the password dhis</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">You can log into the web-interface of dhis using admin as a user and district as a password.</span></span><br />
<br />
= <span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Useful locations</span></span> =<br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">The hibernate.properties for the dhis installation is available here:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/opt/dhis/hibernate.properties</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Arial; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">Your tomcat server webapp is available in the following directory:</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/var/lib/tomcat/webapps/ROOT/</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 13px; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;">The web apps installed on DHIS2 are installed in the following directory (which should be writable also for your user)</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 15px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">/var/lib/tomcat/webapps/ROOT/apps</span></span><br />
<br />
<span id="docs-internal-guid-debf0b1a-5be8-918f-cf51-3055261d036c"><span style="font-size: 13px; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;">When you install your webapp into DHIS2, you can also modify the files in the above directory directly instead of uploading it via DHIS2 every time.</span></span></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=109720162014-10-16T11:06:49Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2014 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2014.&nbsp;<br />
<br />
The 2013 page is available [[2013|here]].&nbsp;<br />
<br />
The overview of group project tasks can be found [https://docs.google.com/presentation/d/10b7ptKaA2nH-YeCm6tRCNs7onhs20z9UZzfVMZHnXjM/pub?start=false&loop=false&delayms=60000 here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [http://git.uio.no/git/?p=inf5750/roland/Example.git;a=blob_plain;f=example.zip;hb=HEAD Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
Add a link to your own group's main page here.&nbsp;<br />
<br />
*Groupname (link)<br />
*</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=109620162014-10-08T12:45:18Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2014 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2014.&nbsp;<br />
<br />
The 2013 page is available [[2013|here]].&nbsp;<br />
<br />
The overview of group project tasks can be found [https://docs.google.com/presentation/d/10b7ptKaA2nH-YeCm6tRCNs7onhs20z9UZzfVMZHnXjM/pub?start=false&loop=false&delayms=60000 here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
Add a link to your own group's main page here.&nbsp;<br />
<br />
*Groupname (link)<br />
*</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=109520162014-10-03T09:34:08Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2014 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2014.&nbsp;<br />
<br />
The 2013 page is available [[2013|here]].&nbsp;<br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp;<br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
Add a link to your own group's main page here.&nbsp;<br />
<br />
*Groupname (link)<br />
*</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2013&diff=109420132014-10-03T09:31:42Z<p>Roland@uio.no: Created page with "= INF5750 2013 = This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; The overview of group project tasks can be found [http://www.uio.no/studier/emn..."</p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp;<br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp;<br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones:<br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki<br />
<br />
Show understanding of DHIS2 web apps<br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML<br />
<br />
Uploadable as DHIS2 web app<br />
<br />
*Milestone 3: 30th November<br />
*Finished, if applicable also with mobile app.<br />
*Final delivery: 8th December<br />
*Presentation: 9th December<br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them.<br />
<br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix).<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events.<br />
*For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course.<br />
*[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
*How to [[Edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
<br />
== Installing DHIS2 sample data ==<br />
<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp;<br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]]<br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]]<br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]]<br />
*[[Embed-apps-1 Embedding apps in patient tracker]]<br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]]<br />
*[[Geo-1|Geo-1 Geolocation data entry]]<br />
*[[Geo2]] Geolocation data entry<br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]]<br />
*[[Kramers|Kramers Geolocation data entry]]<br />
*[[Mandalorians Geolocation data entry]]<br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]]<br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]]<br />
*[[HKH Survey]]<br />
*[[Laget|Laget Survey]]<br />
*[[Los POJOs Survey]]<br />
*[[N.T.K Survey]]<br />
*[[Super ultra team maximum Survey]]<br />
*[[Raptor]] Visualization<br />
*[[Trust us, we're Scientists! Visualization]]<br />
*[[Visual-1]] Visualization<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br />
<br />
[[File:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]]</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=App_settings_on_dev_and_demo_servers&diff=686App settings on dev and demo servers2013-11-22T11:55:09Z<p>Roland@uio.no: Created page with "It seems the app settings on the dev/demo servers tend to change (overnight??), leaving the app function useless. If the apps suddenly disappear, please go to Maintenance -> ..."</p>
<hr />
<div>It seems the app settings on the dev/demo servers tend to change (overnight??), leaving the app function useless. <br />
<br />
If the apps suddenly disappear, please go to <br />
<br />
Maintenance -> App Management --> Settings<br />
<br />
and change the settings to:<br />
<br />
App installation folder:<br />
/ifi/asgard/p00/dhis/www_docs-apps.dhis2.org/apps<br />
<br />
App base URL:<br />
http://apps.dhis2.org/apps<br />
<br />
These are the same for both the demo and dev server. <br />
<br />
For the settings to update, you must save it and then re-upload your app. Then all the apps magically reappear.</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=68520162013-11-22T11:53:13Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
*[[App settings on dev and demo servers]] (sometimes the settings change to the wrong value, read here to know how to fix). <br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events. <br />
* For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course. <br />
* [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
* How to [[edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
== Installing DHIS2 sample data ==<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]] <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization <br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Edit_dhis2_web_pages&diff=675Edit dhis2 web pages2013-11-20T12:58:50Z<p>Roland@uio.no: </p>
<hr />
<div>If your project involves editing the existing DHIS2 web pages, rather than just making a downloadable web app, you should read the following. <br />
<br />
DHIS2 uses Struts and Velocity to render web pages.&nbsp; <br />
<br />
The Velocity templates have the extension *.vm and exist in the src/main/webapp/&lt;project-name&gt;/ directories.&nbsp; <br />
<br />
Each web module is in a separate Maven project, so for example 'Tracker' is in 'dhis-web-caseentry', and the directory to find the .vm files is:&nbsp;src/main/webapp/dhis-web-casentry/ <br />
<br />
Our suggestion for this web project is that you make minimum changes in the web pages and instead use the web app concept to upload your logic. So you need to add a &lt;script&gt; tag in the relevant page, linking to a Javascript file in your web app, as well as adding other elements such as DIV if you need to identify and replace some content. You can for example use JQuery to replace HTML tags with your own dynamic content. In your web app (uploaded as a DHIS2 app), you can make web api calls to get content from DHIS.&nbsp;<br> <br />
<br />
Make special HTML tags that are app-dependent hidden when the page loads, so that the page looks good also if the app isn't installed on the server.&nbsp; <br />
<br />
As an example, if you want to make changes to the patient dashboard (in Tracker), you want to edit the patientDashboard.vm. If you want a new box after the three boxes on the existing screen, find the text in the page: <br />
<pre>&lt;td&gt;<br />
<br />
&lt;div class="link-area" style="width:120%"&gt;<br />
&lt;p class='header'&gt;<br />
$i18n.getString("relationships")<br />
</pre> <br />
Below the closing &lt;/td&gt;, insert a new element. For example: <br />
<pre>&lt;td&gt;<br />
&lt;div id="applet1" class="link-area"&gt;<br />
&lt;p class='header'&gt;<br />
A header<br />
&lt;/p&gt;<br />
&lt;div class="contentProviderTable"&gt;<br />
Some content.<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
</pre> <br />
In this case you also need to change the&nbsp;style="width:120%" in the div above so that it doesn't overlap with yours.&nbsp;<br />
<br />
And then you add a script tag on the bottom of the page. <br />
<pre>&lt;script type="text/javascript" src="/apps/example/js/dashboard.js"&gt;&lt;/script&gt;<br />
</pre> <br />
Some of the web pages generated on the web server through .vm templates get loaded dynamically through Javascript, so you may not see their content using 'View source' in your browser. Use the Javascript console in your browser to see the real URLs that are called, and the data that is fetched.&nbsp;<br />
<br />
<br><br />
<br />
You may want to pass some other information from DHIS2 to your Javascript app. Such as for example which patient dashboard the javascript is called from, or which program is being browsed. You can do this by adding variables into the Velocity (.vm) files. These variables are inserted into the HTML on the server-side. <br />
<br />
One example could be to insert into the .vm file:<br />
<br />
<pre><br />
$patient.name has uid = $patient.uid and $patient.organisationUnit.uid <br />
</pre><br />
<br />
You could put the above into a script-tag and put them in a global javascript variable. <br />
<br />
<pre><br />
<script><br />
var patientName = $patient.name;<br />
var patientUid = $patient.uid;<br />
var orgunit = $patient.organisationUnit.uid;<br />
</script><br />
</pre><br />
<br />
If you're editing the patientDashboard.vm file, you may want to insert this at the top, since the patient-variable is used for some other patients (relatives) later in the page.</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Edit_dhis2_web_pages&diff=674Edit dhis2 web pages2013-11-20T12:34:12Z<p>Roland@uio.no: </p>
<hr />
<div>If your project involves editing the existing DHIS2 web pages, rather than just making a downloadable web app, you should read the following. <br />
<br />
DHIS2 uses Struts and Velocity to render web pages.&nbsp; <br />
<br />
The Velocity templates have the extension *.vm and exist in the src/main/webapp/&lt;project-name&gt;/ directories.&nbsp; <br />
<br />
Each web module is in a separate Maven project, so for example 'Tracker' is in 'dhis-web-caseentry', and the directory to find the .vm files is:&nbsp;src/main/webapp/dhis-web-casentry/ <br />
<br />
Our suggestion for this web project is that you make minimum changes in the web pages and instead use the web app concept to upload your logic. So you need to add a &lt;script&gt; tag in the relevant page, linking to a Javascript file in your web app, as well as adding other elements such as DIV if you need to identify and replace some content. You can for example use JQuery to replace HTML tags with your own dynamic content. In your web app (uploaded as a DHIS2 app), you can make web api calls to get content from DHIS.&nbsp;<br> <br />
<br />
Make special HTML tags that are app-dependent hidden when the page loads, so that the page looks good also if the app isn't installed on the server.&nbsp; <br />
<br />
As an example, if you want to make changes to the patient dashboard (in Tracker), you want to edit the patientDashboard.vm. If you want a new box after the three boxes on the existing screen, find the text in the page: <br />
<pre>&lt;td&gt;<br />
<br />
&lt;div class="link-area" style="width:120%"&gt;<br />
&lt;p class='header'&gt;<br />
$i18n.getString("relationships")<br />
</pre> <br />
Below the closing &lt;/td&gt;, insert a new element. For example: <br />
<pre>&lt;td&gt;<br />
&lt;div id="applet1" class="link-area"&gt;<br />
&lt;p class='header'&gt;<br />
A header<br />
&lt;/p&gt;<br />
&lt;div class="contentProviderTable"&gt;<br />
Some content.<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
</pre> <br />
In this case you also need to change the&nbsp;style="width:120%" in the div above so that it doesn't overlap with yours.&nbsp;<br />
<br />
And then you add a script tag on the bottom of the page. <br />
<pre>&lt;script type="text/javascript" src="/apps/example/js/dashboard.js"&gt;&lt;/script&gt;<br />
</pre> <br />
Some of the web pages generated on the web server through .vm templates get loaded dynamically through Javascript, so you may not see their content using 'View source' in your browser. Use the Javascript console in your browser to see the real URLs that are called, and the data that is fetched.&nbsp;<br />
<br />
<br><br />
<br />
You may want to pass some other information from DHIS2 to your Javascript app. Such as for example which patient dashboard the javascript is called from, or which program is being browsed. You can do this by adding variables into the Velocity (.vm) files. These variables are inserted into the HTML on the server-side. <br />
<br />
One example could be to insert into the .vm file:<br />
<br />
<pre><br />
$patient.name has uid = $patient.uid and $patient.organisationUnit.uid <br />
</pre><br />
<br />
You could put the above into a script-tag and put them in a global javascript variable. <br />
<br />
<pre><br />
<script><br />
var patientName = $patient.name;<br />
var patientUid = $patient.uid;<br />
var orgunit = $patient.organisationUnit.uid;<br />
</script><br />
</pre></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=67320162013-11-20T12:27:07Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
*[[Using the single event API on DHIS2]] (Useful for embedding-apps-in-tracker also)<br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events. <br />
* For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course. <br />
* [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
* How to [[edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
== Installing DHIS2 sample data ==<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]] <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization <br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=666Using the single event API on DHIS22013-11-19T14:35:06Z<p>Roland@uio.no: </p>
<hr />
<div>'''Note 1: If you want to make your own programs/stages etc, use the user 'system', 'System123' when creating these programs. If not, the programs may end up being private to your admin-user and not be visible to other users.&nbsp;''' <br />
<br />
Some random notes: <br />
<br />
Use /api/me to get the org unit of the logged in user, as well as other user-specific data. <br />
<br />
The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun that you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles. <br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '&gt;&gt;' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. For some tests it may also be useful to install the Postman Rest client extension to Chrome. <br />
<br />
Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8) if the user belongs to that org unit. <br />
<br />
Now find the program id you want to enter (or view) data for, by going to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: SINGLE_EVENTS_WITHOUT_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json <br />
<br />
There are two event APIs. One is the Event analytics, which is for more advanced analytics on events data, and the other is the events API. There is an important distinction. The Event Analytics API only shows events for yesterday and older. New events are NOT shown. This is very important to understand. '''Use the Events API, not the analytics API''' <br />
<br />
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html <br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json <br />
<br />
To retrieve a list of events, do the following: <br />
<br />
http://apps.dhis2.org/dev/api/events?orgUnit=A&amp;program=B&amp;startDate=2000-01-01&amp;endDate=2013-01-01 <br />
<br />
For example: <br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;startDate=2000-01-01&amp;endDate=2013-01-01 <br />
<br />
or for a patient-based program (with programstage). This one is relevant for the embedding-apps-in-tracker, but right now there is no patient-query variable, which we are hoping to add, but it may have to be added by the group themselves. <br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=uy2gU8kT1jF&amp;programStage=grIfo3oOf4Y&amp;startDate=2013-01-01&amp;endDate=2013-12-01 <br />
<br />
<br />
<br />
Here are two useful links to get the event data for the patient called NG-013. The data here should be gotten from the system, but you could start by hard-coding these event data in the web api call.&nbsp;<br />
<br />
eaDHS084uMp = the id for the ANC1 program stage<br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=uy2gU8kT1jF&amp;programStage=eaDHS084uMp&amp;startDate=2013-01-01&amp;endDate=2013-12-01&amp;person=fSofnQR6lAU<br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=uy2gU8kT1jF&amp;programStage=grIfo3oOf4Y&amp;startDate=2013-01-01&amp;endDate=2013-12-01&amp;person=fSofnQR6lAU<br />
<br />
'''Some of these new features are not available on Release 2.13 (last stable release), but must be fetched from trunk. This means you need to use http://apps.dhis2.org/dev/ (not (/demo) to test them. ''' <br />
<br />
<br> <br />
<br />
<br> <br />
<br />
= Enabling location =<br />
<br />
You have to manually go into the program-&gt;edit programstage settings on dev and turn on 'Capture coordinates' for the program to capture and show coordinates. Remember that the demo and dev database is reset every night, so you have to do this every day.&nbsp; <br />
<br />
You should use the apps.dhis2.org/dev server (not demo) when testing location.&nbsp;</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=664Using the single event API on DHIS22013-11-19T11:30:49Z<p>Roland@uio.no: </p>
<hr />
<div>'''Note 1: If you want to make your own programs/stages etc, use the user 'system', 'System123' when creating these programs. If not, the programs may end up being private to your admin-user and not be visible to other users.&nbsp;'''<br />
<br />
Some random notes:<br />
<br />
Use /api/me to get the org unit of the logged in user, as well as other user-specific data. <br />
<br />
The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun that you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles. <br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '&gt;&gt;' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. For some tests it may also be useful to install the Postman Rest client extension to Chrome. <br />
<br />
Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8) if the user belongs to that org unit. <br />
<br />
Now find the program id you want to enter (or view) data for, by going to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: SINGLE_EVENTS_WITHOUT_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json <br />
<br />
There are two event APIs. One is the Event analytics, which is for more advanced analytics on events data, and the other is the events API. There is an important distinction. The Event Analytics API only shows events for yesterday and older. New events are NOT shown. This is very important to understand. '''Use the Events API, not the analytics API''' <br />
<br />
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html <br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json <br />
<br />
To retrieve a list of events, do the following: <br />
<br />
http://apps.dhis2.org/dev/api/events?orgUnit=A&amp;program=B&amp;startDate=2000-01-01&amp;endDate=2013-01-01 <br />
<br />
For example: <br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;startDate=2000-01-01&amp;endDate=2013-01-01 <br />
<br />
or for a patient-based program (with programstage). This one is relevant for the embedding-apps-in-tracker, but right now there is no patient-query variable, which we are hoping to add, but it may have to be added by the group themselves. <br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=uy2gU8kT1jF&amp;programStage=grIfo3oOf4Y&amp;startDate=2013-01-01&amp;endDate=2013-12-01 <br />
<br />
'''Some of these new features are not available on Release 2.13 (last stable release), but must be fetched from trunk. This means you need to use http://apps.dhis2.org/dev/ (not (/demo) to test them. ''' <br />
<br />
<br> <br />
<br />
= Enabling location =<br />
<br />
You have to manually go into the program-&gt;edit programstage settings on dev and turn on 'Capture coordinates' for the program to capture and show coordinates. Remember that the demo and dev database is reset every night, so you have to do this every day.&nbsp; <br />
<br />
You should use the apps.dhis2.org/dev server (not demo) when testing location.&nbsp;</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=661Using the single event API on DHIS22013-11-19T08:54:54Z<p>Roland@uio.no: </p>
<hr />
<div>Use /api/me to get the org unit of the logged in user, as well as other user-specific data. <br />
<br />
The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun that you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles. <br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '&gt;&gt;' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. For some tests it may also be useful to install the Postman Rest client extension to Chrome. <br />
<br />
Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8) if the user belongs to that org unit. <br />
<br />
Now find the program id you want to enter (or view) data for, by going to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: SINGLE_EVENTS_WITHOUT_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json <br />
<br />
There are two event APIs. One is the Event analytics, which is for more advanced analytics on events data, and the other is the events API. There is an important distinction. The Event Analytics API only shows events for yesterday and older. New events are NOT shown. This is very important to understand. '''Use the Events API, not the analytics API''' <br />
<br />
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html <br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json <br />
<br />
To retrieve a list of events, do the following: <br />
<br />
http://apps.dhis2.org/dev/api/events?orgUnit=A&amp;program=B&amp;startDate=2000-01-01&amp;endDate=2013-01-01 <br />
<br />
For example: <br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;startDate=2000-01-01&amp;endDate=2013-01-01 <br />
<br />
or for a patient-based program (with programstage). This one is relevant for the embedding-apps-in-tracker, but right now there is no patient-query variable, which we are hoping to add, but it may have to be added by the group themselves. <br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=uy2gU8kT1jF&amp;programStage=grIfo3oOf4Y&amp;startDate=2013-01-01&amp;endDate=2013-12-01 <br />
<br />
'''Some of these new features are not available on Release 2.13 (last stable release), but must be fetched from trunk. This means you need to use http://apps.dhis2.org/dev/ (not (/demo) to test them. ''' <br />
<br />
<br> <br />
<br />
= Enabling location =<br />
<br />
You have to manually go into the program-&gt;edit programstage settings on dev and turn on 'Capture coordinates' for the program to capture and show coordinates. Remember that the demo and dev database is reset every night, so you have to do this every day.&nbsp; <br />
<br />
You should use the apps.dhis2.org/dev server (not demo) when testing location.&nbsp;</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=660Using the single event API on DHIS22013-11-19T08:52:32Z<p>Roland@uio.no: </p>
<hr />
<div>Use /api/me to get the org unit of the logged in user, as well as other user-specific data. <br />
<br />
The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun that you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles. <br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '&gt;&gt;' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. For some tests it may also be useful to install the Postman Rest client extension to Chrome. <br />
<br />
Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8) if the user belongs to that org unit. <br />
<br />
Now find the program id you want to enter (or view) data for, by going to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: SINGLE_EVENTS_WITHOUT_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json <br />
<br />
There are two event APIs. One is the Event analytics, which is for more advanced analytics on events data, and the other is the events API. There is an important distinction. The Event Analytics API only shows events for yesterday and older. New events are NOT shown. This is very important to understand. '''Use the Events API, not the analytics API''' <br />
<br />
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html <br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json <br />
<br />
To retrieve a list of events, do the following: <br />
<br />
http://apps.dhis2.org/dev/api/events?orgUnit=A&amp;program=B&amp;startDate=2000-01-01&amp;endDate=2013-01-01 <br />
<br />
For example: <br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=eBAyeGv0exc&amp;startDate=2000-01-01&amp;endDate=2013-01-01 <br />
<br />
or for a patient-based program (with programstage). This one is relevant for the embedding-apps-in-tracker, but right now there is no patient-query variable, which we are hoping to add, but it may have to be added by the group themselves. <br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&amp;program=uy2gU8kT1jF&amp;programStage=grIfo3oOf4Y&amp;startDate=2013-01-01&amp;endDate=2013-12-01 <br />
<br />
'''Some of these new features are not available on Release 2.13 (last stable release), but must be fetched from trunk. This means you need to use http://apps.dhis2.org/dev/ (not (/demo) to test them. ''' <br />
<br />
<br> <br />
<br />
= Enabling location =<br />
<br />
You have to manually go into the program-&gt;edit programstage settings on dev and turn on 'Capture coordinates' for the program to capture and show coordinates. Remember that the demo and dev database is reset every night, so you have to do this every day.&nbsp;<br />
<br />
You should use the apps.dhis2.org/dev server (not demo) when testing location.&nbsp;</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=611Using the single event API on DHIS22013-11-14T14:13:35Z<p>Roland@uio.no: </p>
<hr />
<div>Use /api/me to get the org unit of the logged in user, as well as other user-specific data. <br />
<br />
The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun that you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles.<br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '>>' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. For some tests it may also be useful to install the Postman Rest client extension to Chrome. <br />
<br />
Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8) if the user belongs to that org unit. <br />
<br />
Now find the program id you want to enter (or view) data for, by going to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: SINGLE_EVENTS_WITHOUT_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json<br />
<br />
There are two event APIs. One is the Event analytics, which is for more advanced analytics on events data, and the other is the events API. There is an important distinction. The Event Analytics API only shows events for yesterday and older. New events are NOT shown. This is very important to understand. '''Use the Events API, not the analytics API'''<br />
<br />
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html<br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json<br />
<br />
To retrieve a list of events, do the following: <br />
<br />
http://apps.dhis2.org/dev/api/events?orgUnit=A&program=B&startDate=2000-01-01&endDate=2013-01-01<br />
<br />
For example:<br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&program=eBAyeGv0exc&startDate=2000-01-01&endDate=2013-01-01<br />
<br />
or for a patient-based program (with programstage). This one is relevant for the embedding-apps-in-tracker, but right now there is no patient-query variable, which we are hoping to add, but it may have to be added by the group themselves.<br />
<br />
http://apps.dhis2.org/dev/api/events.json?orgUnit=DiszpKrYNg8&program=uy2gU8kT1jF&programStage=grIfo3oOf4Y&startDate=2013-01-01&endDate=2013-12-01<br />
<br />
'''Some of these new features are not available on Release 2.13 (last stable release), but must be fetched from trunk. This means you need to use http://apps.dhis2.org/dev/ (not (/demo) to test them. '''</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=610Using the single event API on DHIS22013-11-14T14:08:53Z<p>Roland@uio.no: </p>
<hr />
<div>Use /api/me to get the org unit of the logged in user, as well as other user-specific data. <br />
<br />
The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun that you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles.<br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '>>' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. For some tests it may also be useful to install the Postman Rest client extension to Chrome. <br />
<br />
Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8) if the user belongs to that org unit. <br />
<br />
Now find the program id you want to enter (or view) data for, by going to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: SINGLE_EVENTS_WITHOUT_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json<br />
<br />
There are two event APIs. One is the Event analytics, which is for more advanced analytics on events data, and the other is the events API. There is an important distinction. The Event Analytics API only shows events for yesterday and older. New events are NOT shown. This is very important to understand. '''Use the Events API, not the analytics API'''<br />
<br />
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html<br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json<br />
<br />
To retrieve a list of events, do the following: <br />
<br />
http://apps.dhis2.org/demo/api/events?orgUnit=A&program=B&startDate=2000-01-01&endDate=2013-01-01<br />
<br />
For example:<br />
<br />
http://apps.dhis2.org/demo/api/events.json?orgUnit=DiszpKrYNg8&program=eBAyeGv0exc&startDate=2000-01-01&endDate=2013-01-01<br />
<br />
or for a patient-based program (with programstage). This one is relevant for the embedding-apps-in-tracker, but right now there is no patient-query variable, which we are hoping to add, but it may have to be added by the group themselves.<br />
<br />
http://apps.dhis2.org/demo/api/events.json?orgUnit=DiszpKrYNg8&program=uy2gU8kT1jF&programStage=grIfo3oOf4Y&startDate=2013-01-01&endDate=2013-12-01</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=606Using the single event API on DHIS22013-11-14T08:22:26Z<p>Roland@uio.no: </p>
<hr />
<div>Use /api/me to get the org unit of the logged in user, as well as other user-specific data. <br />
<br />
The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun that you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles.<br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '>>' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. For some tests it may also be useful to install the Postman Rest client extension to Chrome. <br />
<br />
Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8) if the user belongs to that org unit. <br />
<br />
Now find the program id you want to enter (or view) data for, by going to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: SINGLE_EVENTS_WITHOUT_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json<br />
<br />
There are two event APIs. One is the Event analytics, which is for more advanced analytics on events data, and the other is the events API. There is an important distinction. The Event Analytics API only shows events for yesterday and older. New events are NOT shown. This is very important to understand. '''Use the Events API, not the analytics API'''<br />
<br />
http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html<br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json<br />
<br />
To retrieve a list of events, do the following: <br />
<br />
http://apps.dhis2.org/demo/api/events?orgUnit=A&program=B&startDate=2000-01-01&endDate=2013-01-01<br />
<br />
For example:<br />
<br />
http://apps.dhis2.org/demo/api/events.json?orgUnit=DiszpKrYNg8&program=eBAyeGv0exc&startDate=2000-01-01&endDate=2013-01-01</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Edit_dhis2_web_pages&diff=493Edit dhis2 web pages2013-11-06T09:09:18Z<p>Roland@uio.no: </p>
<hr />
<div>If your project involves editing the existing DHIS2 web pages, rather than just making a downloadable web app, you should read the following. <br />
<br />
DHIS2 uses Struts and Velocity to render web pages.&nbsp; <br />
<br />
The Velocity templates have the extension *.vm and exist in the src/main/webapp/&lt;project-name&gt;/ directories.&nbsp; <br />
<br />
Each web module is in a separate Maven project, so for example 'Tracker' is in 'dhis-web-caseentry', and the directory to find the .vm files is:&nbsp;src/main/webapp/dhis-web-casentry/ <br />
<br />
Our suggestion for this web project is that you make minimum changes in the web pages and instead use the web app concept to upload your logic. So you need to add a &lt;script&gt; tag in the relevant page, linking to a Javascript file in your web app, as well as adding other elements such as DIV if you need to identify and replace some content. You can for example use JQuery to replace HTML tags with your own dynamic content. In your web app (uploaded as a DHIS2 app), you can make web api calls to get content from DHIS.&nbsp;<br> <br />
<br />
Make special HTML tags that are app-dependent hidden when the page loads, so that the page looks good also if the app isn't installed on the server.&nbsp; <br />
<br />
As an example, if you want to make changes to the patient dashboard (in Tracker), you want to edit the patientDashboard.vm. If you want a new box after the three boxes on the existing screen, find the text in the page: <br />
<pre>&lt;td&gt;<br />
<br />
&lt;div class="link-area" style="width:120%"&gt;<br />
&lt;p class='header'&gt;<br />
$i18n.getString("relationships")<br />
</pre> <br />
Below the closing &lt;/td&gt;, insert a new element. For example: <br />
<pre>&lt;td&gt;<br />
&lt;div id="applet1" class="link-area"&gt;<br />
&lt;p class='header'&gt;<br />
A header<br />
&lt;/p&gt;<br />
&lt;div class="contentProviderTable"&gt;<br />
Some content.<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
</pre> <br />
In this case you also need to change the&nbsp;style="width:120%" in the div above so that it doesn't overlap with yours.&nbsp;<br />
<br />
And then you add a script tag on the bottom of the page. <br />
<pre>&lt;script type="text/javascript" src="/apps/example/js/dashboard.js"&gt;&lt;/script&gt;<br />
</pre> <br />
Some of the web pages generated on the web server through .vm templates get loaded dynamically through Javascript, so you may not see their content using 'View source' in your browser. Use the Javascript console in your browser to see the real URLs that are called, and the data that is fetched.&nbsp;<br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Edit_dhis2_web_pages&diff=492Edit dhis2 web pages2013-11-06T08:54:40Z<p>Roland@uio.no: Created page with "If your project involves editing the existing DHIS2 web pages, rather than just making a downloadable web app, you should read the following. DHIS2 uses Struts and Velocity to r..."</p>
<hr />
<div>If your project involves editing the existing DHIS2 web pages, rather than just making a downloadable web app, you should read the following.<br />
<br />
DHIS2 uses Struts and Velocity to render web pages.&nbsp;<br />
<br />
The Velocity templates have the extension *.vm and exist in the src/main/webapp/&lt;project-name&gt;/ directories.&nbsp;<br />
<br />
Each web module is in a separate Maven project, so for example 'Tracker' is in 'dhis-web-caseentry', and the directory to find the .vm files is:&nbsp;src/main/webapp/dhis-web-casentry/<br />
<br />
Our suggestion for this web project is that you make minimum changes in the web pages and instead use the web app concept to upload your logic. So you need to add a &lt;script&gt; tag in the relevant page, linking to a Javascript file in your web app, as well as adding other elements such as DIV if you need to identify and replace some content. You can for example use JQuery to replace HTML tags with your own dynamic content. In your web app (uploaded as a DHIS2 app), you can make web api calls to get content from DHIS.&nbsp;<br><br />
<br />
Make special HTML tags that are app-dependent hidden when the page loads, so that the page looks good also if the app isn't installed on the server.&nbsp;<br />
<br />
As an example, if you want to make changes to the patient dashboard (in Tracker), you want to edit the patientDashboard.vm. If you want a new box after the three boxes on the existing screen, find the text in the page:<br />
<pre>&lt;td&gt;<br />
<br />
&lt;div class="link-area" style="width:120%"&gt;<br />
&lt;p class='header'&gt;<br />
$i18n.getString("relationships")<br />
</pre><br />
Below the closing &lt;/td&gt;, insert a new element. For example:<br />
<pre>&lt;td&gt;<br />
&lt;div id="applet1" class="link-area"&gt;<br />
&lt;p class='header'&gt;<br />
A header<br />
&lt;/p&gt;<br />
&lt;div class="contentProviderTable"&gt;<br />
Some content.<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
</pre><br />
And then you add a script tag on the bottom of the page.<br />
<pre>&lt;script type="text/javascript" src="/apps/example/js/dashboard.js"&gt;&lt;/script&gt;<br />
</pre><br />
Some of the web pages generated on the web server through .vm templates get loaded dynamically through Javascript, so you may not see their content using 'View source' in your browser.&nbsp;<br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=49120162013-11-06T08:25:29Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
*[[Using the single event API on DHIS2]] <br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events. <br />
* For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course. <br />
* [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
* How to [[edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
== Installing DHIS2 sample data ==<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]] <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization <br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=49020162013-11-06T08:24:57Z<p>Roland@uio.no: /* Tips and tricks */</p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
*[[Using the single event API on DHIS2]] <br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events. <br />
* For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course. <br />
* How to [[edit dhis2 web pages]] (Relevant for Social & App-embedding)<br />
== Installing DHIS2 sample data ==<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
* [http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet Editing a wiki]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]] <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization <br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=48920162013-11-06T08:22:37Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
*[[Using the single event API on DHIS2]] <br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events. <br />
* For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course. <br />
* How to [edit dhis2 web pages] (Relevant for Social & App-embedding)<br />
== Installing DHIS2 sample data ==<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]] <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization <br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=47520162013-11-05T13:57:20Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
*[[Using the single event API on DHIS2]] <br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events. <br />
* For those who are doing changes of DHIS2 source code, you may want to read up a bit on Struts. [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h12/undervisningsmateriale/mvc-and-struts2.pdf here] is a presentation from the 2012-version of INF5750. Struts has been removed from this year's course. <br />
== Installing DHIS2 sample data ==<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]] <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization <br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=46620162013-11-04T14:34:39Z<p>Roland@uio.no: /* Tips and tricks */</p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
*[[Using the single event API on DHIS2]] <br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. To avoid running this from the Geo-location app (where you want to see recently uploaded events), you may want to keep a cache of the last uploaded events. <br />
<br />
== Installing DHIS2 sample data ==<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]] <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization <br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=46520162013-11-04T14:33:44Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
*[[Using the single event API on DHIS2]] <br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls. Now also with an update where it finds the correct DHIS2 API url by downloading its own manifest-file (the manifest file is edited by DHIS2 on app installation)<br />
*If you're using Single event, and are having problems with events not appearing in the analytics API, try reading [http://apps.dhis2.org/demo/api/resourceTables/analytics this]. You must have permission ALL or F_DATA_MART_ADMIN on your user to run these commands. On the demo db, only the system user has this. Not admin. <br />
<br />
== Installing DHIS2 sample data ==<br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/InstallSampleData Tutorial for installing DHIS2 sample data]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|A flair for location]]<br />
*[[Group-15 Geo|Group 15 Geolocation data entry]] <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization <br />
*[https://wiki.uio.no/mn/ifi/inf5750/index.php/Team:_Social_Social_Network_Integration Team: Social Social Network Integration]<br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=402Using the single event API on DHIS22013-11-01T11:52:13Z<p>Roland@uio.no: </p>
<hr />
<div>Use /api/me to get the org unit of the logged in user. The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun which you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles.<br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '>>' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8). <br />
<br />
Now find the program id you want to enter (or view) data for. Go to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: SINGLE_EVENTS_WITHOUT_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json<br />
<br />
<br />
See the event analytics api documentation at: http://www.dhis2.org/doc/snapshot/en/user/html/ch25s22.html<br />
<br />
The following URL is an example which lists a list of events (see doc-link above):<br />
<br />
http://apps.dhis2.org/demo/api/analytics/events/query/eBAyeGv0exc?startDate=2012-01-01&endDate=2012-10-<br />
31&dimension=ou:O6uvpzGd5pu;fdc6uOvgoji&dimension=oZg33kd9taw&dimension=qrur9Dvnyt5:EQ:18For<br />
<br />
To extract and submit individual event data, use another api. See http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html<br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=34620162013-10-31T13:24:58Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
*[[Using the single event API on DHIS2]] <br />
*This is [https://code.launchpad.net/~lkroland/dhis2-academy/ExampleApp Mobilars' example app]. Based on Angular. Does a few DHIS2 WEB Api calls<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|Geo-3 Geolocation data entry]] <br />
*Group 15 Geolocation data entry <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization<br><br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=Using_the_single_event_API_on_DHIS2&diff=329Using the single event API on DHIS22013-10-31T09:17:57Z<p>Roland@uio.no: Created page with "Use /api/me to get the org unit of the logged in user. The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data ..."</p>
<hr />
<div>Use /api/me to get the org unit of the logged in user. The admin user is attached to the National (Sierra Leone) org unit, where there is no single-event data to enter. The data to be entered is at the lower levels (for example Ngelehun). So to use this effectively, create a user which is attached to for example Ngelehun which you use to demo and test. When you create a user, you also need to give it access to the program and the correct permissions. The simplest is to add it to all the user roles.<br />
<br />
To create a user, go to: http://apps.dhis2.org/demo/dhis-web-maintenance-user/showAddUserForm.action and enter user details. Add all availalbe roles by pressing the '>>' button on 'Available roles'. Then select a lower org-unit. For example Ngelehun CHC. <br />
<br />
Log in with this user in Chrome. Install a JSON formatter extension to see JSON more easily. Go to http://apps.dhis2.org/demo/api/me . On the bottom, you'll see organisationUnits and you can see the id of Ngelehun (DiszpKrYNg8). <br />
<br />
Now find the program id you want to enter (or view) data for. Go to http://apps.dhis2.org/demo/api/programs.json. This is a list of all programs the logged in user has access to. If you can't see a program here that you're expecting, it might be a permission setting for your logged in user. Find the program id. Both geolocation and survey projects are working on programs of the type: MULTIPLE_EVENTS_WITH_REGISTRATION. Ignore the others. The "Inpatient morbidity and mortality" program for example has id eBAyeGv0exc. To see more info about this program, go to http://apps.dhis2.org/demo/api/programs/eBAyeGv0exc.json. From this JSON, you'll also see the programStages. For Single Event, there's only one programstage. You can see more info about the programstage here: http://apps.dhis2.org/demo/api/programStages/Zj7UnCAulEk.json<br />
<br />
<br />
See the event analytics api documentation at: http://www.dhis2.org/doc/snapshot/en/user/html/ch25s22.html<br />
<br />
The following URL is an example which lists a list of events (see doc-link above):<br />
<br />
http://apps.dhis2.org/demo/api/analytics/events/query/eBAyeGv0exc?startDate=2012-01-01&endDate=2012-10-<br />
31&dimension=ou:O6uvpzGd5pu;fdc6uOvgoji&dimension=oZg33kd9taw&dimension=qrur9Dvnyt5:EQ:18For<br />
<br />
To extract and submit individual event data, use another api. See http://www.dhis2.org/doc/snapshot/en/user/html/ch25s07.html<br />
<br />
For example, access: http://apps.dhis2.org/demo/api/events/KNDKnxPZFK6.json</div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=32820162013-10-31T09:17:39Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
<br />
Feel free to add things here as you discover them. <br />
<br />
* [[Using the single event API on DHIS2]]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|Geo-3 Geolocation data entry]] <br />
*Group 15 Geolocation data entry <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization<br><br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=32720162013-10-31T09:17:03Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp; <br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Tips and tricks =<br />
Feel free to add things here as you discover them. <br />
[[Using the single event API on DHIS2]]<br />
<br />
= Things to add to the project wiki =<br />
<br />
*List of group members <br />
*Summary of requirements <br />
*Time schedule <br />
*How you are dividing tasks within the group <br />
*Screenshots and screen flows <br />
*Documented learning during project <br />
*Suggested improvements to APIs etc <br />
*Link to repository <br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*[[Spring minions DHIS2 Discussion forum web app]] <br />
*[[Artiom Kiouregkian Embedding apps in patient tracker]] <br />
*[[Dynamic Team Børek Embedding apps in patient tracker|Dynamic Team Børek Embedding apps in patient tracker]] <br />
*[[Embed-apps-1 Embedding apps in patient tracker]] <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*[[Geo-1|Geo-1 Geolocation data entry]] <br />
*[[Geo2]] Geolocation data entry <br />
*[[Geo-3|Geo-3 Geolocation data entry]] <br />
*Group 15 Geolocation data entry <br />
*[[Kramers|Kramers Geolocation data entry]] <br />
*[[Mandalorians Geolocation data entry]] <br />
*[[Tech Invaders Social network integration|Tech Envaders Social network integration]] <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]] <br />
*[[Laget|Laget Survey]] <br />
*[[Los POJOs Survey]] <br />
*[[N.E.T Survey]] <br />
*[[Super ultra team maximum Survey]] <br />
*[[Raptor]] Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*[[Visual-1]] Visualization<br><br />
<br />
<br> <br />
<br />
[[Image:Yunomark.jpg|thumb|center|400px|Tulle-markdown!?]] <br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=7220162013-10-25T12:43:25Z<p>Roland@uio.no: </p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Things to add to the project wiki =<br />
*List of group members<br />
*Summary of requirements<br />
*Time schedule<br />
*How you are dividing tasks within the group<br />
*Screenshots and screen flows<br />
*Documented learning during project<br />
*Suggested improvements to APIs etc<br />
*Link to repository<br />
*Download link to sample web app or Android app<br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*Spring minions DHIS2 Discussion forum web app <br />
*Artiom Kiouregkian Embedding apps in patient tracker <br />
*Dynamic Team Børek Embedding apps in patient tracker <br />
*Embed-apps-1 Embedding apps in patient tracker <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*Geo-1 Geolocation data entry <br />
*Geo-2 Geolocation data entry <br />
*Geo-3 Geolocation data entry <br />
*Group 15 Geolocation data entry <br />
*Kramers Geolocation data entry <br />
*[[Mandalorians Geolocation data entry]]<br />
*Tech Invaders Social network integration <br />
*[[Gering-ding-ding-ding-dingeringeding! Survey]] <br />
*[[HKH Survey]]<br />
*Laget Survey <br />
*[[Los POJOs Survey]] <br />
*N.E.T Survey <br />
*N.E.T. Survey <br />
*super ultra team maximum Survey <br />
*Raptor Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*Visual-1 Visualization<br><br />
<br />
<br><br />
<br />
[[File:Yunomark.jpg|400px|thumb|center|Tulle-markdown!?]]<br />
<br />
<br></div>Roland@uio.nohttps://wiki.uio.no/mn/ifi/inf5750/index.php?title=2016&diff=3420162013-10-23T07:54:04Z<p>Roland@uio.no: /* INF5750 2013 */</p>
<hr />
<div>= INF5750 2013 =<br />
<br />
This Wiki is used for documenting the group projects for INF5750 2013.&nbsp; <br />
<br />
The overview of group project tasks can be found [http://www.uio.no/studier/emner/matnat/ifi/INF5750/h13/lecture-presentations/inf5750-group-projects.pdf here].&nbsp; <br />
<br />
The group and members are [https://docs.google.com/spreadsheet/pub?key=0AmTji-7-j5mpdC1Qc1FQUThfZ2o5Y2U4TjNFNUlQSFE&single=true&gid=0&output=pdf here].&nbsp;<br />
<br />
= Milestones =<br />
<br />
Each group should follow these milestones: <br />
<br />
*Milestone 1: 1st November<br />
<br />
Document features and architecture on Wiki <br />
<br />
Show understanding of DHIS2 web apps <br />
<br />
*Milestone 2: 15th November<br />
<br />
First bare-bone version - static HTML <br />
<br />
Uploadable as DHIS2 web app <br />
<br />
*Milestone 3: 30th November <br />
*Finished, if applicable also with mobile app. <br />
*Final delivery: 8th December <br />
*Presentation: 9th December<br><br />
<br />
= Group pages =<br />
<br />
These wiki-pages should be used for documenting the projects. The groups may change names if they wish. Create a sub-page (one or more) for your project, and document your project here. Follow [[Quickintro|this link]] to get a quick intro on how to add a page.&nbsp; <br />
<br />
*Spring minions DHIS2 Discussion forum web app <br />
*Artiom Kiouregkian Embedding apps in patient tracker <br />
*Dynamic Team Børek Embedding apps in patient tracker <br />
*Embed-apps-1 Embedding apps in patient tracker <br />
*[[(APE) Geolocation data entry|(APE) Geolocation data entry]] <br />
*Geo-1 Geolocation data entry <br />
*Geo-2 Geolocation data entry <br />
*Geo-3 Geolocation data entry <br />
*Group 15 Geolocation data entry <br />
*Kramers Geolocation data entry <br />
*Mandalorians Geolocation data entry <br />
*Tech Invaders Social network integration <br />
*Gering-ding-ding-ding-dingeringeding! Survey <br />
*HKH Survey <br />
*Laget Survey <br />
*Los POJOs Survey <br />
*N.E.T Survey <br />
*N.E.T. Survey <br />
*super ultra team maximum Survey <br />
*Raptor Visualization <br />
*[[Trust us, we're Scientists! Visualization]] <br />
*Visual-1 Visualization<br><br />
<br />
<br></div>Roland@uio.no