Parameters
how to get 3 or 4 parameters in single line?
You should use the SELECTION-SCREEN BEGIN OF LINE statement.
selection-screen begin of line.
parameters: p_check1 type c.
parameters: p_check2 type c.
parameters: p_check3 type c.
parameters: p_check4 type c.
selection-screen end of line.
Did I pass the test yet?
Regards,
Rich heilman
Similar Messages
-
Retriving only hidden parameters from request.getParameter
Hi,
I want to retrive only the hidden parameters from previous JSP page into current JSP page. The problem here is that my hidden parameters in privious page are dynamically generated (parameter names are decided based on values retrived from the database) and I cannot retrive them using "request.getParameter(<parametername>)"
Can I find the parameter type (i.e. text box, text area, checkbox, radio or hidden) from the request.getParameter() or request.getParameterNames() methods? or is there any other way to find it.
Thanks in advance for any helpYou can use the getParameterNames() or getParameterMap() methods from javax.servlet.ServletRequest to get all the parameters in the request. Even if they're dynamically generated, and you don't know the names in advance, these methods will ferret them out.
getParameterMap() returns name String, values String [] pairs, so you'll have to work with String arrays to get the input out. It's got to be that way to accomodate checkboxes and other HTML form elements that can send more than one value for a given name.
I prefer getParameterMap, because I don't like using Enumerations as much. - MOD -
[Interface] - Passing variety parameters/input to PL/SQL report
Hi,
I've the PL/SQL report which can allow passing in the parameter, i use '&'.
the report is given to the end user who do not have the IDE for PL/SQL. the machanism of the report is generated into the spool file and import into excel format.
now i am wondering how to create a tool using SQL or PL/SQL to allow the end user to choose the parameter(s) dynamically and passing into the PL/SQL to generate the report based on the input selected.
the parameters like below:
package code :
week no :
year :
department :
all the above parameters, the data would be selected from the existing lookup table. the user is allow to select more than 1 input for specified parameter for instance i want to spool report for week 1 until week 5.
pls advise any solution on this topic. thankshi scoot,
thank for reply.
yep, i'm using sql*plus and also sql navigator 4.0 .
the user don't have the software to interact. i'm thinking of build an simple interface using VB and passing in the parameter then initiate the sql*plus to run the program in background mode.
but if you have any other solution which not need to use other software to wirte such program , pls let me know immediately. thank -
Report should prompt me for parameters, please help.
Hi All,
I am using Crystal version 10, So is there any way I can get the behaviour of my parameters as dynamic parameter? I have this requirement because when I am deploying the Report on BO server, and try to open the report from InfoView, it is not prompting me for parameters, rather it is giving me the copy which we had scheduled earlier. To get the fresh data with different parameters, we again need to schedule the report.
What I want is simple, Whenever user clicks on the report link in infoview, I should be promted for the parameters my report is using.
Please help..
Thanks
-AzharHi
It would prompt whenever it's refreshed.
You can refer to Business View manager guide from [here|http://help.sap.com/businessobject/product_guides/boexir2/en/xir2_bv_admin_en.pdf ] for detailed information.
Hope this helps!!
Regards
Sourashree -
How to avoid the parameters accepting screen generated by crystal report
Hi ,
I designed one rpt file which will take one parameter and trying to run that file from java servlets. But I am getting one problem. I am passing parameters from jsp and setting those to the crystal report but, instade of generating the report, it is generating one jsp page which is having text feild , after enter the parameter value onece I submit this page then only I am getting required output.
anybody please help me in this. Below I am placing my code.
ReportClientDocument reportClientDocument = new ReportClientDocument();
CrystalReportViewer viewer = new CrystalReportViewer();
ServletContext cxt = req.getSession().getServletContext();
String fileName = "C:/Documents and Settings/Administrator/Desktop/lib-so/ix_sample2.rpt";
try
String realPath = fileName;
reportClientDocument.open(realPath, 0);
viewer.refresh();
viewer.setReportSource(reportClientDocument.getReportSource());
catch(Exception e)
System.out.println("inside catch block...");
e.printStackTrace();
IReportSource reportSource = reportClientDocument.getReportSource();
Fields oFields = new Fields();
ParameterField portfolio = new ParameterField();
portfolio.setName("Portfolio");
Values oValues = new Values();
ParameterFieldDiscreteValue oParameterFieldDiscreteValue = new ParameterFieldDiscreteValue();
oParameterFieldDiscreteValue.setValue(new Integer(16));
oValues.add(oParameterFieldDiscreteValue);
portfolio.setCurrentValues(oValues);
portfolio.setReportName(fileName);
oFields.add(portfolio);
viewer.setOwnPage(false);
viewer.setParameterFields(fi);
try {
viewer.processHttpRequest(req, res, cxt, res.getWriter());
viewer.dispose();
catch (ReportSDKExceptionBase e) {
e.printStackTrace();
thanks,
Mallikarjun
Edited by: mallikarjuna.ch1 on May 17, 2009 9:58 AMThanks a lot for worthful suggetion Neeraj.
I got resolved my problem. I have one more issue, please give a clarification about that.
my doublt is,
For parameterized rpt file running purpose I need to set the database details . every jar file is placed in application lib only. And my CRConfig.xml file also placed bellow.
<?xml version="1.0" encoding="utf-8"?><CrystalReportEngine-configuration>
<timeout>1</timeout>
<ExternalFunctionLibraryClassNames>
<classname> </classname>
<classname> </classname>
</ExternalFunctionLibraryClassNames>
<keycode>B6W60-01CS200-00GCPT0-0JY1</keycode>
<Javaserver-configuration>
<DataDriverCommon>
<JavaDir>D:\inventex\crystal_report\Business Objects\j2sdk1.4.2_08\bin</JavaDir>
<Classpath>$</Classpath>
<IORFileLocation>$</IORFileLocation>
<JavaServerTimeout>1800</JavaServerTimeout>
<JavaServerStartupTimeout>30</JavaServerStartupTimeout>
<JVMMaxHeap>64000000</JVMMaxHeap>
<JVMMinHeap>32000000</JVMMinHeap>
<NumberOfThreads>100</NumberOfThreads>
</DataDriverCommon>
<JDBC>
<CacheRowSetSize>100</CacheRowSetSize>
<JDBCURL>jdbc:sqlserver://10.0.0.65:1433;DatabaseName=reportmanager</JDBCURL>
<JDBCClassName>com.microsoft.sqlserver.jdbc.SQLServerDriver</JDBCClassName>
<JDBCUserName>malli</JDBCUserName>
<JNDIURL></JNDIURL>
<JNDIConnectionFactory></JNDIConnectionFactory>
<JNDIInitContext>/</JNDIInitContext>
<JNDIUserName>weblogic</JNDIUserName>
<GenericJDBCDriver>
<Default>
<ServerType>UNKNOWN</ServerType>
<QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
<StoredProcType>Standard</StoredProcType>
<LogonStyle>Standard</LogonStyle>
</Default>
<Sybase>
<ServerType>SYBASE</ServerType>
<QuoteIdentifierOnOff>OFF</QuoteIdentifierOnOff>
<DriverClassName>com.sybase.jdbc2.jdbc.SybDriver</DriverClassName>
<StoredProcType>Standard</StoredProcType>
<LogonStyle>MySQL</LogonStyle>
</Sybase>
</GenericJDBCDriver>
</JDBC>
<XML>
<CacheRowSetSize>100</CacheRowSetSize>
<PreReadNBytes>4096</PreReadNBytes>
<XMLLocalURL></XMLLocalURL>
<SchemaLocalURL></SchemaLocalURL>
<XMLHttpURL></XMLHttpURL>
<SchemaHttpURL></SchemaHttpURL>
</XML>
<JavaBeans>
<CacheRowSetSize>100</CacheRowSetSize>
<JavaBeansClassPath></JavaBeansClassPath>
</JavaBeans>
</Javaserver-configuration>
</CrystalReportEngine-configuration>
still it is showing "Error finding JNDI name (sql server) " error. I am solving this problem setting these paramers through program. -
SSRS with DAX - parameters multivalue vs total element
Hi all,
I'm using SSRS on top of a SSAS tabular model to create intuitive dashboards for management department.
One thing I'm struggling with is the lack of a "total" on parameters. What I'm doing is, based on the fact table, I create the datasets that will feed each parameter, so it only has the dimension members available on the fact table. That is fine
performance wise, you only have 1 element and it renders very quickly.
For a management perspective at a higher level it is important to view the totals to have the big picture of the information. In my project we are in a University, so I have the parameters Year, school (there are several schools in the university campus)
and the course (computer sciences, math, statistics, etc).
At first glance, if I'm a course coordinador I want to pick my course and have a global view, and I'm achiveing that, but imagine now, that I am the school coordinator, or the university coordenator.
I want to see the aggregate values by all courses or by all schools.
In my view I have 2 ways to do this and I come from a tradition cubes background:
1 - I would use the all element the cubes hierarchy have on each attribute
2 - I would use multivalue parameters with StrToSet (worse performance)
Using DAX what is your approach?
Best regardsHi AsifMehmood,
Per my understanding you have create an SSRS report with SharePoint list, now you don’t know to create the distinct parameters by using CAML query, right?
For the CAML language doesn’t have any reserved word (or tag) to set this particular filter to remove duplicate results, but we can use the custom code to do this function. I have tested on my local environment and we can do that by create one hidden parameter(Param1)
to get all the values from the fields which will add the filter and then create another parameter(Param2) to get the distinct values based on the Param1, we use the custom code to do the deduplication.
Step by Steps information in below thread for your reference to create the parameters and the custom code:
"How to get distinct values of sharepoint column using SSRS"
Other similar thread for your reference:
https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
If your problem still exists, please feel free to ask and also try to provide us more details information.
Regards
Vicky Liu -
Hi All..
We are trying to create a Universe (using IDT-Version4.0) on top of the HANA Calculation view. The Calculation view has 4 input parameters, So
in Universe side we have created the respective prompts. For the creation of derived table we have used the following code
SELECT *
FROM "_SYS_BIC"."<schema_name>.<CV_Calculation_View_test>"
'PLACEHOLDER'=('$$IP_A$$','@Prompt(A)'),
'PLACEHOLDER'=('$$IP_B$$','@Prompt(B)'),
'PLACEHOLDER'=('$$IP_C$$','@Prompt(C)'),
'PLACEHOLDER'=('$$IP_D$$','@Prompt(D)')
While validating the above code we are getting an error.
I have attached the snapshot of that error for your reference. Please find the attachment and help me in resolving it.
Thanks in advance.Hello George,
I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
Thanks, -
Using a variable not in the Export,Import, table Parameters in USER EXIT
Hi all,
During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log. In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS. There is a user-exit CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'. But the import, export or Table Parameters does not have XVBFS.
How can I use XVBFS inside the User exit?..
Please help.
Regards,
AshaHi,
I dont know whether this will help u...
write this in user exit...to access variables/tables of main program..
FIELD-SYMBOLS: <komv>.
ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
regards
Sukriti.... -
Error while Driving a view using parameters from other view
Hi,
I have created a report with streamlist and Barchart view.Driving option is used in streamlist to drive the barchart. The driving works well untill i dont use any filters in the Streamlist.Once i use parameters in streamlist , the driving works only for the default values set.When Second set of values are chosed for the parameter,the values are displayed correctly , but once they are selected for driving,the current values are replaced by the results of the default parameter settings.
I have already done the tutorials for driving and it worked well untill i use filters in the main view,from where the driving is done.
I would really appreciate if someone could give a solution for this problem.
Regards,
LathikaHi,
Login as i.e. sys as sysdba. Standard password is change_on_install.
Or you can login in using user that has CREATE VIEW WITH ADMIN OPTION and then grant CREATE VIEW privilege to user to want.
Peter D. -
I'm on a Macbook from early 2007.
First off, I'm fully aware that my HD is probably on its last legs and I have two gigantic TB external HDs on which there are multiple images of the entire drive, so data loss is not currently a problem for me. I've also just finished college assignments for the summer so I can afford to mess around with this a bit before taking the plunge and replacing it.
What intrigues me is this. The machine has been extremely slow for a long time. Recently I disabled swapping and the speed rocketed, presumably due to the HD being utilized less during usage. Now the downside to disabling swapping is that when Safari Web Content gets out of control as it always eventually does, you can have a full on system hang which requires a forced shutdown through the power button. So it's very possible that the issues I'm currently experiencing are to do with the machine being improperly shut down one too many times and somehow damaging the drive itself.
But anyway, this is the interesting aspect. Using TTP I ran a SMART test on the internal HD from one of the bootable partitions on one of the external ones, and to my astonishment, it actually PASSES the smart test. The only two parameters which fail are the following:
Raw Read Error Rate
Write Error Count
An image of the SMART test results is attached:
Now to give you an example of the kind of issues I'm having, in order to take that screenshot I used "Grab". When searching for Grab in spotlight it gave me results from the internal HD and from all the various backup drives I have attached. I opened the internal copy and one from a backup partition on another drive (neither of which currently booted from). The one from the backup bounced and opened. The one from internal bounced about 15 times, the spotlight bar hung with a spinning beacball, and I ended up force quitting because I got sick of waiting for it. That's the major symptom of the issue I'm having.
Now here's the reason I'm posting. As I say I know this drive is about to go so there's no need to lecture me about that, I can't replace it immediately but plan to in the very near future when I have a chance. My question is this. Those two specific failed SMART results, what exactly would cause them in terms of HD problems? Bearing in mind that it passes every single other SMART parameter, am I looking at unmapped bad blocks, a physical problem with the head, a loose wire, a bad motor, or what? I'm just wondering specifically what might be wrong with the drive, out of pure curiosity more so than anything else. The fact that most parameters pass suggests to me that it's one very specific malfunction as opposed to the drive generally imploding.
A surface scan from TTP crashed, but not before giving me about 30 "Used block is not a file" messages.
Finally, to temporarily use this drive, what's the procedure? If it's unmapped bad blocks, to I erase and install, or do I go into the whole "zero all data, then reformat" option? I have a backup image taken last night from the external drive which I can restore to the internal any time I want, and as I say with so many backups and so few deadlines ahead of me I don't mind messing around a bit and experimenting.
So if it IS a bad block issue, what does one do to force it to map them?Had a feeling. As I say it's already fully backed up and ATM I'm running the machine off a partition on the external. But as I say, I'm curious as to what's actually wrong with it - what type of damage / failure would cause those specific smart parameters to fail but not the rest? The motor, the head, the disk surface, what?
-
Reporting Services web service complex xml type report parameters
Hi,
I have the following xml type parameter in my request query that I use in reporting services.
<Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
<DefaultValue>
<d4p1:AccountDetailDto>
<d4p1:AccountNumber>12345</d4p1:AccountNumber>
<d4p1:AccountType>Sales</d4p1:AccountType>
</d4p1:AccountDetailDto>
</DefaultValue>
I want to know how I can assign values to the accountDetails parameter from report parameters, I've tried to call it from the dataset parameter properties but it doesn't return any values. I created Parameters!accountDetails.Value on the dataset parameters
properties and assigned it the following value: it only returns empty columns
="<AccountDetailDto><AccountNumber>"& Parameters!AccountNumber.Value &"</AccountNumber><AccountType>"& Parameters!AccountType.Value &"</AccountType></AccountDetailDto>"
You're help will be highly appreciated as I've been trying to solve this for a while nowHi Alisa,
Perhaps I should explain my problem clearly...
This is my query request that I send to the webservice:
<Query>
<Method Name="GetPerAccountAssetAllocation" Namespace="http://tempuri.org/">
<Parameters>
<Parameter Name="accountDetails" Type="XML" xmlns:d4p1="thevalue" xmlns:i="thevalue">
<DefaultValue>
<d4p1:AccountDetailDto>
<d4p1:AccountNumber>12345</d4p1:AccountNumber>
<d4p1:AccountType>JSE</d4p1:AccountType>
</d4p1:AccountDetailDto>
</DefaultValue>
</Parameter>
</Parameters>
</Method>
<SoapAction>http://tempuri.org/IPortfolioManagementService/GetPerAccountAssetAllocation</SoapAction>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
It works well when I run it just like this, that is without specifying any parameters in the report data dialogue window or on the dataset parameters properties, it returns the values and columns correctly.
So my problem is, I need to find out how(xml parameter syntax, steps e.t.c)
I can do to allow users to specify the accountDetails parameter, its quite tricky for me coz its an xml type parameter, Im not sure if I should just specify the AccountNumber and
ReportType parameters separately:
I've tried the following without any success:
1. Under the dataset properties: I tried not to specify a default value for the accountDetails parameter on the xml query, then I added a parameter called "accountDetails" under the dataset parameters properties, then under parameter
value I added the following xml value :
<d4p1:AccountDetailDto>
<d4p1:AccountNumber>Parameters!AccountNumber.Value</d4p1:AccountNumber>
<d4p1:AccountType>Parameters!AccountType.Value</d4p1:AccountType>
</d4p1:AccountDetailDto>
(I also added the AccountNumber and AccountType parameters under the report data dialogue window)
This returns empty columns, is there something I'm missing, or am I doing this incorrectly? -
Reporting Services: XML Data Source and Parameters
I’ve created an XML service (asmx) in ASP.Net that I want to use as a data source for an SQL Reporting Services report. The report and service work just fine if I use a Method from the service that does not have parameters. However, if I use a Method that
needs a parameter, the query/report fails. My investigation makes it seem that the parameter is not getting passed to the Method at all. (The parameter is a DateTime and it always ends up uninitialized and the WebMethod throws an exception.)
I’ve exhausted all my TechNet resources and Googled this excessively. It would seem that I am doing this correctly, based on all the examples I’ve seen, but I still can’t get it to work.
I've done a lot of different permutations, but this is where I’m at right now.
(Note: I've changed the Web Method's parameter to be a String instead of a DateTime. I did this as part of my trial-and-error process. Once I get this figured I'll return it to a DateTime.)
I'm trying to include everything here that will help you help me (see attached image). I had to obfuscate a few things (not sure if that is necessary).
See attached image:
Created Shared Data Source in SQL Report Services
Create Report Parameter (matching Web Method parameter)
Created a data set in Report Builder (with Query, and parameter - matching Web Method parameter)
Query in Data Source
<Query>
<Method Name="GetDueDateAging" Namespace="http://zzz.com/vvv">
<Parameters>
<Parameter Name="cutoffDate">
<DefaultValue></DefaultValue>
</Parameter>
</Parameters>
</Method>
<SoapAction>http://zzz.com/vvv/GetDueDateAging</SoapAction>
<ElementPath IgnoreNamespaces="true">*</ElementPath>
</Query>
This is where I needed the most help, and I don't totally understand it. But again, the parameter-less Method worked. I've tried adding different things in the <DefaultValue> tag (like @cuttoffDate and constant values), with no success.
WebMethod Code
[WebMethod]
public List<AgingInvoice> GetDueDateAging(string cutoffDate)
DateTime cd = DateTime.MinValue;
if (!DateTime.TryParse(cutoffDate, out cd))
cd = DateTime.Now;
Shared.DueDateAging aging = new Shared.DueDateAging();
return aging.GetDueDateAging(cd, Settings.Default.ConnectionString);
I've looked at every online resource that I could find, but I'm striking out right now. Any help or hints would be greatly appreciated.
Thanks.
DerrickHi Derrick,
In your case, please refer to the following method to troubleshooting this problem:
We can use Fiddler2 to monitor the HTTP post, and check whether the parameter is being sent. The Fiddler tool can helps us debug web applications by capturing network traffic between the Internet and test computers. If the parameter is being sent, please
debug the web service to ensure the method has values return.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
Bi Publisher Enterprise 11.11 Parameters.
I am building a report and i have couple of parameters. the user will enter the values for the parameter in a text field. now, i want to make that text field optional. how can i do that? i do not want to set a default value, i want it load blank but i want it to be optional.
thanks for your help.AlexAnd wrote:
2 Srini VEERAVALLI
where col1=:p1 and (col2 is not null or col2=:p2)may be
where col1=:p1 or col2=:p2will be more simple?
or may be i understood incorrectly your idea
2 YeisonSoto
>
I am building a report and i have couple of parameters. the user will enter the values for the parameter in a text field. now, i want to make that text field optional. how can i do that? i do not want to set a default value, i want it load blank but i want it to be optional.
>
as idea
if your reports have one parameter per report but for different column
then you can use this one parameters and create other for indicate report
say you have rep1 with par1 and rep2 with par2
so you create one parameter(p1) for par1/par2 and second parameter(p2) for rep1/rep2
and in data model use
where ((:p2 = 'rep1' and column1 = :p1 ) or (:p2='rep2' and column2 = :p1))so before execute you must know for which report use parameters condition
for ebs second parameter no need because you can check this condition by request_id
what I did was this:
WHERE REPLACE(REPLACE(TRIM("ABTAX"), '-', ''), '.', '') like *:identification*
OR (REGEXP_LIKE(TRIM(ABALPH),TRIM(UPPER(*:Name*)))
AND REGEXP_LIKE(TRIM(ABALPH),TRIM(UPPER(*:LastName*)))
OR( REGEXP_LIKE(TRIM(ABALPH),TRIM(LOWER(*:Name*)))
AND REGEXP_LIKE(TRIM(ABALPH),TRIM(LOWER(*:LastName*)))
Now I can filter the results of the records for identification or the name of a person
but when I filter by the name I have both data (Name and LastName)
that have not been solved, I wonder if I can display a message that says "There should be no empty fields" -
How to collect the BPC parameters into a transport
Hi All
We are in process of transporting out environment for the first time. How are we going to collect all the entries of the BPC parameters in a transport request.
I want to collect all the entries of the UJ0_PARAM_APP table to a transport request. is this we need to do or It has to be manually done when the system is installed in higher environments.
Please advise.
Thanks in advance
AKHi AK,
First of all, not all BPC parameters are transportable. Main reason is that they don't always have to have same value across the landscape. For example, you might want having LOG and STATS set to ON in Dev, but not in Prod. Another reason is that some of them will be generated during first write-back.
Most of the parameters are included in transport if you check Configuration check mark in BPC transport collection.
If you still have some parameters that didn't come over you can manually include them in the transport as Type "Table Entry".
Regards,
Gersh -
How to pass multiple parameters while calling a pl/sql procedure based serv
Hi,
I have a pl/sql procedure based service that needs to be invoked from the bpel console for testing purpose. This procedure accepts multiple input values which are of varchar2,boolean and datetime data types. How can I get the bpel console to throw a UI where I can enter these values --in other words where(which file and where) can I specify that these are the input parameters that need to be entered along with their types.
Thanks for yr help!Change the payload of the request 'Process WSDL' message type. Change the element of the payload for the RequestMessage to be 'InputParameters' from the XSD generated by the DB Adapter wizard.
Edit the payload (Element) - Choose 'Project Schema Files'. Select 'InputParameters' from the XSD.
You can also change the ResponseMessage by doing the same thing, except that you select 'OutputParameters' from the XSD. -
How to get multiple out parameters from a pl/sql stored procedure in ADF Jdeveloper 11g release2
I´m trying to call from AppModuleImpl a stored procedure from my oracle DB which receives one input parameter and returns 5 out parameters.
I´m using jdeveloper 11g release2 ADF and I have created a java bean "ProRecallPlatesBean " with the atributes and accesors and I serialize it. just like in this article http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvgen.htm#sm0297
This is my code so far:
public ProRecallPlatesBean getCallProRecallPlates(String numPlates) {
CallableStatement st = null;
try {
// 1. Define the PL/SQL block for the statement to invoke
String stmt = "begin CTS.Pk_PreIn.proRecallPlates(?,?,?,?,?,?); end;";
// 2. Create the CallableStatement for the PL/SQL block
st = getDBTransaction().createCallableStatement(stmt,0);
// 3. Register the positions and types of the OUT parameters
st.registerOutParameter(2,Types.VARCHAR);
st.registerOutParameter(3,Types.VARCHAR);
st.registerOutParameter(4,Types.VARCHAR);
st.registerOutParameter(5,Types.VARCHAR);
st.registerOutParameter(6,Types.VARCHAR);
// 4. Set the bind values of the IN parameters
st.setString(1,numPlates);
// 5. Execute the statement
st.executeUpdate();
// 6. Create a bean to hold the multiple return values
ProRecallPlatesBean result = new ProRecallPlatesBean();
// 7. Set values of properties using OUT params
result.setSpfVal(st.getString(2));
result.setTransportTypeVal(st.getString(3));
result.setTransportCompanyVal(st.getString(4));
result.setCompanyDescrVal(st.getString(5));
result.setDGAPrint(st.getString(6));
// 8. Return the result
return result;
} catch (SQLException e) {
throw new JboException(e);
} finally {
if (st != null) {
try {
// 9. Close the JDBC CallableStatement
st.close();
catch (SQLException e) {}
In Jdeveloper I went into AppModule.xml JAVA>Client Interface section and expose "getCallProRecallPlates" Then I can see "getCallProRecallPlates" in Data Controls, I drag and drop it to a JSF page, an input text component and a button are generated in order to put in there the procedure input parameter (numPlates).
I don't know if I'm on the right track.
When I click the button, the "result" variable is supposed to be filled with data from the stored procedure. I want each of those values to be displayed in Output text or input text adf components but I dont know how. Thank you very much in advance I´m a newbie and i'll appreciate your help!What version are you on?
Works fine for me on my 11g:
SQL> create or replace procedure testxml (clob_out out clob)
2 is
3 l_clob clob;
4 l_ctx dbms_xmlquery.ctxhandle;
5 begin
6 l_ctx := dbms_xmlquery.newcontext ('select * from dual');
7 l_clob := dbms_xmlquery.getxml (l_ctx);
8 clob_out := l_clob;
9 dbms_xmlquery.closecontext (l_ctx);
10 end testxml;
11 /
Procedure created.
SQL>
SQL> variable vout clob;
SQL>
SQL> exec testxml (:vout)
PL/SQL procedure successfully completed.
SQL>
SQL> print vout
VOUT
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<DUMMY>X</DUMMY>
</ROW>
</ROWSET>But definitely you can optimize your proc a bit: Try
create or replace procedure testxml (clob_out in out nocopy clob)
is
l_ctx dbms_xmlquery.ctxhandle;
begin
l_ctx := dbms_xmlquery.newcontext ('select * from dual');
clob_out := dbms_xmlquery.getxml (l_ctx);
dbms_xmlquery.closecontext (l_ctx);
end testxml;
/
Maybe you are looking for
-
When I try to answer a skype video call on my Ipad (2nd generation), as soon as I click on the phone or video icon the call is ended. This only happens with one of my contacts. I can video call them without any problem! But not in reverse. Any su
-
I purchased two songs and each one, half of it is silent and cuts off. I want my money back or I'd like to re-download for free
-
Want to get rid of annoying Media Center Deluxe II
during install, I foolishly asked it to run at startup. So, every time I boot up, the Media Center starts itself, and I have to shut it down. I cannot see anywhere that I can change it to only run when I want it to. Anyone know how to disable it fr
-
So, I "took the plunge", and decided to buy my first mac. I decided on a Mac Book Pro. So I go to the apple store, and pick out the 15" MBP with the glossy screen. I take it to check out and it all looks good. They apply my $200 student discount, but
-
New L505-S5988 64 Bit. Windows 7. Very low sound when I use the web cam mic. (The person at the other side does no hear me). Can anybody please help me? Thanks.