|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Related recordsHi,
I don't know if you guys have read my previous email. I am having problem in using the related records object. I have enabled the editing and the automatic creation of records, but if I create a record in the portal it doesn't automatically create the related foreign key. Are there any advices on how to use the portal in Glom? Because in Filemaker I was using it without problems, I guess it's only a different approach that I still don't know well. Please, some help, it's a stupid question, but there is no documentation on it! Alessio. _______________________________________________ glom-devel-list mailing list glom-devel-list@... http://mail.gnome.org/mailman/listinfo/glom-devel-list |
|
|
Re: Related recordsI keep receiving this error:
ERROR: duplicate key value violates unique constraint "ComanyID_key" But my relationship are the same of the project example. Alessio
2009/9/29 alessio c <viandante68@...> Hi, _______________________________________________ glom-devel-list mailing list glom-devel-list@... http://mail.gnome.org/mailman/listinfo/glom-devel-list |
|
|
Re: Related recordsOn Tue, 2009-09-29 at 09:51 +0200, alessio c wrote:
> I keep receiving this error: > > ERROR: duplicate key value violates unique constraint "ComanyID_key" > > But my relationship are the same of the project example. I suspect that your relationship doesn't make sense somehow. For instance, maybe you are trying to use the related table's primary key as a to key from the first table. Glom would then be trying to set the related table's primary key to match the from field in the parent table. We should probably try to prevent you from doing this. I could check if you can send me the .glom file. > > Alessio > > 2009/9/29 alessio c <viandante68@...> > Hi, > > I don't know if you guys have read my previous email. > > I am having problem in using the related records object. I > have enabled the editing and the automatic creation of > records, but if I create a record in the portal it doesn't > automatically create the related foreign key. > > Are there any advices on how to use the portal in Glom? > Because in Filemaker I was using it without problems, I guess > it's only a different approach that I still don't know well. > > Please, some help, it's a stupid question, but there is no > documentation on it! > > Alessio. > > _______________________________________________ > glom-devel-list mailing list > glom-devel-list@... > http://mail.gnome.org/mailman/listinfo/glom-devel-list murrayc@... www.murrayc.com www.openismus.com _______________________________________________ glom-devel-list mailing list glom-devel-list@... http://mail.gnome.org/mailman/listinfo/glom-devel-list |
|
|
Re: Related recordsOn Tue, 2009-09-29 at 10:58 +0200, Murray Cumming wrote:
> On Tue, 2009-09-29 at 09:51 +0200, alessio c wrote: > > I keep receiving this error: > > > > ERROR: duplicate key value violates unique constraint "ComanyID_key" > > > > But my relationship are the same of the project example. > > I suspect that your relationship doesn't make sense somehow. For > instance, maybe you are trying to use the related table's primary key as > a to key from the first table. Glom would then be trying to set the > related table's primary key to match the from field in the parent table. > > We should probably try to prevent you from doing this. I have made a change in the code http://git.gnome.org/cgit/glom/commit/?id=c291bc2bb0b2bc72ac57e8162f11749f68d45d72 which should make this clearer in future versions of Glom by preventing you from using a primary key (or unique key) for this. -- murrayc@... www.murrayc.com www.openismus.com _______________________________________________ glom-devel-list mailing list glom-devel-list@... http://mail.gnome.org/mailman/listinfo/glom-devel-list |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |