RunAtServer script in XDP not executed in Form Server
Hi, Expert,
I authored the form template in Designer 7.1 and generated PDF using SOAP client call 'renderForm()' successfully on Form Server with JBoss 3.x.
The problem is that the script in the template written in Designer set as 'RunAt=Server' never gets executed in Forms Server (the script is triggered in the event like 'form:ready' and 'layout:ready').
Is there any special options which shd be set in renderForm() call or the properties of XDP?
Any help is highly appreciated.
Thanks in advance
John
Hi, Rob,
Thank you very much for the reply.
I call the renderForm() is like:
IOutputContext context = formServer.renderForm(
args[0], // name of XDP file
"PDFForm", // for interactive form
xmlBytes, // merged XML data
"CacheEnabled=False", // runtime options
null,
"http://localhost:8080/",
"http://localhost:8080/", // sTargetURL
"file:///d:/formsapi", // path of XDP file
null);
The script in XDP run at server in form:ready is like:
if (txtProductId.rawValue == null || txtProductId.rawValue == "") {
// hide it
txtProductId.presence = "hidden";
Thanks again
John
Similar Messages
-
Report(3.0) not executing from Forms 6.0.
Hello
I am trying to run a report (developed in Report designer 3.0) from a form (developed in Form Builder 6.0) as follows :
-- message ('Before Report...');
-- run_product (REPORTS, 'proj', SYNCHRONOUS, RUNTIME, FILESYSTEM, listid ) ;
-- message ('After Report...');
DECLARE
repid report_object ;
rep VARCHAR2(100);
BEGIN
message ('Before Report...');
repid := find_report_object('PROJ');
rep := RUN_REPORT_OBJECT(repid);
message ('After Report...');
END;
I have tried both of these methods (Run_Product and Run_Report_Object) but nothing works. What is the difference between Run_Product and Run_Report_Object for report processing point-of-view ? It is displaying both messages but giving no error. The Properties of PROJ node in 'REPORTS' class are as follows :
Name : PROJ
File-Name : <full-path>/proj.rdf
Execution Mode : RunTime
Communication Mode : Synchronous
Data Source Block : Null
Query Block : Null
Report Destination Type : Screen
Destination Name : Null
I am not able to see the results even by executing in form builder.
Any help will be appreciated.
ManishHi Shay
Thanks for your reply. I have compiled the report (repname.rdf) in Report Builder 6.0 and trying to execute it from a form, developed in Form Builder 6.0, as follows :
PROCEDURE run_report IS
list_id ParamList;
run_date date;
repid report_object ;
repout varchar2(100) ;
BEGIN
run_date := sysdate;
list_id := Create_Parameter_List('input_params');
Add_Parameter(list_id, 'DESTYPE', TEXT_PARAMETER, 'FILE');
Add_Parameter(list_id, 'DESNAME', TEXT_PARAMETER, '/home/mgupta/orep.ps');
-- Run_Product(REPORTS, 'Full-Path/repname.rdf', synchronous, runtime, filesystem, list_id);
repid := find_report_object('repname');
repout := run_report_object(repid);
Destroy_Parameter_List(list_id);
END;
I have tried both methods (Run_Product and Run_Report_Object) but nothing works. What is the difference between Run_Product and Run_Report_Object for report processing point-of-view? Note that I have given full path for Run_Product while report-name is given for Run_Report_Object. The full path is also given in the property palette report. It is displaying both messages but giving no error. The Properties of REPNAME node of 'REPORTS' class in Object Navigator of specified form are as follows :
Name : REPNAME
File-Name : <full-path>/repname.rdf
Execution Mode : RunTime
Communication Mode : Synchronous
Data Source Block : Null
Query Block : Null
Report Destination Type : Screen
Destination Name : Null
This report is running fine if I execute it in Report Builder but not running thru form.
Any help will be appreciated.
Manish -
Query button will not execute on form portal (9.0.4)
I have a master-detail form that will not execute the query or reset buttons. The query will work if I use a link to execute the form. It was working ok. If I create a new form the query button still won't execute.
There was a plugin that was causing the problem. Went to Internet Options.
Click the Advanced tab.
Under Browsing, click to clear the Enable third-party browser extensions (requires restart) check box.
Restarted Internet Explorer.
It works. Thanks for the help! -
Inventory Reports are not executing in Quality Server
Hi All,
I have done two reports ( 1. Stock Overview & 2. Stock Ageing ) in BW-DEV and executed successfully but after moving transports to BW-QA, I am getting Zero values for Stock Overview & for Stock Ageing, I am getting errors like "Sub Routine Call failed, Could not find the form SET-ICFL, CY_SY_DYN_CALL_ILLEGAL_FORM & UNCAUGHT_EXCEPTION.
This is for your kind Information:
1. I uploaded data properly to Inventory ZIC_C03
2. I verified data in Cube, the data is available
3. SAP BI 7.1
Please guide me to over come the above issues.
Thanks
Sreeni
Edited by: sreenivasulu.gandi on Jan 24, 2012 5:48 PMHi,
It looks you are not in developer role so it is asking access code. If you want access code you can ask Basis team they will provide based on the policies.
Regd your issue are you getting this error for particular report or any report? Check RFC connection between Bex and BI server. You run the same report in using RRMX or RSRT, if you are able to see the output then ask your Basis team look this issue or check the Note 1600067.
Thanks
Riyez -
Not connected to Forms Server ???
I am trying to deploy some of the 6i forms on web using OAS on UNIX
machine.
I have two applications running on 2 different ports of web server
namely
80 and 81.Apparently they use the same port 9000 of the Forms Server.
When I call the baseHTML for port 80 , it connects fine and asks for the
connection string.
But when i call the baseHTML for port 81, it says
Applet oracle.forms.engine.Main intitiated and then gives this error
FRM-99999 Failed to connect to the server:servername:9000
Could any one give me some idea about whats happenning.?
Also where can i find (physical directory) the configuration files for
the forms server setup.
Any help would be appreciated.
Thanks,
Santosh.The getNextDatabankRecord() call is at the beginning of my run code. I use one step just for this line code.
Code :
public void run() throws Exception {
beginStep("CHARGEMENT DES DONNEES SUIVANTES");
info("Chargement des prochaines données...");
getDatabank("NouvellesIA").getNextDatabankRecord();
endStep();
Stop the user after this step and goto the finish section should not be a problem...
If I use the "When out of records" option, does it jump directly to the finish section ?
Thanks,
Benoit. -
Perl Scripts not executable in web server
I have a MacMini running 10.4 Server. It is hosting a web site for some surveys that are created using SurveyTracker.
The person creating the surveys SMB connects to the web server to create the files in the share point that is also the main web directory (not /Library/WebServer/Documents but a different location).
The problem is, when the person does the SMB file create, it does not create the pl scripts with the 'x' bit enabled. Instead of rwx/rwx/r-x (775) it comes rw-/rw-/r-- (664).
I have tried setting a cron job to auto chmod to 775 every five minutes but the cron job does not run.
Is there a way to change the permsissions on the folder, i.e. Sticky Bit, so any file being created in the folder wil have the 'x' bit automatically?
The option of giving ssh access to the person creating the file is not as easy as it sounds, as they do not understand terminal/ssh.
I have mod_perl and mod_cgi enabled in the webserver settings, and allow CGI-Execute.
XServe Mac OS X (10.4.3)Hi Ludek,
After installing default printer on Server, i got No printers installed.
below is my code, (checking in Default printer installed or not in TRY)
CR_TGL_EBL.HasPrintButton = False
CR_TGL_EBL.ReportSource = rpt
Try
rpt.PrintToPrinter(No_of_copies, True, 0, 0)
Catch ex As Exception
Page.ClientScript.RegisterStartupScript([GetType](), "printer Problems", (Convert.ToString("alert('" + ex.Message + " ")) +"Your associated printer not working contact the admin!');", True)
End Try
Even i installed default printer i got alert message, How to get direct print in server.
Locally it's working fine. Once i enable printtoprinter it's loading only...
Please help me to solve this issue...
Regards,
Mani. -
Patches with pre and or post patch scripts not executable -- why?
In my frustration with update manager hangs I have had to kill processes and restart and even manually unjar files and patchadd. Sometimes I run across the error that the pre or post patch scripts are not executable. I have in the past chmod 744 and patchadd then applies the patch. This has happened several times in my latest patch update. I also had a patch ( X11) that implied a lack of entitlement but the manual patchadd showed that the real problem was a missing prerequisite patch.
My questions are:
1. is this lack of executable permission on scripts ( pre and post) by design and am I missing the correct procedure?
2. missing prerequisite scripts? why?
3. out of frustration --- IS THIS PATCHING UTILITY THE BEST THAT SUN CAN DO?Update Manager is sometimes a little flaky, particularly on unpatched systems (as it uses many different utilities). I would suggest that if you are having problems then you should use smpatch instead - it's not really any more difficult to use and is often much quicker.
If a patch has a script that is not executable that is not a fault of updatemanager, but a fault with the patch itself (being archived with incorrect settings) or possibly your umask setting, which should ideally be globaly set to 0022 prior to patching to prevent problems during extraction and application.
If updatemanager has complained about a lack of entitlement I would tend to believe that this was the case, check the contents of your entitlement file:
# cat /var/sadm/spool/cache/entitlement/*entitlement_clientYou may be missing SolarisAllUpdates or other entitlements - please post the output.
Sun do offer other patching tools, but what is best for one person/company may not be the best for all. There is also the possibility that you don't have it setup correctly - I would ask that you run the attached script and upload the output file generated to our [Support Uploads|http://supportuploads.sun.com/] site. -
My script runner is not executing. I can run a simple statement such as select count(*) from mtl_system_items_b; with the Execute Statement. When I attempt to run the same statement using the Run Script command SQL Developer hangs up and never completes.
I have not had any trouble with this in the past. It could have started with my latest upgrade. I'm running version 1.1.2.25 build MAIN-25.79It would have depended on when and how you did you update. Check for Updates was not available for updating from a 1.0 build to the 1.1 build. You could only use Check for Updates on a 1.1 build (or its subsequent patches) to reach 1.1.2.
The latest release is 1.2.1.32.13 and requires a full fresh install. There is no Check for Updates available.
Regards
Sue -
Log Reader Agent error "could not execute sp_replcmds' and causes stack dump
Publisher/Subscriber db: SQL 2008 R2, 2000 compatability mode
Distributor database is on separate server.
(note: There is another database on this instance that is running replication without error, it is not in compatibility mode)
After snapshot agent finishes, the log reader agent starts and fails immediately with this error in the Agent Job.
Then I get a SEV20 error and stack dump in the error logs.
Date 6/12/2014 3:12:26 PM
Log Job History (SERVER\INSTANCE-DBNAME-43)
Step ID 2
Server ######RT02
Job Name SERVER\INSTANCE-DBNAME-43
Step Name Run agent.
Duration 00:00:01
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
2014-06-12 20:12:26.302 Copyright (c) 2008 Microsoft Corporation
2014-06-12 20:12:26.302 Microsoft SQL Server Replication Agent: logread
2014-06-12 20:12:26.302
2014-06-12 20:12:26.302 The timestamps prepended to the output lines are expressed in terms of UTC time.
2014-06-12 20:12:26.302 User-specified agent parameter values:
-Publisher SERVER\INSTANCE
-PublisherDB DBNAME
-Distributor ######RT02
-DistributorSecurityMode 1
-Continuous
-XJOBID 0x8958DF32810C6849B28A037A8FF8DD92
-XJOBNAME SERVER\INSTANCE-DBNAME-43
-XSTEPID 2
-XSUBSYSTEM LogReader
-XSERVER SERVER\INSTANCE
-XCMDLINE 0
-XCancelEventHandle 0000000000000F98
-XParentProcessHandle 0000000000000F34
2014-06-12 20:12:26.459 Parameter values obtained from agent profile:
-pollinginterval 5000
-historyverboselevel 1
-logintimeout 15
-querytimeout 1800
-readbatchsize 500
-readbatchsize 500000
2014-06-12 20:12:26.493 Status: 4096, code: 20024, text: 'Initializing'.
2014-06-12 20:12:26.493 The agent is running. Use Replication Monitor to view the details of this agent session.
2014-06-12 20:12:27.885 Status: 0, code: 20011, text: 'The process could not execute 'sp_replcmds' on 'SERVER\INSTANCE'.'.
2014-06-12 20:12:27.886 The process could not execute 'sp_replcmds' on 'SERVER\INSTANCE'.
2014-06-12 20:12:27.886 Status: 0, code: 21, text: 'Warning: Fatal error 3624 occurred at Jun 12 2014 3:12PM. Note the error and time, and contact your system administrator.'.
2014-06-12 20:12:27.886 Status: 0, code: 22037, text: 'The process could not execute 'sp_replcmds' on 'SERVER\INSTANCE'.'.
I've tried removing replication and setting it back up again, restarting SQL, and restarting the server itself.
Let me know if you need any more information to help troubleshoot. Thanks.
Please help, thanks.Hi,
Enable Verbose logging and check the results.
Execute following commands: -Output C:\Temp\OUTPUTFILE.txt –Outputverboselevel 2.
Please refer following KB article for your reference -
http://support.microsoft.com/kb/q312292/
Thanks.
Tracy Cai
TechNet Community Support -
i install form server
when i use run form web icon in object navigator
i see this error message:
FRM-18121: The JavaBean does not implement the IView interface.
Cause: For Forms to use this JavaBean, it must implement
Oracle Forms IView interface.
Action: Implement Oracle Forms oracle.forms.ui.IView
Interface.
i cant understand please help me.
regards
shoja.If this is 6i it's because you have not installed the Forms server component. This might also happen if you are in a Windows platform such as Win95/98 that does not support the Forms Server - you need NT or 2000
-
Does Forms Server support MDI ?
Does Forms Server support mdi window?,
though I set mdi window title it is not getting displayed (but it is getting displayed in client server mode). I also went through one of the help documents which says mdi is not supported in Forms Server. Can any one help me.If you move to Oracle9i Forms you also get new features in the builder including a new debugger, PJC support, Java Importer, Interruptable LOVs and loads more.
Check out otn.oracle.com/products/forms for information.
Regards
Grant Ronald
Forms Product Management -
Difference between forms server and application server
Hi,
What is the difference between Oracle Forms Server and Oracle Application Server?
Is both are Same or Not?
pls give me a reply.
Thanks
Jobin SPIs both are Same or Not?No, Forms Server is just a component of Application Server, as you can see on http://download.oracle.com/docs/cd/B14099_19/index.htm
-
FormCalc script is not executed
Hi everybody,
I've developped a Pdf forms with FormCalc Script.
This script does works in the preview designer of SFP transaction but when i try to run the pdf forms through a specific program, the script is not executed.
Do you have any idea ?
The pdf is a ZCI layout.
My SAP platform is ECC 6.0Brice,
What is the type of form you are developing ? Interactive or Print.
My guess you be creating a Print form where dynamic scripting does not work.
Alternatively put following line of code in the script to see if the control is transferred to your event or not.
$host.messageBox("Inside event")
Chintan -
SSIS Script task not executing macro through SQL Agent (but it does through bids)
<p>Hello everyone,</p><p>I am having an issue with SQL Agent when executing a macro contained in a script task component. The script task actually opens an excel file, runs the macro, save and closes the file. </p><p>When
I execute the package via BIDS/Visual studio, it works like a charm. However, when i execute the package with SQL agent, the package runs successfully but it seems that the macro is not executed as the excel file has not been modified as it should have. Also,
the history log does not show any error messages. </p><p>Could </p>Thanks!I did create a credential and a proxy too but still the macro is not executed.I have searched online for solutions but no one has experimented this kind of issue before it seems. Please have a look at the script task code:
Imports
Excel = Microsoft.Office.Interop.Excel
Imports
System
Imports
System.Data
Imports
System.Math
Imports
Microsoft.SqlServer.Dts.Runtime
<System.AddIn.AddIn(
"ScriptMain", Version:="1.0",
Publisher:="", Description:="")>
<System.CLSCompliantAttribute(
False)> _
Partial
Public
Class ScriptMain
Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
Enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
End
Enum
Public
Sub Main()
Dim Macro_name
As
String
Dim ExcelObject
As
New Microsoft.Office.Interop.Excel.Application
Dim oBook
As Microsoft.Office.Interop.Excel.Workbook
Dim oBooks
As Microsoft.Office.Interop.Excel.Workbooks
Try
Macro_name =
"Macro001"
ExcelObject =
CType(CreateObject("Excel.Application"),
Excel.Application)
ExcelObject.Visible =
True
ExcelObject.UserControl =
False
ExcelObject.DisplayAlerts =
False
oBooks = ExcelObject.Workbooks
oBook =
CType(oBooks.Open("C\Book1.xls"),
Excel.WorkbookClass)
ExcelObject.Run(Macro_name)
Catch ex
As Exception
ExcelObject.Application.Quit()
ExcelObject.DisplayAlerts =
True
ExcelObject =
Nothing
End
Try
Dts.TaskResult = ScriptResults.Success
End
Sub
End
Class -
iCal failing to run applescripts: The 'Open' button does not change to 'Run', and the script file is opened but not executed.
Calendar (not called iCal anymore) does not include that capability any longer, apparently. What you have to do now is go to Automator and create a Calendar Alert action. You can add a Run AppleScript object to the action and paste in your script there, then when you save it, it will become available as a choice in the alert menu in Calendar.
Maybe you are looking for
-
Only allow user to Save as, not Save
I want my form to be used within the company as a template when opened in Reader. With this I mean that the user never overwrites the original pdf, but is forced to "Save as" ("Save" should not be available as a choice). In other words: the pdf is op
-
I need to put my music from my ipod onto itunes because my libary erase
-
hi, In my system multiple monitors are connected (VGA and HDMI). In need to know the monitor instance name , device name , resolution and frequency of each monitor.. any solution? i used wm class 'WmiMonitorConnectionParams' to determine Video outp
-
Should I delete redundant images in the "All Images" folder?
Not sure if this is the right place to post this but... The "All Images" folder contains so many redundant images, should I clean up those redundant files? If I do, will it delete them from the individual docs and other files where the images are ass
-
could anyone check this code for me please? class Time it hast the methods: boolean previous(Time t): checks if the time provided as a parameter is earlier than the time represented by the object to which the message is sent. boolean posterior(Time t