Generate Forms with a Batch
Hello,
Is it possible to generate forms with a batch program or similar multiple adobe interactive forms to a network/local drive? Same form but with pre-filled content?
Cheers,
Hoplaa
We are doing something similar... We generate a certain form for X number of projects in background and email them to the requestor.
We collect all the data, call FMs 'FP_JOB_OPEN', loop at our form data table and pass data to the form (import back the fpformoutput parameter). then call Fm 'FP_JOB_CLOSE'
We then use that data to create an email.
So, yes it seems very possible to just save that fpromoutput to your local drive
Similar Messages
-
Error in generating form with 6i
I have installed designer 6i rel 2 with form developer 6i on NT
4.0.
When in design editor, I want to generate the form with generate
module, the system generate "CDR-21600: A running Generator or
Utility has failed."
Also in action column writes: " It is possible that the internal
cache is now in an inconsistent state. You are therefore
recommended to close and restart the application."
Could anyone tell me what is the problem and how to solve it.
thanksHere is an document which describes some known causes of CDR-
21600 errors. I hope it will help you.
PURPOSE
To describe some known causes of CDI-21600 errors and to
suggest possible solutions and workarounds.
SCOPE & APPLICATION
This note was written for users of Oracle Designer releases 2.1.x
and 6.0.
CDI-21600 errors occur most frequently during Design Capture and
when generating forms with the Forms and WebServer generators.
Investigating CDI-21600 errors
In Oracle Designer Release 2.1.2 and Release 6.0, this error has
the form:
CDI-21600 'A running generator or utility has failed'
The Release 2.1.1 error message was: 'Generator or Utility throw
an Exception'
The CDI-21600 error message means that the generator is hitting
an unhandled exception, also known as a GPF (general protection
fault). The CDI-21600 error masks the underlying exception error.
To see the real error do the following:
1. Go into the Registry Editor (REGEDIT).
2. Navigate to HKEY_LOCAL_MACHINE\software\oracle\des2_70
3. Set EXCEPT_HANDLING to 0 (by default it is 1).
Repeat the action that resulted in the error.
Known Causes of CDI-21600 Errors and Possible Solutions
Some of the reasons why CDI-21600 errors occur are listed below.
1. A common cause of CDI-21600 errors is failure to install the
necessary
Developer patches.
See [NOTE:64630.1] Developer Patches required to run
Designer with Developer
2. Check that Designer is running on a supported database. Also
check that the
TNS connection is correct.
See [NOTE:60705.1] Designer Certification Matrix (HTML)
3. Check for 'dangling' foreign keys, in other words FKs no longer
owned by any
table in the repository. Delete all invalid constraints.
Invalid constraints may be created if you use the repository
dump utility to
dump and restore external foreign keys referencing tables
shared into the
application system, without dumping and restoring the tables
that own them.
If you restore a complete dump (rather than a 'skeleton' one),
and then use
the 'Reconnect Share Links' option when restoring, you may be
able to
resolve this problem.
To get a complete list of 'dangling' constraints in your
repository, connect
using SQL*Plus and use the following query:
SELECT app.name, key.name
FROM ci_application_systems app, ci_constraints key
WHERE key.table_reference IS NULL
AND key.application_system_owned_by = app.id;
You can also run CKAZANAL.ANAL_REFERENCES on your
repository and delete all
the invalid constraints that it finds. You can run the Repository
Analyzer
from: Front Panel -> Repository Administration Utility -> Utilities.
NOTE: There may be inconsistencies in the repository that the
Repository
Analyzer cannot fix. You might solve such problems by
dropping all the
tables of your application, recreate them from the ERD,
then use the
DDT and recreate your modules.
[BUG:847190] CDI-21600 during forms generation: 'dangling'
foreign key
"Since the generator is running on a repository that contains
invalid
constraints and the Repository Analyzer solves the problem,
bug closed as
unfeasible to fix."
4. Check your modules for invalid or missing references such as
missing window
placements.
5. Try generating your module against default templates and
object libraries.
6. When capturing forms or libraries, try capturing the form or
library without
application logic, then capture the application logic on its own.
See [NOTE:1064690.6] CDI-21600 when capturing design of
form with
application logic
[BUG:757541] DESCAP: CDI-21600 error reported when
capturing with
application logic
Fixed In Ver: 6.0
[BUG:926383] Duplicate of [BUG:757541] This has been fixed in
2.1.2 patch
779559. However you would be advised to apply a later patch
such as 855635
which fixes more bugs in this area.
7. Make sure that all objects that are referenced by the form have
been
captured into the repository before capturing the form.
8. A CDI-21600 will occur if a lookup usage displays only one
column of
datatype DATE or if the column of datatype DATE is displayed
as the first
item in the block.
Workaround
Add more column usages to the lookup block and do not
display the DATE data
type column usage as the first item in the block.
9. [BUG:810472] CDI-21600 when 'Argument in Caller' is set
Fixed In Ver: 6.5.3.0
Workaround
Make sure that you have an argument in the called module that
is mapped to
the "Argument Passed Value" in the calling module. The only
way to get this
mapping back once the APV has the <Module Argument> label
is to delete it
and recreate it.
10. [BUG:801736] CDI-21600 on design capture of a form with
subclassed object
Fixed In Ver: 6.0.3.1.0 (backport)
Fixed In Ver: 6.5
You have an item that has been subclassed to an object.
Checking the Design
Capture option 'Capture Control Blocks' causes the CDI-21600
error. Uncheck
'Capture Control Blocks' and the problem does not occur. Open
the FMB in
Forms*Builder and look at Data Blocks -> Items. Break the link
to the
object, save the FMB, and the form will capture (similar to
[BUG:794872]).
Alternatively, ensure the link can be established.
11. [BUG:850436] CDI-21600 on generation of a form with template
having
subclassed object group
You try to generate a form out of Designer that uses a user-
defined
template. If a collection of objects in the template is grouped
into an
object group, dragged into the object library and then either
copied or
subclassed into a form, when the form is generated you get a
CDI-21600
error.
12. [BUG:822659] Module generation fails (CDI-21600) with multi-
column PK having
long prompt text
Fixed In Ver: 6.5.3.2
Module generation with multi-column primary key having long
prompt text
causes CDI-21600 with preference MSGSFT set.
Workaround
Shorten the prompt text of PKs may not be not applicable. You
may loose end
user information.
You may have the same problem with a mandatory compound
FK. CASEOFG tries to
generate a message '<P1> must be entered', where <P1>
contains all the
prompts of the bound items from the FK. If you reduce the
length of the
prompts, or set MSGSFT = NULL or WEDI = S or property
Mandatory?=No, it
works correctly.
13. [BUG:792542] Capturing application logic causes CDI-21600
(V2 style
triggers)
Fixed In Ver: 6.5.5
After removal of the v2 triggers, the form captures/merges OK
on 5.0.24.8,
provided patch 875027 has not been applied.
14. [BUG:790877] CDI-21600 if the primary/foreign keys have no
key components
Fixed In Ver: 6.5.11
Generating a module with tables having a primary key not
correctly defined
(no PK component) will cause a CDI-21600 error. This can
occur when
unloading a module from the RON. If you pick up the module
(and only the
module) in the unload set, the table and its PK are unloaded as
a skeleton.
Loading the .DAT file into a new application will create a PK
without a
component.
15. [BUG:771549] CDI-21600 if cannot connect to the DB with
connect string in
Options (Compile)
Fixed In Ver: 6.5.13
If you cannot connect to the DB with the connect string
specified in options
(Compile), the forms generator will fail with CDI-21600.
This problem occurs when you cannot connect to the DB
because:
- the username or password is wrong;
- or the SQL*Net alias is not defined in the TNSNAMES.ORA
file;
- or the SQL*Net listener is not started;
- or the DB is down.
16. [BUG:785106] CDI-21600 when generate master detail form
with preserve layout
[BUG:855812] is a duplicate of this bug.
Fixed In Ver: 5.0.24.6.0 (Bug:860426 Backport request for 2.1.2)
Fixed In Ver: 6.0
Fixed In Ver: 6.5.3
You have a master-detail Form with the Master having items
partly on a TAB
Canvas. Generate Module works OK. You enter Forms Builder
and move some
items on the tabs (just small changes, items are still on the
same tabs).
You change the look of the Detail and change Records
Displayed. Now in
Designer you generate the Module with Preserve Layout. You
get a CDI-21600
error. The problem might reproduce without doing any changes
in Forms
Builder, just by generating with Preserve Layout.
17. [BUG:891306] If primary key column of lookup in check
constraint comment of
base table
Fixed In Ver: 6.5.5
Workaround
Do not use the name of the bound item that is based on the
primary key
column of the lookup table in a check constraint comment of
the base table.
18. [BUG:896026] Forms gen throws assertion failure in
CVINI/BUILDACTIONITEM@/CV/CVI/CVIBNI.CPP
Fixed In Ver: 6.5.7
A problem is caused by a PL/SQL definition (function, package,
procedure)
being defined as a called module for the module you are trying
to generate.
To resolve the problem and enable the module to be generated,
remove all
Called Modules that are PL/SQL definitions (functions,
procedures or
packages).
See [NOTE:2107207.6] CDI-21600 during generation of module
or Assertion
Failure \cv\cvi\cvibni.cpp
19. [BUG:812333] CDI-21600 generating a web module after
adding an unbound item
Fixed In Ver: 6.5.3.0
Backport [BUG:1280667] raised to fix by 6.0.3.9
You add an unbound item (SQL expression) to a Web module.
When you try to
generate the module you get a CDI-21600 error. If you delete the
unbound
item the Web module generates correctly.
In a test case the problem occurred during validation of the
derivation
text, if the master module component was in a different module.
A workaround
was to rearrange module components so that this was not the
case.
20. [BUG:1627963] CCVDIAG::TRACEGENERATORMESSAGE
WHEN GENERATING INCORRECT
DERIVATION EXPRESSION
Message
CDR-21605: Failed while processing Module <mod> in function
CCVDiag::TraceGeneratorMessage BOF
Cause
The generator failed due to an unexpected error - the
error indicates the object the generator was processing
when it failed.
Helena -
Generating forms with absolete preferences
We have designer 6i with patch 4.2.
We generate forms with preference OLBOLD='Y' and CALLFM='Y' and USEPKR='QUERY'.
The generator make globals of primary keys as
GLOBAL.CG$<table_name>_<column_name>.
We have long table names
example: ZMPT_POSTAVKE_DOKUMENTOV_PO and primary key columns:
IID_DOKUMENT_PO,POSTAVKA_DOKUMENTA_PO,STATUS_STORNO
After generation all globals for primary keys are same:
GLOBAL.CG$ZMPT_POSTAVKE_DOKUMENTOV_PO.
So Generator generating code in procedure CGFF$CALL_MODULE only for one global
primary key variable (The others two are the same and Generator ignore them).
Is posible that Generator don't cut global primary variable at 37 character?
(global from example must be like this:
-GLOBAL.CG$ZMPT_POSTAVKE_DOKUMENTOV_PO_IID_DOKUMENT_PO
-GLOBAL.CG$ZMPT_POSTAVKE_DOKUMENTOV_PO_POSTAVKA_DOKUMENTA_PO
-GLOBAL.CG$ZMPT_POSTAVKE_DOKUMENTOV_PO_STATUS_STORNO)If you are using Designer 6i, create an item of Display Type "Image", and put the filename in the 'Default Value'. Make sure the file is somewhere in your forms60 path in your deployment environment. If you are using Headstart 6i, take a look at the Demo Application startform (HSD0000F) for an example.
Peter
null -
Can Designer10gR2 generate Forms with Pluggable Java Components and WebUtil
I know that Forms 10g supports Pluggable Java Components and WebUtil. Designer 10g R2 provides Design Capture of Forms to Modules. Can Designer capture a Form with Pluggable Java Components and WebUtil and then regenerate Form from within Designer? IF yes, would you give me more details. Thanks.
Hi
I am also looking for an alternative way to implement Drop and Drag functionality in Forms 9i.
Regards
Janet -
Fix to allow Headstart Generated Forms to run with Forms Debugger!
All,
A big thank you to Marcel Kappel!
He has resolved the long outstanding problem that caused us to be unable to use Headstart generated forms with the
Forms Debugger.
Regards,
Lauri
In the database stored package QMS_PROFILE, there is a cursor c_uso. It references the column 'language' which
also happens to be a reserved word in Forms. This is the culprit. To fix the problem, we simply need to prefix the
column name with the table alias.
Old Definition:
cursor c_uso (b_user_name varchar2) is
select va_queryable_item
,va_readonly_item
,va_required_item
,va_selected_record
,enable_cs_ind
,highlight_qi_ind
,highlight_ri_ind
,raise_find_window
,menu_call_method
,language
from qms_user_options uso
where uso.user_name = b_user_name;
New Definition:
cursor c_uso (b_user_name varchar2) is
select uso.va_queryable_item
,uso.va_readonly_item
,uso.va_required_item
,uso.va_selected_record
,uso.enable_cs_ind
,uso.highlight_qi_ind
,uso.highlight_ri_ind
,uso.raise_find_window
,uso.menu_call_method
,uso.language
from qms_user_options uso
where uso.user_name = b_user_name;Ibrahim,
Check out the Headstart installation guide. It explains why client/server deployment is not recommended as well as
guidelines for working around this problem. In a nutshell, we are using the 'automatic' keyword for foreground and
background color to get optimal performance with the Oracle Look and Feel in webforms. Unfortunately, client/server
has problems with this keyword.
We have just published a new client/server kit which is available via the Supplement Option.
Regards,
Lauri -
I have a form in LiveCycle ES2 that has an ODBC connection to an Access 2007 database. The form works great and all the data populates the form just fine, but next I need a way to save the generated form with the data so it can be sent and signed by people who won't (and can't) have a connection to the database. I am developing on a Windows 7, 64 bit machine and have Adobe Acrobat X Pro, and Adobe Reader X.
Any help or suggestions would be appreciated.
ThanksThanks for the quick response. I tried saving the form as Reader Extended in Acrobat Pro, but if I close the form I saved as extended, it still prompts for the data connection. Is there some setting in Adobe LiveCycle in the properties that maybe needs to be set? I have it set as a Dynamic XML Form. In form properties, there is a tab called data binding, should I have "Allow binding to data not defined by the default data connection" checked? Wasn't sure what "Add data nodes inside the filtered data hierarchy" would do either.
-
Open a form with space on the path with form builder from a batch
Hi,
I cannot open a form from a batch on Windows if the absolute path contains spaces.
For example, if I try to open a form in "C:\" from cmd with C:\ORANT\bin\ifbld60.exe C:\Form.fmb, I have no problem, if I try to open a form in "C:\Documents and Settings" with C:\ORANT\bin\ifbld60.exe "C:\Documents and Settings\Form.fmb" or C:\ORANT\bin\ifbld60.exe C:\Documents and Settings\Form.fmb, I have some dialog with info and the error FRM-90927 and form builder doesn't start.
Thank you,
tom
Edited by: 912104 on 16-ago-2012 3.17 - titleHi,
>
I cannot open a form from a batch on Windows if the absolute path contains spaces.
For example, if I try to open a form in "C:\" from cmd with C:\ORANT\bin\ifbld60.exe C:\Form.fmb, I have no problem, if I try to open a form in "C:\Documents and Settings" with C:\ORANT\bin\ifbld60.exe "C:\Documents and Settings\Form.fmb" or C:\ORANT\bin\ifbld60.exe C:\Documents and Settings\Form.fmb, I have some dialog with info and the error FRM-90927 and form builder doesn't start.
>
Why is that you want to open a FMB in Form Builder with a Batch file?
Is it that your application has only one FMB and that you work with only one FMB all the time?
Cheers,
PS: And if you must open the FMB through a batch file then look up the Form Builder Help for "Command Line options". It is an excellent resource.
Edited by: Prabodh on Aug 16, 2012 3:06 PM -
Batch.bat unable to generate PDFs with FM11 trial version & Elmsft 5.2 trial
Hi,
I am evaluating the trial version of Fm11 and FrameScript 5.2 (Elmsft) to generate PDFs using a Batch.bat file. I am able to generate stand alone PDFs with FM11. Now, I have created a Batch.bat file which calls BooksToPDF.fso and a filelist.txt, which contains the list of .book files. This script should work to generate PDFs. This is not working, the script is unable to open FM11 trial version, error message reads: "unable to connect to FrameMaker-open FrameMaker manually". Can anyone help?
Is there any other way to generate multiple PDFs in one go with Fm11.
Regrads,
HimaniHimani,
If you want to just create PDFs from FM via the command line, then using one of the available FM batch utilities might be an easier route.
Check out:
DZbatcher at: http://www.miramo.com/english/overview/download.html
runfm as part of mif2go and is fully functional in the mif2go demo. See: http://mif2go.com/xhtml/runfm_0002_363understandingrunfmcommandlinesyntax.htm#Rz134x44547 -
Finding generated keys with batch updates
Is it possible to combine reading generated keys with batch updates?
In trying to improve performance of inserts into a database, I am using the addBatch functionality of the JDBC driver to insert several rows at once. Unfortunately some of my tables have auto numbered fields and I need to know what values they are taking so I can update my in-memory representation of the object in the database.
The getGeneratedKeys functionality works fine when I insert one row at a time, but when I try to insert a batch of rows, the method returns null.
I am using DB2 with the com.ibm.db2.jcc driver, though I have a hunch that this is a limitation of the JDBC spec. Can anyone confirm this? Does anyone have any ideas about a workaround?What is "several"?
And have you actually measured the speed difference?
Since returning generated keys is a rather recent addition to JDBC I doubt that it exists for batch updates. -
GENERATING FORMS FOR 11i IN UNIX ( ifrun60)
GENERATING FORMS FOR 11i IN UNIX ( ifrun60)
How to generate forms for forms 6i.
Just like f45gen for Forms 4.5.
nullIt is f60gen in the unix. It takes the following parameters.
f60genm Module=<formname> Userid=<userid/password> [Parameters].
Optional parameters are (default values given):
Module_Type=FORM Module type (FORM, MENU, LIBRARY, PECS).
Module_Access=FILE Module access (FILE, DATABASE).
Statistics=NO Show statistics.
Logon=YES Logon to database.
Batch=NO Don't display messages on the screen.
Output_File=<file> Write output to file.
Script=NO Write script file.
Parse=NO Parse script file.
Delete=NO Delete module from database.
Insert=NO Insert module into database.
Extract=NO Extract module from database.
Upgrade=NO Upgrade module to current version.
Upgrade_Roles=NO Upgrade SQL*Menu 5.0 role information.
Version=45 Version to upgrade (23, 30, 40, 45, or menu 50).
Crt_File=<crt file> CRT file for version 2.x form upgrade.
Build=Yes Build a runform/runmenu file when upgrading.
Add_Triggers=NO Add KEY-UP/DOWN triggers during upgrade.
Nofail=NO Add NOFAIL keyword to trigger steps.
Debug=NO Build/Run with debug information.
Compile_All=NO Compile all PL/SQL code.
Strip_Source=NO Strip pl/sql source code from library.
Window_State=Normal Root window state: (Normal, Maximize, Minimize.)
Help=NO Show this help information.
Options_Screen=NO Display Options window (on bitmap only).
Widen_Fields=NO Add one character to display width.
Print_Version=NO Print version used to save module.
Forms_Doc=NO Print Forms Doc report.
Make sure that ur .Profile is set in unix.
Thanks
Ram
null -
Error while generating form 16 in portal - Screen output without connection
Dear Gurus,
We are facing error while generating form 16 through portal and getting the below error in portal.
Screen output without connection to user. error key: RFC_ERROR_SYSTEM_FAILURE
When we checked for dumps in R/3 the following dump is coming:
DYNPRO_SEND_IN_BACKGROUND with error message :
Message class : FPRUNX
Message number: 102: No job started.
Then we tried to execute the form 16 through R/3 itself using tcode PC00_M40_F16 after putting in the relevant values in the selection screen and then press on PRINT FORM button, but surprisingly the system logs out without giving any error or dump.
We tried doing it repeatedly and once in these attempts we got an error saying Initialization of font server module failed.
We are not getting clue as to why this is happening. <<Text removed>>
Regards
Edited by: Matt on Jul 27, 2011 9:50 AMDear,
This might be the problem of Adobe Acrobat Reader. what is the version of Adobe you are using ?? If it 9.0, then uninstall it and reinstall 8.0 and then check .
Could you please check your installed SAPGUI component? If component 'Engineering Client Viewer' is installed, please uninstall
it. And try to call same transaction again.
BR, Deepak -
Multi-record / spread table...moveable fields in designer generated form
Good morning all;
I hope you are doing good...
Imagine a multi-record block layout with it's overflow property set to spread-table to accomodate 10 varchar2(25) fields. Now, of the hundreds of users working with this generated form, not one of them wants to see the fields in the same order on the screen.
What i would like to do is generate the form from designer so that a user could 'drag'n drop' let say, field #10 to the field #2 spot on the screen. Something like windows explorer where you can move the 'Size' column around so it is viewable without having to use the spread-table bar at the bottom of the screen...
Any idea on how to generate this form from designer?
Thank you and wish me luck!I don't know a solution, but I think a solution could be easier found if it was a read-only block. You did not specify that. Then maybe you could dynamically change the query behind the block.
Good luck, Paul. -
How to generate PDF with bookmarks?
Hi,
The business request is to have pdf report with bookmarks. There is no predefined bookmark object in Livecycle Designer/SFP so my idea is to add some scripting to the form to generate bookmarks dynamically. I defined a standard pdf form with several lines of JavaScript embedded. The script is running in the form preview in Livecycle Later I was testing the form by calling its function module and looking at the generated PDF file. Unfortunately it seems there is no script embedded in the final output PDF generated by ADS.
Is Javascript supported in pdf forms? Do I need to perform any additional operations to enable the Javascipt? Do I need to pass additional parameters to ADS? I tested the following settings:
fp_docparams-fillable = 'X'.
fp_docparams-DYNAMIC = 'X'.
fp_outputparams-getpdf = 'X'.
fp_outputparams-PDFTAGGED = 'X'.
fp_outputparams-PDFCHANGESRESTRICTED = ' '.
I appreciate any suggestion.Hi Lata,
May be there is some error in the JavaScript code written.
Sometimes if there is an error in JavaScript then from where the error occurs from there the JavaScript wont work in the Adobe Form.
To check whether JavaScript contains errors or not. You just simply open your Adobe Acrobat Reader goto Edit in that goto Preferences and in that Select "JavaScript" in that you find the JavaScript Debugger there you enable "Show Console on errors and messages".
This may help you in some way or the other.
Regards
Pradeep Goli -
Can we generate forms from different locations on same account?
We're thinking of subscribing for the unlimited forms plan. Would this plan allow us to generate forms (and receive reports) from various locations on the same account? Or would each location need its own account?
Thanks, MegHi Meg;
Depending on the roles each user needs to play, you could have one "Plus" membership that can have all of the "live" forms in it, that user could share forms and/or responses with the other users so they could collaborate in the editing and view responses and reports. The permissions in the form (ability to use paid features) are based on the form author, so the "Free" level users could use the paid features in these forms that were shared by the one Plus membership.
Here is some information on sharing forms: http://forums.adobe.com/docs/DOC-2462
Also some good gneral Quick Start guides and How To's: https://www.acrobat.com/formscentral/en/library/how-to-make-create-survey-or-form.html
In addition, if any of the free users were to create a form for the team they could export that form as a design file for the Plus member to import and then share. Since the free user can only create one form, but have unlimited shared with them, and since the form rights are from the author the Free user wouldn't want to share the form, but instead export it so that when the Plus user imports it they are the author and when it is shared the form would have the Plus level features (I hope that made sense).
As far as organization there are no folders in FormsCentral at this time.
Thanks,
Josh -
Rep-52005 error when running a report from form with parameter form
I am trying to run a report from a web deployed form and this report has a parameter form. I am getting a Rep-52005: The specified key report does not exist in key map file.
I am using Oracle Forms/Reports 10.1.2.0.2. My code is below. The first part works fine where I run a report with no parameter form, but the second part when I have a parameter form gets the about error.
PROCEDURE call_report (
p_report_name VARCHAR2,
p_reportobj_name VARCHAR2 DEFAULT NULL,
p_parameter_list paramlist DEFAULT NULL,
p_parameter_string VARCHAR2 DEFAULT NULL
IS
repid report_object;
v_rep VARCHAR2 (100);
rep_status VARCHAR2 (100);
v_report_url VARCHAR2 (240);
v_interface VARCHAR2 (50);
v_report_parameter VARCHAR2 (1);
vc_user_name VARCHAR2 (100);
vc_user_password VARCHAR2 (100);
vc_user_connect VARCHAR2 (100);
vc_connect VARCHAR2 (300);
v_reportserv VARCHAR2 (30);
v_job_number number;
BEGIN
/* Get the database to run the report against and
find out if the report has any parameters */
SELECT report_parameter_flag
INTO v_report_parameter
FROM program_list
WHERE program_type = 'REPORTS'
AND UPPER (screen_id) = UPPER (p_report_name);
vc_user_name := get_application_property (username);
vc_user_password := get_application_property (password);
vc_user_connect := get_application_property (connect_string);
v_reportserv := 'rep_xxxx_ias10g_home';
v_report_url := 'http://xxxx.state.il.us';
v_job_number := length(v_reportserv) +2;
vc_connect :=
vc_user_name
|| '/'
|| vc_user_password
|| '@'
|| vc_user_connect;
v_interface := get_application_property (user_interface);
IF ( v_interface = 'WEB'
AND v_report_parameter = 'N'
THEN
repid := find_report_object(p_reportobj_name);
set_report_object_property (repid, report_comm_mode, synchronous);
set_report_object_property (repid, report_destype, cache);
set_report_object_property (repid, report_desformat, 'pdf');
-- v_reportserv := get_report_object_property (repid,report_server);
set_report_object_property (repid, report_server, v_reportserv);
set_report_object_property (repid, report_other, p_parameter_string);
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSIF ( v_interface = 'WEB'
AND v_report_parameter = 'Y'
THEN
repid := find_report_object (p_reportobj_name);
set_report_object_property (repid, report_comm_mode, synchronous);
set_report_object_property (repid, report_destype, cache);
set_report_object_property (repid, report_desformat, 'pdf');
set_report_object_property (repid, report_server, v_reportserv);
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet'
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSE
run_product (
reports,
p_report_name,
synchronous,
runtime,
filesystem,
p_parameter_list,
NULL
END IF;
EXCEPTION
WHEN OTHERS
THEN
message (SQLERRM);
END;
My parameter form comes up and I enter the necessary information and hit submit query button. Then I get the Rep-52005: The specified key report does not exist in key map file.
Any help will be greatly appreciated!!
Shellie BrickerYour code seems to be implementing metalink note 139546.1 - Using Reports parameter forms with RUN_REPORT_OBJECT on the web.
For what I can see, the P_ACTION parameter should end in ?...
i.e.
P_ACTION=http://<hostname.domain:port>/reports/rwservlet?'
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet?'
);If this does not fix your problem, then to troubleshoot further you would have to post the code in your Before Parameter Form trigger of your report.
Hope this helps,
UPDATE:
If the above does not fix your problem, my guess is that report name is not being generated in the hidden runtime values build by the code in the Before Parameter Form trigger.
i.e.
http://localhost:8889/reports/rwservlet?report=&destype=cache&desformat=PDF
The above code will throw error REP-52005: The specified key report does not exist in key map file.
Edited by: Rodolfo Ferrari on Jul 8, 2009 9:43 PM
Maybe you are looking for
-
Cannot view placed art in a PDF in an email
When I get a PDF as an attachment--be it in Entourage 2004 or Mail--I can't view what I assume to be placed art in a PDF. It doesn't show up in either program's preview pane, or if I download it to the hard drive and try to view it in Preview or Adob
-
My laptop won't go past loading screen
I Turn on my laptop and all I see is the apple sign and a loading bar. It loads up all the way on the bar then cuts off. When I turn it back on again it does it all over again. It doesn't allow me to go to the username screen or anything else.
-
I bought a few songs yesterday, but when I paused them and then later on went back to keep downloading them, I got that message. It won't let me bring up any of my old downloads, but I bought another song, and it downloads just fine. Can anyone expla
-
Books created by iBooks Author. It can be used with the iPhone.'s How.
I'm not good at English.
-
Each new backup folder appears to store a complete copy of every file on my hard drive. I realize that this is through the magic of the file system and that only the changed data is actually stored. But, I have no way of knowing how much space any pa