picklist funcionality for adding multiple records
11 posts
• Page 1 of 1
hi Steve,
it would be very useful to have a feature that allows us to have a picklist that can select multiple "id's" for insertion in a linktable. for instance: when we have a product, category and productcategory table and we want to add (a lot of) existing products to a category, now we can only select one product in the "add existing related record" screen. this is not so practicle when we have to add about 50 existing products or so. i could not find how to do this "out of the box" in dataface. is this kind of feature in the todo list of a future dataface (or is there an easy way to accomplish this already)? Scott.
Hi Scott, This would be a good feature to have.Ê I have thought about possibly making an alternative "relationship" view for certain types of relationships, so that instead of showing a list of related records, it shows a checkbox group of all possible related records with the related ones checked.Ê I have not done this yet though. In the coming version of dataface, however, I have implemented an "Update Set" form that allows you to apply bulk changes to multiple records at once.Ê This could be used to set the "category" field, say, of a whole group of records all at once.Ê However it won't help if it is a many-to-many relationship. -Steve
Hello Steve,
I'm a new user, developing an online db for a non-profit. Very impressive product - glad I found it. I'm using 1.0Beta3, and it's very close to meeting all my needs. The one thing I'm wishing for is exactly the topic of this post from last year: bulk addition of related records. Is this anywhere in the plans?
Hi Nathan,
For simple relationships change it so that it just shows a group of checkboxes (one for each possible related record), from which you can check which records you want to have in the relationship. You would do this by adding
to the relationship in the relationships.ini file. An alternative way to manage related records is to use a transient field and a grid widget. Here is a snippet from the manual (under construction):
best regards Steve
OK, I've tried both approaches. I have two tables linked by a many-to-many relationship, and I need, in one of the tables, to select an entry and associate it with some subset of records in the other. The checkboxes support this much better than the grid widget.
That said - it almost works! I see checkboxes and they work as expected - creating or removing the join records appropriately. But the display of the checkboxes isn't what I'd hope. The format is basically: [checkbox][X1] [checkbox][X1] [checkbox][X3]... where X1, X2, and X3 are the contents of the first column (from the related table) after the ID - with no line breaks between these entries. I'd like to choose which columns to display, and have line breaks. I'm perusing the relationship checkbox code to see if I can figure it out... any guidance would be most welcome.
Re: picklist funcionality for adding multiple recordsHi, It's possible to add <br>, for new line, after each checkbox??
I'm looking to file RelationshipCheckboxForm.php for change layout of checkbox, does is it correct?
Re: picklist funcionality for adding multiple recordsHi, for workaround I have add this code to actions\related_records_checkboxes.php
and I have a <br>....but I don't think is very good solution!
11 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 21 guests |