Validation between two list selection.
I would like to validate two selection list. What I want to do is when one of the selection list is 'ATR', the selection on the other list, it must be "N/a". I'm sure you'll tell me I should use in waterfall lov parent, but the problem is that I already associated with one of them another selection list. I know that I can associate it with more than one, but it does not work. The data model allows it and change it, it will give me a lot of changes throughout the application. That's why I'm looking for another way to validate two selection list.Thank you, Bernardo.
Hello
I think you can also do with a validation step! In any case, it should be of type function from PL/SQL to return a Boolean.
Validation write an expression something like that according to your needs:
IF :P1_LIST1 = 'ATR' AND :P1_LIST2 = 'N/A' THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
Regards Garry
Tags: Database
Similar Questions
-
Validation between TWO hierarchies; Help, please
Hi all
I build validations and I'm having a problem with a piece of syntax.
Business need:
Make sure that all members, preceded CCC that exist in the hierarchy1 also exist in the hierarchy2.
All members of the project are created in hierarchy1. We also have another hierarchy called hierarchy2, in which we that allow to control the attribute "therapeutic Zone". This attribute is inherited to level "CCC". So, once we create members of the CCC-xxxxx-xxxxx in the hierarchy1, INSERT us this member in its respective place in the hierachy2 to assume its therapeutic area.
It is relatively simple. Now, sometimes users don't always do the step #2 (insert in hierachy2), so I build a validation to check if all members of the CCC in the hierarchy1 exist in the hierarchy2, as described above.
My syntax is for a class: Validation of the formula: (Validation is attributed to hierachy1)
NodeInHier (Equals (String, SubString (Abbrev (), 1, 3), CCC), hierarchy2)
This valid and works successfully, but his shot all the members, instead of the members of the CCC JUST.
Is there a piece of syntax, I'm missing here?
Thank you.
To apply only to those who start with CCC, you could do "If (Equals (String, SubString (Abbrev (), 1, 3), CCC), NodeInHier (Abbrev (), hierarchy2), True). This way the validation will pass for anything that does not begin with the CCC and will look in hierarchy2 for those that do.
-
the list of numbers between two columns
Hello
I need the list of numbers between two columns.
My source table contains the intervals with different ranges and I'm currently thinking dividing them by size.
I was able to get a solution following the information contained in the Web page:
http://StackOverflow.com/questions/3971981/get-list-of-numbers-in-between-two-columns
The solution I've used is based on the following example:
But this doesn't work in my table if I have few and modest intervals (maximum 5 digits range).with t as ( select 10 startnum, 15 endnum from dual union all select 18, 22 from dual union all select 10000, 19999999999 from dual ) select lvl from (select level lvl from dual connect by level <= (select max(endnum) from t)) a where exists ( select 1 from t where lvl between t.startnum and t.endnum )
In the example, I was trying to understand why this might be failing, but I do not have a conclusion yet.
There is something I noticed and that I try to understand, that is:
If I change this query to:
It will increase from 2 to 3 seconds to return results to a few minutes at least (canceled after a few minutes!)with t as ( select 10 startnum, 15 endnum from dual union all select 18, 22 from dual union all select 19999999990, 19999999999 from dual ) select lvl from (select level lvl from dual connect by level <= (select max(endnum) from t)) a where exists ( select 1 from t where lvl between t.startnum and t.endnum )
Thus, using this example to understand if my problem is related to having many between start and end number or if it is linked with having small intervals between large numbers.
Can someone explain to me why I have this speed of different treatment depending on the value of the interval? And why it takes longer with the small interval?
I need to apply it to different beaches (from 2 ranges of numbers to 16 range) and in all ranges, I will have small intervals to check.
For example:
endnum startnum
7341 7342
7422-7423
7439 7456
2522200050 2522200054
2522200146 2522200150
4216969839880 4216969839884
4216969839893 4216969839897
Having this problem I can only ask the first values I have in the picture!
Best regards
Ricardo TomasHi, Ricardo,
Here's one way:
WITH cntr AS ( SELECT LEVEL - 1 AS n FROM ( SELECT MAX ( endnum - startnum) AS max_diff FROM t ) CONNECT BY LEVEL <= max_diff + 1 ) SELECT startnum + c.n FROM t JOIN cntr c ON t.endnum >= t.startnum + c.n ;
In your original query, you generate all the numbers from 1 to the highest endnum. You only need enough numbers to cover the range of startnum to endnum. (This method also works if startnum is less than 1).
Joins are usually faster than EXISTS subqueries. -
List of continuous dates between two dates
Hello
I want to list all dates between two given dates (the start_date and the end_date)
where start_date = date minimum a table
and end_date = sysdate
can u please guide how to build queries for this
Thank you
SadiqCONNECT BY works from 9i upward. I recommend that an upgrade to a new version of Oracle is not what you expect. Then you need to try the solution object:
SELECT mdv.min_date + ao.rnum - 1 date_in_range FROM (SELECT rownum rnum FROM all_objects) ao , (SELECT MIN (YOUR_DATE_COLUMN) min_date FROM YOUR_TABLE) mdv WHERE rownum <= sysdate - mdv.min_date + 1
-
photo selection between two dates
In Photos
It is possible to select photos between two dates?
In Photos,.
is it possible to select the photos between two dates?
Thank you, thank you
Yes. With a smart album like this:
-
Can a selection list cause two lists of parent of Cascade?
4.2.1
THM:2
Hello world
I have two regions
Region 1 has a selection list and a text called order box and category of the order. There could be several orders in a category. When I choose a selection list order, he fills the text box with the corresponding category by using dynamic "SetValue".
Now, I also want the second region that has an another LOV orders, fills only order_ids not selected in region 1 LOV however, it should show only other orders in the same category.
So something like select commands from P4_ORDERS1 where category and <>P4_ORDERS order_id = P4CATEGORY
But seems to not work. I created this on Apex
https://Apex.Oracle.com/pls/Apex/f?p=64292:4
workspace: ryansun
user: [email protected]
PWD: ryansun123
Ideally, when I select the No. 1 of the order of P4_orders, P4_ORDERS1 should show 4 for the other order_ids, that p4_orders1 will be null.
Thank you
Take at look at page 5 and 6.
Page 5 the query for the LOV P5_ORDERS1 was modified to use the value of P5_ORDERS. Not really necessary to include the value of P5_CATEGORY
Page 6 the parent element is P6_CATEGORY for the LOV is updated when the value of P6_CATEGORY is modifed by the dynamic Action. Dynamic Action will present the P6_ORDERS value in session state to be used by the LOV P6_ORDERS1.
As for the original question in the title, a list of selection may have two lists of parent of cascade? The answer is Yes. You can include 2 (separate control) in the area of the waterfall LOV article Parent (s).
-Jeff
-
Select all dates between two fields txt. How?
In a slider form 6i, I need to select all dates between two dates provided. I have two fields text Fld1 and Chp2 with the data type date. There is no table behind the two fields.
For example
': FLD1: = MARCH 1, 2013;
': CHP2: = MARCH 10, 2013;
Now I have to choose all dates between 01-mar-2013 and 2013-mar-10 '. How to do?Gul says:
In a slider form 6i, I need to select all dates between two dates provided. I have two fields text Fld1 and Chp2 with the data type date. There is no table behind the two fields.
For example
': FLD1: = MARCH 1, 2013;
': CHP2: = MARCH 10, 2013;Now I have to choose all dates between 01-mar-2013 and 2013-mar-10 '. How to do?
As'salamualikum Gul
Try this
SELECT TO_DATE('01-MAR-2013', 'DD-MON-RRRR') - 1 + rownum AS d FROM ALL_OBJECTS WHERE TO_DATE('01-MAR-2013', 'DD-MON-RRRR') - 1 + rownum BETWEEN TO_DATE('01-MAR-2013', 'DD-MON-RRRR') AND TO_DATE('10-MAR-2013', 'DD-MON-RRRR')
Hope this helps
-
List of years between two dates
Hello
I am new to Livecycle Designer and learning I will.
I have a few questions related to the same question.
1. is it possible to create a list of years between two dates, especially the exercises? (I'm in Australia so it's July 1 to June 30).
for example
User between two dates in date fields:
(Start Date of the project field) July 1, 2012 and (end Date of the project field) 30 June 2015
Have an auto list to fill out as below:
(List)
2013
2014
2015
or ideally
(List)
2012/13
2013/14
2014/15
linking this (if possible).
2. is it possible to have to repeat the lines created automatically in a table for each of the fiscal years indicated in the list above?
If either / both of them are possible help that someone could provide would be very appreciated.
Thank you
Ivan
Hello
Please find an example that shows what I think you would do here - https://workspaces.acrobat.com/?d=F9t-rLq3bapw2d-XY0dRuQ
I ran a few test cases and did not include the error handling to keep the code as easy to read as possible.
If you open the form and look at the code in the click event of the update button, then that's where all the magic happens.
Hope this helps
Malcolm
-
Is it possible to establish the selection square between two Guides...?
Hello world
Is it possible to establish the square selection between two Guides. Guides are up & down (or) left and right.
The rectangle has been fixed ratio 200 X 200. Thanks in advance.
-yajiv
This requires Photoshop CS5 or better...
#target photoshop app.bringToFront(); main(); function main(){ if(app.version.match(/\d+/) < 12) return; if(!documents.length) return; var doc = activeDocument; var guides = doc.guides; if(guides.length != 2) return; if(guides[0].direction != guides[1].direction) return; var startRulerUnits = preferences.rulerUnits; preferences.rulerUnits = Units.PIXELS; var SB = new Array(); if(guides[0].direction == Direction.HORIZONTAL && guides[1].direction == Direction.HORIZONTAL){ var vertDistance = doc.guides[1].coordinate.value - doc.guides[0].coordinate.value; SB[0] = (doc.width.value - vertDistance)/2; SB[1] = doc.guides[0].coordinate.value; SB[2] = ((doc.width.value - vertDistance)/2)+vertDistance; SB[3] = doc.guides[1].coordinate.value; } if(guides[0].direction == Direction.VERTICAL && guides[1].direction == Direction.VERTICAL){ var horzDistance = doc.guides[1].coordinate.value - doc.guides[0].coordinate.value; SB[0] = doc.guides[0].coordinate.value; SB[1] = (doc.height - horzDistance)/2; SB[2] = doc.guides[1].coordinate.value; SB[3] = ((doc.height - horzDistance)/2)+horzDistance; } activeDocument.selection.select([[SB[0],SB[1]],[SB[2],SB[1]],[SB[2],SB[3]],[SB[0],SB[3]]], SelectionType.REPLACE, 0, false); app.preferences.rulerUnits = startRulerUnits; }
-
It is possible to select a segment of a path between two points outside their clipping mask?
I have a way with 3D rotation effect tends in a clipping mask. In the Preview mode (Ctrl + Y), most of the road is not the clipping mask, but most of the visible inside the mask in normal view because of the 3D effect turns. I want to select and remove a segment of the path between two points outside the clipping path, but Illustrator does not select the components of access outside their clipping mask path.
Anyway is to do without for as much free mask?
ALWAYS indicate the version you are using. Regulars here using one of the six different versions of Illustrator. Assuming that the current version:
White pointer: marquee select around a portion of the original route which is located in the clipping mask.
OR
Black hand: select the object. Make a right click the object. Select isolate selected in the popup clipping mask.
JET
-
How everythings selection between two tags
Hello
Use the find and replace tool, I need to select the entire document between two tags. Example:
I have:
< owntag > < p > Important Note: these online forums are discussions to users of Adobe products and are not an official customer etc. etc. < p > < / owntag >
I need to select:
< p > important Note: these online forums are discussions to users of Adobe products and are not an official customer etc. etc. < /p >
I have to do in many pages, and each page has the same tag... for example, < owntag > < / owntag >. No matter what there is between the tag, I want to select the entire document after the < owntag > and before < / owntag >
Pls u can tell how can I do this?
TNX lots =)"Dylan1980" wrote in message
News:go63sv$5D0$1@forums. Macromedia.com...
>
> I do in many pages, and each page has the same tag...
> example
>
> wish
> Select the entire document afterand before Select use regular expression and put it in the search field:
([\W\w]+) What you put in the field replace depends on what you want to do with
the material between the. To get rid of the opening and
closing, but keep the original content, just enter $1. TO
preserve the, enter the new material, surrounded by : It's replacement --
David powers
Adobe, Dreamweaver community expert
http://foundationphp.com -
Select the mountains between two dates
Hi all
How can I select all months between two dates. For example, if two dates are say 2008-05-25 and 2009-07-15, then I need following output
May-2008
June-2008
July-2008
August-2008
September-2008
October-2008
November-2008
December-2008
January-2009
February-2009
March-2009
April-2008
May-2009
-June 2009
July-2009
Thank you
SujnanTry this one
SQL> SELECT TO_CHAR(add_months(TRUNC(to_date('25/05/2008','DD/MM/YYYY'),'MM') ,(level-1)),'fmMonth-YYYY') 2 FROM dual 3 CONNECT BY level <= months_between(to_date('15/07/2009','DD/MM/YYYY'),to_date('25/05/2008','DD/MM/YYYY')) + 2; TO_CHAR(ADD_MO -------------- May-2008 June-2008 July-2008 August-2008 September-2008 October-2008 November-2008 December-2008 January-2009 February-2009 March-2009 TO_CHAR(ADD_MO -------------- April-2009 May-2009 June-2009 July-2009 15 rows selected. SQL>
-
Remote access share folder between two computers
I have two computers connected by a CAT5 cable, have all two firewall is enabled. This network has a server, DNS & DHCP server or router. Only two computers XP SP3.
- Firewall is enabled
- File sharing and printer checked with selected custom list
Two types of tests:
Test 1: I configured two computers with a static IP address and enter the IP subnet 10.0.0.0/24 network in the custom list. The PC - A (10.0.0.1) and typing\\computername or \\IP_AddressPC - B (10.0.0.2) access. Access to shared folder has no problem with this setting.
Test 2: I changed the dynamic IP address static IP on both computers and let XP itself generate dynamic IP 169.x.x.x. I went to the list of custom and changed in 169.0.0.0/16, this settings I'm unable to access the remote folder.
- I could not access by \\IP_Address get a message error "network path was not found.
- \\Computername took almost a minute to open a window, but he has now shared resources, such as file sharing.
- I can ping by IP address, but could not ping by ComputerName
Issues related to the:
- Class B is allowed in the custom list?
- Can I use the IP address dynamic Windows XP for the connection between two computers or on multiple computers?
- Why class C has worked very well and no class B?
- Is it because I used XP dynamic IP or custom list accesses no class B or both?
Johnny
Hello
Part of a Wireless cable/DSL Router is a DHCP server.
The server assigns the IP address to network computers are configured to Auto obtain IP address.
If for some reason, the computer cannot connect to the router, it cannot obtain an IP address and Windows assign a default IP 169.xxx.xxxx.xxx. This IP address is not functional for regular internet IP and network.
Since you don't have any DHCP server on your system, you must use static IP as you did before.Jack-MVP Windows Networking. WWW.EZLAN.NET
-
Routing of traffic between two VPN Site-to-Site Tunnels
Hi people,
I am trying to establish routing between two vpn Site-to-Site tunnels which are destined for the same outside the interface of my Cisco ASA.
Please find attached flowchart for the same thing. All used firewalls are Cisco ASA 5520.
Two VPN tunnels between Point A and Point B, Point B and Point C is too much upward. I activated same command to permit security level interface also intra.
How can I activate the LAN subnets traffic behind Point to join LAN subnets behind C Point without having to create a tunnel separated between Point A and Point C
Thank you very much.
Hello
Basically, you will need to NAT0 and VPN rules on each site to allow this traffic.
I think that the configurations should look something like below. Naturally you will already probably a NAT0 configuration and certainly the L2L VPN configuration
Site has
access-list NAT0 note NAT0 rule for SiteA SiteC traffic
access-list allowed NAT0 ip 192.168.1.0 255.255.255.0 192.168.3.0 255.255.255.0
NAT (inside) 0 access-list NAT0
Note L2L-VPN-CRYPTO-SITEB access-list interesting traffic for SiteA to SiteC
access-list L2L-VPN-CRYPTO-SITEB permit ip 192.168.1.0 255.255.255.0 192.168.3.0 255.255.255.0
Where
- NAT0 = is the ACL to be used in the NAT0 rules that will exempt SiteA SiteC NAT traffic
- NAT = is the line of configuration NAT0
- L2l-VPN-CRYPTO-SITEB = LCA in configurations VPN L2L that defines the SiteA LAN to LAN SiteC traffic must use the VPN L2L existing SiteB
Site B
access list OUTSIDE-NAT0 note NAT0 rule for SiteA SiteC traffic
OUTSIDE-NAT0 allowed 192.168.1.0 ip access list 255.255.255.0 192.168.3.0 255.255.255.0
NAT (outside) 0-list of access OUTSIDE-NAT0
Note L2L-VPN-CRYPTO-SITEA access-list traffic for SiteA to SiteC through a Tunnel between A - B
access-list L2L-VPN-CRYPTO-SITEA ip 192.168.3.0 allow 255.255.255.0 192.168.1.0 255.255.255.0
Note L2L-VPN-CRYPTO-SITEC access-list traffic for SiteA to SiteC through a Tunnel between B - C
access-list L2L-VPN-CRYPTO-SITEC permit ip 192.168.1.0 255.255.255.0 192.168.3.0 255.255.255.0
Where
- OUTSIDE-NAT0 = is the ACL to be used in the NAT0 rules that will exempt SiteA SiteC NAT traffic. It is this time tied to the 'outer' interface, as traffic will be coming in and out through this interface to SiteB
- NAT = is the line of configuration NAT0
- L2l-VPN-CRYPTO-SITEA (and SITEC) = are the ACL in the configurations of VPN L2L that defines the SiteA LAN to LAN SiteC traffic should use existing VPN L2L connections.
Site C
access-list NAT0 note NAT0 rule for SiteC SiteA traffic
NAT0 192.168.3.0 ip access list allow 255.255.255.0 192.168.1.0 255.255.255.0
NAT (inside) 0 access-list NAT0
Note list-access-L2L-VPN-CRYPTO-SITEB SiteC to SiteA interesting traffic
L2L-VPN-CRYPTO-SITEB 192.168.3.0 ip access list allow 255.255.255.0 192.168.1.0 255.255.255.0
Where
- NAT0 = is the ACL to be used in the NAT0 rules that will exempt SiteC to SiteA NAT traffic
- NAT = is the line of configuration NAT0
- L2l-VPN-CRYPTO-SITEB = LCA in configurations VPN L2L that defines the SiteC LAN to LAN SiteA traffic must use the VPN L2L existing SiteB
To my knowledge, the foregoing must manage the selection NAT0 and traffic for VPN L2L connections. Naturally, the Interface/ACL names may be different depending on your current configuration.
Hope this helps
-Jouni
-
Calculate the hours between two dates
Hello
I have a requirement to count the hours with 2 given timestamps, something like:
However, I wish it would be that simple. I just need to count the hours between two timestamps for the hours of work for example, 08:00 - 17:00, MONDAY to Friday (excluding weekends).SQL> select ((to_date('22-oct-2012 13:00:00','dd-mon-yyyy hh24:mi:ss') - to_date('20-oct-2012 13:00:00','dd-mon-yyyy hh24:mi:ss'))*24) B from dual ; B ---------- 48
So lets say I have to count the hours between two dates above the result should be 18 hours not 48 (4 hours on 20/oct, 9 hours on 21/oct to 5 hours 22/oct).
How can I achieve this? Any idea will be useful.
Thank youMy query generates a list of all the hours between the start and end time, filters on the hours that are outside of the hours of work and then account for the remaining lines. Change that to partial hours must just be a case of replace the two occurrences of 1/24 with 24/01/60, then - as say you - Division COUNT (*) by 60.
There may be performance issues using techniques of generation of line like this, if you put this in a query involving the joining of several lines of other tables (for example where the dates of beginning and end are derived from several employees?) or in several days. If you don't find it then count the number of whole days (taking weekends into account) between dates and work on the partial days after that it could be better. This would probably involve a lot of statements of case (which I don't have time to test it now).
Ben
Maybe you are looking for
-
Tecra A4: Wlan Intel 2200bg not stable with 802.11 G WLan
With the latest driver re-installed (9.0.4.39), I found a connection to a network of 'g' was unstable. (A little better than before you reinstall, when it connect to a network of 'g', but does not have all the data.) With a BT Homehub, now a router D
-
Re: Imagem om my Toshiba with problems
Hello world When I start my laptop, the picture on the screen appears with problems, cannot read letters and some traces in the vertical. When windows start, displays a blue screen with a memory error but I can read because it disappears very quickly
-
calibration of Agilent N5183 Signal generator for specific output level
Hello Newbie to labview environment! I'm writing a VI to calibrate Agilent N5183 to a specific output. For example if I want to have-4.5 dBm output of my installation (as stated on my electricity meter) I'll have to set the sig gen to say 7 dBm giv
-
"Printer is disabled" when you run the printer Troubleshooter
hp 3845 printer there is a paper jam I erased it but walking and stop button are flashing, I run troubleshooting it says the printer is off, I shut it down completely there is no paper jam, but it will not print pls advise Original title: printer ha3
-
When you try to open an attachment that I sometimes: this file does not have a program associated with it for performing this action. Create an association in the FOLDERS OPTION control PANEL. It says in the window choose OPEN/CANCEL TYPE: unknown