Home » Developer & Programmer » Forms » HOw to take print on form with multi block? (Form 6i)
|
Re: HOw to take print on form with multi block? [message #654513 is a reply to message #654489] |
Thu, 04 August 2016 08:08  |
 |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
If you have problems with calling the report from Forms per se, there are numerous examples here (use the Search) as well as elsewhere on the Internet.
If it is the "print contents of the tabular block" problem, here's one idea: if that block was populated by fetching data from the database (i.e. by executing a query, even with some conditions), the you might create a report which accepts the whole WHERE clause as a parameter. In Oracle Reports, that would be a lexical parameter. Read about it in Reports' Help, but - shortly - it looks like this:select col1, col2, ...
from some_table
&lex_where where "&lex_where" represents that lexical parameter.
In a form, you'd need to know that WHERE clause, and you can find it with GET_BLOCK_PROPERTY built-in and its LAST_QUERY property. Then you'd pass it to the report. Note that - if you do that by using GLOBAL variables, they can accept up to 255 characters so you might need to split the WHERE clause into several pieces (using the SUBSTR function), pass them to report, merge them back and - finally - use them (it) as the lexical parameter.
On the other hand, if that's not what you are doing, could you describe it once again, providing some more details?
By the way, I can't test your FMB as I don't have the Forms installation here. Even if I did, I don't have table(s) (as well as other objects you might have used when creating that form) so I can't run it anyway.
|
|
|
Goto Forum:
Current Time: Thu Apr 17 06:22:44 CDT 2025
|