Re: ?updating fields

Frank Stefani (EAD-Frank.Stefani@t-online.de)
Fri, 14 Feb 1997 11:35:05 +0100

To subscribers of the xforms list from Frank Stefani <EAD-Frank.Stefani@t-online.de> :

I want to thank everybody for the hints - some were really useful :-)

The major common point of all suggestions was to use *global*
pointers. I thought I could avoid this. Internally (in XForms) there
are pointers to the first and the last object of a form. My solution
(before I started this thread here) was to search the linked pointers
from FL_FORM->first to FL_FORM->last (see "forms.h"). I built a loop
and 'switch'-ed all classes and (within the classes) all the types.
So I could find any object in any form and identify it. The own
thing missing was/is a possibility to distinguish:

"is this the customer form's name field"

or

"is this the customer form's street field"

Maybe I was misunderstood a bit (I'm german and can't express myself
in english as I can in german). Here are the thoughts which invoked
my first mail concerning field updating:

XForms provides many functions for all purposes (event handling,
signals, I/O redirection and much more). So I simply expected some
functions to access objects other than the current one.

Therefore I expected something like a (unique) object ID or an
internal object name, so that I could reference to it e.g.

"update customers 'first name' field"
"take customers 'custom_id' field and build an SQL query with it"
"initialize form 'customer' with default values"
"push control panels 'exit' button"

Maybe it's useful to add an 'object ID' to the FL_OBJECT structure?

Have a nice weekend, everybody on the list :-)

Frank.

-- 
---------------------------------------------------------------
      /_____/    /___/     /__ \      EAD-Systeme GmbH
                              \ \     Nachfeldstr. 4
     /__/      /______/   /           D-82490 Farchant, Germany
                          ____/ /     Phone: +49 8821 9623-0
    /______/  /_/   /_/  /_____/      Fax: +49 8821 9623-20
---------------------------------------------------------------
Email: <EAD-Frank.Stefani@t-online.de>
---------------------------------------------------------------

_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/