Parent-Child / childformdialog - cannot add record on child form of a child form...


Parent-Child / childformdialog - cannot add record on child form of a...
Author
Message
Fabian R Silva, -
Fabian R Silva, -
Advanced StrataFrame User (779 reputation)Advanced StrataFrame User (779 reputation)Advanced StrataFrame User (779 reputation)Advanced StrataFrame User (779 reputation)Advanced StrataFrame User (779 reputation)Advanced StrataFrame User (779 reputation)Advanced StrataFrame User (779 reputation)Advanced StrataFrame User (779 reputation)Advanced StrataFrame User (779 reputation)
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.
Edited 14 Years Ago by Fabian R Silva, -
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search