adding additional query conditions
HelloI use forms6i.
I have a database block in my form. say Emp_OT_Details.
I also have a ctrl blk with some elements.
When the user do F7 - F8 (enter Qry-Exec Qry) block of db, if in addition the user entered values for the elements in ctrl blk, I include this condition as to run the query.
Suppose I have an iten in Ctrl blk say Empcode, and the user has entered a value '0030108' for this element.
then in the base to block the user based on F7 and article OT_Type, he entered the "hours".
So while Execute query I include Empcode = '0030108', as well as OT_Type = "hours".
So, how can I do that.
Hope that is clear
Thank you
The conditions included in the db-block-elements are applied automatically. For any additional conditions, use the PRE-QUERY-trigger to set the WHERE clause, the DEFAULT_WHERE or the ONTIME_WHERE, depending on your version of forms:
DECLARE
vcWhere VARCHAR2(2000);
BEGIN
IF :CONTROLBLOCK.EMPCODE IS NOT NULL THEN
vcWhere:=' EMPCODE=:CONTROLBLOCK.EMPCODE';
END IF;
-- additional wheres
-- apply WHERE-condition
SET_BLOCK_PROPERTY('DBBLOCK', ONETIME_WHERE, vcWhere);
END;
Tags: Oracle Development
Similar Questions
-
Query OBIEE adding additional tables in from clause
Hello
I have a logic with multiple LTS in tables when trying to query form only one column this logic table adds a few additional tables in which the clause of the query. Could if it you please let me know what could be the reason behind this issue.
Here, I would add the query should be and what query generates OBIEE.
I have a logical table - T_SO_ACCRUAL_PRODUCTS with source table logic multi.
tables is LTS - INV_PRODUCT_GROUP1, Inv_Accrual_Groups, Inv_Grade_Code, Inv_Item_Classes, Inv_Item_Codes, PS_DAILY_STANDING_DETAILS, T_So_Customer_Request, PS_DAILY_STANDING_DETAILS_FREZ, T_So_Request_Details, T_SO_ADJUSTED_QTY, T_SO_ACCRUAL_MASTER, T_SO_ACCRUAL_PRODUCTS
Now I have an ITEM_NUMBER column in the Inv_Item_Codes table (which I added in forT_SO_ACCRUAL_PRODUCTS LTS).
I select only that ITEM_NUMBER in analysis of BI to find only the ITEM_NUMBER in INV_ITEM_CODE, so that the query selection must be--
Select 0 distinct as c1.
D1. C1 C2
Of
(select distinct T2010613. ITEM_NUMBER C1
Of
SALES_E0. D1 INV_ITEM_CODES T2010613)
But the query I get in the nqquery.log file.
Select 0 distinct as c1.
D1. C1 C2
Of
(select distinct T2010613. ITEM_NUMBER C1
Of
SALES_E0. INV_ITEM_CODES T2010613,
SALES_E0.PS_DAILY_STANDING_DETAILS T2010846,
SALES_E0.PS_DAILY_STANDING_DETAILS_FREZ T2010861,
T_SO_CUSTOMER_REQUEST T2011274,
T_SO_REQUEST_DETAILS T2011561,
SALES_E0. T_SO_REQUEST_TRANSACTIONS T2011657
where (T2010613. ITEM_NUMBER = T2010846. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2010861. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2011561. ITEM_NUMBER and T2010613. ITEM_NUMBER = T2011657. ITEM_NUMBER and T2010846. CUSTOMER_NUMBER = T2011274. CUSTOMER_NUMBER and T2010861. CUSTOMER_NUMBER = T2011274. CUSTOMER_NUMBER and T2011274. REQUEST_NUMBER = T2011561. REQUEST_NUMBER and T2011561. ITEM_NUMBER = T2011657. ITEM_NUMBER and T2011561. LINE_NUMBER = T2011657. LINE_NUMBER and T2011561. REQUEST_NUMBER = T2011657. REQUEST_NUMBER)
) D1
I don't understand, why is the addition of these additional tables that I select only one column of the INV_ITEM_CODES table.
Does anyone have an idea about it, why he adds these additional tables in the query?
Thank you in advance for your help!
Gerard
[nQSError: 43119] Query Failed: [nQSError: 14025] indeed no table exists at the level of detail required
Possible reasons:
(1) level of content is not defined in the layer MDB of the SPR to one of the measures or dimension
Logical Table-> content-> logical level tab-> Fact1/Fact2/Dim1: Source
(2) Admintool WARNING: logical dimension table [39008]... a... a source that do not adhere to any source of fact.
-> to check business model (and by the way of physical model) diagram for: Fact1, Fact2, Dim1
(3) lack of aggregation method the measurement made ('Aggregation' of the measurement column tab)
-> set aggregation (perhaps ' amount') for measures
Looks like you have a lot of tables, but put them as sources of logical table, when they could not logically be related ' ' it... If you want you can send me your SPR and I can watch what you are doing.
-
Hi - I think adding memory RAM additional to my desktop HP Pavilion computer model 500-189, bought in February 2014. It runs under Windows 10 home ed., 64 bit with RAM total to 10 GB. The computer has 4 memory slots and currently only 2 are used: slot 1 has a card 2 GB Hynix/Hyundai 1600 MHz and slot 2 has a card 8 GB Kingston 1600 MHz.
I'm currently pondering adding a single 4 GB DDR3 1600 MT/s PC3-12800 CL11 map of 240 pin unbuffered UDIMM in each of the last two slots to bring the memory total amount up to 18 GB. The total cost would be less than US $40.
My question: This inexpensive upgrade will not improve the performance of my computer or is - this exaggeration only change?
Comments or suggestions would be greatly appreciated.
Graphene, welcome to the forum.
Now, we are dealing here with reviews. The sweet spot for memory seems to be 8 GB with Win 10. In fact, I read that you will be hard to see a difference between 8 and 16 GB. I use a laptop of Omen HP with 8 GB memory game. It manages all the games that I played very well. As you said, you already have 10 GB of memory and the processor is very fast.
Yet once, is discussed in the opinion. In my opinion, the best upgrade that can be done today is an SSD. My HP Omen loads games and programs incredibly quick and starts in 7 seconds or less. I used a Samsung EVO 840 500 GB SSD in HP Phoenix Gaming desktop computer. Again, it was incredibly fast. Here is the SSDthat are recommended by Crucial memory. They make great products for OEM computers. I found the research that Samsung SSD seem to work better with HP motherboards and normally don't require changes to the BIOS works properly out of the box. In addition, Samsung has its own Migration of data and Software Wizard software to fine-tune the SSD after installation.
This should give you pause. If you decide to go with an SSD, I'd be happy to tell you how I did the installation. It has worked well for me.
Please click on the button + Thumbs up if I helped you and click on accept as Solution If your problem is resolved.
-
Write to the table, adding additional rows in the csv file
Hi all
I created a program that measure current over time. It works well, but when I write to the spreadsheet, there are additional lines between the row of data.
I've created a header file, which is passed into the while loop where the data entered in a table and then entered in the worksheet. If I simply display the table, there is no additional lines, but when I open the file csv in excel, there are more lines. I'm pretty new to labview, but everything works the way I want to (it's a simple program) apart from that.
There is a trolley or jump back in your chain of row data. You can get rid of that by adding a "trim whitespace" function between the function of "visa read" and "replace the subset of the table.
-
Film released OK several clips, voice, subtitles, etc. Try adding a couple of logos starting and finishing and republish. Now, the States of files are missing when trying to publish. Any ideas? Thank you
All the original source (Photos, video clips, Audio clips) files are
still available in the original folders, they were imported from?You see any red Xs in the component Collections of Movie Maker?
If your additions are just at the beginning and at the end... you could try
import your duly completed. Film WMV file and add at the top
and ending to it. -
Adding additional drives to the content server
I intend to order the model of the device of the TCS (TCS-C220- PROBUN-K9). But the condition is to have more than 2 TB of Hard drive in this server. Model of the device comes with 600 GB of hard drive capacity (2 x 600 GB in RAID 1). I would add 6 slots to over 600 GB hard drives that there are 6 free on the server. Is this possible. If so, may I know the part number for the HARD drive. Thanks in advance.
Although you are able to do this, it is not a supported Cisco configuration.
The way to achieve additional storage available for a content server is to store the data on the external NAS.
Refer to the section Setting Up Media external storage of Executive Guide.
Wayne
--
Remember the frequency responses and mark your question as answered as appropriate. -
give if or for cases of xml query condition
Hi all
I have the query to generate xml below.
I would like to add in weather conditions that's if or case.
Suppose I want to give in employee tag provided
If e.comm is not null and e.sal > 1000 then this tag set complete should not display other wise.
for example:
This tag a commission and salary is greater than 1000 so this will show other wise tag of < employee > full will not be displayed.
< employee >
< > 7839 EMPNO < / EMPNO >
KING of < ENAME > < / ENAME >
< SAL > 1300 < / SAL >
< COMM > 100 < / COMM >
< / employee >
(SELECT XMLELEMENT
"Ministry."
XMLFOREST)
d.DEPTNO AS "Deptno."
(SELECT XMLAGG (XMLELEMENT)
"Employee."
XMLFOREST (e.empno,
e.Ename,
e.job,
e.Mgr,
e.HireDate,
e.SAL,
e.comm)
))
FROM emp e
WHERE e.deptno = d.deptno) "EmployeeList".
)
). EXTRACT ("*") AS "departments".
D DEPT
WHERE d.deptno = 10;
Please review.
Use a CASE, nothing special to XML here statement:
(SELECT XMLELEMENT
"Ministry."
XMLFOREST)
d.DEPTNO AS "Deptno."
(SELECT XMLAGG)
-CASE WHEN e.comm is not null and e.sal > 1000 THEN
XMLELEMENT)
"Employee."
XMLFOREST (e.empno,
e.Ename,
e.job,
e.Mgr,
e.HireDate,
e.SAL,
e.comm)
)
END
)
FROM emp e
WHERE e.deptno = d.deptno) "EmployeeList".
)
). EXTRACT ("*") AS "departments".
D DEPT
WHERE d.deptno = 10;
-
Adding additional disk to ESXi 4.1 Datastore on Dell PowerEdge R710
Greetings,
We currently have a Dell PowerEdge R710 with 6 SAS das drives configured in a RAID-1/RAID-5 configuration. A drive is configured as a global hot spare. I would add this spare drive in the RAID-5 table, where some virtual machines live, to recover additional space. Has someone managed to do this? Is the only way via the PERC BIOS management utility?
Thank you!
I'm not part "raid-1/raid-5. But assuming that the table is raid-5, then yes it is possible and yes the BIOS utility is necessary. The hot spare is currently set should be removed from this role, then added to the existing Bay raid-5, but without the ability to select increase. This will create free space on the raid-5 array on which then a new logical volume can be created, which will be then seen by ESX as a new drive and therefore another data store can be added to this (or it can be added to the first as a measure). HTH
Please give points for any helpful answer.
-
Hi, I am trying to incorporate if condition in my query
For example:
ST_id El_name El_cd
101 HAVE 1222
101 CS 1223
102 HAVE 1222
103 CS 1223
103 HAVE 1222
104 AI 1222
The query should give something like: If the student has two CS and then bought by default CS should be driven out to this student special, otherwise some elective is present that should be the outcome.
I tried the query in the form
Select st_id, case when el_cd in ('1222 ', ' 1223') and then decode (el_cd, ' 1223', el_name) of the student.
But this request is send me a CS student selected elective CS and gives me null when the option is 'HAVE '. What function can I use or how to modify my query...
Any suggestions appreciated...Hello
Here's one way:
WITH got_r_num AS ( SELECT st_id, el_name, el_cd , RANK () OVER ( PARTITION BY st_id ORDER BY CASE WHEN el_name = 'CS' THEN 1 WHEN e1_name = 'AI' THEN 2 END ) AS r_num FROM student WHERE el_name IN ('AI', 'CS') ) SELECT st_id, el_name, el_cd FROM got_r_num WHERE r_num = 1 ;
It is easier to maintain and more general solution.
Depeneding on your data and your needs, you could also do something like:SELECT st_id , MAX (el_name) AS el_name , MAX (el_cd) KEEP (DENSE_RANK LAST ORDER BY el_name) AS el_cd FROM student GROUP BY st_id ;
Published by: Frank Kulash, December 21, 2011 06:50
-
Adding additional disk space to Perc 6 / i server R710
I have currently 3 250 GB installation as a raid 5 (original configuration) disks on a server R710 with a Perc 6 / i controller. I ordered 3 discs (same readers) that we are running out of disk space. There is a set up disk C: and D:. Can someone point me to instructions for adding these additional disks for the raid existing (drive D) without having dataloss?
Thank you
Gary
If you don't have that one 'disk' listed in disk management, then you have only a single VD configured, which is good.
You must install OMSA to broaden your VD. You then insert your new drives, make sure that they show as ready under physical disks, then go to virtual disks and select Reconfigure to your RAID 5. Adding two drives in your RAID 5 will add about 500GB (bit math makes it a little less) to your current Windows 'disk '. After the reconfigure statement, you will have something similar to below. Then, assuming that you do not run 2003, you click on the D: drive and choose Extend to finish with the second photo:
-
PE T610 - Perc 6i - strange state after adding additional drives
Hello
We have a PE T610 with a PERC 6i controller.
X SATA 1: 2 250 GB virtual disk in a RAID-1
X SATA 2: 3 500 GB of disk virtual in a RAID-5
We have added 3 additional 2 TB drives to the server. A drive has been designated as a Global Hot Spare. Two other readers have been added to the Bay RAID-5.
I predicted, using 500 GB each among the readers added two for Virtual Disk 2. Then, I had planned to use the other 1.5 to among the readers as Virtual Disk 3 in a RAID-1 array. I did it with other servers in PE in the past.
But after that the 500 GB is used from each of the discs, I can't used the remaining unused space. It shows the 'available RAID disk space' as 0.00 GB.
Why the remaining space on these disks is not available for me to use?
Thanks for any help on this.
Bryan Hunt
«I've waited with 500 GB each among the readers added two for Virtual Disk 2.» Then, I had planned to use the other 1.5 to among the readers as Virtual Disk 3 in a RAID-1 array. I did it with other servers in PE in the past. »
This was allowed on a VERY small number of controllers found in Dell servers. Anyway, you can do that on 6 PERC. You can replace your existing 3 drives with 2 TB drives, then create a second table (6 to) on the disks (all disks in a disk group must have the amount of space available and impossible to replace the drives with the greatest and to increase the existing RAID array size).
-
Adding additional memory to Satellite 1900-303
I'm trying to locate the original 256 MB of ram upgrade to 512 but can't find it! I already added a 512 in the spare slot and works well, but where the hell is the original? He says there are two openings in the manual... help please
Hi rockpebblar_1,
What model of laptop you have exactly?
On some laptop computers, you can find a location of memory under the keyboard. This means that you need to remove the keyboard first before you can exchange the RAM.
-
I've added some Rams, dvd player and hard drive on my desktop pc HP Pavilion P7-1235.
All have been recognized "Rams, dvd and HDD player" in office management.
My problem is that I can't access the new disc hard second "seagate barracuda 1 TB" because it does not show on my computer page.
The new dvd player is there but not the hard drive.
Q What should I do to access this new second hard drive.
Access the "computer management / Disk Management Console" and initialize the disk. See http://www.brighthub.com/computing/hardware/articles/22069.aspx for more information, if necessary.
Please send Bravo
-
Pavilion P6-2125 - adding additional hard disks
Nice day.
Can I add additional hard disks SATA internal? Is the power supply sufficient to allow this? In addition, this will void the warranty?
Thank you, Joe
Hi, Joe:
When I look at the upgrade and maintenance of your PC guide, I don't get a hard drive Bay.
So, I would say that your PC is not configured to handle more than one hard drive.
http://h10032.www1.HP.com/CTG/manual/c03030603.PDF
Paul
-
Added additional icons on the main screen
Hey.
I was wondering how to add additional icons to the main screen which calls in my application and limitations with this stuff. Limitation on the number of icons of an application, what kind of parameters can be passed in.
Best regards.
Each of the entry points serve a different function? If Yes, then there is no way to program hide the icon; It will be either hidden (module system) or visible.
You can use the ApplicationManager to launch your application and use some value/info you must distinguish what entry point to run.
Maybe you are looking for
-
How can I disable the sound kick when a new tab or window opens?
I don't like the noise, which does nothing for me and it's embarrassing. Please tell me how to turn it off!
-
Can someone tell me why 'Script Skipper' has been disabled by the administrator?
I'm looking for a script that disables javascript prior to load a Web page. I was told that the Script Skipper is such an addin. But this script has been disabled by the administrator. Can someone tell me why?
-
Download the file with progress data?
Hello I'm looking for a way to download files from a known location, but in a way to have a download progress bar. Is this possible? I started watching DataSocket and http GET vi and I managed to download files from the Public folder on my Dropbox (w
-
problem with webcam integrated no imagery
I think that there is something that lost my webcam does not work.
-
At end, trying to get wireless printer Brother HL2270DW to connect with the WRT54G. Having installed the latest firmware. Brother says Setup Wizard installation is over, but the printer continues to be "Offline". Any ideas?