Re: Conceptual hints on inheritance

2007-08-21 Thread nagarjuna
I am working on a similar project and decided to use a taxonomic_unit as the basic element. I have one table taxonomic_units where all levels get stored, as well as the hierarchical relations between them. You should look into modified pre-order tree traversal (see

Updating translation .po files

2007-08-20 Thread nagarjuna
Hi, I am setting up a site so that the admin (not me) can add new fields, steps, etc. I want to set it up so that, when they add a new field, they will input the translated name for the field as well, and behind the scenes I will update the .po file automatically. But I have no idea how to go

Re: integrate third party ajax library

2007-08-13 Thread nagarjuna
In another attempt at getting this up and running, I copied the relevant code from the php file that was being called, and added a method inside my app_controller and created a view of the same name. Here is my new function: function sc_select_ajax_handler( ) {

Re: How to find all categories where language_id is equal querystring?Please help

2007-08-06 Thread nagarjuna
How about: $this-Category-findByLanguageId( $id ); Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

How to handle hasMany data entry

2007-08-06 Thread nagarjuna
I have the following setup: Class Observation hasMany Marks. The Marks Class only has one relevant field: mark_number I am working on the add form for my Observations, and the problem is that I do not know in advance how many Marks a given observation will have. I initialize the form with one

Re: How to handle hasMany data entry

2007-08-06 Thread nagarjuna
Thanks for the advice. Unfortunately this will not work for me because it chokes on: $this-Mark-invalidate('mark_number'.$i, Mark already exists); I have two types of marks for input (NewMarks and ExistingMarks), and they are stored in the data matrix under $this-data['NewMarks'] not under

Re: integrate third party ajax library

2007-08-03 Thread nagarjuna
Okay I modified the library source to redirect to my controller (observations/add) new Ajax.Request( 'cake/observations/add', { method: 'POST',parameters: pars, onComplete: onCompleteCallBack }); The debug log message is below. Not really sure how to deal with this (sorry, new to Cake and

Re: integrate third party ajax library

2007-08-01 Thread nagarjuna
Thanks for the advice Chris. I installed the firbug plugin and fixed a coupld of problems. I realize now that the main issue is that the code in the library is trying to request an additional .php file that is in the library's folder inside the /vendors folder. The relevant code is: new

integrate third party ajax library

2007-07-31 Thread nagarjuna
I need to use a lot of hierarchicaly linked list boxes in my project, and I found a great 3rd party ajax library that does so here: http://www.salix.gr/ajax_linked_selectboxes I installed the library and I can get the demo running just fine. Embedded in my app, everything displays properly but

Help with project design

2007-07-30 Thread nagarjuna
Hello, I am designing a database to hold scientific observations of animals in the field. The database will be used for several different projects. The basic unit for all projects is the observation, and observations across projects will store the same basic information (and use the same