Select / how to select row that meet only one of select-options
Hello ,
I am developing rapport in release 6.0.
On the screen I have three select -options s1 , s2 , s3
I db table I have several entries with values in f1 f2 and f3
f1 f2 f3
1 | 2 |
3 | 4 |
5 | 6 |
a | b | c
When I enter , on screen 1 in S1 , and c in f3 i do not get any data in internal table . Obviously program is looking
for the row that satisfies both criteria .
My question is what would be the way to get for same screen entry all row satisfying firs criteria and all lines satisfying
second criteria independently . SO i would like to have row 1|2 and row a|b|c if user enters , value "1" in s1 and value "c" in s3.
Thanks
source code .
select * from db_tab
into corresponding fields of table Itab
where f1 in s1 and
f2 in s2 and
f3 in s3.
Hello ,
I was thinkinf of OR , but i doesnt work .
When use enter only S3 and leave empty S1 the resul will be ALL entries from db table .
S1 = initial
S = c
result is
1|2
3|4
5|6
a|b|c
Thank you
Similar Messages
-
just want to move data between two iphones using one itunes.
Make sure your computer iTunes is up to date. (iTunes 11.1.1)
Now, do it one iPhone at a time; When you connect and select iPhone in computer iTunes sidebar (iTunes > View > Show Sidebar), what iPhone name do you see?
iTunes is smart enough to tell the differences if each has a unique name.
Point One checked.
Right click on iPhone name in Sidebar and choose Backup.
Do the same for the second iPhone.
Make a copy of the backups in computer to another location (Just incase something gone wrong)
Where iTunes backups are stored on computer http://support.apple.com/kb/HT4946
Point 2 checked.
Point 3 & 4
http://support.apple.com/kb/ht1766 -
All my PDF forms are automatically transformed in word forms,how can I change that and only decide which PDF to be transformed in word
Hi Ulfsch,
Thank you for posting on the Adobe Forums, kindly try the step mentioned below.
1) Right click on any of the PDF file and choose the option open with
2) Select choose default program
3) Select Adobe Reader/Acrobat from the list
5) Check the box "always open this type of file with selected program" (not the exact same wording)
6) Click OK
If you are on Mac, CTRL+Click on the file.
Go to Get info
Go to Open with
Change it to Adobe Reader/Acrobat and click change all.
Thanks,
Vikrantt Singh -
How to connect my mac to only one wireless network?
How to connect my mac to only one wireless network?
Do you mean that there are several wireless networks within range, and you don't want it switching between them?
-
How to connect many devices with only one FW800 port in iMac?
Hi,
I am upgrading to a new Intel iMac from a 2004 vintage Dual2.0GHz PowerMac. I currently have 8x d2 Quadra drives chained by FW800, and 2x Iomega drives connected vis FW400 hub which also connects HD cams.
My questions is that with only one FW800 port in iMac, I think my devices connectivity is the following?
(1) Get a FW 800 hub (I can only find 2 port ones at the Apple store and BestBuy)
(2) Connect the d2 Quadras to one port of the FW800 hub
(3) Get a FW 800 to FW 400 cable
(4) Connect my 6 port FW400 hub to the 2nd port of the FW800 hub
Thanks for reviewing this solution, and I would also appreciate other suggestions or hear about your experiences if you have a similar set-up.
WillIn addition to your listed considerations, you should consider the following.
Many storage needs do not required FireWire 800 speed. For example, USB 2.0 works fine for your Time Machine backup drive. If you are just storing user data such as your iPhoto or iTunes media files, USB 2.0 is more than fast enough. So, as much as possible, if any of those external drives have USB 2.0 connections and the data storage does not need FireWire 800 speed, offload as much as possible to USB 2.0. I used to be a +FireWire snob+, but since getting an Intel iMac, I find that USB 2.0 works quite well for most data storage purposes.
There are new hard drives that are power efficient and as large as 2TB. Consolidate your data storage needs onto a smaller number of very large drives, partitioned as needed. This will make your setup more reliable (smaller number drives), and save reduce power consumption. If any of your current externals are SATA, you can probably replace the existing drive with an extra large one.
So, I think you setup should be, extra large FireWire 800 drive connected to the FireWire 800 port directly. Using a 9-pin to 6-pin cable, connect the FireWire 400 hub. Connect any non-storage FireWire 400 devices there. Do some data transfer testing to make sure having the 400 hub there on the chain does not cause the 800 connection to slow down.
Connect other drives as needed using USB 2.0, existing or new. Retire the smaller of your external drives. -
Any DVD to Ipod prog. converts final file that is only one
is there any dvd to ipod programs out there will convert the actual final file to play in your ipod that is only one file. asking this question because right now im running videora converter and just wondering if its going to be only one file to add onto the ipod to play the movie
I checked out your link and thought it was going to answer my question but it still hasn't. I have downloaded software to convert dvd to ipod (cucsoft). I have been successful in conveting and moving to itunes but it won't update to my ipod. I tried right clicking on the video clip and converting to ipod, but it gives me the message that it is already converted, but nothing shows up in my ipod. I'm totally lost and confused. It sounded to simple and has become totally complicated. Any help would be totally appreicated.
Kicksport
HP Windows XP -
I'm trying to burn a CD but when I go to "File" that is not one of my options.
I'm trying to burn a playlist to a blank CD but when I go to "File" that is not one of my options.
In the left-hand pane, right-click the playlist name, and select "Burn Playlist to Disc." By the way, make sure it is a playlist (either regular or smart) and not a "playlist folder."
-
How to query on a single row form using only one page
Hi APEX experts, I am just a beginner in apex and I face several problems on development. Despite that the forum helps me a lot and your answers to other people are valuable , I have stacked into something. Could you please someone tell me : if there is a way to define a single row form page based on table in which I could query and update without using a tabular page (to call the single row form). I want only to use only one page. Does APEX has this functionality? Thank you very much?
I haven't tried it, but I am going to guess that yes it's possible (or if I were going to do this, this is what I'd try and I suspect it will work).
If you take a moment and step back and look at what the wizard does when building a "form on a table with report", all it does is build two pages with page 1 (report overview with drill-down Edit button or link usually) calling page 2 (form) and setting the PK field on the page 2 form with an automated row fetch process and built-in DML processes. It's not that hard.
Page 2 really doesn't care what the calling page was in order to query a single row; it just cares that ANY caller sets the primary key value for the ARF process to fetch a row. So I would just make page 2 call itself. This is what I'd do (and you might have to fine-tune little things that I might not have forseen but I think this will work).
For the sake of example, let's say our table is PARTS and in it is a PART_ID, PART_NUMBER, PART_DESCRIPTION, PART_COST, etc. Assume PART_ID is the primary key and sequentially assigned by the DB in a trigger and is functionally meaningless to the user and is for PK purposes only. Let's assume PART_NUMBER is a unique key (although not the PK) by which the user will "know" a unique row (since the PK of PART_ID is more internal and not meaningful to the user). Assume PART_DESCRIPTION, PART_COST, etc. are just attributes.
1. Use the wizard and build a "form on a table with report". This is just to get the handy dandy ARF process and DML processes, validations, etc. all generated for you. Let's assume the report page is Page 1 and the form is Page 2.
2. When done, delete the report page entirely (so delete page 1).
3. Edit the form page (page 2) and change any branch references from the nonexistent page 1 to now be page 2.
Now here's the part where something has to set the internal P2_PART_ID field when page 2 is run. So why not set it from itself from something the user will uniquely enter?
4. Create a P2_PART_NUMBER_FETCH item (text item is fine or if you want a LOV or whatever that's good too....whatever works. For clarity, you might even want to create a separate "search" or "query" region separate and above your existing form region to set this field apart visually so users know it's a search field. Source for this field should be "only when current value in session state is null".
5. Created some sort of "GO" button to go along with the P2_PART_NUMBER_FETCH field.
6. Make sure none of your existing post-submit processes fire when GO is pressed (edit all of the computations and validations and processes and ensure that they have conditions such that they do not fire when the submit value is "GO", so like a PL/SQL expression and set to v('REQUEST')<> 'GO').
7. Add a new validation to your page that only fires when GO is pressed. Have it validate only when GO is pressed. Have it validate that P2_PART_NUMBER_FETCH is not null.
8. Add a new PL/SQL process to your post-submit processing that only fires when GO is pressed. Have it look up to the database based on P2_PART_NUMBER_FETCH and get the PART_ID that corresponds to the part number the user entered and set the part number, something like this (even better for style and reusability if you embed this in a DB package function and call it):
SELECT part_id
INTO :P2_PART_ID
FROM PARTS
WHERE PART_NUMBER = :P2_PART_NUMBER_FETCH;
9. Not sure if the branches that were generated will suffice for this (might need to add a new one...review what you have and see) but the bottom line is that the page should branch to itself (page 2) and not clear the cache.
10. When the page repaints, since :P2_PART_ID is now populated in session state (again, page 2 should not care how it got populated...only should care that it did get populated by anything (including itself)), the automated row fetch (ARF) should fire and query up the row from the database for editing. -
How to make report that contains only summaries?
How to make a report in Designer/2000 that shows only summary fields? For example something like:
select count(*) from emp;
nullHow to make a report in Designer/2000 that shows only summary fields? For example something like:
select count(*) from emp;
null -
Condition that takes only one row with the maximum cost of the maximum date
I have to the following query
SELECT distinct b.segment1 ||'.'|| b.segment2 as ITEM,
so.vendor_site_id as SUPPLIER,
'VE' as ORIGIN_COUNTRY_ID,
replace(round(l.mto_costo_neto/l.can_unidades_empaque,2),',','.') as UNIT_COST,
5 as lead_time,
null as pickup_lead_time,
l.can_unidades_empaque as supp_pack_size,
1 as inner_pack_size,
'C' as round_lvl,
50 as ROUND_TO_INNER_PCT,
50 as ROUND_TO_CASE_PCT,
50 as ROUND_TO_LAYER_PCT,
50 as ROUND_TO_PALLET_PCT,
null as MIN_ORDER_QTY,
null as MAX_ORDER_QTY,
'FLAT' as PACKING_METHOD,
'N' as PRIMARY_SUPP_IND,
'Y' as PRIMARY_COUNTRY_IND,
case when b.primary_unit_of_measure like '%KG%' then 'KG'
when b.primary_unit_of_measure like '%Kg%' then 'KG'
when b.primary_unit_of_measure like '%UND%' then 'EA'
when b.primary_unit_of_measure = 'Kilogramo' then 'KG'
when b.primary_unit_of_measure = 'Litro' then 'L'
when b.primary_unit_of_measure = 'Unidad' then 'EA'
else null
end as DEFAULT_UOP,
1 as TI,
1 as HI,
null as SUPP_HIER_TYPE_1,
null as SUPP_HIER_LVL_1,
null as SUPP_HIER_TYPE_2,
null as SUPP_HIER_LVL_2,
null as SUPP_HIER_TYPE_3,
null as SUPP_HIER_LVL_3,
null as CREATE_DATETIME,
null as LAST_UPDATE_DATETIME,
null as LAST_UPDATE_ID,
case when b.primary_unit_of_measure like '%KG%' then 'KG'
when b.primary_unit_of_measure like '%Kg%' then 'KG'
when b.primary_unit_of_measure like '%UND%' then 'EA'
when b.primary_unit_of_measure = 'Kilogramo' then 'KG'
when b.primary_unit_of_measure = 'Litro' then 'L'
when b.primary_unit_of_measure = 'Unidad' then 'EA'
else null
end as COST_UOM,
null as TOLERANCE_TYPE,
null as MAX_TOLERANCE,
null as MIN_TOLERANCE
FROM mrp.mrp_sr_assignments sr , MRP.MRP_SR_RECEIPT_ORG ro , MRP.MRP_SR_SOURCE_ORG so,
inv.mtl_system_items_b b, lcm.cmp_lineas_cotizacion l
WHERE sr.SOURCING_RULE_ID = ro.SOURCING_RULE_ID
and ro.SR_RECEIPT_ID = so.SR_RECEIPT_ID
and sr.inventory_item_id in ((select inventory_item_id from TMP.VIVERES_VEGETALES)
UNION ALL
(select inventory_item_id from TMP.GENERICOS)
UNION ALL
(select inventory_item_id from TMP.HIJOS_GENERICOS))
and sr.inventory_item_id = b.inventory_item_id
and b.organization_id = 136
and sr.inventory_item_id = l.cod_producto_idI need to agregate the following condition
For example, The following query
SELECT l2.fec_ini_vigencia_costo, l2.mto_costo_neto, l2.can_unidades_empaque, l2.cod_producto,
REPLACE(ROUND(l2.mto_costo_neto/l2.can_unidades_empaque,2),',','.') costo_unidad
from cmp_lineas_cotizacion l2
order by cod_producto, fec_ini_vigencia_costo desc, mto_costo_neto descgenerate
FEC_INI_VIGENCIA_COSTO MTO_COSTO_NETO CAN_UNIDADES_EMPAQUE COD_PRODUCTO COSTO_UNIDAD
17/06/2010 382.56 12 1.1000008 31.88 -- THIS ONE
17/06/2010 382.56 12 1.1000008 31.88
17/06/2010 371.0832 12 1.1000008 30.92
17/06/2010 371.0832 12 1.1000008 30.92
18/05/2009 382.56 12 1.1000008 31.88
04/05/2009 245.82 12 1.1000008 20.49
13/04/2009 382.56 12 1.1000008 31.88
23/03/2009 373.2072 12 1.1000008 31.1
23/03/2009 373.2072 12 1.1000008 31.1I need to take only one row with the maximum FEC_INI_VIGENCIA with the maximum COSTO_UNIDAD of the table lcm.cmp_lineas_cotizacion l, which is calculated with the formula ROUND(l2.mto_costo_neto/l2.can_unidades_empaque,2)A better example
I need only one row the maximum COSTO_UNIDAD for the maximum FEC_INI_VIGENCIA for every cod_producto_id in the table lcm.cmp_lineas_cotizacion
I need to take these values
FEC_INI_VIGENCIA_COSTO MTO_COSTO_NETO CAN_UNIDADES_EMPAQUE COD_PRODUCTO_ID COSTO_UNIDAD
17/06/2010 382.56 12 1.1000008 31.88 -- THIS!
17/06/2010 382.56 12 1.1000008 31.88
17/06/2010 371.0832 12 1.1000008 30.92
17/06/2010 371.0832 12 1.1000008 30.92
18/05/2009 382.56 12 1.1000008 31.88
04/05/2009 245.82 12 1.1000008 20.49
13/04/2009 382.56 12 1.1000008 31.88
17/06/2010 382.56 12 1.1000008 31.88
17/06/2010 382.56 12 1.1000008 31.88
17/06/2010 371.0832 12 1.1000008 30.92
17/06/2010 371.0832 12 1.1000008 30.92
18/05/2009 382.56 12 1.1000008 31.88
04/05/2009 245.82 12 1.1000008 20.49
13/04/2009 382.56 12 1.1000008 31.88
27/10/2010 1171.549344 12 1.1000009 97.63 -- THIS!
13/10/2010 1171.549344 12 1.1000009 97.63
06/09/2010 1171.549344 12 1.1000009 97.63
02/08/2010 1048.825056 12 1.1000009 87.4
28/07/2010 754.8 12 1.1000009 62.9
27/07/2010 614.04 12 1.1000009 51.17
21/06/2010 954.84 12 1.1000009 79.57
27/05/2010 614.04 12 1.1000009 51.17
07/07/2009 1143.17 12 1.1000010 95.26
28/03/2009 1143.17 12 1.1000010 95.26
27/10/2008 1744.644672 12 1.1000010 145.39
01/07/2008 1690.12224 12 1.1000010 140.84
07/07/2009 1143.17 12 1.1000010 95.26 --THIS!
28/03/2009 1143.17 12 1.1000010 95.26
27/10/2008 1744.644672 12 1.1000010 145.39
01/07/2008 1690.12224 12 1.1000010 140.84
07/07/2009 1143.17 12 1.1000010 95.26
28/03/2009 1143.17 12 1.1000010 95.26
27/10/2008 1744.644672 12 1.1000010 145.39
01/07/2008 1690.12224 12 1.1000010 140.84 -
Need validation that ensures only one item has a value.
Hello,
I need a validation that ensures that only one item has a value. I want to allow a person entering information into a form to have the option to either select from a drop-down or enter something into a text box but not both.
I have found some information about validation of this type but I'm not sure how to use it. Here is what I found:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This validation ensures that only one item (ITEM_1, ITEM_2) has a value.
Example 5:
Assume a function similar to the following exists:
create or replace function sampleValidation (p_arg in varchar2) return boolean
as
begin
if p_arg= '1' then
return true;
else
return false;
end if;
end;
A validation of type PL/SQL Expression could then reference this function returning a boolean using the following syntax:
sampleValidation(v('MY_ITEM'))
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please let me know how to implement this or give me another way to validate.
Thanks
LindaLinda,
The best is to use a Validation of type PL/SQL Function Returning Error Text like this:
BEGIN
IF :p1_item_1 IS NULL AND :p1_item_2 IS NULL
THEN
RETURN 'One of the items must have a value.';
ELSIF :p1_item_1 IS NOT NULL AND :p1_item_2 IS NOT NULL
THEN
RETURN 'Only one of the items must have a value.';
END IF;
END;Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
SQL- Query that return only one record
Hello,
is it possible to execute a pure SQL-Query which returns only one row although multiple rows are found.
It is no problem in PL/SQL, but I have no idea if the same is also possible in SQL.
thanks in advance
MichaelWhy not? There are 4 records in this table, but only selected one.
SQL> with t
2 as
3 (
4 select '#%$@#$@$@##$' Addr from dual
5 union all
6 select '18 Jalan Scott' from dual
7 union all
8 select '18 Lemana St' from dual
9 union all
10 select '32-penstation' from dual
11 union all
12 select '99999999999' from dual
13 )
14 select addr
15 from t
16 where rownum =1
17 /
ADDR
#%$@#$@$@##$
SQL>Cheers
Sarma. -
How to download an app for only one user
I have an iMac running the latest version of lion and I want to download and app from Mac app store but I only want to download it for one user, how can I do that?
If you wish for an app to only be available in one user account, create an Applications folder in the Home folder of that user account and drag and drop the app to that folder.
-
How to bind ACS users to only one SSID?
Hello!
I have ACS 4.2 and AP 1240. I`m use two SSID - guest and user. Guest ssid must use PEAP authentication, user ssid must use EAT-TLS authentication (acs user local database). All work correctly. But when i create user for EAP-TLS, i`m create with username of DN certificate and some password. And somebody can use DN as username and password for PEAP authentication for ssid Guest and ssid Users.
How can i make for ssid guest that work only PEAP authentication and for ssid work only EAP-TLS authentication?Are you using autonomous or lightweight AP's? If you have a controller you could setup the Radius attributes to specify which WLAN the user can authenticate to.
Another option would be to setup dynamic VLAN assignment. This would work for either type of AP. The user might still be able to authenticate to either WLAN but after passing authentication they would be dumped into the VLAN you define.
http://www.cisco.com/en/US/docs/wireless/controller/4.2/configuration/guide/c42sol.html#wp1086421 -
How to evolve a graph with only one loop
1. how to continue to add new nodes to a graph with only one loop
would like to use graph traversal like my previous post to traversal a binary tree, but this time, it can
loop forever, i mean it traverse all nodes in whole graph in the meanwhile it add new nodes too
assume maximum number of joint is 2 or 3
computing nightmareI just realised that you weren't talking about cyclic graphs (in the case of 1 cycle) here, but meant a single pass traverse and mutate.
What you don't specify is how the new nodes are being supplied. If they are supplied up front, then the loop will of course terminate once all the inputs are addressed, rather than going on forever. If they are being supplied from time-to-time,
then you need to have some sort of event-wait on input. The traversal could have a move-next something like this
If at end of tree with no new nodes, wait for input
If at end of tree, with input, reset to start
If at insertion point for new node at top of input queue, insert that
Move to next node in tree
This seems the sort of thing that would naturally be coded in a functional language as a tail recursion rather than an iteration.
Maybe you are looking for
-
Can't type anything if i'm in a video game
Hello, since yesterday I have a really big issue, when I try to type something on skype while a video game is running in the background, it just doesnt work. There's a sort of huge latency that happens only on skype, others softwares such as firefox
-
Webi XI report export to excel--- Formatting issue
Post Author: Sougata CA Forum: WebIntelligence Reporting We have WEBI report that contains cell with hyperlink. The value of the cell in numeric. Type is string. When we export this report to excel. In, Excel version is MS-office Excel 2003. In excel
-
Will Quicktime support PPAPI? Does it already?
Quicktime is blocked in Chrome, IE Explorer, and Firefox, but not yet in Safari. Can I count on this being true in the future? Let me explain my problem: I'm developing a website that will show literally hundreds of video clips of American Sign Langu
-
Question concerning Eclipse and Tomcat Plugin and JSP
I have a Tomcat-Project that I am working on in Eclipse and quite a few external JARs. Everything works fine, when I run my Test class within my project (in Eclipse). But as soon, as I am trying to call the jsp in my browser I get Exceptions: "java.l
-
I'm still having problems with material quality. This product comes from a return, but the product in question is not configured on Quality Management records the tab. What happens when you run it appears to MMBE in quality control but do not know ho