- Krishna Mohan Gullap
- PowerBuilder
- Monday, 27 January 2025 07:13 PM UTC
Sorry for raising this as a Critical question though it sounds like a simple thing. This may be a dumb question, if so, sorry about that as well :-)
So, I have a datawindow which has 2 groups, group 1 based on say a Department ID and group 2 based on say a Manager ID. I have rows in the detailed band, which are, of course, grouped on Department ID, and Manager ID and sorted in the same order
I have placed the Department ID column in the header band of Group 1 and the Manager ID in the header of Group 2. In the code, I need to provide a functionality so that the user can right click on the 'Manager ID' in the header band of Group 2 (from the user perspective, this will be just a report) and navigate to a window that's already existing, which will pull up the Manager ID record and the necessary details, and this window can take the Manager ID as a parameter during run time and retrieve the data accordingly
I am planning to use the rbuttondown event as we already have a pop-up menu designed for this with the usual options that the user sees across the applications while doing a right-click. All I need is to know how to get the value in the 'Manager ID' column in 'Header Group 2'. I can't use GetItemXXX functions as they don't work without a row and the row in the rbuttondown event is 0 for all bands except detail
Any help is sincerely appreciated
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.