Getting OAS server name in oracle reports
Hi Experts,
I need to get the OAS name in the After parameter form trigger. Is there any built-in funtion that will return the Current OAS name? Please help me. Thanks in advance.
Regards,
J.P
Hello,
When using the Reports Servlet some "extra" parameters are passed :
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_run.htm#i1009092
If you want to read these paramaters values , you need to "declare" these parameters in your Reports
Regards
Similar Messages
-
How to display report server name in oracle reports 9i.
I need to do some validation based on report server name.Pl. suggest.
How do you execute the call for a Report?
URL? -
Get report file name in oracle report builder at run time
Dear All,
Is there any way to get the report file name in oracle report builder at run time?
for example "HR_REP012.REP"
i need this very important...
Regards,
Yousef
Edited by: Yousef_m on Jun 2, 2012 5:18 AMHello,
Did you try the builtin SRW.GET_REPORT_NAME built-in function ?
Example
function AfterPForm return boolean is
my_var varchar2(80);
BEGIN
SRW.GET_REPORT_NAME(my_var);
SRW.MESSAGE(0,'Report Filename = '||my_var);
RETURN (TRUE);
END;
Regards -
How to get the Server Name in Crystal
Hi All,
We created a Crystal Report that pulls images from a File Location at the run time and this File Location is different for each environment (D-Q-P). We are trying to automate the file location by the server name. Is there any function in Crystal Reports that we can get the server name so we know if it is D-Q or P system?
Thank you,Hi,
There is no function in CR that can fetch the Server Name. That is something you need to provide to the formula.
If you're loading images from a location on the Server, you can always use a Relative Path. For eg: if the images would be stored in a folder called Images, then you can write a formula on the 'Graphic Location' for the OLE object as:
"/Images/Crystal.jpg"
This will load the image from the folder when it is run on D, Q or P.
Hope this helps!
-Abhilash -
Getting the variant name when the report program is run in background
Hi All,
How to get the variant name for the report program when run in background? My requirement is to create an email attachement with the name 'variant.XLS', where variant = selection screen variant, when the report program is run in background. The system field SY-SLSET holds the variant name only when run online.
Any pointers to this will be highly appreciated.
Thanks and regards,
Nilesh.Hello Nilesh,
Please find the algo:
1. Call the FM: GET_JOB_RUNTIME_INFO to get the background job details.
2. Select data from TBTCP using these details:
DATA:
FP_EVENTID TYPE BTCEVENTID
FP_EVTPARM TYPE BTCEVTPARM
FP_ACTIVE TYPE BTCXPGFLAG
FP_JOBCNT TYPE BTCJOBCNT
FP_JOBNM TYPE BTCJOB
FP_STEPCNT TYPE BTCSTEPCNT.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
EVENTID = FP_EVENTID
EVENTPARM = FP_EVTPARM
EXTERNAL_PROGRAM_ACTIVE = FP_ACTIVE
JOBCOUNT = FP_JOBCNT
JOBNAME = FP_JOBNM
STEPCOUNT = FP_STEPCNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Error calling FM: GET_JOB_RUNTIME_INFO
ENDIF.
DATA: FP_VARIANT TYPE BTCVARIANT.
SELECT JOBNAME JOBCOUNT STEPCOUNT VARIANT
FROM TBTCP
INTO TABLE L_IT_TBTCP
WHERE JOBNAME = FP_JOBNM
AND JOBCOUNT = FP_JOBCNT
AND STEPCOUNT = FP_STEPCNT.
IF SY-SUBRC = 0.
SORT L_IT_TBTCP BY JOBNM JOBCNT STEPCNT.
READ TABLE L_IT_TBTCP INTO L_WA_TBTCP INDEX 1.
IF SY-SUBRC = 0.
FP_VARIANT = L_WA_TBTCP-VARIANT.
ENDIF.
ENDIF.
Hope this helps.
BR,
Suhas -
Hi,
Requirement: Get Windows User Name using Oracle Web Forms 6i.
Tools Using: Windows NT, Oracle web forms 6i, Oracle 10g DB.
Description: I am using GetClientInfo JBean from otn.oracle.com, which gets windows user name, IP address and machine name. The demo I got from oracle web site uses Jinitiator version 1.1.7.18. While we are using the latest version Jinitiator 1.3.1.17. Due to this reason, I am unable to use Javakey which comes with older version but doesn't come with newer version, that's why I can't create the new JavaBean Java identity (PJC).
Please advise what to do. All environment variables are set everything is done, this is the only thing bothering me.
I went through the article 202768.1 from metalink, but on step 5, it gives an error keytool error: java.lang.Exception: Input not an X.509 Certificate.
Also, please let me know if there is any other workaround for this requirement.
Thanks & Best Regards,
MoHi,
Thanks for your kind reply. Actually there was a problem in creating a certificate, now it is okay with the same method. Certificate got imported on client and everything is ready.
Now, the problem is when I try to set Bean Area Implementation Class property with oracle.forms.demos.GetClientInfo, it gives an error FRM-13008 Cannot find JavaBean with name 'oracle.forms.demos.GetClientInfo'.
I went through the articles 1072329.6, 196824.1, and set ClassPath and Path variables with proper values. Also, I have copied jar file and signature file in forms60/java folder. I don't see any problems. Please let me know what I am doing wrong. My limitation is that I have to do all this in forms6i.
I searched forums on metalink and found out that someone installed Patch 15, and everything went okay for him. Do you think I should install Patch 15? if YES, how will I do it, I mean should I first uninstall my forms and then install patch15 or install the patch on my forms?
Thanks so much for your help.
Thanks & Best Regards,
Mo -
How to get the file name from Oracle B2B 10g
Hi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
I tried using the b2b.filename property in the receive activity and it is not getting the file name.
<sequence name="main">
<receive name="Receive_Note" partnerLink="GetB2BNote"
portType="ns1:Dequeue_ptt" operation="Dequeue"
variable="Receive_Note_Dequeue_InputVariable"
createInstance="yes">
<bpelx:property name="b2b.fileName" variable="WriteFileName"/>
</receive>
</sequence>
Can you help me to get the file name from Oracle b2b 10g ?
Thanks,
b2b userHi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
I tried using the b2b.filename property in the receive activity and it is not getting the file name.
<sequence name="main">
<receive name="Receive_Note" partnerLink="GetB2BNote"
portType="ns1:Dequeue_ptt" operation="Dequeue"
variable="Receive_Note_Dequeue_InputVariable"
createInstance="yes">
<bpelx:property name="b2b.fileName" variable="WriteFileName"/>
</receive>
</sequence>
Can you help me to get the file name from Oracle b2b 10g ?
Thanks,
b2b user -
How to get a server name through the load balancer
Hi.
I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
Any suggestions?
Thanks.Dear Sikindar;
THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
Appreciating your cooperation.
Best Regards;
Lobna -
How to get managed server name in Weblogic10.2 ?
Hi
I want to get managed server name from a cluster in a servlet or util project class whom that one is called by ?
Do I have to implement any interface or I have to extends a class ? Please help me to resolved.
ThanksHere is a snippet of code that I use in WL10 MP1 that works fine:
import javax.management.MBeanServer;
import javax.management.ObjectName;
import javax.naming.InitialContext;
String managedServerName = null;
InitialContext ctx = null;
try {
//fetch managed server name by accessing the
//RuntimeServerMBean using the
//MBeanServer interface
ctx = new InitialContext();
MBeanServer server = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
ObjectName service = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
managedServerName = (String) server.getAttribute(service, "ServerName");
} catch (Exception ex) {
//error occurred
} finally {
if (ctx != null) {
try {
ctx.close();
} catch (Exception dontCare) { -
How to get the server name/hostname on which JVM is running?
How to get the server name/hostname on which JVM is running from the Servlet or normal class?
InetAddress.getLocalHost()
-
Get error when passing a server name to Crystal Report
I am developing a desktop application using VS 2012 with CRforVS_13_0_9 and CRRuntime_64bit_13_0_10 installed. The database is SQL Server 2012 Express. I use SQL OLEDB in Crystal Report to connect the SQL database. Here is part of the codes.
Dim crTableLogoninfo As New TableLogOnInfo
Dim crConnectionInfo As New ConnectionInfo
Dim crTables As Tables
Dim crTable As Table
With crConnectionInfo
.ServerName = Login.sServer
.DatabaseName = Login.sDatabase
.UserID = Login.sDBUserID
.Password = Login.sDBPassword
End With
Try
crTables = CReport.Database.Tables
For Each crTable In crTables
crTableLogoninfo = crTable.LogOnInfo
crTableLogoninfo.ConnectionInfo = crConnectionInfo
crTable.ApplyLogOnInfo(crTableLogoninfo)
Next
CrystalReportViewer1.ReportSource = Nothing
CrystalReportViewer1.ReportSource = CReport
I get an error "Failed to open connection -- Database vendor code 17" when I run a Crystal Reports through my application. The problem is Crystal Reports does not like the server name which is passed. The purpose for passing a server name is to connect to different server if needed. I am not 100% sure the error occurs after VS 2012 or SQL Server 2012 express was updated.
Any ideas how I can fix this problem?
Thanks,
JohnHi John
First, you want to check the error code in your database documentation. The error is being passed from the db client through the report engine totally unmodified. Googling the error will also be a good idea.
And, seeing as you are using SQL Server 2012, make absolutely sure that the SQL Native 11 client is installed.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
How to know report server name in oracle forms and reports with weblogic server 10.3.5
Hello Experts, I am new in oracle forms and reports.I have installed Oracle forms 11g with weblogic server 10.3.5 at windows 7.Forms and reports are working well.But I want to call a report from an oracle form button press trigger. For This I need to know the my report server name which i dont know.Please tell me how can I know my report server name.
I want to call a report from an oracle form button press trigger. For This I need to know the my report server name
You can find the name of the standalone reports server in $ORACLE_INSTANCE/config/ReportsServerComponent.
Or you can use Fusion Middleware Control Console, normally at http://<machine name>:7001/em -
Get error when passing server name to Crystal Reports in Visual Studio 2012
Hello,
I work on Visual Studio 2012 with Crystal Report 13.0.12 (both developer and run-time). When I pass the name of the server to the Crystal Reports, I get an error -- Failed to open the connection. Database Vendor Code 17. I use SQL OLEDB as the provider. It worked before. Not sure what has happened.
Any help is much appreciated!!!
JohnHi,
See this: Failed to open the connection - database vendor code 17
--dj -
I am unable to get order by column name in oracle report parameter form
i created query like following in query builder
SELECT CASE_NO, COURT_ID, CASE_TYPE,
INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
LEGAL_FILE_NO, MSNO
FROM L_CASE_MASTER_MAIN
WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
and i created parameter form for these two bind variables :P_NHD,:P_COL
in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN' to get all the columns.
in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
kindly let me know the solution
Report Version :Oracle Reports 11g
Db Version:Oracle 11gHi,
Ordering the column first takes place from the Data Model Itself.
Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
Remove your order by in query...
If any issues... let me know
Regards,
Soofi -
How to get the query name from portal report name
Hi Experts ,
I am given a portal report Name and asked to do changes to the queries of that ,so how do i get the query name ,
Thanks in Advance
NityaHi Nithya,
You can get the technical name by selecting the role in the portal where the report is enclosed you will generally find the report in description then identify the report you are looking then double click on that you will get a window pop-up in that you will have details tab there click on the details the your Query technical name will be displayed.
EX : zqry_w001 Then replace W with Q and seach in analyser or Designer.
Regards
Amar.
Maybe you are looking for
-
My Iphone 4s is stuck in the connect to Itunes screen
I tried to up date it and update my music but then it sent me to this perpetual connect ot Itunes screen. I have tried all the other options on the discussions page but it still wont connect, even by using my other windows computer it hasn't connecte
-
I have tried to drag and drop the bkmks to the TB and it will not allow that either. Neither show up in the menu when I am adding a bkmk.
-
Patch Oracle 9.2.0.6 on linux with Jan 2006 CPU - inventory not updated
Hi, We have tried to apply the Jan 2006 CPU (4751921) patch to Oracle 9.2.0.6 running on linux (redhat AS 4). The Apply log reports: Patch 4751921 has been applied successfully. ... but then when trying to Update inventory it reports: INVENTORY PROBL
-
Can Oracle Form Builder 10g open forms created with Developer 11g?
Hi, Two different groups of developers developed forms in both Forms versions 10g and 11g. There will be call_forms between both versions and both will run under the same portal. Production is 10g. Is it possible to open 11g forms in 10g Form Builder
-
Error message on step 1....wizard cannot modify this MSI package
Using the Adobe Customization Wizard, when I choose File > Copy Package, and enter in the appropriate fields, I am getting this error at the end: And although it looks like it copies the package to the location I specify, I cannot open it (I get the