Milan, > the system. Based on your description above, it seems that this should have > been a unique value, correct? If a unique value is required, how do I > configure the system to properly increment the search IDs when creating new > customers via the front end?
Right, it should create a unique search_id for the client of the branch based on existing client search_ids for clients in the given branch. If you say there is only one branch then each new client should have a unique search_id as you add it via front end (and from initial load) If this is not the case, maybe you could create an issue and document the steps and given example of values you have for one or two clients in the given branch and what search_id is being assigned to the new clients added via the frontend. However, as you seem to be using only a branch->client relationship (no center, no groups) the search_id which is for customer hierarchy is irrelevant as long as there is some value in there as there is no heirarchy. Regards, Keith. On Fri, Nov 19, 2010 at 6:10 PM, Milan Patel <[email protected]> wrote: > Thanks for the info Keith. > > I am referring to following documentation: > http://mifos.org/documentation/data-migration -- Data migration > documentation and Excel spreadsheets that are linked from this page > http://link.mifos.org/schema -- database schema > > Related question--in terms of the hierarchy, our structure is pretty simple, > with one head / branch office; as such the clients seem to be assigned > search orders 1.1, 1.2 etc. by the system. > I noticed however that after loading customer data directly into the > database, adding to customers that already exist in the database as created > by the front end and have already been assigned search ids 1.1 and 1.2, I > added a new customer via the front end, which was assigned search ID 1.1 by > the system. Based on your description above, it seems that this should have > been a unique value, correct? If a unique value is required, how do I > configure the system to properly increment the search IDs when creating new > customers via the front end? > > > > > > > > > 2010/11/19 Keith Woodlock <[email protected]> >> >> Millan, >> >> yes search_id is important. >> >> given a branch level office exists the first center (customer) for >> this branch would receive search_id of 1.1 >> The first child (group) of this center would recieve 1.1.1 and the >> first child(client) of it would be 1.1.1.1 >> >> if there was a second center within the given branch it would receive >> 1.2 and its children would be 1.2.1 and 1.2.1.1 >> >> So it is used basically to denote the center->group->client hierarchy >> and allows querys to do things like select * from customer where >> search_id like '1.2.%' to return entire hierarchy. Also used for >> ordering of customer hierarchy. >> >> Hope this helps. Could you point me to developer documentation you >> are currently looking at for customers? >> >> regards, >> KeithW. >> >> On Fri, Nov 19, 2010 at 4:29 PM, Milan Patel >> <[email protected]> wrote: >> > Hello, >> > After loading a number of rows of data on customer table, but not >> > populating >> > field search_id, I try to create a new client via the front-end, but >> > receive >> > an error which prevents the customer data from being persisted to >> > database. >> > In log, error begins as follows: >> > SEVERE: Servlet.service() for servlet Controller threw exception >> > java.lang.NullPointerException >> > at >> > >> > org.mifos.customers.persistence.CustomerDaoHibernate.retrieveLastSearchIdValueForNonParentCustomersInOffice(CustomerDaoHibernate.java:1619) >> > >> > I then populated field search_id in format "1." & customer_id. After >> > doing >> > so, I am able to create the new customer, which has search_id of 1.1. >> > >> > My question is, what is the purpose of this field, and how does it need >> > to >> > be populated? Existing documentation does not seem to indicate. >> > Thanks >> > Milan >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Beautiful is writing same markup. Internet Explorer 9 supports >> > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> > Spend less time writing and rewriting code and more time creating great >> > experiences on the web. Be a part of the beta today >> > http://p.sf.net/sfu/msIE9-sfdev2dev >> > _______________________________________________ >> > Mifos-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/mifos-users >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today >> http://p.sf.net/sfu/msIE9-sfdev2dev >> _______________________________________________ >> Mifos-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mifos-users > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Mifos-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mifos-users > > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Mifos-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mifos-users
