Click here to Skip to main content
15,907,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
To be honest not sure, what angle to attack from. generally speaking I'm asking for links/suggestions. I want to learn here, so any sort of help is great in my eyes.

What I have tried:

I have an sql query line to extract the data, then a line to define the length of each column and finally a line that reformats the data to present in a different form/table.
which looks like code below:
dd key="LineFormat" value="BG{DATE}{TOTALCOUNT}{TOTALAMOUNT}{CASHCOUNT}{CASHAMOUNT}"/>
Posted
Updated 5-Sep-18 1:21am

1 solution

Although I cannot share the code, itself, I can give you some thoughts on how you do a generic SQL sequence.

The application which I have creates an input screen (HTML form) which passes parameter to the server which executes a SQL Stored Procedure which returns the table data which is formatted into a table with named column headers. A form is important in that the page content, given a name for a control, will pass it's value to the SQL engine. Any number of controls.

Here's what I can do to help:   If you want a very generic I/O system then the rules, interestingly, have to be very strict. In the above, the format of the stored procedure is very strict. Our DBA has used this for roughly 700 reports, which also include insert/update/delete and user-friendly filters.

A nearly universal Form->query->table setup. A good many bells-and-whistles, such as direct dump to Excel sheet (as XML). So, per the underlined section above, abstract what you are doing: such as 'all fields are the same.'
 
Share this answer
 
v2
Comments
Graeme Cooper 5-Sep-18 10:49am    
Thanks for the hint.
I need to set a few parameters first, I'll solider on. If anything happens I'll be back.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900