Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Dynamic Datawindow row count on parent button

Dynamic Datawindow row count on parent button


My situation is as below:

We are using pfc in our application. What all I want to do it, when we click on button (Inherited from object - writing code on parent button object) it should capture row count from the data window which is exists on the same window.

I am storing window, data window and button name in database.

window name- w_emp

datawindow name - d_emp

button name - b_emp

so when user click on button, I am retrieving those data and check if it's same window, data window and button exists which I am looking for.

If it is YES then I want to get row count of data window on button clicked event.


I don't want to use any hard coded logic for that like...

If windowname = 'w_emp' then
End if...

I want something like, where I can do the same thing with some line of code without doing if...else or case statement where I have to check for multiple conditions.

I am able to access window and data window name at button level.

string ls_window string ls_datawindow

datawindow ld_test

select window_name, datawindow_name into ls_window, ls_datawindow from table_name where button_name = 'b_emp';

ld_test.dataobject = parent.ls_datawindow // It is giving an error

I want to get datawindow row count which is coming from database

Make sure that I want to do at parent level where I can get request from entire application whenever user clicks on button. so I need dynamic logic for the same.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close