Testing for blank
I have a function that returns a blank.Does that mean i can check using
if(condition==""){
}Is that equivalent to blank.
Is blank and null the same?
No. "blank" in this case means a String object with no contents. You should compare objects using equals()*:if(condition.equals("")) {
}* unless you want to check whether two references refer to the exact same object
Similar Messages
-
My query is how to check for a blank character in a string using the 'substr' function. For example, i use the following statement to read the first 15 characters of the string stored in the variable 'v_line':
imsi_no:=substr(v_line,1,15);
and imsi_no is the variable used to store the 15 characters. Please help in solving the doubt as it is urgent.also,
you can loop through the string - in case you want to know where blanks are positioned - and use instr
e.g. select instr('Hello World',' ')from dual returns 6
Frank -
Mainframe data loaded into Oracle tables - Test for low values using PL/SQL
Mainframe legacy data has been copied straight from the legacy tables into mirrored tables in Oracle. Some columns from the mainframe data had 'low values' in them. These columns were defined on the Oracle tables as varchar2 types. In looking at the data, some of these columns appear to have data that looks like little square boxes, not sure but maybe that is the way Oracle interprets the 'low values' in the original data into varchar. When I run a select to find all rows where this column is not null, it selects these columns. In the results of the select statement, the columns appear to be blank, however, in looking at the data in the column using SQL Developer, I can see the odd 'square boxes'. My guess is that the select statement is detecting that something exists in this column. Long story short, some how I am going to have to test this legacy data on the Oracle table using Pl/Sql to test for 'low values'. Does anyone have any suggestions on how I could do this????? Help! The mainframe data we are loading into these tables is loaded with columns with low values.
I am using Oracle 11i.
Thanks
Edited by: ncsthbell on Nov 2, 2009 8:38 AMncsthbell wrote:
Mainframe legacy data has been copied straight from the legacy tables into mirrored tables in Oracle. Not a wise thing to do. Mainframe operating systems typically use EBCDIC and Unix and Windows servers use ASCII. The endian is also different (big endian vs little endian).
Does anyone have any suggestions on how I could do this????? As suggested, use the SQL function called DUMP() to see the actual contents (in hex) of these columns. -
Emails sent post test are blank
I've set up a test for my project and tested yesterday. The post test email that is supposed to send results to an admin (me) is only blank. There are no results if I pass or fail. Is there a setting I'm missing or is it something else?
Hi!
I'm using the following code, and it's working well.
DESCRIBE TABLE lt_text LINES l_tab_lines. "lt_text contains the body of the email
* Document properties
CLEAR ls_packlist-transf_bin.
ls_packlist-head_start = 1.
ls_packlist-head_num = 0.
ls_packlist-body_start = 1.
ls_packlist-body_num = l_tab_lines.
ls_packlist-doc_type = 'HTM'.
APPEND ls_packlist TO lt_packlist.
If it's still not working, you might try out to check the e-mail with a different mailing software, or try to send it to a web-based e-mail address, like gmail, yahoo, hotmail, etc...
Maybe the settings of your Outlook is not correct.
Regards
Tamá -
XI testing for two SAP R/3 systems with same system id/logical system
Hi
We are currently in the process of upgrading our R/3 4.7 to ECC 6.0 and plan to maintain dual landscape for DEV & QA (4.7 & ECC 6.0) for a period for testing and maintaining existing applications for fixes etc. The second DEV & QA (upgraded to ECC 6.0) are copy of respective systems and these systems are created automatically under technical systems in SLD by auto update (RZ70).
The question is, can we use the same XI system for testing inbound/outbound interfaces for both the systems i.e 4.7 & ECC 6.0 at the same time. I am aware of the fact that XI Technical/Business sytems dependent on unique logical systems, so we cannot create new business system for the upgraded DEV-II ECC 6.0 system.
For your information, we have two slds (one for XID/XIQ and second one for XIP).
What are the options without disturbing & maintaining the current XI system set up?
1) Can we change current Business systems e.g DEV010 to use new technical system i.e DEV-II ECC 6.0 for testing for a period and switch it back to DEV-I 4.7 technical system?
2) or change logitical system name of DEV-II ECC 6.0 and create new business sytem in SLD without interfering the existing setup and modify/create interfaces to use this new business system?
3) Do we need to refresh cache from time to time in XI ?
4) Any other implications
We will be upgrading XI to PI 7.1 after ECC 6. 0 Upgrade.
Any views on this would be highly appreciated.
Regards
ChanduHi
Technical System was created in the SLD automatically after RZ70 configuration in the new DEV-II system. We then modified Business System to use the new Technical system and carried out following steps:
1) Original Idoc metadata was deleted from XID
2) The port definition was deleted
3) A new port definition was created for new system
4) The metadata for each idoc type used was re-created in IDX2 , using METADATA -> CREATE
5) This brought in all known versions of the idoc segments, including the 7.1 version.
I have already checked the guides suggested for our upgrade and we are thinking of going ahead with fresh installation and migrating the interfaces.
Regards
Chandu -
How to test for différent Select into a single PL/SQL block ?
Hi,
I am relatively new to PL/SQL and I am trying to do multiple selects int a single PL/SQL block. I am confronted to the fact that if a single select returns no data, I have to go to the WHEN DATA_NOT_FOUND exception.
Or, I would like to test for different selects.
In an authentification script, I am searching in a table for a USER ID (USERID) and an application ID, to check if a user is registered under this USERID for this APPLICATION.
There are different possibilities : 4 possibilities :
- USERID Existing or not Existing and
- Aplication ID found or not found for this particular USERID.
I would like to test for thes 4 possibilities to get the status of this partiular user regardin this application.
The problem is that if one select returns no row, I go to the exception data not found.
In the example below you see that if no row returned, go to the exception
DECLARE
P_USERID VARCHAR2(400) DEFAULT NULL;
P_APPLICATION_ID NUMBER DEFAULT NULL;
P_REGISTERED VARCHAR2(400) DEFAULT NULL;
BEGIN
SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
WHERE USERID = :P39_USERID AND APPLICATION_ID = :APP_ID ;
:P39_TYPE_UTILISATEUR := 'USER_REGISTERED';
EXCEPTION
WHEN NO_DATA_FOUND THEN
:P39_TYPE_UTILISATEUR := 'USER_NOT_FOUND';
END;I would like to do first this statement :
SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
WHERE USERID = :P39_USERID Then to do this one if the user is found :
SELECT DISTINCT(USERID) INTO P_USERID FROM ACL_EMPLOYEES
WHERE USERID = :P39_USERID AND APPLICATION_ID = :APP_ID ;etc...
I basically don't want to go to the not found exception before having tested the 4 possibilities.
Do you have a suggestion ?
Thank you for your kind help !
ChristianSurely there are only 3 conditions to check?
1. The user exists and has that app
2. The user exists and doesn't have that app
3. The user doesn't exist
You could do this in one sql statement like:
with mimic_data_table as (select 1 userid, 1 appid from dual union all
select 1 userid, 2 appid from dual union all
select 2 userid, 1 appid from dual),
-- end of mimicking your table
params_table as (select :p_userid userid, :p_appid appid from dual)
select pt.userid,
pt.appid,
decode(min(case when dt.userid = pt.userid and dt.appid = pt.appid then 1
when dt.userid = pt.userid then 2
else 3
end), 1, 'User and app exist',
2, 'User exists but not for this app',
3, 'User doesn''t exist') user_app_check
from mimic_data_table dt,
params_table pt
where pt.userid = dt.userid (+)
group by pt.userid, pt.appid;
:p_userid = 1
:p_appid = 2
USERID APPID USER_APP_CHECK
1 2 User and app exist
:p_userid = 1
:p_appid = 3
USERID APPID USER_APP_CHECK
1 3 User exists but not for this app
:p_userid = 3
:p_appid = 2
USERID APPID USER_APP_CHECK
3 2 User doesn't exist -
How to test for existence of AcroXFA test objects?
Hi -
I'm writing scripts to test an XFA form with dynamic subforms. For example, at the end of Part 4, the user hits a Validate button, and if their data is correct, then the Validate button disappears and a Part 5 subform appears.
So my script looks something like this:
Function GetButtonPart4Validate()
Set GetButtonPart4Validate = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1")
.AcroXFAForm("sfPart4").AcroXFAButton("sfValidate")
End Function
Function GetPart5()
Set GetPart5 = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5")
End Function
GetButtonPart4Validate().Click
PDFDoc( "TestForm" ).WaitProperty "ready", true, 60000 ' Wait for event processing complete
If DataTable("boolValidates", dtLocalSheet) = "TRUE" Then
If( GetPart5().Exist ) Then
' A: Checkpoint Succeeds: Validation was successful
Else
' B: Checkpoint fails: Validation failed
Endif
Else
If( GetPart5().Exist ) Then
' C: Checkpoint Fails: Validation was unexpected
Else
' D: Checkpoint Succeeds: Validation failed as expected
Endif
Endif
Unfortunately it appears that XfaSubForm.Exist always returns TRUE. In other QTP testing domains (eg "Exist Property (WinObject)" in QTP Help), the documented behaviour of the Exist property is to be true if the desired test object can be found in the application-under-test. Typically this means that when the script tries to access an XFA widget which doesn't exist (even something like GetPart5().getROProperty("visible") ), the script stops and thinks for a minute or so, and eventually produces a test error that the object doesn't exist then muddles onward. It is the "stops and thinks for a minute or so" which frustrates me, since these are delays which I am trying to avoid.
Another possible angle I looked into was counting the subforms under Part 5's parent.
PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").RefreshObject
PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").AcroXFAForm("sfPart5").Refresh Object
' check to see if there is a 'sfPart5'
Dim MyChildren, i
Set MyChildren = PDFDoc("TestForm").AcroXFAForm("form").AcroXFAForm("form1").ChildObjects
For i=0 to MyChildren.Count - 1
print i & " name=" & MyChildren(i).GetROProperty("name")
Next
This also seems to fail: Part5 doesn't appear among its parent's children (at least before QTP actually tries to use it).
The PDF Test Toolkit User Guide doesn't specifically mention that Exist or RefreshObject or ChildObjects are implemented, so I can't say AcroQTP isn't working as designed, but if you're looking for suggestions for improvement, I'll vote for fulfilling these parts to the QTP. Please confirm my conclusions that these are not properly implemented, or whether I'm missing something.
In the meantime, do you have any recommendation on how to proceed? My present workaround is to look for a "validation error" windows dialog that indicates Part 5 won't exist, but this won't work in future test scripts.
Cheers,
BrentHi,
816387 wrote:
... QUERY:- Find all customers who have at most one account at the Perryridge branch.
SOLUTION *1* :-
select customer_name
from depositor,account
where account.account_number=depositor.account_number and
branch_name='Perryridge'
group by customer_name
having count(account.account_number) <=1
ok running correctly
That finds customers who have exactly one account at Perryridge.
The assignment is to find customers who have at most one account at Perryridge. You need to include customers with 0 accounts at Perryridge, as well. You could use an outer join, or MINUS, or a NOT IN subquery, or a NOT EXISTS sub-query (as mentioned above) to do that.
Can there be customers who have no accounts at all, at any branch? If so, you'll need to use the customer table in this problem, as well as depositor and account.
>
SOLUTION *2* :-
select D1.customer_name
from depositor D1
where unique
(select customer_name
from depositor D2,account A1
where D1.customer_name=D2.customer_name
D2.account_number=A1.account_number and
branch_name='Perryridge'
gives error:-
where unique
..........*^*
ERROR at line 3:
ORA-00936: missing expression
Logic of both solution are correct . But Solution 2 gives error in oracle. I want unique construct to work.Sorry, it doesn't in Oracle. I don't know of anything like that in Oracle.
Does "WHERE UNIQUE (SELECT ...)" work in some other database system? Which?
How to do it. Or How can i test for the absence of duplicate tuples ??????
Your Solution 1 is the best way to find customers with exatly 1 account (rather than 0 or 1 accounts) at Perryridge. Is there any reason why you wouldn't want to use it, if you ever needed to find customers with exactly one account there? -
Testing for IS NOT NULL with left join tables
Dear Experts,
The query is showing the NULL rows in the query below....
Any ideas, advice please? tx, sandra
This is the sql inspector:
SELECT O100321.FULL_NAME_LFMI, O100321.ID, O100404.ID, O100321.ID_SOURCE
, O100404.NAME, O100321.PERSON_UID, O100404.PERSON_UID, O100404.VISA_TYPE
FROM ODSMGR.PERSON O100321
, ODSMGR.VISA O100404
WHERE ( ( O100321.PERSON_UID = O100404.PERSON_UID(+) ) ) AND ( O100404.VISA_TYPE(+) IS NOT NULL )Hi Everyone,
I am understanding alot of what Michael and Rod wrote.... I am just puzzled over the following:
the query below is left joining the STUDENT table to
HOLD table.
The HOLD table - contains rows for students who have holds on their record.
a student can have more than one hold (health, HIPAA, basic life saving course)
BUT, for this query: I'm only interested that a hold exists, so I'm choosing MAX on hold desc.
Selecting a MAX, helps me, bec. it reduces my join to a 1 to 1 relationship, instead of
1 to many relationship.
Before I posted this thread at all, the LEFT JOIN below testing for IS NOT NULL worked w/o
me having to code IS NOT NULL twice....
Is that because, what's happening "behind the scenes" is that a temporary table containing all max rows is being
created, for which Discoverer has no predefined join instructions, so it's letting me do a LEFT JOIN and have
the IS NOT NULL condition.
I would so appreciate clarification. I have a meeting on Tues, for which I have to explain LEFT JOINS to the user
and how they should create a query. I need to come up with rules.
If I feel "clear", I asked my boss to buy Camtasia videocast software to create a training clip for user to follow.
Also, if any Banner user would like me to email the DIS query to run on their machine, I would be glad to do so.
thx sooo much, Sandra
SELECT O100384.ACADEMIC_PERIOD, O100255.ID, O100384.ID, O100255.NAME, O100384.NAME, O100255.PERSON_UID, O100384.PERSON_UID, MAX(O100255.HOLD_DESC)
FROM ODSMGR.HOLD O100255, ODSMGR.STUDENT O100384
WHERE ( ( O100384.PERSON_UID = O100255.PERSON_UID(+) ) ) AND ( O100384.ACADEMIC_PERIOD = '200820' )
GROUP BY O100384.ACADEMIC_PERIOD, O100255.ID, O100384.ID, O100255.NAME, O100384.NAME, O100255.PERSON_UID, O100384.PERSON_UID
HAVING ( ( MAX(O100255.HOLD_DESC(+)) ) IS NOT NULL )
ORDER BY O100384.NAME ASC -
Date fields are showing as / / in DSO for blank dates or no dates
We are loading flat file data to DSO and the date fields are showing as / / in DSO for blank dates or no dates in the flat file source system. We don't want to see this / / and instead of this, we would want to this field in DSO to be in blank. Please help how to achieve this. Is there any way to do this transformation. If yes, then can you please provide the sample coding.
Advance Thanks,
ChristyI have added the code and data loading is successful. while DSO activation, it is failing. The error message is,
Value '#' of characteristic 0DATE is not a number with 000008 spaces.
It seems that we need to change the code. Can you provide me the corrected code please. Thanks.
Christy -
I have recently bought a Logitech R800 presenter which works very well with Keynote on a MacBook Pro. The start/stop presentation key does not work but that can be easily fixed by assigning F5 to "Start presentation" for Keynote in the keyboard system preferences. The remaining issue is that the blank screen button sends a period (".") which works as a prompt for a blank screen in PowerPoint, but in Keynote it causes the slideshow to end. Keynote uses the letter "B" for blank screen.
How can I assign a period (instead of B) in Keynote for blank screen? Some sort of work around would be very useful as I often use blank screen in my presentations and much prefer Keynote to PowerPoint.
Perhaps it will be an option in next version of Keynote?
ThanksAs far as I know you can not change these keystrokes without changing the Program files. I am sure it is possible there, but I have no idea where to even start to tell you where to find it.
Your best bet it to go to the Keynote Menu>Provide Keynote Feedback and let Apple know you would like the option to change them. -
How do I test for the presence of an active open document in Photoshop?
I’m new to Adobe scripting, and one of my first scripts deals with the activeDocument in Photoshop.
If there is no activeDocument, I want to display a message and terminate the script. My efforts
so far have been met with frustration. While developing the script in ExtendScript Toolkit,
I used the test expression "activeDocument in app", and everything worked as expected. And when I installed the script
in the Photoshop scripts folder and ran it from Photoshop with a document open, it also worked.
But when I ran the script from Photoshop with no document open, it failed.
Moreover, after that,the script failed when I tried to run it in ESTK.
I did some testing and found that my test expression, "activeDocument in app"
was returning true, even though no document was open.
Still in ESTK, I replaced the “app” with ”Application” in the test expression. That worked when
I stepped through the script. But when I tried to run it without stopping, it stopped at the
test expression, and displayed the error message, “Application is undefined.”
So how do I test for the presence of an open document in Photoshop ??After posting this, I discovered the Photoshop Scripting Forum, and I found my answer there.—
I should have used “app.Documents.length” as my test expression. -
Best practice standard User Acess Test for WIN2012 AD
What is the Best practice standard User Acess Test for WIN2012 AD
Hello,
as before, add a computer to the domain and log on with a domain user account to the computer.
You should be able from the client machine to open the sharedfolders on the DCseither with:
\\DCName\sysvol
\\DCName\netlogonor \\NetBiosDomainName\sysvol
\\NetBiosDomainName\netlogon
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://blogs.msmvps.com/MWeber
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
Twitter: -
I was an apple beta tester for iOS7 and now my iPhone 5 shut down, it's unresponsive it gets recognized by iTunes when plugged into the computer but that's it. Since I was a beta tester is there any way to fix my iPhone??
Are you still running iOS 7 bet?. If so go to the private developer section for help. We cannot help you here with beta software.
-
Linkage Error in Mapping and Operation mapping testing for Synchronous in NWDS
Dear Experts,
Hope you all are doing fine..
I am working in a synchronous scenario Proxy via SAP PI 7.4 to JAVA Application supporting JSON.I wrote JAVA program to convert JSON to XML and while performing test for the JAVA mapping in response structure at Operation Mapping,I am receiving following error..
LinkageError at JavaMapping.load(): Could not load class: json2xml/bin/pack/EsrJson2Xml
java.lang.NoClassDefFoundError: json2xml/bin/pack/EsrJson2Xml (wrong name: pack/EsrJson2Xml) at
java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:735)
at java.lang.ClassLoader.defineClass(ClassLoader.java:716) at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at com.sap.aii.ib.server.mapping.execution.MappingLoader.findClass(MappingLoader.java:195)
at java.lang.ClassLoader.loadClass(ClassLoader.java:372) at java.lang.ClassLoader.loadClass(ClassLoader.java:313)
I followed some of discussions for the Linkagae error http://scn.sap.com/thread/1418477 but could not help..
Following are details of my NWDS and PI server:
SAP NetWeaver Developer Studio
SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.3 SP10 PAT0000
Compiled the project with JAVA SE-1.6 as well as 1.5
SAP PO 7.4 Java Only , Release: NW731CORE_10_REL
SP: 05 JDK: jdk16 Latest Change: 353688
I have taken care to export all the Jar files used in NWDS to be exported and then imported as Archived files in PI server.
But could not see the 5 jar files in ESR. I hope there is some issue with name as can see in the log.Can the issue be solved?
How to test the Operation mapping for Synchronous Message in NWDS?
Regards
RebeccaDear Hareesh and Experts,
I resolved the issue by doing the below steps.
1. Downloaded the JDK5 and updated the Java console i.e. JRE 15.
2. I had created this project using the JAVA Compiler with JAVA SE1.6 initially. Changed this to 1.5 in the Properties of the Project.
3. Uploaded the project again in ESR Imported Archive.
The issue is solved.
Thanks a lot for all your inputs. -
Yesterday this was automatically installed. Today I can't access a document in Pages. A prompt says I need a Pages update. But the next screen tests for updates and informs me everything is up to date. What's up?
It's highly unlikely that the Pages update problem has anything to do with the ARD client update, since the client is not involved in any way with Software Update. I'd suggest asking for assistance with the update problem in the forum appropriate for your version of Mac OS X.
Regards.
Maybe you are looking for
-
OS X installaton no HARD DRIVE
My computer crashed and when I start it up it gives me OS 9 system folder blinking followed by a question mark. I booted off a OS X panther CD and IT WON'T SEE MY HARD DRIVE IN THE INSTALLER! It's an old iMac G3 so Tiger runs slow on it but I booted
-
RFSG 5673 streaming with script
Hi All, I'm trying to build ARB baseband data on my PC, a rack mount controller in this case, then transmit as quickly as possible with the 5673 (VSG) for real time transmission in a TDD. The best solution I've found is the following, but it doesn't
-
Master Data attributes failed in Process chain
Hi All, Master data load has failed at vendor attributes DELTA load, and error message is "'Update mode R is not supported by the extraction API". Actually in the last PC delta run it was failed at same vendor attributes delta run, due to special cha
-
I have just installed a second CRS 5.0(2) server which I intend to add to the cluster, but I'm having a problem in that the Node Manager Service hangs on startup. The error I get is: Event ID:7022 The CRS Node Manager Service Hung on starting. I can
-
How to avoid permission prompt?
dear friends, I created an addressbook application. i am using file to store details. on reading and writing data the application prompt Permission alert. i want to avoid this Permission prompt. If anyone know how to handle this plz guide me. guna.