Problem with the filtering of data
Hello!
I have a problem with filtering the data in my table and don't know how to solve it properly.
I created a tabular presentation, my table, a few text fields that are used as input for the various columns of the filter and a filter button that submits the page.
The problem appeared when I try to filter a column that has null values in the table and is editable... it's that I have found.
When I press the button I get no line, although there should be some.
It's the submitted query:
Select
"MSR_PRD_ID,"
"SRC_STM_ID,"
"ID."
"ISIN"
...
of ' #OWNER # '. " IZV_SLOG_DET ".
WHERE
Lower (MSR_PRD_ID) = low (nvl (: P7_X_MSR_PRD_ID, MSR_PRD_ID)) and
Lower (SRC_STM_ID) = low (nvl (: P7_X_SRC_STM_ID, SRC_STM_ID)) and
lower (ISIN) = low (nvl (: P7_X_ISIN, ISIN)) and
...
The nvl function is used so that if the user leaves the field blank it filters by fields that have entry only.
Does anyone know how I could get around this?
Kind regards
Ivan
LOWER (NVL (ISIN, 'Y')) = LOW (NVL (: P7_X_ISIN, BASS (NVL (ISIN, 'Y'))))
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Apress.com/9781430235125
https://Apex.Oracle.com/pls/Apex/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
-------------------------------------------------------------------
Tags: Database
Similar Questions
-
Problems with the transmission of data between the screws
Hi all.
I have a question where my program slows considerably during the race.
The program is a producer-consumer, where I have the main consumer loops and loops producer for USE comms, measure the output power, input for measuring the power, thermal control, etc..
Regarding the issue, the measures of output loop takes readings and transmits the data to a separate VI which remains running (measure of output processor). This VI summarizes and on average the data and also displays data for the operator to see details if necessary. The operator shows and hides the front panel of this VI with a button on the main program. This VI also returns the summary data to the main VI, where it is read by my loop of consumer.
The main measures output VI loop takes about 200mS to run when the program is first started. Less than a minute, it is 400 MS, and it's all downhill from there.
I've isolated the problem to the way I pass data back (I think). I couldn't find a way to pass the reference of the queue between two screws not connected by wires. I open a reference to the VI processor and use Ctrl Val.Set and Get to pass the data back. If I take the intersection of the Subvi data, there is no slowdown.
My questions are:
(1) why the data passing by invoking a node of the control on the target would cause the downturn?
(2) how would I get/pass information of queue between the two screws are not connected?
(3) Alternately, could I start the VI processor in my main program, run and pass data in and out of it? I want to keep it running, because it is also part of the user interface.
I don't know that I have not explained this very clearly. I took some screenshots of my code, but don't see how to download here.
Thanks in advance,
Jim
-
Problem with the acquisition of data on XP Embedded
Hello
I'm using LabView 8.5, 8.7 DAQmx. My application is collection of data of NI USB-6009 14bits. I tried to create applications for tablet PC with installed Windows Xp Embedded. I created the installer on tablet with installed Windows 2000. I solved all the problems that occurs during installation. First version of the program have assistant DAQ in a main VI who collect and process the data. It worked properly on Xp Embedded. Second version was split into two of the Subvi. One is data collection and secondary processing. Each VI have own while loop. Both Subvi is placed in the large loop and they start at the same time. I am writing all the data to global variables. On PC with the windows application created 2000 worked properly. Error occurs when I moved it to Xp embedded. VI, which is the collection of data, the error see the 200361 code and text:
DAQmx reading (analog 1-d Wfm NChan NSamp) .vi:2
The task name: _unnamedTask<0>I know its something with the sampling and the clock, but I do not see where is the problem. In the main loop and two Subvi I 'wait until the next ms Multiple"block with a value of 200. DAQ Assistant were set as follows:
Price: 1000
Number of samples: 1000
Timeout (s): 10
Can you tell which can cause this error?
If you would like more information please write here.
Problem solved. There was connection between PC and USB-6009. Program works when I connect the USB-6009 housing directly to the PC. Previous connection was through usb hub.
Thanks anyway.
0> -
problem with the type of date dd/mm/yyyy
Hi all!
I want to do something simple.
to get a type of dd/mm/yyyy string and convert it ti date jj/mm/aaaa type.
I wrote simple code
String pattern = "dd/MM/yyyy";
SimpleDateFormat format = new SimpleDateFormat (pattern);
try {}
Date = format.parse("12/03/2006");
System.out.println (date);
} catch (ParseException exception) e {}
e.printStackTrace ();
}
but the problem that I get Sun Mar 12 00:00:00 GMT + 02:00 2006
and I want to get this format dd/mm/yyyy.
because I need to insert it in my db. Thank you allFirst thing: almost always if a SQL statement uses variable data, use a PreparedStatement. With the help of a simple statement can, at first, most obvious glance, but it will cause endless problems.
The constant strings in SQL are "single quotes" i.e. apostrophes. They must at least cannot escape string constants. One of the reasons for always using class PreparedStatement is that you concatenate in a string value may contain an apostrophe. In this case it will be, at best, give your SQL syntax error. Worse it can make your system vulnerable to hackers.
Use code publishing code tags. Put the word 'code' braces before and after. This makes your code readable.
The field attribute by DEFAULT when you create a table must be a real date, not a model. I have never know this is useful for a date, except if it set to pick up the current date.
-
Problem with the locale and date serialization in java
Hello
I have a serious problem with Flex dates and need a solution as soon as possible. I have a Flex 2 front end that uses remote java objects to talk to the database. I have a Flex 2 DateFields form. The dates of these are stored in the datebase. However I need the dates to be stored exactly as users them selects regardless of the locale.
What is happening at the moment is we are developing in Ireland and in selecting a date, filling an actionscript VO which is in turn transformed into a java VO (on a server in the United States) and when the date is stored in the database is one day before the date that we have selected. It seems that the flash player uses the locale with a time of midnight (GMT) users. When place the conversion to the EAST, it stores the date (GMT - 5), which causes the being Eve.
I changed my flex code to set the date at 12: 00 time even if he converts and subtracts 5 hours it will always be the same date. But this does not work, it seems to work sometimes and not others and is very inconsistent. I can't understand why it works sometimes.
Its makes me mental - someone has experienced this problem or did someone knows a solution PLEASE?
Thank youI'm not very familiar with your specific question, but I wonder if a combination of store dates as the first milliseconds since midnight January 1, 1970, universal time, stored as a string and then when presenting the data are aware, locale would solve the problem.
-
problem with the clock and date
I need to change the time and date when I started windows. so, what's the problem?
It could be the button for the CMOS battery.
A low CMOS battery can sometimes various issues, including slow, locking unexplained performance issues as well as others.
It is quite rare, but the battery is relatively easy to replace, check the manual of your computer/motherboard for replacement details.
Generally, the battery is a watch battery "CR2032", about the size of a nickel.
`~`
The current time and the date now in Baja California, Mexico
07:36Friday, may 3, 2013
DST - 0700 UTCUTC/GMT is 14:36 Friday, may 3, 2013Current weather conditions in San FelipeSunny29 ° C / 85 ° F -
Problem with the query and date
I'm trying to show only the specific results in my query based on the following:
If the 'agreedate' is greater than today's date, less than 60 days, show it. Otherwise I don't want results.
I always get the results of the last year and I don't know why.
Here is my code:
<!-the value date today less than 60 days. This works and shows the correct date->
< cfset invitelimit = #now () # >
< cfset invitelimit = #DateFormat (DateAdd (would be ', - 60, invitelimit), 'dd-mm-yyyy') #.<! - query items from the db and try to catch only to those with a more agreedate then the invitelimit date - >
< name cfquery = "qinvite" datasource = "#Application.ds #" >SELECT DISTINCT * from team a
INNER JOIN followed b ON a.id = b.team_id
INNER JOIN termsagreement c ON a.login = c.loginWHERE c.agreedate > #invitelimit # AND b.comp_id = 0
Group By a.teamname
< / cfquery >
First of all. Confirm that the "argeedate" column is a datetime column. Not another type of data that would be much more difficult to work with.
Secondly, you should provide an appropriate database datetime value. The easiest way would be with the
tag. I.E.
WHERE
c.agreedate >
AND b.comp_id =
-
Problem with the display of data in responses
Hello
I need to create reports with the Client name, name of the debtor. A customer has several debtors. While I was querying the database directly, I was able to view the list of debtors to the customers. But in the responses he showed me complete data. He has been restricted to 4 rows.
Reg any idea that!
Thank you
JeromeCheck your data in the tables and the join condition.
-
Problem with the creation of date range with PL/SQL WHERE clause
Hello, everyone:
I'm unable to develop and the SQL statement to filter records today and seven days back. My condition is as follows:
I think I'm to mess with the (to_char (ALM_OG_ACTIVITY_DATE, ' mm/dd/yyyy ' ")) statement.from wsualumni.wsu_online_giving_table --where ALM_OG_ACTIVITY_DATE >= ALM_OG_ACTIVITY_DATE - 7 where ALM_OG_ACTIVITY_DATE >= SYSDATE - 7 and ALM_OG_CAMPAIGN_CODE = 'MED' OR ALM_OG_CAMPAIGN_CODE = 'MED1';
The actual code is below to:
Resultsset serveroutput ON SIZE 1000000 set heading off set feedback off set trimspool off set echo off set pagesize 0 DECLARE v_data_line_hdr varchar2(1000); v_data_file varchar2(80); v_sch_code varchar2(10); v_instance_name varchar2(10); ws_path payroll.pybutfl.pybutfl_utl_file_path%TYPE; v_data_line VARCHAR2 (4000) := NULL; fhandle_o UTL_FILE.file_type; v_line_count NUMBER := 0; v_selected_count NUMBER := 0; v_error_count NUMBER := 0; v_written_count NUMBER := 0; v_error_text VARCHAR2 (50) := ' Unable to write the line. '; v_errm VARCHAR2 (255); v_sqlerrm VARCHAR2 (255); CURSOR C1 IS select RTRIM ( ALM_OG_ID ||'|'|| NULL ||'|'|| (to_char(ALM_OG_AMOUNT, '999,999.99')) ||'|'|| 'Cash' ||'|'|| 'Credit Card' ||'|'|| (to_char(ALM_OG_ACTIVITY_DATE, 'mm/dd/yyyy')) ||'|'|| ALM_OG_ACCI_CODE ||'|'|| 'On-Line Giving' ||'|'|| 'On-Line giving' ||'|'|| ALM_OG_HONOR_MEM_NAME ||'|'|| NULL ||'|'|| 'Do not post' ||'|'|| 'StandardThankYou' ||'|'|| 'Not Acknowledged' ||'|'|| 'Do not receipt' ||'|'|| NULL ||'|'|| 'Banner Gift Number' ||'|'|| ALM_OG_BANNER_GIFT_NO ||'.'|| ALM_OG_ACCI_CODE ||'|'|| (to_char(ALM_OG_ACTIVITY_DATE, 'mm/dd/yyyy')) ||'|'|| NULL ||'|'|| 'Web ID' ||'|'|| ALM_OG_WEBID ||'|'|| NULL ||'|'|| 'Source' ||'|'|| ALM_OG_CAMPAIGN_CODE ||'|'|| 'On-Line Giving' ) data_line from wsualumni.wsu_online_giving_table --where ALM_OG_ACTIVITY_DATE >= ALM_OG_ACTIVITY_DATE - 7 where ALM_OG_ACTIVITY_DATE >= SYSDATE - 7 and ALM_OG_CAMPAIGN_CODE = 'MED' OR ALM_OG_CAMPAIGN_CODE = 'MED1'; CURSOR C2 IS select RTRIM( 'ConsID' ||'|'|| 'GFImpID' ||'|'|| 'GFTAmt' ||'|'|| 'GFType' ||'|'|| 'GFPayMeth' ||'|'|| 'GFDate' ||'|'|| 'FundID' ||'|'|| 'CAMPID' ||'|'|| 'GFAppeal' ||'|'|| 'GfRef' ||'|'|| 'GfPostDate' ||'|'|| 'GfPostStatus' ||'|'|| 'GfltrCode' ||'|'|| 'GfAck' ||'|'|| 'GfRcpt' ||'|'|| 'GfAttrlmpID00' ||'|'|| 'GfAttrCat00' ||'|'|| 'GfAttrdesc00' ||'|'|| 'GfAttrDate00' ||'|'|| 'GfAttrlmpD01' ||'|'|| 'GfAttrCat01' ||'|'|| 'GfAttrdesc01' ||'|'|| 'GfAttrlmpID02' ||'|'|| 'GfAttrCat02' ||'|'|| 'GfAttrdesc02' ||'|'|| 'GfSubType' ) line_header from DUAL; /**********************************************************************/ /* Main Program Processing */ /**********************************************************************/ BEGIN DBMS_OUTPUT.put_line ('Program Started in wsualumni.wsu_online_giving_online'); IF UTL_FILE.is_open (fhandle_o) THEN UTL_FILE.fclose (fhandle_o); END IF; /* Name The File Here */ v_data_file := ('MED_SCH_' || TO_CHAR(sysdate, 'dd-MON-yyyy') || '_OG_DATA.txt'); SELECT RTRIM (pybutfl_utl_file_path) INTO ws_path FROM payroll.pybutfl; fhandle_o := UTL_FILE.fopen (ws_path, v_data_file, 'w'); DBMS_OUTPUT.put_line ('UTLFILE file for this run is: ' || ws_path||'/'||v_data_file); v_written_count := 0; FOR c2_rec IN C2 LOOP BEGIN v_selected_count := v_selected_count + 1; v_data_line_hdr := rtrim(c2_rec.line_header); UTL_FILE.put_line (fhandle_o, v_data_line_hdr); v_written_count := v_written_count + 1; EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.put_line (v_error_text); v_error_count := v_error_count + 1; END; END LOOP; FOR c1_rec IN C1 LOOP BEGIN v_selected_count := v_selected_count + 1; v_data_line := rtrim(c1_rec.data_line); UTL_FILE.put_line (fhandle_o, v_data_line); v_written_count := v_written_count + 1; EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.put_line (v_error_text); v_error_count := v_error_count + 1; END; END LOOP; DBMS_OUTPUT.put_line ('Number of Records Selected: ' || v_selected_count); DBMS_OUTPUT.put_line ('Number of Records Written: ' || v_written_count); IF UTL_FILE.is_open (fhandle_o) THEN UTL_FILE.fclose (fhandle_o); END IF; END; /
ConsID|GFImpID|GFTAmt|GFType|GFPayMeth|GFDate|FundID|CAMPID|GFAppeal|GfRef|GfPostDate|GfPostStatus|GfltrCode|GfAck|GfRcpt|GfAttrlmpID00|GfAttrCat00|GfAttrdesc00|GfAttrDate00|GfAttrlmpD01|GfAttrCat01|GfAttrdesc01|GfAttrlmpID02|GfAttrCat02|GfAttrdesc02|GfSubType 000013505|| 20.00|Cash|Credit Card|06/22/2009|221686|On-Line Giving|On-Line giving|||Do not post|StandardThankYou|Not Acknowledged|Do not receipt||Banner Gift Number|1179534.221686|06/22/2009||Web ID|000013505||Source|MED|On-Line Giving 000013505|| 20.00|Cash|Credit Card|06/22/2009|770830|On-Line Giving|On-Line giving|||Do not post|StandardThankYou|Not Acknowledged|Do not receipt||Banner Gift Number|1179534.770830|06/22/2009||Web ID|000013505||Source|MED|On-Line Giving
Hello
The problem is due to the "OR" condition (I did not pay attention to it earlier).
Because of this condition, your query is given beyond 7 days recovery. You need to rewrite the code as:
ALM_OG_CAMPAIGN_CODE in ('MED', 'MED1')
Instead of
and ALM_OG_CAMPAIGN_CODE = 'MED' OR ALM_OG_CAMPAIGN_CODE = 'MED1';
This will do the magic for you.
Concerning
Asif Momen
http://momendba.blogspot.com -
Problem with the type of data in a view
Hi all
I have modified a view. For this reason my view passed to varchar2 column data type number automatically. But it should be only a number.
Updated the view that changes the data type of column varchar2
VIEW to CREATE or REPLACE v1
AS
SELECT Decode (Sign (mta.base_transaction_value), 0, Decode (Sign (mta.transaction_value), Decode (Sign (mta.primary_quantity),-1, NULL, 0))
MTA.base_transaction_value),
-1, NULL,
Decode (Sign (mta.primary_quantity),-1, NULL, NULL
MTA.base_transaction_value),
(0)
1, MTA.base_transaction_value,
Col1 is NULL)
Mtl_transaction_accounts MTA
Old view that keeps this column under the number:
VIEW to CREATE or REPLACE v1
AS
SELECT Decode (Decode (Sign (mta.base_transaction_value), 0, Decode (Sign (mta.transaction_value), 0, Decode (Sign (mta.primary_quantity), 1,0,))))
0,0,
(NULL),
1.0,
(NULL),
1, MTA.base_transaction_value,
Col1 NULL))
Mtl_transaction_accounts MTA
-> Create a note that the type of data of base_transaction_value, transaction_value, primary_quantity columns is number
No help for making the data type of column 'col1' number using my first query?
Thank you
SriniThe data type of an expression of DECODE() is determined by that of his first return value. Oracle has decided that a NULL value is a VARCHAR2 data type (because there must be something ).
The changes to your code are extremely intertwined and twisted out and frankly too hard to work through. However, I think at some point the changes that you have implemented it had that effect.
SQL> create or replace view v1 2 as 3 select decode(to_number(to_char(sysdate, 'dd')), 1, 0, 99) as col1 4 from dual 5 / View created. SQL> desc v1 Name Null? Type ----------------------------------------------------- -------- ---------------- COL1 NUMBER SQL> create or replace view v1 2 as 3 select decode(to_number(to_char(sysdate, 'dd')), 1, null, 99) as col1 4 from dual 5 / View created. SQL> desc v1 Name Null? Type ----------------------------------------------------- -------- ---------------- COL1 VARCHAR2(2) SQL>
Cheers, APC
blog: http://radiofreetooting.blogspot.com
-
problem with the vista updates, dates back to December 2008
In December 2008, I had remote access, now have broadband services. have family vista premium with service pack 1, the problem started when I tried to install the December 2008 windows updates. checked all updates essential etc. then let problem execution, not finished, then computer rebooted as it always does, is gone on the screen, then rebooted, saw the windows bar downstairs and then (as would normally go to LOG IN) it went to black screen and then off, the thing windows tried to start and check the disc and other programs of repair but kept saying could not start. Looked at this time comes to say has encountered an unknown error and could not fix, end was to use the F keys as an administrator login and do a system restore to 5 December and then worked well, have run the check disk and defrag and virus scans etc... now, my pc works fine, but I have not installed updates since December 2008, as know that it will happen if I do. However, I want to keep my vista up-to-date. I think that may be corruptions in the updates in a temporary folder somewhere, but don't know where it is. is - it there anyway to remove the files that can be corrupted or is there another solution, looked everywhere for answers in the forums and helpdesk there were several other people in the same question. My computer work fine, but I wonder if I will ever be able to install an update again. I have to be clear that I can run windows update without issue, it lists later and everything but when it's this thing to reboot it goes back to square one as shown above. Something in the updates is messing up my system and even widows classes as unknown error.
Annanimo,
Thank you for visiting the Microsoft Answers community.To test your corrupt file system, run the System File Checker:
To run the System File Checker tool, follow these steps:
Click Start and type cmd in the box start the search.
Right click on cmd in the list programs, and then click Run as administrator.
If you are prompted for an administrator password or a confirmation, type your password or click on continue
At the command prompt, type the following line and press ENTER:
sfc/scannow
When the analysis is complete, test to see if the problem you are experiencing is resolved.Let us know what that discoveries and if we are to advance, support.
Thank you
Gloria
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Problems with the debugger in Data Modeler Beta DDL Custom Transformation Scripts
Hello
I use Oracle SQL Data model Beta 4.1.0.866.
Currently, I am working on a project to generate the models in PHP for our relational database models MVC framework. Some settings must be entered from the user,
so, I'm importing Java classes for JOptionPane in the Transformation of the customized with DDL Scripts
var ji = new JavaImporter(java.io, java.lang, javax.swing, java.util);
I can use these classes with no problems, but when I want to use the debugger, it cancels the execution with this error message:
Is this a bug or am I missing something here?
And would it not possible and even preferable to processing entirely in Java instead of JavaScript scripts?
Hello
Try it following the syntax:
var ji = new JavaImporter(java.io, java.lang, Packages.javax.swing, java.util);
And would it not possible and even preferable to processing entirely in Java instead of JavaScript scripts?
Well, it's not on the use of JavaScript, it's scripts in Java Platform - JSR 223 https://www.jcp.org/en/jsr/detail?id=223
So if you have a JSR 223 engine of script in the JAVA virtual machine you can use your scripting language. We simply provide a setting where you can put your scripts to do something useful.
We don't know in advance what language will be used. JavaScript engine is included in Java6 and Java7 so this is the reason why our examples are in JavaScript.
Using Java instead of JavaScript don't make the job easier, look at the part of import here - Re: impossible to cast objects in the Script SQL DM 4.0 Transformation
Philippe
-
Problem with the fusion of data using the Avery label template
I use indesign for a mailing of basis for my Christmas card labels. Each year, it worked perfectly...
This year, for some reason any, when making a data merge (and asking an overview with multiple records) in an blank document , it works fine.
As soon as I try in the model of the preview disappears and it shows just the first record.
I tried and then export the model as image and placed just behind and even on its own layer... In the hope to use only the model as a visual guide... but the preview does not work either.
Basically, I can't get anything in the document to make it work. But then I have no assurance as to the separation so he can hit the labels/page 30 on point.
Has anyone else had these issues?
When you perform multiple records per page preview is bug. Either don't use the preview, or cancel immediately after, then perform the merge.
If you have already used a snippet in your template, it is no longer needed and should be replaced. You can copy your placeholders in a new template file. I'm not familiar with Avery templates, but I suspect that they are not intended to be used with a multiple records by merging the page. Several mergers Records exactly require a set of placeholders in the upper left corner, and the other instances will be duplicated according to the margin and spacing parameters that specify you in the merge options. Thing that guides guides on your page is likely to cause a problem.
-
Problems with the current system date
Hello everyone!
I checked my server and found that by using the function now() shows me the current date but the time with more than 5 hours, I checked the date/time settings system and it's works well, if this happened to you please tell me how I can solve this problem... as I suggested in my post on the 18. It seems that the time returned by the functions is GMT instead of local, and deliver the thread I linked to appearst to describe the JVM.
Phil
-
We use the data protection in our project. The research that I have done in protecting data, I realized that the FDM adds the data in protected intersections to load the file that is created by FDM via the import process. The problem is that there are actions given in HFM and I get an error that says: "error: load the file cannot contain action data according to user option." I'm pretty sure that some user option (it would be great if you have an idea where I can find this user option) prevents data already present of shares to be loaded via FDM. Have faced this kind of error before? Is there a work around on this?
Thank you
Rohit
Hello
The user option which is the origin of the problem is 'File Contains Data property'. You must make sure that this load option is enabled when you start loading in FDM process if the dataset that you present must contain data of shares.
Kind regards
Simon
Maybe you are looking for
-
I get a folder with a question mark symbol when I turn on
I'm giving my daughter my MacBook Pro retina (2013) so I'll try to get it to the factory settings. I tried reloading ElCapitan and downloaded for half an hour and then says that the download failed. This happened twice, and now all I get is a folde
-
Satellite M70-164 don't seam to work at all
I have an old M70-164 which was daily used (windows XP SP3 Home) as my work machine (not to mention the usual stuff of MSoffice and webbrowsing, I use molecular modeling software, Python interpreter and some software of image rendering, as well as be
-
How to type 001 in a table cell
Don't know how to stop 001 being changed to 1 in a cell in a table I created in a doc pages.
-
installation of the microsoft security updates
I can not install updates for office 2003 and service packs for office, also unable to install securty microsoft, or most updated security too. I have several different errors show as 0 x 641, ox4397 and 1601 for adobe reader.
-
Here are my settings but when I click on save, it is said: default gateway is not a valid address. If necessary some additional data I can post, just ask.