OR_VIEW printing (OpenInsight Specific)
At 24 MAY 1999 02:22:01PM Gene Sorbo wrote:
Hello again,
I have a form in my application that allows users to enter SELECT and/or LIST statements, which are then processed within a SSP that executes the statements via OR_VIEW. The form has controls as follows:
SELECT:
SAVELIST:
GETLIST:
RLIST:
Users can enter statements into any of the controls, and the SSP then processes accordingly.
When the RLIST report displays on the screen and the user chooses 'PRINT' to send it to the printer, I want to be able to basically intercept the print call, and restart the SSP, re-executing any SELECT that the user may have originally entered, then direct the final output to the printer.
Can this be accomplished using OR_VIEW? Has anyone implemented the
userarg portion of "OR_VIEW( ReportName, RLScript, userarg )" that I've seen referenced in postings here?
I could force the user to enter all of the criteria in the LIST portion of the form, but am trying to avoid that.
Any help would be appreciated.
Thanks.
Gene
At 25 MAY 1999 10:03AM Don Miller - C3 Inc. wrote:
Gene ..
This "feature" has driven me crazy. I have not found any way to avoid having to have the SELECT and WITH criteria buried in the R/LIST sentence that is passed to OR_VIEW. Even worse, if you don't and the user mashes the Print button, then you will get the whole table. This also used to be a "feature" in the AREV implementation of a report display window (the ALT-P). At this point, I simply make a rather lengthy R/LIST sentence containing all the necessary criteria. Another thing to watch out for is the fact that if you use a LIMIT clause, you must also include the LIMIT field in your list of fields to output. This didn't used to be the case in AREV. We are able to show the user what the problem is by setting STATUS to 0 and then doing a GET_STATUS(STATUS) after the OR_VIEW call. If STATUS comes back, we stick it in a Message box and show it before terminating.
Don Miller
At 25 MAY 1999 11:35AM Gene Sorbo wrote:
Ughh on all counts!
When (if) I have a free minute, I'm going to play with the supposed 'userarg' call that OR_VIEW 'supports'… .
If I find out anything, I'll let you know.
Thanks Don.
Gene
At 29 MAY 1999 08:46PM Richard Bright NZ wrote:
Just a thought, have you considered disabling the PRINT button -
ie call Select and save list
activate saveselectCall OIMAINSet_Property ... to disable print buttoncall msg do you want to printactivate saveselectcall OIMAIN in print modeThis method works for me. If you want specific code let me know.
At 31 MAY 1999 09:18PM Gene Sorbo wrote:
Richard,
This looks like exactly what I want to accomplish. Can I access the OR_VIEW print form that displays with the PRINT button to examine it's controls…?
In addition, it would be great to see your code as well.
Thanks for responding.
Gene Sorbo