Run time from database
Post Author: bwrobel
CA Forum: Administration
Hello,Does anybody know how to check run time of reports (CE10) directly from database?I can do it using Instance Manager, but when you have 400 reports running recursively it is difficult to have statistics for each of them. Thanks in advance!bwrobel
Did you ever find a solution to this problem? I have the same problem when moving reports from development to Test to Production environments. If the DBName is not the same the report ignores the name provided at runtime.
Similar Messages
-
How to change Crystal Reports XI database name at run time from ASP code using ADO
Dear All,
I need advises regarding to my problem below
I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
Thanks and wait for your reply soon.
Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
<%
Dim oADOConnection, oRptTable, oADORecordset, sql
Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
struser = "sa"
strpwd = ""
strdriver = "{SQL SERVER}"
dblocation = "SQL200501"
dbname = "LIVE01" ' Changed from TEST01 to LIVE01
strConnect = "User Id=" & strUser & ";"
strConnect = strConnect & "PWD=" & strPwd & ";"
strConnect = strConnect & "DRIVER=" & StrDriver & ";"
strConnect = strConnect & "SERVER=" & DBLocation & ";"
strConnect = strConnect & "DATABASE=" & dbName
sql="Select * from Employee"
Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
session("oRpt").MorePrintEngineErrorMessages = False
session("oRpt").EnableParameterPrompting = False
session("oRpt").DiscardSavedData
Set oADOConnection = Server.CreateObject("ADODB.Connection")
oADOConnection.Open (strConnect)
Set oADORecordset = Server.CreateObject("ADODB.Recordset")
Set oRptTable = session("oRpt").Database.Tables.Item(1)
oRptTable.SetDataSource oADORecordset, 3
session("oRpt").SQLQueryString = CStr(sql)
session("oRpt").ReadRecords
%>Did you ever find a solution to this problem? I have the same problem when moving reports from development to Test to Production environments. If the DBName is not the same the report ignores the name provided at runtime.
-
Compare, calculate time from database in applet
how can i calculate or compare time from database (access) in applet
how can i calculate or compare time from database
(access) in appletDepends on what you mean. If you mean data in the database, then you extract it into a date object and use the methods of that object and/or the Calendar class.
If you mean something else, then no. -
How to load the object library at run time from within the script.
What i am trying to do from my library is that I wanted to load the object library file (.properties) file at run time through the script. I know that open script has a deprecated method "ft.loadObjectLibrary". Is there any other method other than the deprecated one?. Also is there a way that I can unload the library?
Thanks,
SriObject.border.fill.color.value = "255,255,255";
if you want to use rawValue of textfields to insert in there you will have to do
Object.border.fill.color.value = R.rawValue + "," + G.rawValue + "," + B.rawValue -
How to Load a Panel during run time from a CVI dll
Hi,
I want to execute/load a panel during runtime, from a CVI dll function.
my CVI dll "test.dll" has "READ_PAN" function. while executing this function from a Test Stand Action step i want Configure Panel (from FR_GUI.uir) to pop up.
can you please suggest me how can i do this from my "test" project of CVI.
int __stdcall __export RunFRConfig (CAObjHandle step,CAObjHandle thisContext)
ERRORINFO errorInfo;
char errMsg[1024];
int pan;
pan = LoadPanelEx (0, "FR_GUI.uir", READ_PAN, __CVIUserHInst);
DisplayPanel (pan);
RunUserInterface();
DiscardPanel (pan);
return 0;
Error:
// sprintf(FinalErrMsg,"Configure Error: %s",errMsg);
return -1;Thanks for ur reply.
Hello Asad,
It is possible to maximize the run time previewer when calling reports from forms. U need to set a parameter named 'MAXIMIZE' to do that.
I m attaching a code sample for u. This is working in my production environment.
DECLARE
pl_id ParamList;
BEGIN
pl_id := Get_Parameter_List('setProposal');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('setProposal');
// This parameter is set to hide parameter form at run time
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
// This parameter is used to maximize previewer window at run // time
Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
Run_Product(REPORTS, 'sample.rep', SYNCHRONOUS, RUNTIME,
FILESYSTEM, pl_id, NULL);
END;
Feel free to contact me if u need anymore assistance.
Take care and bye -
Pass value at run time from one structure to diffrent structure
hi experts.
i m workin on crm domain and faching problem to pass value from one stucture to another . problem is that i want the output in xml file so i need all the values interm of segment.
initialy i have this structure.
DATA: BEGIN OF struc1 occurs 0,
ST_ORDERADM_H TYPE CRMT_ORDERADM_H_WRKT,
ST_PRICING TYPE CRMT_PRICING_WRKT,
ST_ORGMAN TYPE CRMT_ORGMAN_WRKT,
ST_PARTNER TYPE CRMT_PARTNER_EXTERNAL_WRKT,
END OF struc1.
and using fm CALL FUNCTION 'CRM_ORDER_READ' i got values on this structure at run time.
MOVE LT_ORDERADM_H to STRUC1-ST_ORDERADM_H.
MOVE LT_ORGMAN to STRUC1-ST_ORGMAN.
MOVE LT_PARTNER to STRUC1-ST_PARTNER.
MOVE LT_PRICING to STRUC1-ST_PRICING.
and after that using
try.
CALL TRANSFORMATION id
SOURCE data_node = STRUC1
RESULT XML xmlstring.
CATCH cx_st_error.
endtry.
CLEAR: tab_xstring,
lv_filename,
lv_path,
lv_fullpath,
lv_user_action.
REFRESH: tab_xstring.
lv_bytes = XSTRLEN( xmlstring ).
IF lv_bytes > 0.
lv_xstring = xmlstring.
DO.
APPEND lv_xstring TO tab_xstring.
lv_xcnt = XSTRLEN( lv_xstring ).
IF lv_xcnt > xsize.
lv_xstring = lv_xstring+xsize.
ELSE.
EXIT.
ENDIF.
ENDDO.
now it convert to xml file .
problem is it gives me value of all field associated with standared structure.
but client requirment is that he want only selected values of given structure.
so i think i make a new structure for given value but i m not able to get values in new structure.
thanksHi,
create a structure in se11 with following fields
ST_ORDERADM_H.
ST_ORGMAN.
ST_PARTNER.
ST_PRICING.
for example as STRUCT2.
data : begin of i_struct2 occurs 0.
include structure struct2.
data : end of i_struct2.
MOVE LT_ORDERADM_H to i_STRUCt2-ST_ORDERADM_H.
MOVE LT_ORGMAN to i_STRUCt2-ST_ORGMAN.
MOVE LT_PARTNER to i_STRUCt2-ST_PARTNER.
MOVE LT_PRICING to i_STRUCt2_PRICING.
then
try.
CALL TRANSFORMATION id
SOURCE data_node = i_STRUCt2
RESULT XML xmlstring.
CATCH cx_st_error.
endtry. -
Hello,
I'm working on a simple VI using the SMTP send file function, which will be run from a USB stick. The executable works well save for that it needs to run from the stick on computers without Run Time installed. I have Run Time 8.5 installed on the stick, in the X:\Program Files\National Instruments\ folder, but the application can't find the RTE to execute. It needs to find it automatically, since several people (all untrained in LabView) will be inserting the stick into various remote Windows computers in order to send the emails and attachments. Another potential problem is the varying drive letter assignment given to the USB stick, but that doesn't seem to be the current problem. Any suggestions?
Setup:
WinXP
LV 8.5
Thanks,
MarkIn some cases it possible, if you not using packages which should be installed, like IMAQ, VISA, etc...
But do not install RunTime on the memory stick (because some paths will be stored in the registry - you may get troubles with your PC when stick will be removed).
Try to do following (without guarantees, but may work):
1. Copy <Program Files>\National Instruments\Shared\LabVIEW Run-Time\x.x directory to your USB stick (x.x - LabVIEW version which was used for your project)
2. Place your builded application into this directory on USB stick (executable should be located at the same place where lvrt.dll located)
3. Try to start it on the PC without RunTime.
hopefully it helps,
Andrey. -
Running LabView run time from Excel
I need to run a labview runtime from Excel, the problem is I do not
have LabView installed on my computer so I do not see the LabView
object library in Excel VB interface, I assumed that installing a
runtime version should install that too.
Am i missing something, or is there a way to run a labview runtime VI
using ActiveX without actually intstalling labview.
Thank You.Hey Mike,
Two things to verify,
1. The LabVIEW run time engine is installed.
2. You've enabled ActiveX for your executable. See the picture below.
Chris C
Message Edited by Chris_C. on 02-22-2007 12:31 PM
Message Edited by Chris_C. on 02-22-2007 12:31 PM
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect
Attachments:
ActiveX.GIF 30 KB -
How to get class name of a object in run time, from its accessible context.
Hi,
I need to get the class name of a java object in run-time, given the AccessibleContext of that object.
I gone through the AccessibleContext api documentation. but there is not way to get the class name for a java object using its AccessibleContext object.
Do any one have any idea how to get the class name of an java object, given its accessible object Accessible.
Thanks
Timberlake816311 wrote:
Please try to provide a solution for my requirement and avoid evaluating a requirement.
I am a curious guyit's great to be curious. however, in this situation, the requirement makes no sense in the given context. so, in an effort to be helpful, the people on this forum are asking you the reason behind the requirement. the reason we do this is because we have experience answering questions on this forum and, more often than not, requirements which don't make sense are the result of misunderstandings or confusion on the part of the person making the requirement. if we can figure out why you want to do what you want to do, we may be able to point you in a direction which makes more sense. -
Running report from database package
Hi,
I have a database package and it gets soem details and submits the report using SRW. It has submitted successfully. But the report is not outputed but there is file with extension eps. Can the package pass the user variables??
The package code follows:-
PROCEDURE p_submit_copy_invoices(
par_organization_id1 IN system_users.organization_id%TYPE,
par_batch_no1 IN ds_invoice_headers.batch_no%TYPE,
par_invoice_date IN ds_invoice_headers.creation_date%type,
par_user_code IN system_users.user_code%TYPE,
par_err_msg OUT VARCHAR2) IS
replist SRW_PARAMLIST;
repindent SRW.job_ident;
repstatus SRW.STATUS_RECORD;
par_customer_code_from ds_invoice_headers.customer_code%type;
par_organization_id number;
par_batch_no number;
CURSOR GET_CUST_CODE IS
SELECT DISTINCT dih.CUSTOMER_CODE,dih.batch_no,NO_OF_INVOICE_COPIES
FROM DS_INVOICE_HEADERS DIH, DS_CUSTOMER_SITES DCS
WHERE dih.ORGANIZATION_ID = par_organization_id1
AND TRANSACTION_TYPE = 'IN'
AND TRUNC(dih.CREATION_DATE) = par_invoice_date --'16-SEP-04' --TO_DATE(:DUAL.INVOICE_DATE)
and DIH.ORGANIZATION_ID = dcs.ORGANIZATION_ID
AND DIH.CUSTOMER_CODE= DCS.CUSTOMER_CODE
AND dih.CUSTOMER_SITE_CODE = DCS.CUSTOMER_SITE_CODE
AND NO_OF_INVOICE_COPIES > 0;
BEGIN
dbms_output.put_line('before');
FOR CURR_REC IN GET_CUST_CODE
LOOP
--v_user_params := ' par_organization_id1 ='||:GLOBAL.organization_id
-- || ' par_customer_code_from ='||CURR_REC.customer_code
-- || ' par_batch_no = '||CURR_REC.batch_no;
dbms_output.put_line('inside loop -'||curr_rec.customer_code);
replist := SRW_PARAMLIST(SRW_PARAMETER('',''));
srw.start_debugging;
SRW.ADD_PARAMETER(replist,'GATEWAY','http://seikoapps.seiko.com.au:7777/reports/rwservlet');
SRW.ADD_PARAMETER(replist,'REPORT','/u02/app/dis/dev/reports/rdf/dsinvprt.rdf');
SRW.ADD_PARAMETER(replist,'SERVER','repseikoapps2');
SRW.ADD_PARAMETER(replist,'USERID','dis/[email protected]');
SRW.ADD_PARAMETER(replist,'DESTYPE','FILE');
--SRW.ADD_PARAMETER(replist,'DESNAME','itgenicom');
dbms_output.put_line(' before desformat ');
--SRW.ADD_PARAMETER(replist,'DESFORMAT'.'lst');
SRW.ADD_PARAMETER(replist,'DESTINATION','/u02/app/dis/dev/reports/rep/dsinvprt.pdf');
SRW.ADD_PARAMETER(replist,'BLANKPAGES','no');
SRW.ADD_PARAMETER(replist,'COPIES',CURR_REC.NO_OF_INVOICE_COPIES);
--SRW.ADD_PARAMTER(mplist,DESTINATION,
dbms_output.put_line(' before MODE');
SRW.ADD_PARAMETER(replist,'MODE','Bitmap');
SRW.ADD_PARAMETER(replist,'ORIENTATION','Landscape');
SRW.ADD_PARAMETER(replist,'PARAMFORM','no');
dbms_output.put_line(' user defined variable ');
SRW.ADD_PARAMETER(replist,par_organization_id,par_organization_id1);
SRW.ADD_PARAMETER(replist,par_customer_code_from,CURR_REC.customer_code);
SRW.ADD_PARAMETER(replist,par_batch_no,CURR_REC.batch_no);
dbms_output.put_line(' before runrepoert ');
repindent := srw.run_report(replist);
repstatus := SRW.REPORT_STATUS(repindent);
dbms_output.put_line(' status of the report - '||repstatus.statuscode);
--srw.stop_debugging;
END LOOP;
END p_submit_copy_invoices;
I have turned the dubugging on :-
* WELCOME TO EVENT-BASED-REPORTING API *
* API-Version : 9i *
* (C) Oracle Corporation, 2000 - 2002 *
* Debugging turned ON **************************
*** Length of Paramlist : 1
OK : Parameter added : GATEWAY=http://seikoapps.seiko.com.au:7777/reports/rwservlet
*** Length of Paramlist : 2
OK : Parameter added : REPORT=/u02/app/dis/dev/reports/rdf/dsinvprt.rdf
*** Length of Paramlist : 3
OK : Parameter added : SERVER=repseikoapps2
*** Length of Paramlist : 4
OK : Parameter added : USERID=dis/[email protected]
*** Length of Paramlist : 5
OK : Parameter added : DESTYPE=FILE
before desformat
*** Length of Paramlist : 6
OK : Parameter added : DESTINATION=/u02/app/dis/dev/reports/rep/dsinvprt.pdf
*** Length of Paramlist : 7
OK : Parameter added : BLANKPAGES=no
*** Length of Paramlist : 8
OK : Parameter added : COPIES=1
before MODE
*** Length of Paramlist : 9
OK : Parameter added : MODE=Bitmap
*** Length of Paramlist : 10
OK : Parameter added : ORIENTATION=Landscape
*** Length of Paramlist : 11
OK : Parameter added : PARAMFORM=no
user defined variable
*** Length of Paramlist : 12
OK : Parameter added : =129
*** Length of Paramlist : 13
OK : Parameter added : =250000D
*** Length of Paramlist : 14
OK : Parameter added : =100104
before runrepoert
Starting run_report: building url
*** Building URL (RUN_REPORT)
OK : URL built : http://seikoapps.seiko.com.au:7777/reports/rwservlet?REPORT=%2Fu02%2Fapp%2Fdis%2Fdev%2Freports%2Frdf%2Fdsinvprt%2Erdf&SERVER=repseikoapps2&USERID=dis%2Fseikodis%40dis%2Eseiko%2Ecom%2Eau&DESTYPE=FILE&DESTINATION=%2Fu02%2Fapp%2Fdis%2Fdev%2
*** Submitting HTTP Request
*** using URL :http://seikoapps.seiko.com.au:7777/reports/rwservlet?REPORT=%2Fu02%2Fapp%2Fdis%2Fdev%2Freports%2Frdf%2Fdsinvprt%2Erdf&SERVER=repseikoapps2&USERID=dis%2Fseikodis%40dis%2Eseiko%2Ecom%2Eau&DESTYPE=FILE&DESTINATION=%2Fu02%2Fapp%2Fdis%2Fdev%2Fr
OK : Request submitted - Return stream : <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
<serverQueues>
<job id="842" queueType="past">
<name>/u02/app/dis/dev/reports/rdf/dsinvprt.rdf</name>
<type>report</type>
<st
OK : Request submitted - Length of stream : 678
*** XML-Parsed - Following Structure discovered :
*** Checking elements!
serverQueues ()
*** Checking attributes!
job ()
*** Checking attributes!
__id = 842
__queueType = past
name (/u02/app/dis/dev/reports/rdf/dsinvprt.rdf)
*** Checking attributes!
type (report)
*** Checking attributes!
status (Finished successfully)
*** Checking attributes!
__code = 4
owner (RWUser)
*** Checking attributes!
server (repseikoapps2)
*** Checking attributes!
destination ()
*** Checking attributes!
desType (FILE)
*** Checking attributes!
desFormat (unknown)
*** Checking attributes!
file (71106787.eps)
*** Checking attributes!
timingInfo ()
*** Checking attributes!
queued (1/10/2004 15:02:18)
*** Checking attributes!
started (1/10/2004 15:02:18)
*** Checking attributes!
finished (1/10/2004 15:02:18)
*** Checking attributes!
*** Finished Parsing XML
Getting value for element: job
*** Requesting value for Attribute job.id [842]
Getting value for element: server
*** Requesting value for TAG server [repseikoapps2]
Getting value for element: job
*** Requesting value for Attribute job.type []
Getting value for element: job
*** Requesting value for Attribute job.queueType [past]
Getting value for element: name
*** Requesting value for TAG name [u02/app/dis/dev/reports/rdf/dsinvprt.rdf]
Getting value for element: status
*** Requesting value for Attribute status.code [4]
Getting value for element: status
*** Requesting value for TAG status [Finished successfully]
Getting value for element: owner
*** Requesting value for TAG owner [RWUser]
Getting value for element: desType
*** Requesting value for TAG desType [FILE]
Getting value for element: desName
*** Requesting value for TAG file [71106787.eps]
Getting value for element: queued
*** Requesting value for TAG queued [1/10/2004 15:02:18]
Getting value for element: started
*** Requesting value for TAG started [1/10/2004 15:02:18]
Getting value for element: finished
*** Requesting value for TAG finished [1/10/2004 15:02:18]
Getting value for element: parentJob
*** RUN REPORT BY URL - Processing finished
JobID : 842
StatusCode : 4
StatusText : Finished successfully
================================================
TimeStamp : 10/01/04 02:22 PM
================================================
*** Length of Paramlist : 1
OK : Parameter added : GATEWAY=http://seikoapps.seiko.com.au:7777/reports/rwservlet
*** Length of Paramlist : 2
OK : Parameter added : SERVER=repseikoapps2
*** Length of Paramlist : 3
OK : Parameter added : JOBID=842
*** Length of Paramlist : 4
OK : Parameter added : AUTHID=
*** Building URL (showjobid)
Added jobid to URL
Added Server to URL
Added statusformat to URL
OK : URL built : http://seikoapps.seiko.com.au:7777/reports/rwservlet/showjobid842?Server=repseikoapps2&statusformat=xml
*** Submitting HTTP Request
*** using URL :http://seikoapps.seiko.com.au:7777/reports/rwservlet/showjobid842?Server=repseikoapps2&statusformat=xml
OK : Request submitted - Return stream : <?xml version = '1.0' encoding = 'ISO-8859-1' standalone = 'yes'?>
<serverQueues>
<job id="842" queueType="past">
<name>/u02/app/dis/dev/reports/rdf/dsinvprt.rdf</name>
<type>report</type>
<st
OK : Request submitted - Length of stream : 678
*** XML-Parsed - Following Structure discovered :
*** Checking elements!
serverQueues ()
*** Checking attributes!
job ()
*** Checking attributes!
__id = 842
__queueType = past
name (/u02/app/dis/dev/reports/rdf/dsinvprt.rdf)
*** Checking attributes!
type (report)
*** Checking attributes!
status (Finished successfully)
*** Checking attributes!
__code = 4
owner (RWUser)
*** Checking attributes!
server (repseikoapps2)
*** Checking attributes!
destination ()
*** Checking attributes!
desType (FILE)
*** Checking attributes!
desFormat (unknown)
*** Checking attributes!
file (71106787.eps)
*** Checking attributes!
timingInfo ()
*** Checking attributes!
queued (1/10/2004 15:02:18)
*** Checking attributes!
started (1/10/2004 15:02:18)
*** Checking attributes!
finished (1/10/2004 15:02:18)
*** Checking attributes!
Getting value for element: job
*** Requesting value for Attribute job.id [842]
Getting value for element: server
*** Requesting value for TAG server [repseikoapps2]
Getting value for element: job
*** Requesting value for Attribute job.type []
Getting value for element: job
*** Requesting value for Attribute job.queueType [past]
Getting value for element: name
*** Requesting value for TAG name [u02/app/dis/dev/reports/rdf/dsinvprt.rdf]
Getting value for element: status
*** Requesting value for Attribute status.code [4]
Getting value for element: status
*** Requesting value for TAG status [Finished successfully]
Getting value for element: owner
*** Requesting value for TAG owner [RWUser]
Getting value for element: desType
*** Requesting value for TAG desType [FILE]
Getting value for element: desName
*** Requesting value for TAG file [71106787.eps]
Getting value for element: queued
*** Requesting value for TAG queued [1/10/2004 15:02:18]
Getting value for element: started
*** Requesting value for TAG started [1/10/2004 15:02:18]
Getting value for element: finished
*** Requesting value for TAG finished [1/10/2004 15:02:18]
Getting value for element: parentJob
*** JOB STATUS - Processing finished
JobID : 842
StatusCode : 4
StatusText : Finished successfully
=============================================
TimeStamp : 10/01/04 02:22 PM
=============================================
Can any one help me why the file is not created.
Thanks
BainThe file is created, but as an eps file (post script printer file). That is because you have not specified a desformat (e.g. PDF).
-
Crystal reports from VB at run time
I am using VB6 as the front end and Microsoft Access to hold the data and Crystal Reports 8.5. I have a staff name parameter that I want the user to select which staff name to print the report. If there is a new
staff the name is not in the list of parameters. How do I add to the parameter list at run time from the staff table?I am using VB6 as the front end and Microsoft Access to hold the data and Crystal Reports 8.5. I have a staff name parameter that I want the user to select which staff name to print the report. If there is
a new staff the name is not in the list of parameters. How do I add to the parameter list at run time from the staff table?
Hi,
I am afraid that these forums don't support VB6, you could refer to this thread:
Where to post your VB 6 questions
You could consider posting this issue in these forums below:
These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
VB Forums
VB City
In addition, issues related to Crystal Reports are not supported either since it belongs to third-party.
You could post issues related to Crystal Reports to its forum to get dedicated supports.
SAP Crystal Reports for .NET forum:
http://forums.sdn.sap.com/forum.jspa?forumID=313
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to acess MDS artifacts in OSB at Run time
Hi all,
I have a requirement like , i need to access some of the artifacts at run time from MDS. is it possible?
i could import the the artifacts by using http protocal , below is the link for same, in this duplicate of artifacts will be copied to local working space.
Yuan's SOA Blog: Sharing common XSD's between OSB and SOA using MDS
i have seen we couldnt use absolute pathe in osb to import any thing, we should use only relative path,without giving any absolute path how to access the MDS artifacts?
Thanks,
Rajashekhar.don't think you will be able toe reuse the artifacts in the mds.
the xsds/wsdls etc need to be 'registered' in the osb workspace to be able to use them for other artifacts like proxyservices, you can use for example an oramds import ...that won't work
you could have 1 place where you store the artifacts for mds and also use that location for 'shared' resources in your osb.
on deploy of osb, osb will use this folder to construct the sbconfig.jar and on deploy of the composite and mds, you will also use this folder to import it to the mds database.
not an ideal solution, but like that you can store the artifacts on 1 location and reuse it in both soasuite and osb -
Dynamic run-time objects in a query
Hi everybody,
I came across some docs that say this Dynamic SQL fails:
CREATE PROCEDURE drop_table (table_name IN VARCHAR2) AS
BEGIN
EXECUTE IMMEDIATE DROP TABLE :tab USING table_name;
END;
Can someone explain why can't an object name be provided through a bind variable?
And the workaround, according to the docs is:
CREATE PROCEDURE drop_table (table_name IN VARCHAR2) AS
BEGIN
EXECUTE IMMEDIATE DROP TABLE || table_name;
END;
Can you clarify on this?
Thanks.
-- Kishore.Kishore:
It is not really the compilier that has the problem, it is just telling you that your code will not run when you try to execute it. When you use bind variables, as in Case 1, Oracle does not "see" the value of the bind variable until it actually executes the statement (we'll ignore peeking in 9.2). So, if you issue something like:
SELECT col
FROM t
WHERE id = :bvWhen Oracle parses the query, it will check to see that t exists, you can select from it, col exists in t, etc. Then, the optimizer will look at the WHERE clause and say "I've got an equality predicate, is there an index on id? If so, it will most likely choose an index based access plan. At this point, the optimizer has no idea what the value of bv is. Now, it will bind the value passed into the query and executes it.
This can lead to bad plans if you have skewed data and no histograms what if id has only 2 distinct values 1 row with id 1 and 99,999 with id 2. If you pass 1 for id, then id is the proper access plan. However, if you pass 2 then a full table scan is much more appropriate.
Now, think about the sequence of events when you try to bind the object name into DDL. What the database will see at run time from the execute immediate statement is:
DROP TABLE :bv;The same things happen in the parse phase as in the SELECT. Oracle will check whether the table exists, that you have the required permissions to drop it, etc. But, which table does it check? Remember, at this point Oracle does not know what value is in the bind variable.
In case 2, what the database will see as the sql statement when the procedure executes is:
DROP TABLE t;Now, at run time, Oracle can do all the required parse time checking and execute the sql statement. The compiler recognizes that the string passed to execute immediate will be at least parsable by the database and allows the compilation to succeed.
HTH
John -
Crystal reports using xml at run time??
Post Author: avnkkishore
CA Forum: General
Hi,
I have very simple requirement.
I would like to create a crystal
report using XML. This
XML file will be decided at run time
(not at design time).
Hence i have added a crystal report viewer control to my windows form and did
not choose any data source (i left it blank currently). Now i am trying to load
XML file with the following simple code.
PropertyBag
crLogOnDetails = new PropertyBag();
crLogOnDetails["Local XML File"] = @"C:\Hosts.xml";
crLogOnDetails["Local Schema File"] = @"C:\Hosts.xsd";
ConnectionInfo conn = new ConnectionInfo();
conn.Attributes = crLogOnDetails;
// create
"Host" table
CrystalDecisions.ReportAppServer.DataDefModel.Table tbl;
tbl = new
CrystalDecisions.ReportAppServer.DataDefModel.Table();
tbl.Name =
"Host";
tbl.ConnectionInfo = conn;
rcDoc.DatabaseController.AddTable(tbl, null);
I am getting exception exactly at the above line (i.e. when adding table to
Database Controller) saying "COMException was unhandled" with error code
0x80004005 Unspecified error.
Can any one please help me regarding how to resolve this.
Thanks in advance,
KishoreI am using VB6 as the front end and Microsoft Access to hold the data and Crystal Reports 8.5. I have a staff name parameter that I want the user to select which staff name to print the report. If there is
a new staff the name is not in the list of parameters. How do I add to the parameter list at run time from the staff table?
Hi,
I am afraid that these forums don't support VB6, you could refer to this thread:
Where to post your VB 6 questions
You could consider posting this issue in these forums below:
These forums do not support Visual Basic 6, however there are many third-party support sites that do. If you have a VB6-related question please visit these popular forums:
VB Forums
VB City
In addition, issues related to Crystal Reports are not supported either since it belongs to third-party.
You could post issues related to Crystal Reports to its forum to get dedicated supports.
SAP Crystal Reports for .NET forum:
http://forums.sdn.sap.com/forum.jspa?forumID=313
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I have the following code to load in some images and
display/move them:
this.createClassObject(mx.controls.Loader, "myLoader", 1);
this.createClassObject(mx.controls.Loader, "myLoader2", 2);
this.createClassObject(mx.controls.Loader, "myLoader3", 3);
this.createClassObject(mx.controls.Loader, "myLoader4", 4);
this.createClassObject(mx.controls.Loader, "myLoader5", 5);
myLoader.scaleContent = false;
myLoader2.scaleContent = false;
myLoader3.scaleContent = false;
myLoader4.scaleContent = false;
myLoader5.scaleContent = false;
var images:Array = ["
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg",
http://www.mysite.com/images/image_01.jpg"
myLoader.contentPath = images[0];
myLoader._x = 0;
myLoader._y = 0;
myLoader2.contentPath = images[1];
myLoader2._x = 320;
myLoader2._y = 0;
myLoader3.contentPath = images[2];
myLoader3._x = 640;
myLoader3._y = 0;
myLoader4.contentPath = images[3];
myLoader4._x = 960;
myLoader4._y = 0;
myLoader5.contentPath = images[4];
myLoader5._x = 1280;
myLoader5._y = 0;
This works great, but what I'm wondering is, can I load in
the images array variable at run time from an external file so I
could edit that file on the server in order to change images,
without having to re-publish the flash file? Thanks for any help.
BobAdrian,
Have a look at: http://www.oracle.com/technology/products/database/htmldb/howtos/howto_create_upload_spreadsheet_form.html
It's not 100% what you're looking for (as it requires you to cut & paste from the spreadsheet), but it may do what you're after.
Thanks,
- Scott -
Maybe you are looking for
-
Can't connect to just ONE website. Strange!
I am working on a website which, until recently, I have been able to access through my browser and through ftp. I was using Flash 8, and the Flash File I was working on was accessing said site (dynamically loading images from), and crashed a few time
-
Hi experts, i have one doubt about BAPI's. Here iam using SAP PLM system. I have to search the suitable BAPI to display the list of materials form SAP PLM system.Here the requirement is i have to give this BAPI to the XI people. There they wil
-
I have music on my macbook desktop and I want to transfer that music to my iTunes
I have music on my macbook desktop and I want to transfer that music to my iTunes
-
Re-name 'Inheritance Stext 3' to Inherited from in CostCenterOULink table
Hi, I want to re-name 'Inheritance Stext 3' in CostCenterOULink table to 'Inherited from'. But once I changed the text in the Admin Console and published the build, the OrgChart was seen to be 'hanging'. Are we not supposed to change texts in Admin C
-
No Airport Setup Assistant??
I've just bought a new MacBook from Apple along with an Airport Express. I've gotten high-speed internet from Comcast and I'm trying to setup my Airport Express. I've plugged the Airport Express in and it flashes amber as it hasn't been set-up just y