Hi Carlos, > I came across dbforms a couple of weeks ago, and it's been a joy to use. > The DevGui speeds up things quite a bit. However, after having developed > 2 apps I realized where I spend most of the time: changing the generated > jsp textFields to select ou dataFields to reflect foreign key > dependencies. > So I was thinking of adding some information to the xml config file so > that the stylesheets could pick up that information and generate the > necessary selects and dataFields. > I was thinking of adding extra attributes to the field elements in the > config file. > However I just noticed the Eric Pugh already did some work on that. > Instead, he added extra elements to reflect these relationships. I think > that approach is also acceptable, and there's no point in reinventing > the weel, unless it's a better one ! :)
I think Erics approach is a bit better better because he will be able to handle references that consist of more that one column (at least within dbforms-config.xml). It is similar to sql where we can write ..cust_id integer references customer(cust_id) ... or ..foreich key (cust_id) references customer(cust_id) In case of keys containing more columns we can just use the second variant, it cannot be attached to a single column: ..foreign key (area_id,cust_id) references customer (area_id, cust_id) > So, if it's not too much to ask I'd like to see Eric's contributions to > the cvs real soon ! :) We could then pick on that to make improvements's > if that's the case. > These extension should not interfere with the other works, so I hope we will be able to do that soon. > I also have a couple suggestions: > -The stylesheets could be changed to automaticaly use the message tag > for button's caption and the devgui/xsl would also generate the > apropriate properties file. It seems to me that it would be much easier > to change the apps for different languages. What do you think ? The idea is good. Maybe we would not even need to create a new properties files each time, maybe one containing constants like 'Next','Prior', 'Save Updates' etc. would be sufficient... > -The devgui should allow the selection of multiple xsl and generate the > jsp all at once, instead of having to select each xsl, one by one ... > Yes, good idea... > I also made some changes to the devgui shell script to make it work "out > of the box", if anybody is interested ... I am, please send it to me. Regards and thanks for your comments Dirk ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
