Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Looking for best approach to fire triggers: using datagrid or autoform or usercontrols ?

2 views
Skip to first unread message

Peter Ghyselincks

unread,
Aug 9, 2006, 4:22:33 AM8/9/06
to
Hello All,

I have to devellop a userinterface(form) to handle an ECO object and all its
associations en subassociations.

Assume following abstract model:

1 Account (---) 0..* ArticleReservations
1.Account (---) 0..* Ticket
1.Ticket (---) 0..* TicketDetails
Remark: Every object has a statemachine and appropiate states.

Approach 1: using autoforms
This way, four separate forms become wide spread all over the screen.
Problem: My customer will be confused using such a GUI, and it must be
solved by another approach

Approach 2: using datagrids.
Place four datagrids on one form, and let things work together using
referencehandles and so on.
All needed triggers can be fired using dedicated buttons. Right! But...
My customer wil be confused about the placement of the triggerbuttons,
because he has to select the right object in the datagrid before firing the
correct trigger.
Problem: this approach is only useable if triggers can be fired using
triggerbuttons (or something like that) on each row in the datagrid.
(clicking nearby changing things)

Approach 3: using usercontrols
For each objectinstance (!), I have to create a Usercontrol, and my
triggerbutton onClick-actions will be decorated with a lot of GUI stuff.
(adding controls, removing controls, databindings, subscribtion to
objectadded and objectremoved, evaluates and so on...)


In first release, the application is single-user on local database (must
migrate to multi-user and databaseserver).

All other approaches are welcome too, but I prefer to keep de code simple or
ECOnomic :-)
Maybe someone can help me to dive into approach 2, because of code reuse to
other (and new) applications.


regards
Peter G.


Peter Morris [Droopy eyes software]

unread,
Aug 9, 2006, 4:41:44 AM8/9/06
to
Hi

How about adding a context menu to the grid and letting the user choose
their trigger options there?


Peter Ghyselincks

unread,
Aug 9, 2006, 4:02:03 PM8/9/06
to
"Peter Morris [Droopy eyes software]" <pete@NO_droopyeyes_SPAM.com> schreef
in bericht news:44d99fc8$1...@newsgroups.borland.com...

> Hi
>
> How about adding a context menu to the grid and letting the user choose
> their trigger options there?
>
>


Yes, a context menu is also an option. In order of my preference:

1) Data grid with buttons

2) Data grid with context menu

3) Customized auto form or/with user controls

Why placed on second place: because I know my users. Most of them have no
computer experience. That's why I prefer to create a GUI with
point-and-click usability.

What do you think about realization of the first and the second approach?
Second is the easiest one?

Greetings

Peter G.


dmitriynagirnyak

unread,
Aug 12, 2006, 8:34:33 AM8/12/06
to
Hello Peter,

> Approach 3: using usercontrols
> For each objectinstance (!), I have to create a Usercontrol, and my
> triggerbutton onClick-actions will be decorated with a lot of GUI
> stuff.
> (adding controls, removing controls, databindings, subscribtion to
> objectadded and objectremoved, evaluates and so on...)
> In first release, the application is single-user on local database
> (must migrate to multi-user and databaseserver).
>
> All other approaches are welcome too, but I prefer to keep de code
> simple or
> ECOnomic :-)
> Maybe someone can help me to dive into approach 2, because of code
> reuse to
> other (and new) applications.
> regards

I reported feature request.
This should allow to make autoforms more accurate.
Not sure if this can help bu just have a look:
http://qc.borland.com/wc/qcmain.aspx?d=27124

BTW, the report is Closed. Where from can we get it?

Cheers.


Peter Morris [Droopy eyes software]

unread,
Aug 12, 2006, 9:21:07 AM8/12/06
to
> BTW, the report is Closed. Where from can we get it?

Resolution = retest

I think that means "Reevaluate for next release"


Peter Ghyselincks

unread,
Aug 12, 2006, 10:09:26 AM8/12/06
to

"Peter Morris [Droopy eyes software]" <pete@NO_droopyeyes_SPAM.com> schreef
in bericht news:44dd...@newsgroups.borland.com...

> > BTW, the report is Closed. Where from can we get it?
>
> Resolution = retest
>
> I think that means "Reevaluate for next release"
>
>

Oke, For now I started implementing the context menu's. With the least
effort to reach the most...

Showing triggerbuttons on each row in a datagrid must be great (buttons like
'Cancel', 'Detail' and so on...)

Thanks for responding.
Peter G


0 new messages