StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Parent-Child / childformdialog - cannot add record on child form of a...
Parent-Child / childformdialog - cannot add record on child form of a child form...
Post Reply
Like
1
Parent-Child / childformdialog - cannot add record on child form of a...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Fabian R Silva, -
Fabian R Silva, -
posted 12 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
I have an "invoice form" that shows 3 labels with 3 buttons, the labels are totals of the "paymentsBO" grouped by a "TYPE" (credit/debit/cash)
when I press any of the 3 buttons, I call a child form (via a childform.showdialog). on this called form ("payments") I show a listview filtered by type (can have more than 1 record by type)
this listview via childform automation can call "add/edit/delete" that via automated childform have to call a "1-record" form
the structure is something like that:
INVOICE FORM
content:
INVOICE BO (parent of payments)
PAYMENTS BO (CHILD OF INVOICE BO)
- the invoice form shows 3 labels with the sum/total amounts of cash/credit/debit payment types
- the invoice form have 3 buttons near each sum label to call the child form (via childformdialog)
Child form with listview grids will use the same BO with a filter:
can be called with a paramt that:
PAYMENTS BO - FILTER: TYPE=PAYMENTS_DEBIT
PAYMENTS BO - FILTER: TYPE=PAYMENTS_CREDIT
PAYMENTS BO - FILTER: TYPE=Ct chASH
- the child form with listview contains a grouped listview with add/edit/delete button and child form relationship that can add, edit or delete automatically
- if press a button from listview automation, the child form called is a "1-record" child form called from child form dialog automation
--------------------------------------------------------------------------
I not filtered the listview from the invoice yet
, still the problem is that I defined two chained child form dialogs (from invoice to payment form with listview grid and from that listview to 1-record payment)
I adding a invoice and calling some of the 3 button for payments...... (do the same each one still not filtering....)
The listview called from the invoice shows, but when I like to call the 1-record form with the "add" button, the "1-record" form shows all binded controls disabled. (it not calls the add method on paymentsBO?)
I edited the "grid/listview paments child form" payments BO to have an automatic snapshow key that differs from the invoice paymentsBO key, but this not changed anything, I not sure what is the best thing I can do to have this working ok. (I have to manually call the child form copyng data without child form dialog and control events /data by myself?)
in resume. please help me to determine what is the best approach to:
- have a "main form" (invoice) with not binded controls on the business Object "Payments BO" (that is used to show labels of sum of records based on a type column)
- on the invoice form, the form have 3 buttons that call a grid with filtered records by "type" column on payments BO (not filtering yet, assume that not filter occurs)
- that grid/listview form payments form have to call another form to add/edit/delete 1 record of that filtered type (and this not be disabled, have to add the record when go back to grid show it)
If to be better understand need a sample (can use the order/orderitems stratasample....) I will do it to show the problem.
thanks in advance.
Tags
add record
automation
child form automation
child form dialog
Edited
12 Years Ago by
Fabian R Silva, -
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Parent-Child / childformdialog - cannot add record on child form of a...
Fabian R Silva, -
-
12 Years Ago
Hi Fabian, I don't quite understand the whole problem here, but be...
Edhy Rijo
-
12 Years Ago
thanks for reply! forget the filter... I still without implementing it...
Fabian R Silva, -
-
12 Years Ago
[quote][b]Fabian R Silva, - (8/13/2012)[/b][hr]...the listview form...
Edhy Rijo
-
12 Years Ago
Hi all, I think I am running in to the same problem as Fabian. I...
Govinda Berrio
-
12 Years Ago
Hello All, I found a way to work around this. Most likely what is...
Govinda Berrio
-
12 Years Ago
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search