Null value in Session vars and request.getParameter
We're migrating our application from iPlanet.
Under iPlanet, when we looped through a resultset and set the values to
session variables - it worked fine, even when a resultset value was null,
but in WebLogic, I get the following error:
java.lang.IllegalArgumentException: key/value is null
Is there anyway to "turn this off" so it behaves like iPlanet?
My second question is that we have many JSP's that check to see if a
parameter is null in javascript:
Here's the code:
function onLoad() {
document.form.elements[0].focus();
// Check to see if the user is coming from a shortcut
var imageName = "<%=request.getParameter("imageName")%>";
if (imageName == "null") {
selectTop("<%=select_image%>");
} else {
selectTop(imageName);
<% if (tableIndex == 2) { %>
loadShortcutIcon(13,100);
<% } %>
in iPlanet, when the parameter "imageName" is not in the URL, the javascript
variable gets set to "null" - but in WebLogic, it is set to a blank string -
"". Is there anyway to make this return null like iPlanet?
Thanks,
Matt
Hi,
the URL parameter is added just for the request to the page. When you press the command button then you issue a new request that does not have a URL parameter added. To work around this, you can use a PhaseListener that stores the URL request parameter in the session for later use
Frank
Similar Messages
-
Need help Take out the null values from the ResultSet and Create a XML file
hi,
I wrote something which connects to Database and gets the ResultSet. From that ResultSet I am creating
a XML file. IN my program these are the main two classes Frame1 and ResultSetToXML. ResultSetToXML which
takes ResultSet & Boolean value in its constructor. I am passing the ResultSet and Boolean value
from Frame1 class. I am passing the boolean value to get the null values from the ResultSet and then add those
null values to XML File. When i run the program it works alright and adds the null and not null values to
the file. But when i pass the boolean value to take out the null values it would not take it out and adds
the null and not null values.
Please look at the code i am posing. I am showing step by step where its not adding the null values.
Any help is always appreciated.
Thanks in advance.
============================================================================
Frame1 Class
============
public class Frame1 extends JFrame{
private JPanel contentPane;
private XQuery xQuery1 = new XQuery();
private XYLayout xYLayout1 = new XYLayout();
public Document doc;
private JButton jButton2 = new JButton();
private Connection con;
private Statement stmt;
private ResultSetToXML rstx;
//Construct the frame
public Frame1() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
//Component initialization
private void jbInit() throws Exception {
//setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResource("[Your Icon]")));
contentPane = (JPanel) this.getContentPane();
xQuery1.setSql("");
xQuery1.setUrl("jdbc:odbc:SCANODBC");
xQuery1.setUserName("SYSDBA");
xQuery1.setPassword("masterkey");
xQuery1.setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
contentPane.setLayout(xYLayout1);
this.setSize(new Dimension(400, 300));
this.setTitle("Frame Title");
xQuery1.setSql("Select * from Pinfo where pid=2 or pid=4");
jButton2.setText("Get XML from DB");
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch(java.lang.ClassNotFoundException ex) {
System.err.print("ClassNotFoundException: ");
System.err.println(ex.getMessage());
try {
con = DriverManager.getConnection("jdbc:odbc:SCANODBC","SYSDBA", "masterkey");
stmt = con.createStatement();
catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton2_actionPerformed(e);
contentPane.add(jButton2, new XYConstraints(126, 113, -1, -1));
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
void jButton2_actionPerformed(ActionEvent e) {
try{
OutputStream out;
XMLOutputter outputter;
Element root;
org.jdom.Document doc;
root = new Element("PINFO");
String query = "SELECT * FROM PINFO WHERE PID=2 OR PID=4";
ResultSet rs = stmt.executeQuery(query);
/*===========This is where i am passing the ResultSet and boolean=======
===========value to either add the null or not null values in the file======*/
rstx = new ResultSetToXML(rs,true);
} //end of try
catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
======================================================================================
ResultSetToXML class
====================
public class ResultSetToXML {
private OutputStream out;
private Element root;
private XMLOutputter outputter;
private Document doc;
// Constructor
public ResultSetToXML(ResultSet rs, boolean checkifnull){
try{
String tagname="";
String tagvalue="";
root = new Element("pinfo");
while (rs.next()){
Element users = new Element("Record");
for(int i=1;i<=rs.getMetaData().getColumnCount(); ++i){
tagname= rs.getMetaData().getColumnName(i);
tagvalue=rs.getString(i);
System.out.println(tagname);
System.out.println(tagvalue);
/*============if the boolean value is false it adds the null and not
null value to the file =====================*/
/*============else it checks if the value is null or the length is
less than 0 and does the else clause in the if(checkifnull)===*/
if(checkifnull){
if((tagvalue == null) || tagvalue.length() < 0 ){
users.addContent((new Element(tagname).setText(tagvalue)));
else{
users.addContent((new Element(tagname).setText(tagvalue)));
else{
users.addContent((new Element(tagname).setText(tagvalue)));
root.addContent(users);
out=new FileOutputStream("c:/XMLFile.xml");
doc = new Document(root);
outputter = new XMLOutputter();
outputter.output(doc,out);
catch(IOException ioe){
System.out.println(ioe);
catch(SQLException sqle){Can someone please help me with this problem
Thanks. -
NULL Value in Journal Entry and Wrong Tax Summary
Hi people,
I need your expert help for a big problem that appens to some customers.
They run SAP BO 8.8 SP:00 PL:12
This is the scenario:
You insert a new documet, A/R Invoice or A/P Invoice is the same, problem appear in all of them.
After you insert the document, using SQL Server Management try this Select statment:
Select * from JDT1 where JDT1.debit is null OR JDT1.credit is null
A list of record where listed. And, this is the problem, NULL values are all in the VAT Lines in debit or credit colums.
If you try to make a SUM(debit-credit) you discovery that, 1000,00-null=null
Consequently, TAX Sumary report, that probably use arithmetic operation like me in SELECT statment, count a wrong number when null values in DEBIT or CREDIT column in JDT1 for VAT declaration.
How could I solve? And how i can make invoices store 0 rather than NULL in the VAT Line?
Thanks in advance for your tips and solutionsThaks Neetu for your answer.
I thinks there is a misurandertanding.
My problem is not SQL.
My problem is the SAP TAX Report.
I used SQL only for check data and discover why SAP raise a wrong TAX Summary report.
So, my question is: Why invoices write null values in journal entry, and how I can solve the problem that TAX summary report use null value in operations so the results are wrong.
Thanks,
Jonny Cortonicchi -
Null values in Weblogic 7 HTTP Request Parameters
It appears weblogic 7 handles nulls passed from the request object
differently than the previous versions. In my jsp's, if a parameter
was not passed, I used to get a java null value:
String s = request.getParameter("something_not_passed");
if(s == null) {
//do stuff
Now, weblogic seems to return the string literal "null" so I would
have to use:
if(s.equals("null")) {
//do stuff
Is this a bug or am I missing something?
Thanks,
Paul
HI, Thanks for the reply. I am using getString() to fetch values.
DO u think its due to driver incompatibility?? Because, BEA claims WL7.0 supports
Oracle 8.1.7 onwards!
Thanks,
Yogesh
Joseph Weinstein <[email protected]> wrote:
>
>
Yogesh wrote:
Hi, I have ported my web application from weblogic 5.1 to weblogic 7.Set up is weblogic
7 with database Oracle 8.1.6 and i am using OCI driver for DB connectionpool. I
am facing some problems like, the values that were retrieved as blanksin weblogic
5.1 are being retrieved as null(string literal value) in 7. The same thinghappens
when parameters were passed through HTTP request object. Any idea aboutthis?
Thanks,
YogeshHi. This sounds like a driver bug. Let's isolate it to a simple standalone
program
that uses our driver to select null data. How are you asking for the object?
GetString(),
GetObject()?
Joe -
Session scope and request scope
Hi,
I've a manage bean in session scope and within this bean I've a reference of another
object (class person) . My question is, do i have to register this class in my faces-config-xml and if yes which scope should it have? session or request?
Or it isn't necessary to register it?
thanks
class MymanageBean{
private Person myPerson;
}helllo,
can someone tell me what the line in the preceding coed means?
<meta http-equiv="refresh" content="<%= session.getMaxInactiveInterval() %>;url=login.jsp">
-- session_expiry_test.jsp --
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<meta http-equiv="refresh" content="<%= session.getMaxInactiveInterval() %>;url=dummy_login.jsp">
</head>
<body>
<h1>Welcome, dude with a session!</h1>
Your session will expire in <%= session.getMaxInactiveInterval() %> seconds
at which time your browser will be redirected to the login page and any
and all unsaved changes will be lost.
<br>
Thank you for your cooperation!
</body>
</html> -
Session Vars and Local Firewalls
I've been getting more complaints lately that session vars
are getting lost and normally I walk them through making sure
cookies are enabled, but now that doesn't seem to be always the
case anymore and have finally isolated it to when they install a
firewall. If they disable it works, but when on it doesn't. Is
there anything I can do besides telling them not to use their
firewall?
Server specs:
ColdFusion MX 6.1 on a non-clustered environment.
User:
Using IE and using "e-trust EZ Armor"I assume then, you are storing variables in cookies, rather
than registry or database then, correct?
Are these local firewalls? (on the actual PC) or H/W on a
network?
If they are local, the firewall itself may be eliminating the
cookie storage, not the browser ... if it is, it likely has a way
to change the settings.
There's not much you can do if you are forced to use cookies
for sessions (which is very common) other than altering your coding
or having the user change their settings.
If you have access to the CF admin, you may try setting up a
DB service for variable storage, which is an option. -
Replacing null values in optional prompts and passing to stored proc
Hi,
I want to create a stored procedure with OPTIONAL prompts. When user does not pass a value for that parameter, I want to set the value for that parameter by selecting from a column in table then I WANT to use that paramvalue in sql within cursor of stored proc. How do I do that?
In short, I want to do the following Here is the psuedocode:
Create or replace procedure test (param IN varchar2 DEFAULT NULL)
As
var_param varchar(20);
select param into var_param from dual;
If param is null then select custid from table1 else var_param
OPen ref_cursor for
Select xyz from table2
where fyy = var_para
Can someone let me know the syntax on how to do this in stored proc?
Regards,
hena
Edited by: 904385 on Dec 25, 2011 7:04 AMHi,
Merry Christmas, and welcome to the forum!
Here's one way to do what you requested:
CREATE OR REPLACE PROCEDURE test
( param IN VARCHAR2 DEFAULT NULL
AS
ref_cursor SYS_REFCURSOR;
var_param VARCHAR2 (20) := param;
BEGIN
IF var_param IS NULL
THEN
SELECT custid
INTO var_param
FROM table1
-- WHERE ... -- Unless table1 has only 1 row
END IF;
OPEN ref_cursor
FOR SELECT xyz
FROM table2
WHERE fyy = var_param;
END test;Whatever you're trying to do, this is probably niot the simplest or most efficient way to do it. -
Known Issues with Session Vars and non-IE browsers?
Are there any known issues with non-Internet Explorer
browsers storing or reading session variables. Or loops and
ListGetAt functions? I'm using CF 5.
The code works fine in IE, but not in FireFox or Netscape.
Thanks,
JoshThis testing will not really address any cross domain issues, due to the content being hosted by ScormCloud.
What I found interesting, is that in ScormCloud, using the links below, my results were opposite those that I obtained through my LMS.
In LMS, Captivate 5 worked, Captivate 6 did not in IE8, both worked in FF
In ScormCloud, Captivate 5 did not work in IE8, but worked in FF, and Captivate 6 did work in FF and IE8.
Here are the links:
captivate 5 http://cloud.scorm.com/sc/InvitationConfirmEmail?publicInvitationId=3c04f298-d0db-4d10-ab6 3-80b9aaf2890b
captivate 6 http://cloud.scorm.com/sc/InvitationConfirmEmail?publicInvitationId=e2b05753-2f03-421a-87d 9-62b92ad199af
Thanks for your attention, every bit of information that I can get will help.
Thanks,
SL -
Any diffrent access for the null value between oracle 9i and 11g?
I'v got a tmp result set by a SQL that with a group by rollup (code) clause, and the last row is the totle number and column 'code' is null.
when i left out join (use (+)) the result set with the code table , in 9i,i can not get the last totle number row,but in 11g,can get the last totle number row.
why? any one can help me?Can you post an example of what you mean?
Please read {message:id=9360002} with the necessary details so we can understand your issue more clearly. -
Request.getParameter is NULL from window.open form submit
Hi all,
We have one portlet application where a jsp page has a link which opens as a child window using the window.open function in javascript.
It has a form and some textboxes with a save submit button.When the save button is clicked the portlet processAction is called but when i try to set the renderrequest all the request.getParameters are null .I have tried both the ActionRequest and HttpServletRequest and both have nul values.
As a result me Save is failing since the request.getparametrs are null.I added the "save" as part of form action URL and its getting passsed but the other, i am unable to fetch.
My Form action is : <form name="saveEntries" id="saveEntries" action="<portlet:actionURL secure="true"/>&action=save&_pageLabel=ABC" method="post">
My process action code is :
Enumeration<String> parameters = request.getParameterNames();
while(parameters.hasMoreElements()) {
String parameter = parameters.nextElement();
String[] values = request.getParameterValues(parameter);
if(values != null && values.length > 1){
response.setRenderParameter(parameter, values);
} else {
response.setRenderParameter(parameter, request.getParameter(parameter));
if(request.getParameter(parameter)!=null && "save".equalsIgnoreCase(request.getParameter(parameter))){
HttpServletRequest httpRequest = (HttpServletRequest) request.getAttribute("javax.servlet.request");
Enumeration parameterNames = httpRequest.getParameterNames();
Enumeration<String> httpparameters = parameterNames;
while(httpparameters.hasMoreElements()) {
String httpparameter = httpparameters.nextElement();
String[] httpvalues = httpRequest.getParameterValues(httpparameter);
if(httpvalues != null && httpvalues.length > 1){
response.setRenderParameter(httpparameter, httpvalues);
} else {
logger.debug("----------------->:ApproveTime else processAction = :Getting HTTP :parameter:"+parameter);
logger.debug("----------------->:ApproveTime else processAction = :Getting HTTP :request.getParameter(parameter):"+request.getParameter(parameter));
response.setRenderParameter(httpparameter, httpRequest.getParameter(httpparameter));
Any help is highly appreciated.Hello,
One potential reason why it isn't working for you is that the Java Portlet specifications (JSR168 and JSR286) don't allow URLs to be manipulated once they are created with a a portlet:xxxURL tag. The reason for this is that the portlet container needs to be able to rewrite the URLs to properly go back through the portal framework (or over WSRP if running the portlet remotely) and to encode all the parameters needed. The portal framework could even change it from a URL to a Javascript action, where simply appending extra "¶mName=someValue" onto the end of the generated URL won't work. So this:
<form action="<portlet:actionURL secure="true"/>&action=save&_pageLabel=ABC" method="post">isn't legal by the portlet specification-- if you want to add parameters to the actionURL, you can by doing this:
<form action="<portlet:actionURL secure="true"><portlet:param name="action" value="save"/><portlet:param name="_pageLabel" value="ABC"/></portlet:actionURL>" method="post">which will add the parameters to the URL in a way that will always work with the portal framework.
One other thing to note- it looks like you're just trying to copy all of the action parameters in the request into render parameters in the response; this can be done much easier like this:
response.setRenderParameters(request.getParameterMap());Kevin -
Not able to get the full value from request.getParameter()
hi all,
Iam giving a text input value as" Analysis and tracking" in one jsp form.
while fetching and assigning the value to another variable using request.getparameter , iam getting only the text "Analysis" , the space after it were ignored andnt displaying it.
Help me in solving this.
thanx
BalajiI think you are code is something like this
<input name="xyz" type="text" value=<%=variable%>>
HTML ignores spaces. Therefore you are only getting Analysis, the first word, when your browser encounters the first space it ignores whatever is present after that.
One way of overcoming this is putting double quotes around the text value
<input name="xyz" type="text" value=<% out.println("\"" + variable + "\""); %>
Thanks. -
Null values passed into the servlet
Hi all,
I keep getting null values for all the params that I pass into the servlet i.e. sqltype, producttype, process, instance etc....I have attempted to print some of them out on the screen but I keep getting the 'NullPointerException' error message...can anyone tell me what it is that I have down wrong in the below code?
If I run the servlet with method calls that have hardcoded arguments in them it works but not when I pass in the params from the URL...I am absolutley puzzled!
Help!
package blotter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.db.util.WriteToLogFile;
import blotter.cache.*;
Servlet to extract an object that has already been placed
in the cache by GetBondPrices servlet from the cache.
public class ExtractSecurityObject extends HttpServlet
String sqlType = "";
String productType = "";
String instance = "";
String process = "";
String asOfDate = "";
String currencyCode = "";
String curveId = "";
String results = "";
private String debug;
private PrintWriter out;
private WriteToLogFile logFile;
// called when servlet first initialised
public void init(ServletConfig config) throws ServletException
super.init(config);
// method called for each get request
public void doGet( HttpServletRequest request, HttpServletResponse response )
throws ServletException, IOException
String toWrite = " ";
// Get the object identifier from the parameters passed in
sqlType = request.getParameter("sqltype");
productType = request.getParameter("producttype").toUpperCase();
instance = request.getParameter("instance");
process = request.getParameter("process");
asOfDate = request.getParameter("asofdate");
curveId = request.getParameter("curveid");
currencyCode = request.getParameter("ccy").toUpperCase();
out.println(currencyCode);
if ( request.getParameter("debug") !=null)
debug = request.getParameter("debug");
else
debug ="";
// set the mime type to html
response.setContentType( "text/html" );
out = response.getWriter();
out.println("<HTML>");
try
// write some parameters to a log file
toWrite = toWrite + "<li>" + getServletInfo() + " at " + new Date() + " " + sqlType + " " +
productType + " " + instance + " " + process + " " + asOfDate + " " + curveId + " " +
currencyCode;
CachedObject o1 = (CachedObject)CacheManager.getCache("EB_" + currencyCode + productType + asOfDate);
if(o1 == null){
CacheSecurityObject cso = new CacheSecurityObject();
if((request.getParameter("sqltype") == null) && (request.getParameter("instance") != null)){
results = (String)cso.putSecurityinCache(null, request.getParameter("producttype"), request.getParameter("instance"), request.getParameter("process"), request.getParameter("asOfDate"), request.getParameter("curveId"), request.getParameter("currencyCode"));
//results = (String)cso.putSecurityinCache(null, "yc", "frafu", "official", "20011105", "baceod", "sek");
out.println(results);
} else {
//results = (String)cso.putSecurityinCache("bondtypes", "bond", null, "official", "20011105", "baceod", "eur");
results = (String)cso.putSecurityinCache(request.getParameter("sqltype"), request.getParameter("producttype"), null, request.getParameter("process"), request.getParameter("asOfDate"), request.getParameter("curveId"), request.getParameter("currencyCode"));
out.println(results);
else{
out.println(((String)o1.object).toString());
// general catch for all exceptions
catch(Exception exception)
out.println( "Exception: The item that you requested was not found in the cache" + "<BR>" );
toWrite = toWrite + "Exception : " + exception.getMessage() + "\n" ;
finally
// write to logfile
logFile = new WriteToLogFile();
logFile.setSourceDirName("blotter");
logFile.setQuery(request.getQueryString());
logFile.setServletPath(request.getServletPath());
if (toWrite!=null)
logFile.writeLog(getServletInfo(),toWrite);
out.println("</HTML>");
out.close();
// need the class name for log file
public String getServletInfo()
return this.getClass().getName();
}That section of the code references a cache to extract an item that has been requested by the user. If the item is not in the cache i.e. if(o1 == null) then it will call a class that generates that object and places that object into the cache. The second time the user makes the same call then they will be handed a cached copy of that object which is aimed to make the whole servlet call faster.
That section of the code works fine coz I have tested that separately. It is the reading in of the arguments that is causing the problem. -
Request.getParameter() when uploading files
Hi, I need to upload files and do other works .. such that, in my html ..
<form name="composer" method="post" ENCTYPE="multipart/form-data">
<input type=hidden name="a" value="a">
<input type=File name=inputfile>
<inpu type=button name=Upload onClick='upload file'>
<inpu type=button name=otherStuff onClick='do other stuff'>
</form>
In the jsp for 'do other stuff', I have the following statement to get the value of a
String a = request.getParameter("a");
However, it returns 'null', if I erase the 'ENCTYPE' part from the html file, it works. How can I get it right?If your ENCTYPE is multi-part/form-data, then there is another technichque to read the form parameters.
request.getParameter() won't work.
first u need to read the requenct explicitely and divide the contents into parameters, files etc. and then read the parameter values.
you can get a lot of stuff regarding this on web, like 'uploading files using jsp'.
have fun!! -
How to clear alert when a null value is returned for a metric column?
Hey all,
Recently, I've encountered a problem about clearing alert when a null value is returned for a metric column. From Oracle official doc, it seems that NO_CLEAR_ON_NULL could be used for this propose. However, it doesn't.
Here is the line from doc, you can see when NO_CLEAR_ON_NULL is set as FALSE, the null value will clear alert, and the default value for NO_CLEAR_ON_NULL is FALSE.
NO_CLEAR_ON_NULL: This attribute is used to control severity clearing when a null value is returned for a metric column. It defaults to FALSE with the behavior that a null value ends up clearing previous alert severities. With a TRUE value for this attribute, null values will be skipped in severity evaluations without clearing the severity.
TRUE | FALSE (default)
STATELESS_ALERTS: This attribute if set to TRUE indicates to EM that alerts on this
column will not have corresponding clears. This allows the UI to decide whether to
allow users to manually clear alerts on this column.
TRUE | FALSE (default)Here is my code for the metric,
-- meta definition
<Metric NAME="Flushing_Table_Overtime" TYPE="TABLE" HELP="NO_HELP">
<Display>
<Label NLSID="mmd_ip">Flushing Table Overtime</Label>
</Display>
<TableDescriptor>
<ColumnDescriptor NAME="State" TYPE="STRING" IS_KEY="FALSE">
<Display>
<Label NLSID="mmd_rc_State">State</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="Time_Seconds" TYPE="NUMBER" IS_KEY="FALSE">
<Display>
<Label NLSID="mmd_fto_Time_Seconds">Flush Table consume Seconds</Label>
</Display>
</ColumnDescriptor>
</TableDescriptor>
<ExecutionDescriptor>
<GetTable NAME="MysqlProcessAggregate"/>
<GetView NAME="v_flushing_tables" FROM_TABLE="MysqlProcessAggregate">
<Column NAME="State" />
<Column NAME="Time_Seconds" />
<Filter COLUMN_NAME="State" OPERATOR="EQ">Flushing tables</Filter>
</GetView>
</ExecutionDescriptor>
</Metric>
-- coll definition
<CollectionItem NAME="Flushing_Table_Overtime">
<Schedule>
<IntervalSchedule INTERVAL="10" TIME_UNIT="Min" />
</Schedule>
<MetricColl NAME="Flushing_Table_Overtime">
<Condition COLUMN_NAME="Time_Seconds"
CRITICAL="30" OPERATOR="GT"
MESSAGE="There is a Flushing Table command has exceeded %critical_threshold% seconds."
MESSAGE_NLSID="msg_Flushing_Table_Overtime" />
</MetricColl>
</CollectionItem>If this feature can not be achieved by coding XML, then is there a way to clear alert with Oracle Package? I have confirm neither sysman.em_severity.delete_current_severity nor sysman.em_severity.clear_alerts could do it.
Would anyone give me a hint?
Thanks in advance!
Best wishes,
Satine> I am executing in this manner
var RESULT BOOLEAN;
BUT I am unable to create variable with boolean data type.
WARNING. Do not confuse SQL*Plus with PL/SQL.
There is no variable command in PL/SQL. PL/SQL does support the boolean data type.
There is a variable command in SQL*Plus. It allows one to define bind variables. It is limited in the data types it supports. It does not support boolean as a bind variable type.
SQL*Plus is a CLI (Command Line Interface) client tool. It has a very limited vocabularly, allowing you to (primarily):
a) configure its local environment (e.g. size of the terminal ito number of characters per lines)
b) configure its bevahiour (e.g. spooling data to a file)
c) defining substitution and bind variables
And that's it. It is not PL/SQL. It is not SQL. It takes the PL/SQL and SQL you enter, and submit that to the Oracle server. (it does some basic parsing of the data to substitute variables and bind variables where applicable)
Do not confuse this CLI client tool with the server side PL/SQL or SQL languages. -
Webservice returns null values (Flex)
Hi all,
I created a webservice in abap,
(a RFC and a Function Web Service).
It exports a table type and contains data from a Ztable.
When i request it from Flex, it returns rows, but they contain NULL values, why ?
I can request and display bapi webservices that comes with in SapNetweaver trial 7.1 but i cant display my own webservice.
Result like this;
result generated.webservices.ZCUSTOMERS_TT (@2205981)
[inherited]
[0] generated.webservices.ZCUSTOMERS (@2362c91)
CLIENT null
ID null
NAME null
[1] generated.webservices.ZCUSTOMERS (@23a4129)
[2] generated.webservices.ZCUSTOMERS (@23a42e1)
[3] generated.webservices.ZCUSTOMERS (@23a41c9)
it is true that there are 4 rows in table, but all client, id and name is null
why ?thanks for answer but my problem didint solved.
My webservice can return normal values like integer or decimal and i can read it from flex.
but when i try to view tables, i always get null values BUT item count is true :=) i have 4 item in z table and 4 rows returns in array from webservice but NULL values :=).
I can't return structure as well.
result mx.utils.ObjectProxy (@211af29)
DEGER 1
GS_CUSTOMER generated.webservices.ZCUSTOMERS (@22ce719)
CLIENT null
ID null
NAME null
GT_CUSTOMER mx.collections.ArrayCollection (@210cd01)
[inherited]
[0] generated.webservices.ZCUSTOMERS (@22cef61)
CLIENT null
ID null
NAME null
[1] generated.webservices.ZCUSTOMERS (@22ced31)
[2] generated.webservices.ZCUSTOMERS (@22cedd1)
[3] generated.webservices.ZCUSTOMERS (@22cea11)
source Array (@22687e9)
object Object (@22ce8a9)
type null
uid "723117ED-66EC-C93B-9E66-C0FD4F01246C"
ZCUSTOMER_TT generated.webservices.ZCUSTOMERS_TT (@22eb941)
What do you use, when declaring variables ?
Like or type or ref to ? Can it be a problem ?
here is my function export inteface.
http://img241.imageshack.us/img241/9258/screenhunter01jun082052.gif
Edited by: bilen cekic on Jun 8, 2009 8:26 PM
Maybe you are looking for
-
Issue on Changing the Payroll Area in Mid of the Month from Biweekly to Mon
Dear Experts, I have an issue on payroll area which is changing from biweekly to monthly in Mid of the Month. One employee was retired on 29th of March, so his payroll area was changed from biweekly to monthly on 29th. For retire we are running the p
-
i have an ipod nano that when i plug it into my computer it does not register, how can i get it to where i can sync in to itunes?
-
Polish letters not displayed correctly in quality notification long text
Hello, in quality notification: when trying to write text in Polish language, some non-english letters are displayed incorectly. I did not find possibility to change the text language as in e.g. sales order texts. Using PL as login language solves th
-
Recording Audio from Video Tape
Hi! I want to record audio from a video tape and put the audio into my imovie. I have done this funtion before, but I can't seem to remember how! I am able to play the movie (the video tape) in a VCR which then goes through my "bridge" (DV Converter)
-
Singletons - How to use it better?
The web application has Actions <--> Services <--> Implementations. The user comes to the UI, changes some settings (pagination size, show/hide properties), and these settings are saved in an XML file. The XML file is read/written by a 'UIConfigurati