Thursday, August 21, 2008

ffehr-0.1b2-20080822

This pre-beta 3 release place a feature to handle media files (i.e. images and videos). You may now place a patient photo and test some videos/images in the imaging form.

To work with videos download the media player at videolan.org

To install simply extract the tar.gz file. Download the 7zip application if your OS cannot recognize tar.gz.

Sadly, no macos releases yet. If you are interested to test and package for MacOS... email the ffehr team. :)

Here are screenshots in Linux:





Download the linux version here.

Here are screenshots in Windows:




(windows have a problem capturing the video).

Download the Windows version here.


:-)

Tuesday, August 12, 2008

Ffehr-0.1b2

ssshhh... beta 2 has just been released. :D
It was a silent release though; ffehr now has a validation library and the user interface have been redesigned, along with the report layout.





Developers are welcome to download the latest commit in the repository, with a feature to select a different datastore location or cabinet. Now, no more overwriting your test db files when installing the latest version of ffehr.



The current roadmap before beta 3 would be:

-- handling of media files (patient images and videos)
-- standardization of internal xml of ffehr

If you have some bright ideas that want to be included in the next milestone release of ffehr, feel free to contact me and send your contributions.

Note: Screenshots were taken from the latest development code. For documentation visit our website at http://ffehr.freefeathers.org

;-)

NBJayme

Friday, July 4, 2008

Custom validation and messages

Once again, Cruxade's validation library have been improved to allow cleaner code for custom validations and error message. The snippet below was taken from chrome://cruxade/content/validation.xul

var lv_oContainer = cruxade_ExtendContainer("container");
var lv_aValidator = [];
lv_aValidator["testdate"]={
_validate_ : "required :vCustomFunc",
_errmessage_: function(nErrCode){
if (nErrCode==10) return "Max Error number?";
return "custommessage";
},
CustomFunc:function(oItem,oSrc){
// return 0 if no error
return 10; // test case error
}
};
lv_aValidator["greetings"]={
_validate_ : "required typedigit",
_errmessage_:function(nErrCode){
if (nErrCode==2) return "Please give me a number.";
}
}
lv_oContainer.udf_bHookValidation(lv_aValidator);


Feel like hacking the code..?

The uda_validate options ":v" still works. ":m" is deprecated. Shall we carry on with the ":m" option? Tell me what you think.

:-)

Tuesday, June 24, 2008

ffehr with entry validation


The validation script of cruxade has now landed into ffehr's development repository. For the adventurous, you may download the source code of ffehr following the instructions at: http://ffehr.freefeathers.org/Repo/

By the way, don't forget to update your local copy of cruxade. If you have followed the instructions from the previous blog all you need to do is issue the "bzr bind" command.


$ cd <pristine branch>
$ bzr bind http://cruxade.freefeathers.org/Repo/0.x/extension
$ bzr update


Next time, you need not keep on issuing "bzr branch" nor "bzr bind" to keep in sync with the latest changes of cruxade's source code. "bzr update" will be enough, as long as, you have internet access (of course). Then, to merge the changes from pristine branch to your mods branch will involve the following commands "bzr merge", "bzr conflicts", "bzr resolve".


$ cd <mods branch>
$ bzr merge <path of the pristine branch>
$ bzr conflicts # to check for any conflicts
$ bzr resolve # after fixing the source
$ bzr commit


If you care less about your changes in the mods branch you can simply do a "bzr pull" command, instead of "bzr merge". Take note that "bzr pull" will overwrite the changes you've made, including your previous commits, in the mods branch.


$ cd <mods branch>
$ bzr pull <path of the pristine branch> --overwrite --remember
# next time you only need to do "bzr pull --overwrite" you may have guessed it with the "--remember" switch.



Wait... we're not done yet (too excited are we?) Add the cruxade extension under ffehr's extensions folder, in like manner you have added it in a firefox profile folder.


;-)

Friday, June 20, 2008

Cruxade's Validation Library - in action

The validation library has now been incorporated into extendContainer.js, useful for control validation within a form. The development code can be downloaded and tested using the instructions at http://cruxade.freefeathers.org/Repo/

Once you've successfully installed cruxade into firefox, you may see the validation library in action by loading the xul page at chrome://cruxade/content/validation.xul

Keep pouring in your ideas. The improvement of this library will greatly benefit ffehr (http://ffehr.freefeathers.org).


;-)