Re: Favorite form controls for multivalues



On Jan 16, 1:23 pm, Tony Gravagno
<address.is.in.po...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
dawn wrote:
<snip>
Right now, each time we want to maintain a multivalued field, transfer
of the data backing whatever control is selected (examples show a
textarea) must be hand-coded, so I want to abstract that behavior.
But, of course, there are different data structures backing different
controls, so if we abstract the behavior, we might want to choose one
of these as the default data structure.

Understood.

I'm looking for just one viable production-quality option that could
be used for maintaining any multivalued list.
At this point I have the following in mind:
A table with a single column of <input> elements for the values
While the textarea approach covers the requirements as simply as
possible, this approach covers the requirements with a production-
quality control, perhaps as simply as possible.

You've narrowed it down. The table with the single column seems to be
the best possible middle of the road choice. The text area doesn't
allow for structured data, but the table/grid can be used like a text
area.

I think you have your answer. Now you just need to work out how to
accomplish this with the toolset. If Zen can't do it, DesignBais is
being ported to Cache... ;)

T

For anyone interested, I had another chat with ISC and they already
have a control working so that for any MV file or "data model" (which
can include data from multiple files or be a subset of one), one can
now toss up what is considered more of a quick & dirty component that
will permit maintenance of all fields by way of the textarea approach
that I mentioned earlier. So, you can have a class that generates an
MV dict (which is what we do), or you can start from your dict and
generate a class, and then type a small amount of code and you get a
web page with a form for maintaining that file (with AJAX, so, for
example, it can have tabs and there is no refresh of the page when
users go between them).

You don't have to do any clicky-clicky to get this (I'm not a big fan
of spec'ing instead of coding, unless it is a round-trip spec with the
code). It is all coded using mvbasic and cache's object language with
XML to specify the page components. Sweet, very sweet.

They are considering what to do regarding the grid (table) request as
well, otherwise we will figure out how to write such a component, but
since others will likely want it too...

The slowest part of this process was me figuring out what to request.
They have been very responsive.
cheers! --dawn
.



Relevant Pages

  • Re: Favorite form controls for multivalues
    ... This is a reasonable model for backing a textarea ... control, but needs to be parsed again for a table. ... the time for maintaining multivalues in a browser UI, ... Right now, each time we want to maintain a multivalued field, transfer ...
    (comp.databases.pick)
  • Re: Control.Remove() increases CPU usage and hangs application
    ... RobinS wrote: ... from the user control. ... Once i try to focus another control in the app, ... textArea_ = new TextBox; ...
    (microsoft.public.dotnet.framework.windowsforms)
  • invoking onclick when pressing the Enter key, in a textarea
    ... I started researching this and came upon this post by Michael Winter, ... If some other control has focus, ... you'll have to handle the onkeydown event on ... If I just want the one textarea to trigger an event when the ...
    (comp.lang.javascript)
  • Re: Favorite form controls for multivalues
    ... -delimited string returned when reading a multivalued field ... This is a reasonable model for backing a textarea ... control, but needs to be parsed again for a table. ... DesignBais applications on our Nebula R&D website. ...
    (comp.databases.pick)
  • Re: CLOS style question
    ... > I think all he was asserting that tablular data structures are hard to ... > If anyone is under the impression that Lisp only has lists as its ... > how whether tabular data is implemented using lists, ... > they use for displaying program control elements in Lisp-based systems. ...
    (comp.lang.lisp)

Loading