How to call a procudure (has collection as one of the parameters) from java
Hi
I have written a PL/SQL procedure. One of the parameters of the procedure is a collection.
Could you please tell me how to call this procedure from java.
Regards
see the link for example
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/sqljSTCollectionSample/SqljSTCollectionSample.sqlj.html
Similar Messages
-
hi, how can i have a live chat with one of the people from apple so i they can help me with my problem?
https://getsupport.apple.com/Issues.action
-
How to call PL/SQL stored procedure with TWO or more arguments from URL?
Hi all,
does anybody know, how to call stored procedure with more than one argument?
How to do this with one argument is known -
<img src="#OWNER#.retreive_img_data?i_id=#IMG_ID#" width="70" height="80" alt="No Picture">
But if I need to call procedure with two formal parameters? And need to pass through URL, for example, two page item values?Just separate with an "&". Using your previous example, I'll add i_name and i_type:
<img src="#OWNER#.retreive_img_data?i_id=#IMG_ID#&i_name=somename&i_type=jpg" width="70" height="80" alt="No Picture" />
Tyler -
How can call a function module(RFC)in one server to another sever in my rep
How can call a function module(RFC)in one server to another sever in my report program.
What i am know whenever rfc enabled immediately radio button checks then only it will come.
please justify.Syntax
CALL FUNCTION func DESTINATION dest [EXPORTING p1 = a1 p2 = a2 ...]
[IMPORTING p1 = a1 p2 = a2 ...]
[CHANGING p1 = a1 p2 = a2 ...]
[TABLES t1 = itab1 t2 = itab2 ...]
[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
[system_failure = ns [MESSAGE smess]]
[communication_failure = nc [MESSAGE cmess]]
[OTHERS = n_others]].
http://help.sap.com/saphelp_47x200/helpdata/en/22/042537488911d189490000e829fbbd/frameset.htm -
Introduction
In SQL Server Reporting Services, we can define a mapping between the fields that are returned in the query to specific delivery options and to report parameters in a data-driven subscription.
For a report with a parameter (such as YEAR) that allow multiple values, when creating a data-driven subscription, how can we pass a record like below to show correct data (data for year 2012, 2013 and 2014).
EmailAddress Parameter
Comment
[email protected] 2012,2013,2014 NULL
In this article, I will demonstrate how to configure a Data Driven Subscription which get multi-value parameters from one column of a database table
Workaround
Generally, if we pass the “Parameter” column to report directly in the step 5 when creating data-driven subscription.
The value “2012,2013,2014” will be regarded as a single value, Reporting Services will use “2012,2013,2014” to filter data. However, there are no any records that YEAR filed equal to “2012,2013,2014”, and we will get an error when the subscription executed
on the log. (C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\LogFiles)
Microsoft.ReportingServices.Diagnostics.Utilities.InvalidReportParameterException: Default value or value provided for the report parameter 'Name' is not a valid value.
This means that there is no such a value on parameter’s available value list, this is an invalid parameter value. If we change the parameter records like below.
EmailAddress Parameter Comment
[email protected] 2012 NULL
[email protected] 2013 NULL
[email protected] 2014 NULL
In this case, Reporting Services will generate 3 reports for one data-driven subscription. Each report for only one year which cannot fit the requirement obviously.
Currently, there is no a solution to solve this issue. The workaround for it is that create two report, one is used for view report for end users, another one is used for create data-driven subscription.
On the report that used create data-driven subscription, uncheck “Allow multiple values” option for the parameter, do not specify and available values and default values for this parameter. Then change the Filter
From
Expression:[ParameterName]
Operator :In
Value :[@ParameterName]
To
Expression:[ParameterName]
Operator :In
Value :Split(Parameters!ParameterName.Value,",")
In this case, we can specify a value like "2012,2013,2014" from database to the data-driven subscription.
Applies to
Microsoft SQL Server 2005
Microsoft SQL Server 2008
Microsoft SQL Server 2008 R2
Microsoft SQL Server 2012
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.For every Auftrag, there are multiple Position entries.
Rest of the blocks don't seems to have any relation.
So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
Try out this snippet.
DATA lt_data TYPE TABLE OF string.
DATA lv_data TYPE string.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = 'C:\temp\test.txt'
CHANGING
data_tab = lt_data
EXCEPTIONS
OTHERS = 19.
CHECK sy-subrc EQ 0.
TYPES:
BEGIN OF ty_str,
a1 TYPE string,
a2 TYPE string,
a3 TYPE string,
p1 TYPE string,
p2 TYPE string,
p3 TYPE string,
END OF ty_str.
DATA: lt_str TYPE TABLE OF ty_str,
ls_str TYPE ty_str,
lv_block TYPE string,
lv_flag TYPE boolean.
LOOP AT lt_data INTO lv_data.
CASE lv_data.
WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
lv_block = lv_data.
lv_flag = abap_false.
WHEN OTHERS.
lv_flag = abap_true.
ENDCASE.
CHECK lv_flag EQ abap_true.
CASE lv_block.
WHEN '[Auftrag]'.
SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
WHEN '[Position]'.
SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
APPEND ls_str TO lt_str.
ENDCASE.
ENDLOOP. -
How can I Publish to a Folder just one of the several websites I have created using iWeb?
How can I Publish to a Folder just one of the several websites I have created using iWeb?
it drives me nuts having to emove all the other websites when I want to upload one.
SparrowFor iWeb, I like to do only one site per domain file. I move domain files out of the Application Support folder and place them inside project or client folders, or in DropBox. Once you duplicate a domain file and begin customizing it, it will load and behave as a separate project/site.
I publish each iWeb domain/project direct to a server via FTP. Sometime I publish to a folder, then upload via FTP manually.
iWeb is a remarkable tool, especially when you work from scratch with blank tamplates
Here are a few of my iWeb sites:
http://www.newcovenant.org
http://www.visionmultimedia.org
http://www.visioncomsolutions.com -
I have lost my phone IMEI Number 012546005322381, Serial Number 87******A4S, is there a way it can be tracked? Also, how can one remove the device from the itunes account
<Serial Number Edited By Host>If you enabled Find my iPhone then you should use that. If not, I'm afraid you're out of luck for finding it.
To manage your devices, go to Your Account in iTunes. -
How can i open the popup from java class
Hi,
Please tell me how can i open the popup from java class.
I am using jdev 11.1.1.7.0
I have used the below code which works fine in jdev 2.1 but it will have some errors in 11.1.1.7.0.
Please tell me some way to do this in all jdev versions.
Bean obj = (Bean)RequestContext.getCurrentInstance.getExternalContext.getPageFlowScope(“obj”);
Code for hide pop-up
FacesContext context = FacesContext.getCurrentInstance();
String popupId = obj.getPopUpBind().getClientId()
ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(),
ExtendedRenderKitService.class);
String hidePopup = "var popupObj=AdfPage.PAGE.findComponent('" + popupId +
"'); popupObj.hide();";
service.addScript(FacesContext.getCurrentInstance(), hidePopup);
Code to Show pop-up
StringBuffer showPopup = new StringBuffer();
showPopup.append("var hints = new Object();");
showPopup.append("var popupObj=AdfPage.PAGE.findComponent('" +
obj.getPopUpBind().getClientId() + "');popupObj.show(hints);");
service.addScript(FacesContext.getCurrentInstance(), showPopup.toString());
Code need to be added in jsff pop tag
binding="#{pageFlowScope.bean.popUpBind}
Variable need to be added in Bean.java
private RichPopup popUpBind;Hari,
Since you're using a non-public build of JDeveloper, you should be using a non-public forum.
John -
Can anybody tell me how to send/receive the sms from java application
Hi All,
Can any body tell me, how to send/receive the sms from java application to mobile phones.
I have installed the jsms engine and when i try to connect to the mobile device ,the jsms server is giving
the following error.
Cannot connect to GSM Device, error : -11Which jsms? Google finds several.
Try the website where you downloaded it. -
Can any body tell me, how to send/receive the sms from java application
Hi All,
Can any body tell me, how to send/receive the sms from java application to mobile phones.
I have installed the jsms engine and when i try to connect to the mobile device ,the jsms server is giving
the following error.
Cannot connect to GSM Device, error : -11The best place to ask your question is at the JSMS website, forum or mailing list since this is no error that directly comes from a class belonging to the core Java classes.
-
How do I resend an invite email for one of the user in my Aruba Central account?
Q: How do I resend an invite email for one of the user in my Aruba Central account?
A: Aruba Central allows administrator to create multiple user of different access levels to help manage the system. As new uses are created by administrator, an invitation email is sent to the user's email address to activate the account.
In certain situations, these emails get into spam or junk folders with no visibility to end-user. These are cases, where re-sending an invitation email is of much helpful.
Follow these steps to resend invite email to a specific user:
Login to Aruba Central and click on "All Groups"
In the left-menu, click on "Maintenance" and then "User Management"
Clik on "Resend Invite email" and mention the email address you wanted to send the invite again:By default, the Menu Type option for menus is set to Top Level Pages. You can change this behavior by choosing Menu Type > All Pages from the menu options. The steps to do this are described in Adding a Horizontal Menu widget
-
How to call a Sub template in BI Publisher for the same Loop
Hi,
I'm trying to achieve a multi template invoice customer facing Report output by using sub templates in BI publisher. I've stored the Template2.rtf file in Local machine temp directory and calling it in the main RTF. My Scenario is as described below:
<?import:file:///C:\temp\Template2.rtf?>
<? For-each@section: HEADERS?>
****Contents of header data and it's line***
<?start@last-page:body?><?end body?>
***last page sub totals****
**in next page i'm calling another .rtf file which is the second This template should repeat for each header transaction**
<?call-template:Template2?>
<?end for-each?>
While trying to preview the output from Bi publisher Template, either it goes to infinite loop or it hangs up with error.
Am i getting it wrong? for the Template2.rtf which i'm calling has contents <?template: template2?> <? For-each: cust_headers?> ** logic** <?end-for-each?> <?end template?>
So for a given transaction i need to print two templates. All the data will be under <header> group. Please help me out if i'm missing something in the above.Do you get a "Template invoked but not defined error"? If so, the reason is because you the template can not be found...
In your case, you have defined the template as:
<?template: template2?> <? For-each: cust_headers?> ** logic** <?end-for-each?> <?end template?>
However, in your call statement, you have (upper case T): <?call-template:*T*emplate2?>
Change that and see if it resolves your error. If not provide details about the error.
Thanks,
Bipuser -
How to call plsql procedure or function and getting back the string?
Hi Everyone,
i am using Jdev 11.1.1.5.0.
i have a requirement to call plsql procedure or function from my backing bean java file and get back the returned value from the procedure or function.
what piece of simple code i need to write in my backing bean?
please suggest.
Thanks.As always you write the method to call he pl/sql in the application module, expose this method to the client (so you see it in the datacontroll) then create a operation binding to the method and call this operation from the bean. The result you get by operation.getResult();
You should never call pl/sql from the bean directly!
The doc shows how to call the procedure from an application module: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcadvgen.htm#sm0297
Timo -
My Wife has a new iPad 2, how do I transfer the date on her iPad to her iPad 2? I found some instructions and it instructs me to use a computer. The only other computer I have is a windows os laptop. What is the best method?
You should use a computer with a reasonably current version of Windows (or Mac OS X for an Apple computer).
Load the current version of iTunes (free) which you can get at http://www.apple.com/itunes
Sync her old iPad using iTunes. Do that by opening iTunes and plugging her old iPad into the computer using the USB cable that came with the iPad.
Then plug the iPad 2 into the same iTunes and let it sync. One of the options (since you say it's new) will be to restore from the old iPad. -
How do i check what has been looked at on the internet
Sorry to bother you all again, but i have another question! My 14 year old son has been looking at naughty websites. he say's he has stopped but is there anyway i can check what he has been looking at previously on the internet. I know when using a PC you can look at previous internet history in control manager. Does Mac have the same sort of application. I only realised he was doing this because one of the 'naughty' movies downloaded onto the desktop. but can i check history on QuickTime, and generally the computers history.
Thankszedzed,
Here's another thought.
Navigate to HD > Users > Library > Safari: Make a duplicate of History.plist.
To duplicate the file, click once to highlight it. Press the Command + D keys.
Drag the History,plist copy file to the Desktop.
Highlight it. Press the Command + I keys, to get info.
Change Open With to TextEdit.
When you open the file in TextEdit, it will be difficult to read, but you will be able to pick out some sites.
ali b
Maybe you are looking for
-
How do I disable a entering a password when I login to my Mac?
When I first got my MBA I was told to choose a password that i would enter at login, because it would make my computer safer. I have decided that since my computer never leaves my desk and I am the only one in my apartment. That I want to disable my
-
please help ... have new samsung ativ se windows 8 phone ... screen lock is on to require password, but on incoming calls its not locked ... how do i lock it for incoming calls too ???? thanks
-
I've just ordered a new MacBook Pro, but I don't know how to transfer video from my Panasonic P2 cards to the new laptop that uses express cards. Does anyone know of a reasonably priced reader, or some other solution? Thanks
-
ibook stopped transferring images via image capture. last month it worked. i hav an old ibook and i cannot update to newest itunes. which is fine. however, i need the image capture to take photos off my iphone 5. no, i dont want to use i cloud. i wou
-
Hi All, Can any one give me the path for TVKOL. I need to add new storage condition to shipping point, plant and storage location. Regards, Ravi