Discussion:
[Erp5-dev] multi-relation editor
bartek
2008-07-07 13:10:22 UTC
Permalink
Hello,

I found out that Django's "admin" tool has a wonderful tool for editing
many-to-many relations (see attached screenshot). It is fully JS-driven,
does pretty much the same as our MultiRelationStringField, but has a
number of advantages:

- much more intuitive, therefore faster to learn
- works much faster (meaning: instantly)
- less server load, since all operations are done locally in browser

Maybe it would be worth considering to use this, or similar, tool in ERP5?

Bartek
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ekran_3.png
Type: image/png
Size: 13080 bytes
Desc: not available
URL: <Loading Image...>
Boris Kocherov
2008-07-07 13:59:25 UTC
Permalink
Hello,

Does the "tool for editing many-to-many relations" mean "widget for
editing 'many-to-many relation' fields"?

Does this widget support search on different fields?
Does this widget support multipage mode?

IMHO "many-to-many relation field" and "one-to-many relation field" use
the same widget.

Regards,
Boris Kocherov
Post by bartek
Hello,
I found out that Django's "admin" tool has a wonderful tool for editing
many-to-many relations (see attached screenshot). It is fully JS-driven,
does pretty much the same as our MultiRelationStringField, but has a
- much more intuitive, therefore faster to learn
- works much faster (meaning: instantly)
- less server load, since all operations are done locally in browser
Maybe it would be worth considering to use this, or similar, tool in ERP5?
Bartek
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
bartek
2008-07-07 14:19:47 UTC
Permalink
Post by bartek
Hello,
Does the "tool for editing many-to-many relations" mean "widget for
editing 'many-to-many relation' fields"?
Yes.
Post by bartek
Does this widget support search on different fields?
In a sense, yes - it searches by what is displayed.
Post by bartek
Does this widget support multipage mode?
No.
Post by bartek
IMHO "many-to-many relation field" and "one-to-many relation field" use
the same widget.
You mean, in Django or in ERP5? In Django it is configurable, you can
use classic "select multiple" or the widget.

Bartek
Post by bartek
Regards,
Boris Kocherov
Post by bartek
Hello,
I found out that Django's "admin" tool has a wonderful tool for editing
many-to-many relations (see attached screenshot). It is fully JS-driven,
does pretty much the same as our MultiRelationStringField, but has a
- much more intuitive, therefore faster to learn
- works much faster (meaning: instantly)
- less server load, since all operations are done locally in browser
Maybe it would be worth considering to use this, or similar, tool in ERP5?
Bartek
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
Jean-Paul Smets
2008-07-07 13:31:01 UTC
Permalink
Hi,

The Proxy system in ERP5 paves the way for users to select their
prefered widget for each purpose. This means that providing an
alternative to
- relation field
- date fields
- etc.
with AJAX is becoming feasable. We welcome any contribution which:
- is fully tested with functional tests (Zelenium)
- does not break anything in the current system
- does not replace existing fields (which many user love or are used to)
- does not lower rendering time of forms

Now, about the relation field, the current one has the following
caracteristics:
- requires only two server transaction, whatever the number of
fields in a form
- compatible with selections out of millions of items
- does not stop the use when entering data

This is why it is much more suitable for network environments with high
latency and power users than more interactive solutions such as the one
you are describing.

Also, you should consider the following constraints about AJAX tools.
- what if the user is asked to select 3 items out of 10,000,000 ?
- is the widget compatible with network latency of 1,000 ms ?
Usually, most interactive widgets are nice when they are used with
little data on a local network and become unusable as soon as network
latency and data size increase.

One customer of ours chose ERP5 rather than interactive tools as the one
you describe because those tools failed on their VPN with millions of
records, although it was wonderful at first.

Regards,

JPS.
Post by bartek
Hello,
I found out that Django's "admin" tool has a wonderful tool for editing
many-to-many relations (see attached screenshot). It is fully JS-driven,
does pretty much the same as our MultiRelationStringField, but has a
- much more intuitive, therefore faster to learn
- works much faster (meaning: instantly)
- less server load, since all operations are done locally in browser
Maybe it would be worth considering to use this, or similar, tool in ERP5?
Bartek
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://mail.nexedi.com/mailman/listinfo/erp5-dev
--
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
ERP5 Enterprise: Free / Open Source ERP for Critical Applications
http://www.erp5.com
ERP5 Express: Hosted Open Source ERP for small companies
http://www.myerp5.com
Nexedi: Consulting and Development of Free / Open Source Software
http://www.nexedi.com
Loading...