PowerBuilder DW PFC

Posted on 2012-08-29
Last Modified: 2012-10-30
I have a 3 PFC datawindows on a page.  
   DW#1 is a master list.  
   DW#2 is the detail of the row selected from DW#1.  
   DW#3 is a list (comes from another table) based on the row selected from DW#1.

When the user clicks the save button the pfc takes care of updating any changes in DW#2.  

The save button will also update any rows in DW#3 (two of the columns are updatable in this DW).  

There is also a delete button.  When the user clicks it, it deletes the row from DW#1 & DW#2.  I presumed it would also delete the rows from DW#3 but it does not seem to work.
I tried using the RowsMove method to put them into the delete buffer first.   This removes them visually from the DW#3 but it does not remove them from the underlying db table.

Am I missing something?

Here is a code snippet.

cb_delete.clicked() event
int li_rc, li_rowcount
li_rowcount = dw_3.rowcount()
li_rc=dw_3.RowsMove(1, li_rowcount, Primary!,  dw_3, 1, Delete!)

call super::clicked
Question by:Fraser_Admin
    LVL 12

    Expert Comment

    by:Harish Varghese
    Hello Fraser_Admin,

    Can you please post the code in the ancestor of cb_delete button (invoked by super::clicked)?

    I doubt it may be updating only DW1 and 2.


    Accepted Solution

    I ended up using a work around to get this to work and forgot to remove the question.

    Author Closing Comment

    I had to use a work around to get this work.  There was no response to the question at that point.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
    Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now