Advertisement

04.15.2008 at 04:33PM PDT, ID: 23325612 | Points: 250
[x]
Attachment Details

Dynamic SQL report viewer in PB App

Asked by byteboy11 in PowerBuilder Programming Language

Im adding a window in our PB app that will allow the user to select
from a list of saved .SQL files and execute one file then show the results in a report (datawindow).

I have the framework done I'm just deciding on the best way to create the datawindow used for the report.
The main question I have is:

1. How to dynamically create the datawindow with the column headers based on the sql statement where I dont know what the column headers will be before hand. Such as that If I have a statement like 'select * from employee' I can get a datawindow generated that will  look like this:

Emp Name   Emp #   Emp Address
------------------------------
John       1       123 Main
...Start Free Trial
 
Loading Advertisement...
 
[+][-]04.15.2008 at 07:29PM PDT, ID: 21364318

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 09:34AM PDT, ID: 21369602

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 09:59AM PDT, ID: 21369838

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.23.2008 at 03:45PM PDT, ID: 21426238

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 10:22AM PDT, ID: 22369402

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628