Hi Tom,
Thanks. Thats what i figured. I will try it out and post if i have any
questions.
 
I also agree that this is a very cumbersome way of setting the
configuration, and will only get worse once we add more functionality. 
 
Regards
Soham


  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom
Bostelmann
Sent: Saturday, November 17, 2007 7:46 AM
To: Developer
Subject: Re: [Mifos-developer] Lookup Enity - value addition - for
interesttype calculation


Unfortunately there isn't much in the way of documentation for configuring a
LOOKUP_VALUE.

We're also in the midst of reviewing this code so changes and documentation
may come out later.

In the mean time, If you look the latest-data.sql, you find that we're
setting the ID's manually, being careful to use a unique number.  Hopefully
that answers your main question.  Let me know if it doesn't.

As a side note for discussion, this is a good example where I think we need
to get away from using numbers as ID's - especially DB generated, sequential
numbers.  In this case we should assign a property-type key and use a naming
convention similar to our properties files. 

In a more general sense, there are many more areas where this conversion
should take place.  More good examples would be Offices, Personnel as well
as the many places where we're storing enumerated types (!) - i.e.
LoanTypes.

This issue is a major factor in upgrading the database, migrating data
to/from, and many refactoring issues.

-Tom


On Nov 13, 2007 10:27 PM, Soham Dhakal < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:


Hi all,
With regards to the functionality
http://www.mifos.org/developers/wiki/DecliningBalanceInterestCalculationWith
EqualPrincipalInstallment

I need to add a configuration value for interest type calculation.. I did
find on the wiki how to add configuration which relates more to 
enabling/disabling a feature/funtionality

So my question,

Is there any documentation around doing this? E.g. how the id is
assigned(generated) for the LOOKUP_ID, is it from a pool/bucket or is it the
next sequential avialable number (where do I find this)


I see the relation to LOOKUP_VALUE_LOCALE which is self explanatory, and
also INTEREST_TYPES however please let me know if there is some gotcha


Thanks for your help
Soham






-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop. 
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to