From: Malte S. <mal...@co...> - 2011-06-23 08:34:17
|
Hi Frank, so I think you answered that "context aware widgets" are the way to go, though I'm not entirely sure that naming the ExtJS Class exactly as the widget is a good way to go. Better to have a field extjs_class with the widget, which should default to the widget_name, but not be bound to it (this way, if we have e.g. 3 different Classes implementing a Category Drop Down, the Administrator could choose which one to use without the need to do some coding). Additionally, OpenACS and ]project-open[ sometimes has this magic happening where by naming something you create a certain behavior which I don't envision is developer friendly. Best wishes Malte Am 23.06.2011 um 09:47 schrieb Frank Bergmann: > Hi Malte, > > I "see" exactly the same issue. > > However, I would propose to add this addition information to the DynField _widgets_ > instead of the attributes. > > For Sencha, I envision to create widget classes with the same naming as in DynField > widgets, so that we don't need an additional field. What do you think about this? > > Cheers! > Frank > > Von: Malte Sussdorff [mailto:mal...@co...] > Gesendet: Donnerstag, 23. Juni 2011 09:37 > An: PO DEV > Betreff: [project-open-development] Multiple widgets per attribute > > Hello, > > I was wondering if we need multiple widgets per Attribute. Here is the rational. > > Up until recently we only used widgets to display dynfield attributes with HTML in an ad_form. Hence a single widget per attribute was fine. We did not concern ourself with the Display of the data itself as we display the raw data from the database tables > > With the addition of Export Data to Excel we needed to add information on how to create the XML for the table column, in effect creating the need for a display widget. > > With the embracing of ExtJS we run into the issue that we need Widgets which generate the code for Display and editing a field in an ExtJS Form. Surely you could write that code manually, but that would defeat the purpose of Dynfields. > > So for me it would make sense to have context aware widgets or multiple widgets depending on context. How do others see this? > > Just posting this as a thought to keep in mind and maybe ponder a little bit about while you develop your respective applications. > > Best wishes > Malte > -- > > Malte Sussdorff > > cognovís GmbH > Schrödersweg 27 > D-22453 Hamburg > Mobil: +49 (0)151 / 230 33 826 > Fon: +49 (0)40 / 386 60 521 > Fax: +49 (0)40 / 386 60 523 > www.cognovis.de > > HRB Hamburg 28909 > Geschäftsführer: Malte Sussdorff > Diese Nachricht ist streng vertraulich und enthält rechtlich geschützte Informationen. Sie ist nur für die Adressaten bestimmt. Falls Sie diese Mail fälschlicherweise erhalten haben, bitten wir Sie freundlicherweise uns umgehend telefonisch oder per E-Mail zu informieren und den Inhalt dieser Nachricht in Ihrem System zu löschen. Diese Nachricht ist anfällig für Datenkorruption, Abfangen von Daten, nicht autorisierte Änderungen, Verfälschung und Viren. Wir senden und empfangen E-Mails nur auf der Grundlage, dass wir nicht für solche Datenkorruption, Abfangen von Daten, nicht autorisierte Änderungen, Verfälschung und Viren und deren Konsequenzen haften. > This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. E-Mail is susceptible to data corruption, interception, unauthorised amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, unauthorised amendment, tampering and viruses or any consequences thereof. > > > > > > > > > > > > > > > > -- Malte Sussdorff cognovís GmbH Schrödersweg 27 D-22453 Hamburg Mobil: +49 (0)151 / 230 33 826 Fon: +49 (0)40 / 386 60 521 Fax: +49 (0)40 / 386 60 523 www.cognovis.de HRB Hamburg 28909 Geschäftsführer: Malte Sussdorff Diese Nachricht ist streng vertraulich und enthält rechtlich geschützte Informationen. Sie ist nur für die Adressaten bestimmt. Falls Sie diese Mail fälschlicherweise erhalten haben, bitten wir Sie freundlicherweise uns umgehend telefonisch oder per E-Mail zu informieren und den Inhalt dieser Nachricht in Ihrem System zu löschen. Diese Nachricht ist anfällig für Datenkorruption, Abfangen von Daten, nicht autorisierte Änderungen, Verfälschung und Viren. Wir senden und empfangen E-Mails nur auf der Grundlage, dass wir nicht für solche Datenkorruption, Abfangen von Daten, nicht autorisierte Änderungen, Verfälschung und Viren und deren Konsequenzen haften. This e-mail is confidential and may contain legally privileged information. It is intended only for the addressees. If you have received this e-mail in error, kindly notify us immediately by telephone or e-mail and delete the message from your system. E-Mail is susceptible to data corruption, interception, unauthorised amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, unauthorised amendment, tampering and viruses or any consequences thereof. |