| Home | Previous Lesson: Course 3:: Session 24 :: Page 250 Next Lesson: Course 3:: Session 24 :: Page 270 |
| Retrieving
the Data PFC has defined a user-defined event pfc_retrieve for the DataWindow user object "u_dw". However, there is no code written to that event and you need to write the code. Method 1: If the window has only one DataWindow, say like in w_product_master, you can write this code in the pfc_retrieve event. Method 2: If you have multiple DataWindow on the window and need to retrieve from more than one DataWindow, define a user-defined event "ue_retrieve" at the window level and write the code. Return the number of retrieved rows as the return value as shown below: Return This.Retrieve() Follow the second method since we are sending "ue_retrieve" message from the "File/Retrieve" menu item. We know that "w_product_master" doesnt have multiple DataWindows, but, we are using the second method because, to just make all the application consistent. |
| Home | Previous Lesson: Course 3:: Session 24 :: Page 250 Next Lesson: Course 3:: Session 24 :: Page 270 |