Using '=' to check for NULL column value
We are currently encountering an issue where 10.1.0.5 is happily accepting a check on a column for a null value with what I have always known to be an invalid syntax.
For instance:
select col1 from my table where col1=null
Although this is wrong and we are working on locating the queries formatted as such, what I am wondering is why is it working on the 10.1.0.5 version but we cannot get the same query to execute on 8i, 9i, 10.2.0...? Is there a flag that can be enabled to allow this compare?
I am familiar with the correct syntax to be using. What I am looking for is a possible explanation as to why the query below returns the correct results on 10.1.0.5 and returns nothing in all other versions. I would expect the same behavior across all instances. See the two lines in bold "AREA=NULL" and "SUBAREA=NULL"
SELECT DISTINCT
UNIQID,
MGRCOMMENT,
REQ.CREATED_BY CREATED,
C2.CNAME DEVELOPER,
C5.CNAME PRODMGR,
C3.CNAME ASSIGNED,
C4.CONTACTID CURRENTUSER,
ID,
STATUSNAME,
REQ.STATUS STATUSID,
PRIORITYNAME,
TITLE,
MAS1.MODULENAME,
MAS1.AREANAME,
MAS1.SUBAREANAME,
MIN1.MODULE,
MIN2.AREA,
MIN3.SUBAREA
FROM REQ,
PRIORITY,
STATUS,
(SELECT FIRST_VALUE(M1.MODULENAME)
OVER (PARTITION BY REQUNIQID ORDER BY MODULENAME ROWS UNBOUNDED PRECEDING) MODULENAME, FIRST_VALUE(A1.AREANAME)
OVER (PARTITION BY REQUNIQID ORDER BY AREA ROWS UNBOUNDED PRECEDING) AREANAME, FIRST_VALUE(SA1.SUBAREANAME)
OVER (PARTITION BY REQUNIQID ORDER BY SUBAREANAME ROWS UNBOUNDED PRECEDING) SUBAREANAME, REQUNIQID
FROM REQMOD, MOD M1, ARA A1, SBARA SA1
WHERE M1.MODULEID = REQMOD.MODULE
AND A1.AREAID = REQMOD.AREA
AND SA1.SUBAREAID = REQMOD.SUBAREA) MAS1,
(SELECT FIRST_VALUE(C2.CNAME) OVER (PARTITION BY REQUNIQID ORDER BY CNAME ROWS UNBOUNDED PRECEDING) CNAME, REQUNIQID
FROM REQ_ASSIGN, CONTACT C2
WHERE C2.CONTACTID = REQ_ASSIGN.CONTACTID
AND ASSIGNMENT_TYPE=2) C2,
(SELECT FIRST_VALUE(C5.CNAME) OVER (PARTITION BY REQUNIQID ORDER BY CNAME ROWS UNBOUNDED PRECEDING) CNAME, REQUNIQID
FROM REQ_ASSIGN, CONTACT C5
WHERE C5.CONTACTID = REQ_ASSIGN.CONTACTID
AND ASSIGNMENT_TYPE=1) C5,
(SELECT FIRST_VALUE(C3.CNAME)
OVER (PARTITION BY REQUNIQID ORDER BY CNAME ROWS UNBOUNDED PRECEDING) CNAME, REQUNIQID
FROM REQ_ASSIGN, CONTACT C3
WHERE C3.CONTACTID = REQ_ASSIGN.CONTACTID
AND ASSIGNMENT_TYPE<>2
AND ASSIGNMENT_TYPE<>1) C3,
(SELECT DISTINCT REQUNIQID, CONTACTID FROM REQ_ASSIGN WHERE CONTACTID=5) C4,
(SELECT DISTINCT REQUNIQID, MODULE FROM REQMOD WHERE MODULE=1) MIN1,
*(SELECT DISTINCT REQUNIQID, AREA FROM REQMOD WHERE AREA=NULL) MIN2,*
*(SELECT DISTINCT REQUNIQID, SUBAREA FROM REQMOD WHERE SUBAREA=NULL) MIN3,*
REQCOMMENTS
WHERE PRIORITY.PRIORITYID = REQ.PRIORITY
AND STATUS.STATUSID = REQ.STATUS
AND MAS1.REQUNIQID = REQ.UNIQID
AND C2.REQUNIQID = REQ.UNIQID
AND C5.REQUNIQID = REQ.UNIQID
AND C3.REQUNIQID = REQ.UNIQID
AND C4.REQUNIQID = REQ.UNIQID
AND MIN1.REQUNIQID = REQ.UNIQID
AND MIN2.REQUNIQID = REQ.UNIQID
AND MIN3.REQUNIQID = REQ.UNIQID
AND REQCOMMENTS.REQUNIQID = REQ.UNIQID
AND REQ.PROJECTID = 3;
Similar Messages
-
XMLGEN: Produce XML dump of a table WITH tags for null column values
I am new to generating XML so bear with me....
We have a customer who needs an XML extract of data, including tags for any column that is null.
I created a simple test case below using DBMS_XMLGEN.getXML. The first row (A1) has no null values and thus tags for columns A, BEE and CEE are produced. The second row (A2) has null in column BEE and thus tags for only columns A and CEE are produced.
Is there a way to force a tag for null column BEE in the second row?
create table foo (A varchar2(10), BEE number, CEE date);
insert into foo values ('A1',1,sysdate);
insert into foo values ('A2',null,sysdate);
SELECT DBMS_XMLGEN.getXML('SELECT * FROM foo') FROM dual;
<ROWSET>
<ROW>
<A>A1</A>
<BEE>1</BEE>
<CEE>27-SEP-12</CEE>
</ROW>
<ROW>
<A>A2</A>
<CEE>27-SEP-12</CEE>
</ROW>
</ROWSET>What's the database version? (SELECT * FROM v$version)
Could you use this instead :
SQL> select xmlserialize(document
2 xmlelement("ROWSET",
3 xmlagg(
4 xmlelement("ROW",
5 xmlelement("A", a)
6 , xmlelement("BEE", bee)
7 , xmlelement("CEE", cee)
8 )
9 )
10 )
11 -- for display purpose only :
12 as clob indent
13 )
14 from foo
15 ;
XMLSERIALIZE(DOCUMENTXMLELEMEN
<ROWSET>
<ROW>
<A>A1</A>
<BEE>1</BEE>
<CEE>2012-09-27</CEE>
</ROW>
<ROW>
<A>A2</A>
<BEE/>
<CEE>2012-09-27</CEE>
</ROW>
</ROWSET>
Or,
SQL> select xmlserialize(document
2 xmlquery(
3 '(#ora:view_on_null empty #)
4 {
5 <ROWSET>{fn:collection("oradb:/DEV/FOO")}</ROWSET>
6 }'
7 returning content
8 )
9 as clob indent
10 )
11 from dual;
XMLSERIALIZE(DOCUMENTXMLQUERY(
<ROWSET>
<ROW>
<A>A1</A>
<BEE>1</BEE>
<CEE>2012-09-27</CEE>
</ROW>
<ROW>
<A>A2</A>
<BEE/>
<CEE>2012-09-27</CEE>
</ROW>
</ROWSET>
(where "DEV" is my test schema)
If you want to stick with DBMS_XMLGEN, you're gonna have to use PL/SQL and setNullHandling procedure.
Edited by: odie_63 on 27 sept. 2012 17:14 -
How to avoid to check if a column value is NULL?
Hi, I'm a newbee in Oracle.
I have a procedure like this:
create or replace
PROCEDURE get_employee
v_first_name IN VARCHAR2 DEFAULT NULL ,
v_middle_name IN VARCHAR2 DEFAULT NULL ,
v_last_name IN VARCHAR2 DEFAULT NULL ,
To select rows with matching multiple column values, I can simply do this:
SELECT *
FROM employee
WHERE first_name = v_first_name
AND middle_name = v_middle_name
AND last_name = v_last_name
The problem is v_middle_name can be NULL. This means,
I need check if v_middle_name is NULL, and if it is, I need use "IS NULL" instead, like this:
SELECT *
FROM employee
WHERE first_name = v_first_name
AND middle_name IS NULL
AND last_name = v_last_name
It seems very cumbersome to do a check for each column that can be null.
Is there a way that I do not need to do a check for every column?
or is it better to avoid having NULL values in those columns (and replace them with, say a space) ?
Thanks in advance.
SimonNormally, you would do something like
SELECT *
FROM employee
WHERE first_name = NVL( v_first_name, first_name )
AND middle_name = NVL(v_middle_name, middle_name )
AND last_name = NVL(v_last_name, last_name )Of course, if you can ensure that NULL data is not allowed (without creating phony non-NULL data), that is a good thing. In most systems, for example, it is probably reasonable to require a non-NULL first and last name. But you almost certainly cannot require a middle name.
Justin -
Checking for null value in arraylist
Hi
i have an excel file which i i am reading into an arraylist row by row but not necesarrily that all columns in the row mite be filled. So how do i check for null values in the array list.
try
int cellCount = 0;
int emptyRow = 0;
HSSFWorkbook workbook = new HSSFWorkbook(new FileInputStream(file));
HSSFSheet sheet = workbook.getSheetAt(0);
Iterator rows = sheet.rowIterator();
myRow = new ArrayList();
int r = 1;
while (rows.hasNext())
System.out.println("Row # " + r);
HSSFRow row = (HSSFRow) rows.next();
Iterator cells = row.cellIterator();
cellCount = 0;
boolean isValid = false;
while (cells.hasNext())
HSSFCell cell = (HSSFCell) cells.next();
switch (cell.getCellType())
case HSSFCell.CELL_TYPE_NUMERIC:
double num = cell.getNumericCellValue();
DecimalFormat pattern = new DecimalFormat("###,###,###,###");
NumberFormat testNumberFormat = NumberFormat.getNumberInstance();
String mob = testNumberFormat.format(num);
Number n = null;
try
n = pattern.parse(mob);
catch ( ParseException e )
e.printStackTrace();
System.out.println(n);
myRow.add(n);
//myRow.add(String.valueOf(cell.getNumericCellValue()).trim());
//System.out.println("numeric: " +cell.getNumericCellValue());
break;
case HSSFCell.CELL_TYPE_STRING:
myRow.add(cell.getStringCellValue().trim());
System.out.println("string: " + cell.getStringCellValue().trim());
break;
case HSSFCell.CELL_TYPE_BLANK:
myRow.add(" ");
System.out.println("add empty:");
break;
} // end switch
cellCount++;
} // end while
r++;
}// end while
} myRow is the arrayList i am adding the cells of the excel file to. I have checked for blank spaces in my coding so please help with how to check for the black spaces that has been added to my arraylist.
I have tried checking by looping through the ArrayList and then checking for null values like this
if(myRow.get(i)!=null)
// do something
// i have tried this also
if(myRow.get(i)!="")
//do something
}Edited by: nb123 on Feb 3, 2008 11:23 PMFrom your post I see you are using a 3rd party package to access the Excel SpreadSheets, you will have to look in your API for you 3rd party package and see if there is a method that will identify a blank row, if there is and it does not work, then you have to take that problem up with them. I know this is a pain, but it is the price we pay for 3rd party object use.
In the mean time, you can make a workaround by checking every column in your row and seeing if it is null, or perhaps even better: check and see if the trimmed value of each cell has a lenth of 0. -
How does APEX check for null values in Text Fields on the forms?
Hello all,
How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
Declare
v_valid boolean;
Begin
IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := FALSE;
ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := FALSE;
END IF;
return v_valid;
END;
My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
ThanksSee SQL report for LIKE SEARCH I have just explained how Select list return value works..
Cheers,
Hari -
How to check for null values in bpel?? Please Help! very urgent!!!
Hello Guys,
I have a problem. I have an external webservice to which I have to post my request. My task is to create an Webservice and Service Assembly to which others would post request and get response. I have to create SA to deploy onto the bus.
The problem is that there are optional elements in the request and response xsd's. In the Response sometimes certain feilds may come or they may not. for Example:- my response could contain a tag like this <firstName></firstName>
I have to copy these feilds in my bpel process from one variable to another.(like in the mapper).
My Question is , Is there any way in BPEL process or BPEL mapper where I could Check for null values in the request or response???
Your inputs would be very helpful.
Thanks
RajeshThanks for replying man :)
Ok I will be more clear.
Here is a snippet of one of the xsd's that I am using.
<xs:element name="returnUrl" nillable="false" minOccurs="0">
<xs:annotation>
<xs:documentation>Partner specifies the return URL to which responses need to be sent to, in case of
Async message model.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:anyURI">
<xs:maxLength value="300"/>
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
This means that the return URL field can be there or it may not be there. But if it is there it cant be null because nillable=false. But the whole <returnURL> </returnURL> can be there or it may not be there because minOccurs=0.
My requirement is , if returnURL is there in the response with a value, then in my BPEL mapper I should map it else I should not map it.
Thats the issue.
and Yes kiran, the node be non-existant.
So can you please help me with this.
Thanks
Rajesh -
How do I check for null date entires using custom JScript on a SharePoint NewForm.aspx?
Hi,
I have the below JScript:
/*Function to convert the US Date format to UK date format */
function parseDate(input) {
var parts = input.split('/');
// new Date(year, month [, date [, hours[, minutes[, seconds[, ms]]]]])
return new Date(parts[2], parts[1]-1, parts[0]); // months are 0-based
/*Function to check if end date is before the start date */
function checkDates(){
var sd = parseDate($("input[title='From']").val());
var ed = parseDate($("input[title='Until']").val());
if(sd > ed) {
alert("Please check From and Until Date");
$("input[value$='Save']").attr('disabled', true); //hide save button
else
$("input[value$='Save']").attr('disabled', false); //show save button
The above works fine for checking sd > ed but I can't seem to check for null's, I have attempted the below which doesn't work:
/*Function to convert the US Date format to UK date format */
function parseDate(input) {
var parts = input.split('/');
// new Date(year, month [, date [, hours[, minutes[, seconds[, ms]]]]])
return new Date(parts[2], parts[1]-1, parts[0]); // months are 0-based
/*Function to check if end date is before the start date */
function checkDates(){
var sd = parseDate($("input[title='From']").val());
var ed = parseDate($("input[title='Until']").val());
if( (sd > ed) || (sd == null) || (ed == Null) ) {
alert("Please check From and Until Date");
$("input[value$='Save']").attr('disabled', true); //hide save button
else
$("input[value$='Save']").attr('disabled', false); //show save button
Any help appreciated.Hi aspnet-scotland,
Please post ASP.NET related questions in
ASP.NET forums where you could receive better responses.
Thanks for your understanding.
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. -
Check for null or empty in the functoid
I want to check for null and empty values on input source node. If there exists a null or empty in the input source node, I should not pass that to output destination node. Does the
following attachment work? I want to check for null or empty in the date and time and then concatenate them to send to output. If any of them is null or empty, the other should not fail. In the Not Equal Functoid I am checking for blank, but how to check for
null?A null check might not be you best option. If your requirement is you must have both the date and time component supplied in order to populate EventDate, then I would use a Script Functoid that takes data and time as parameters.
In the C# method, first check if either is an empty string, if so return an empty string.
If not, TryParse the data, if successful, return a valid data string for EventDate. If not, error or return empty string, whichever satsifies the requirement. -
Page Validation - Function Returning Boolean - Check for NULL
I have 3 Page Validations which all fire on "When Button Pressed" = "Submit".
<br><br>
Number 1 is of type "Item specified is NOT NULL" for "P199_BUSINESS_UNIT1".
<br>
Number 2 is of type "Item specified is NOT NULL" for "P199_BUSINESS_UNIT2".
<br>
Number 3 is of type "Function Returning Boolean" and has the following code:
<br><br>
IF :P199_BUSINESS_UNIT1 IS NULL AND
:P199_BUSINESS_UNIT2 IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
When P199_BUSINESS_UNIT1 is NULL and P199_BUSINESS_UNIT2 is NOT NULL, I get the Error from Validation 1. Perfect.
<br>
When P199_BUSINESS_UNIT1 is NOT NULL and P199_BUSINESS_UNIT2 is NULL, I get the Error from Validation 2. Perfect.
<br>
When P199_BUSINESS_UNIT1 is NOT NULL and P199_BUSINESS_UNIT2 is NOT NULL, I don't get an Error Message. Perfect.
<br><br>
When P199_BUSINESS_UNIT1 is NULL and P199_BUSINESS_UNIT2 is NULL, I get Error Message 1 & 2, <strong>but nothing from 3.</strong>
<br><br>
If I change the code to:
<br><br>
IF :P199_BUSINESS_UNIT1 = '01' AND
:P199_BUSINESS_UNIT2 = '01' THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
and change both values to '01', I get the appropriate Error Message.
<br><br>
What is going on? Is there some reason I can't check for NULL in a Function Returning Boolean?Scott,
<br><br>
Instead of adding the Validations, I changed my code from:
<br><br>
IF :P199_BUSINESS_UNIT1 IS NULL AND
:P199_BUSINESS_UNIT2 IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;
<br>to the following and got the desired results:
<br><br>
IF REPLACE(:P199_BUSINESS_UNIT1,<strong>'%null'</strong> || '%',NULL) IS NULL AND
REPLACE(:P199_BUSINESS_UNIT2,<strong>'%null'</strong> || '%',NULL) IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
Note that I changed the word REPLACE to upper case and the second occurrence of the word NULL to upper case to accentuate the fact that the '%null' is case sensitive, using "%NULL' does not work, it has to be "%null' in lower case.
<br><br>
<strong>Thanks for your help.</strong> -
ViewCriteriaRow attribute to check for null or not null
I Want to apply a view criteria to check for null or not null on a column , i see examples on how to set for value like
vcRow.setAttribute("Sal", "> 2500")but i need to check for Sal is null or not null ,
tried vcRow.setAttribute("Sal", null) and it is not working
and vcRow.setAttribute("Sal", "is null") gives me error .
can somebody help with correct syntax for this
Thanks for your timelooks like vcRow.setAttribute("Sal", "null") works
-
Check for null in IF statement
Hi,
I have a variable of type char(8).
I want to check if this field is empty. This is the logic I use right now:
condense lv_date no-gaps.
if lv_date eq ''.
*then some default value
endif.
Is this the correct approach or there is a way to directly check for null values in a variable.
Thanks,
CDHello,
You have to check IS INITIAL.
condense lv_date no-gaps.
if lv_date IS INITIAL.
*then some default value
endif.
BR,
Suhas -
Modify the Data Load wizard to remove the check for unique columns
Hi,
I'm trying to make a Data Loading Wizard into my application, which basically works nice except for one thing:
I want to remove the check for unique columns, and insert ALL data which the users wants to upload.
(Like the Data load utility under development).
The reason is, that the data I want to upload is an export from my bank statements (in XLS / CSV format)
And these exports don't have any primary key.
Using the Apex wizard created Data Upload pages, I will loose data in case I had two identical payments in a day.
Is there a way to do this, while keeping the pages created by the wizard to make Data Loading pages?
apex 4.2.1I would suggest to load the data into a view and process the records into the real table(s) with instead-of-triggers. When you add a "1=2" where clause to the view, there never is any data and everything will be loaded.
Otherwise you have to have a "real" PK value, like a timestamp or a statement_nr+line_nr. -
Oracle XML functions return tags for null columns.
I am currently writing a SOAP Message base on a SQL statement formatted as XML. However, I am having problems with Oracle XML functions not returning tags for null columns as seen in my example below. Is the a way to get Oracle XML functions to return empty tags for null column?
CREATE TABLE FOREXAMPLE_TABLE (COLUMN_1 VARCHAR2 (4000),
COLUMN_2 VARCHAR2 (4000),
COLUMN_3 VARCHAR2 (4000));
INSERT INTO FOREXAMPLE_TABLE (COLUMN_2)
VALUES ('This column is not null');
COMMIT;
SELECT XMLELEMENT ( "soap:Envelope",
XMLATTRIBUTES ( 'http://schemas.xmlsoap.org/soap/envelope/' AS "xmlns:soap"),
XMLELEMENT ( "soap:Body",
XMLATTRIBUTES ( 'http://Custom_Column/types/' AS "xmlns:ns1"),
XMLELEMENT ( "ns1:New_Instance",
XMLELEMENT ( "ns1:Input_XMLDoc",
XMLFOREST(fe.COLUMN_1 as "Column_1",
fe.COLUMN_2 as "Column_2",
fe.COLUMN_3 as "Column_3"))))) as xml
FROM FOREXAMPLE_TABLE fe
The results returned from the select statement.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://Custom_Column/types/"><ns1:New_Instance>
<ns1:Input_XMLDoc><Column_2>This column is not null</Column_2>
</ns1:Input_XMLDoc></ns1:New_Instance></soap:Body></soap:Envelope>
The desired results for the select statement.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://Custom_Column/types/"><ns1:New_Instance>
<ns1:Input_XMLDoc><Column_1></Column_1>
<Column_2>This column is not null</Column_2><Column_3></Column_3>
</ns1:Input_XMLDoc></ns1:New_Instance></soap:Body></soap:Envelope>
jeemanAn alternative may be be to use xmlconcat instead of xmlforest:
Time Start: 30.06.2007 18:52:41
PL/SQL procedure successfully completed.
michaels> select xmlelement
("soap:Envelope",
xmlattributes
('http://schemas.xmlsoap.org/soap/envelope/' as "xmlns:soap"),
xmlelement
("soap:Body",
xmlattributes ('http://Custom_Column/types/' as "xmlns:ns1"),
xmlelement ("ns1:New_Instance",
xmlelement ("ns1:Input_XMLDoc",
xmlconcat (xmlelement("Column_1", fe.column_1),
xmlelement("Column_2", fe.column_2),
xmlelement("Column_3", fe.column_3)
).extract('.').getstringval() as xml
from (select null column_1, 'This column is not null' column_2,
null column_3
from dual) fe
XML
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://Custom_Column/types/">
<ns1:New_Instance>
<ns1:Input_XMLDoc>
<Column_1/>
<Column_2>This column is not null</Column_2>
<Column_3/>
</ns1:Input_XMLDoc>
</ns1:New_Instance>
</soap:Body>
</soap:Envelope> -
Check for null and empty - Arraylist
Hello all,
Can anyone tell me the best procedure to check for null and empty for an arraylist in a jsp using JSTL. I'm trying something like this;
<c:if test="${!empty sampleList}">
</c:if>
Help is greatly appreciated.
Thanks,
Greeshma...A null check might not be you best option. If your requirement is you must have both the date and time component supplied in order to populate EventDate, then I would use a Script Functoid that takes data and time as parameters.
In the C# method, first check if either is an empty string, if so return an empty string.
If not, TryParse the data, if successful, return a valid data string for EventDate. If not, error or return empty string, whichever satsifies the requirement. -
How to use simple types for table column names ?
Hi,
can any one tell how to to use simple types for table column names?
It is required in internationalizing of webdynpro applications.
Regards,
RajeshHi,
1: define required column names in <SimpleType>
2:use the following code to get those values
3:bind 'text' property of Column headers to context attributes
4:take a context attribute 'Value' as type of <SimpleType>
5:set these values to context attributes
IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
Map m=simple.getEnumerationTexts();
Collection c=m.values();
Iterator it=c.iterator();
if(it.hasNext())
wdContext.currentContextElement.set<att1>(it.next().toString);
if(it.hasNext())
wdContext.currentContextElement.set<att2>(it.next().toString);
if(it.hasNext())
wdContext.currentContextElement.set<att3>(it.next().toString);
Regards
LakshmiNarayana
Maybe you are looking for
-
Problems with BI Reports in WebUI
Hello, I have linked some planning web templates in the CRM WebUI, but every time a user changes the report, the session isn't closed so the lock of the data is still active. Even if the user press log out, the portal sessions are still active. Is it
-
How to set more then three items in report with a form
Hello, I have an interactive report with a form. In the interactive report i want to set the more than three form items, how can i do this. can anyone help me ot with this. Thanks, Orton
-
On click at tree component it has to call SWF using XML
Hi, I have created a flash file with name xmltoflash_tree. Incules a Tree component named "tree01". On my first frame of actions i have included "#include "test.as"". This is about my flash file In my Test.as : import mx.controls.Tree; var xmlLoader:
-
I accidentally restored my iPhone and I lost contacts and pictures. How do I get these back?
-
Identify Java version from CLASS file
Hi, I have a .class file. I would like to identify the Java version from that. Is there a way to find out? Also, is there a way to find out the Java version from JAR file? Thanks.