How to choose the item value list based on another value of list item
Hello friends,I have two list items named xxx and yyy... OK, my problem is I want to choose a value of yyy list item based on the value of article xxx...
Example: I select 'Computer' in xxx... Based on this I want to choose the item values in yyy as a monitor, keyboard, mouse, etc... This must be done at run time. How can I do this... Give me a few examples of code [pls tell me trigger appropriate to place this encodings]
Thanks in advance,
Battistelli
Very simple to use the LOV and query of the lov which is attached to the YYY field, use the query as below...
SELECT columns
FROM table
WHERE column_name = :XXX_FIELD
Use the ENTER OF LIST Yes property for the YYY field.
-Clément
Tags: Oracle Development
Similar Questions
-
How to choose the textfield values form and calculate
Treat all
Urgent please help
How to choose the textfield values form and calculate totals. IE when clint fill amount textfield other textfields automatically calculate and display values. I am using uninstall.
Thanks in advance
My code is more
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"
< title > Untitled Document < /title >
< / head >
< body >
< table width = "400" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
< tr >
< td width = "187" align = "right" valign = "middle" class = "KT_th" > < strong >
< label for = "amount_gbp" > total (GBP): < / label >
< / strong > < table >
< td width = "14" height = "30" > < table >
< td width = "199" height = "30" > < label >
< input type = "text" name = "textfield" id = "textfield" / >
< / label > < table >
< /tr >
< tr >
< td align = "right" valign = "middle" class = "KT_th" > < strong >
< label for = "admin_char_gbp" > Admin amount (GBP): < / label >
< / strong > < table >
< height td = "30" > < table >
< height td = "30" > < label >
< input type = "text" name = "textfield3" id = "textfield3" / >
< / label > < table >
< /tr >
< tr >
< td align = "right" valign = "middle" class = "KT_th" > < strong >
< label for = "agent_char_gbp" > Agent Charges (GBP): < / label >
< / strong > < table >
< height td = "30" > < table >
< height td = "30" > < label >
< input type = "text" name = "textfield4" id = "textfield4" / >
< / label > < table >
< /tr >
< tr >
< td align = "right" valign = "middle" class = "KT_th" > < strong >
< label for = "total_amount_gbp" > amount Total (GBP): < / label >
< / strong > < table >
< height td = "30" > < table >
< height td = "30" > < label >
< input type = "text" name = "textfield6" id = "textfield6" / >
< / label > < table >
< /tr >
< tr >
< td align = "right" valign = "middle" class = "KT_th" > < strong >
< label for = "total_paid_gbp" > Total paid (GBP): < / label >
< / strong > < table >
< height td = "30" > < table >
< height td = "30" > < label >
< input type = "text" name = "textfield7" id = "textfield7" / >
< / label > < table >
< /tr >
< tr >
< td align = "right" valign = "middle" class = "KT_th" > < strong >
< label for = "balance_gbp" > balance (GBP): < / label >
< / strong > < table >
< height td = "30" > < table >
< height td = "30" > < label >
< input type = "text" name = "textfield8" id = "textfield8" / >
< / label > < table >
< /tr >
< /table >
< / body >
< / html >
Here´s a pointer which will show you how to set the calculation within a javascript function: dynamically calculate the sum of the fields
See you soon,.
Günter
-
How to choose the maximum value in a column of a table by using the cursor and iteration
Hello everyone
I have a table loan_detail
and a column inside loan_amount
now I want to take the values in this table with the cursor, then using iteration that I want to take a max value of him using this slider
Here is my table
I could make using the concepts of single loop, but when I tried to do by using the slider I wasn't able to do.LOAN_AMOUNT 100 200 300 400 500 5600 700
Concerning
ProstYou can get the maximum value for a particular column in SQL, PLSQL needn't; Always avoid PLSQL so you can do it in SQL. But always as an example:
declare
number of Temp: = 0;
Start
for news in some loan_amt of loan_detail
loop
If (temp
end if;
end loop;
dbms_output.put_line (temp);
end;Edited by: Mahanam January 5, 2011 03:11
-
How to choose the lowest value of the record
I would return the lowest bidder of the recording of the same rental date and call number.SELECT v.vendor "Vendor Id", INITCAP (v.vnames) "Vendor Name", B.DATELET "Letting Date" ,d.call "Call Number", TO_CHAR (d.calcbtot, '$99,999,999.99') AS "Bidders Estimate", TO_CHAR (SUM (q.qty * q.price), '$99,999,999.99') AS" Enginers Estimate" FROM letprop l, proposal p, propitem q, bidlet b, bidtabs c, itemlist i, vendor v, bidders d WHERE (l.letting = b.letting) AND b.letting = c.letting AND p.cspecyr = i.ispecyr AND q.prpitem = i.item AND p.contid = l.lcontid AND q.contid = p.contid AND c.vendor = l.avendor AND l.CALL = c.CALL AND q.lineflag = c.lineflag AND q.iplineno = c.iplineno AND l.letting = d.letting AND c.letting = l.letting AND c.CALL = d.CALL AND c.letting = d.letting AND v.vendor = d.vendor AND l.letstat = 'A' AND b.datelet between to_date ('2007/01/01', 'yyyy/mm/dd') AND to_date ('2011/12/31', 'yyyy/mm/dd') GROUP BY v.vendor, v.vnames, d.calcbtot, (d.calcbtot / l.contamt), B.DATELET, d.call ORDER BY b.datelet, "Bidders Estimate";
Vendor Id Vendor Name Letting Date Call Number Bidders Estimate Enginers Estimate K0030 Interstate Improvement Inc 01/26/2007 00:00:00 009 $190,601.40 $209,895.00 M110 Mankato Electric Inc 01/26/2007 00:00:00 015 $216,790.00 $213,000.00 C470 Collisys 01/26/2007 00:00:00 015 $222,426.00 $213,000.00 K110 Killmer Electric Co Inc 01/26/2007 00:00:00 015 $223,386.00 $213,000.00 E110 Egan Company 01/26/2007 00:00:00 015 $225,740.00 $213,000.00 G0034 Granite Ledge Electrical Contractors Inc 01/26/2007 00:00:00 015 $226,750.00 $213,000.00 B500 Carl Bolander & Sons Co 01/26/2007 00:00:00 014 $227,227.00 $274,104.98 M0069 Mattison Contractors Inc 01/26/2007 00:00:00 014 $231,340.03 $274,104.98 T0041 Three Rivers Construction Inc 01/26/2007 00:00:00 014 $237,623.00 $274,104.98 M110 Mankato Electric Inc 01/26/2007 00:00:00 012 $238,971.20 $253,700.00 R290 Ridgedale Electric Inc 01/26/2007 00:00:00 015 $247,900.00 $213,000.00
desired out put is this one. K0030 Interstate Improvement Inc 01/26/2007 00:00:00 009 $190,601.40 $209,895.00 M110 Mankato Electric Inc 01/26/2007 00:00:00 015 $216,790.00 $213,000.00 B500 Carl Bolander & Sons Co 01/26/2007 00:00:00 014 $227,227.00 $274,104.98
Maybe this? I used the dense rank as if two bidders have bid even then both of them will be selected. If you just want one, replace it with row_number()
SELECT * FROM ( SELECT v.vendor "Vendor Id", INITCAP (v.vnames) "Vendor Name", B.DATELET "Letting Date", d.CALL "Call Number", TO_CHAR ( d.calcbtot, '$99,999,999.99') AS "Bidders Estimate", TO_CHAR ( SUM (q.qty * q.price), '$99,999,999.99') AS " Enginers Estimate", DENSE_RANK () OVER ( PARTITION BY v.vendor, v.vnames, d.calcbtot, (d.calcbtot / l.contamt), B.DATELET, d.CALL ORDER BY TO_CHAR ( d.calcbtot, '$99,999,999.99') ASC ) RN FROM letprop l, proposal P, propitem q, bidlet b, bidtabs c, itemlist i, vendor v, bidders d WHERE (l.letting = b.letting) AND b.letting = c.letting AND P.cspecyr = i.ispecyr AND q.prpitem = i.item AND P.contid = l.lcontid AND q.contid = P.contid AND c.vendor = l.avendor AND l.CALL = c.CALL AND q.lineflag = c.lineflag AND q.iplineno = c.iplineno AND l.letting = d.letting AND c.letting = l.letting AND c.CALL = d.CALL AND c.letting = d.letting AND v.vendor = d.vendor AND l.letstat = 'A' AND b.datelet BETWEEN TO_DATE ( '2007/01/01', 'yyyy/mm/dd') AND TO_DATE ( '2011/12/31', 'yyyy/mm/dd') GROUP BY v.vendor, v.vnames, d.calcbtot, (d.calcbtot / l.contamt), B.DATELET, d.CALL ORDER BY b.datelet, "Bidders Estimate") where rn=1
G.
-
Hi all
I have the following data
Pat_id Pat_enc_csn_id Dept_id Admit_date
Z2694664 57982980 4055001 16/05/2014 13:21 Z00624559 57760008 2055050 08/05/2014 14:37 Z00624559 57760008 2055076 08/05/2014-21:06 My requirement is to get the max dept or the date of maximum admission for each patient. my output should therefore
Pat_id Pat_enc_csn_id Dept_id Admit_date
Z2694664 57982980 4055001 16/05/2014 13:21 Z00624559 57760008 2055076 08/05/2014-21:06 can someone help me with the code please. using 11 g.
(Note: there are several number of patients not only 2)
Thank you.
with t as)
Select p,
ROW_NUMBER() over (partition by Pat_id of Admit_date desc order) rn
from your_table p
)
Select Pat_id,
Pat_enc_csn_id,
Dept_id,
Admit_date
t
where rn = 1
/
SY.
-
Hi all
How to choose the value of a string are letters (for example, TEST) and all numeric...
for example
TEST 123456
TEST 34567
123456 ABCD
1234 TEST
TESTING 12345
TEST 1@234$
YOUR T 123456I want the results of the query as below.
TEST 123456
TEST 34567And I tried to use regexp_like in this case but without success. See the code below.
SELECT * FROM TABLE WHERE regexp_like (Description, ' [TEST] % & [[: digit:]] + $');How can I do this, please answer.
Thank you
WF
If you want to return only the rows that contain the string 'TEST', followed by zero or more space characters, followed by one or more digits?
How about this:
SELECT *.
FROM my_table
WHERE REGEXP_LIKE(description,'^TEST\s*\d+$')
-
How to change the default value of a parameter and LOV attached to a parameter
Hi all
I'm new to the discoverer reports and I need the following tasks:
1. the need to change the SQL of a discoverer report
2. need to change the default value of the parameter (from constant for the current month). In the discoverer more responsibility when I open the report and go to tools > > setting > > edit
I can see the value of the default constant is given. On the right side there is a drop down that says "Value". I suppose that if I put a SQL as default, I need to change the drop-down list for sql or something and then put the code SQL. Problem is the menu drop-down is froezen and I can't change it.
Even if I try to create a new report parameter.
3 need to change the LOV associated with the element on which is based the setting.
I have the discoverer more responsibility to myself and did not have the discoverer administrator (as forms 6i developer desktop tool) tool. My questions are:
1. can I modify the SQL query using discoverer and responsibility or do I discoverer Administrator tool?
2. any help on how to get the default value of an SQL query? Currently, it is a constant value.
3. is there a way to understand is that the LOV is made of the constant values fixed (as a set of values independednt) or they are read in a SQL (value valid table sets)?
Solutions pointers will be greatly appreciated!
Thanks in advance.
Thank you and best regards,
ShashankIt is not possible to use a default calculation for a paraeter
-
HP pavilion 15-e034tx: how to choose the right RAM for laptop
How to choose the right RAM for my laptop (Pavilion 15-e034tx). I know I should buy DDR3 ram.
Are there other factors should I consider when buying one? I got 2 slots for ram, which od these combos are possible?
1-4 + 4 GB
2-4 GB + 8 GB
3-8 GB + 8 GBThank you
From the Manual:
Two customer accessible/upgradable memory module slots
Support for dual channel DDR3L (1600 MHz)
Support 8192 MB RAM system in the following configurations:
8192 MB (8192 MB × 1, × 4096 MB 2)
See page 53 for instructions. Memory access is easy via the service Panel. This is the part number for the approved 4 HP concert module:
4 GB (PC3L, 12800, 1600 MHz) 691740-001
A 8 GB module is listed in the manual, and it's a 3rd generation of processor i5 I suspect 2 x 8 = 16 concerts would work, but strictly following the manual your only option is to add a 4 GB for a total of 8. Most users really not more 8 GB and adding a second identical module will allow two-channel operation, so you should see a noticeable jump in the overall performance.
If it's 'the Answer' please click on 'Accept as Solution' to help others find it.
-
How to choose the scheme of work of a different database instead of the database target
Hi everyone, can you please answer to my problem.
Q1.is it is mandatory that the two target schema schema and work must present in a database.if not then How to choose the scheme of work of another data base instead of target database schema. Please suggest.
__Description__
My work, my work patterns in odi's in a database schema and target in a different database,
Now I'm dataserver with identification of the target or credentials of scheme work information.
Here's the problem.
I can't see scheme of work in the drop-down list when you create the physical schema with data server with the credentials of the target.
It's obvious that he cannot show the workschema which presents in an another database.because - database server has the schema of the target database credentials.
Vice versa
Please suggest
Concerning
ChantalHello
Your KM will create the tables for working in the schema, you write to and that's why you have the problem:
create table< %="odiRef.getTable" ("l",="" "int_name",="" "w")="" %="">
I don't know of an option to replace this 'W' that will say 'go and get work in the staging area, I've specified.
I guess that you can customize the KM and pass all the commands to Execute on the Source tab, or I guess you could specify the schema for each of the steps to be the logic diagram of the various staging areas.
BUT I don't know if it would work throughout and I think it will create a massive Mount of work unnecessarily.
Is there a decent reason why you can not have the staging area on the target?
-
DVT:pivotFilterBar - how to get the selected values of the filter
Hi all
I have a question: how to get the selected values from the pivot table filter bar programmatically?
I tried to use
but to the edge of the side DATA INCORRECTESdeclarations page, it seems that it will return the cached values.pivotTable.getDataModel().getDataAccess().getValueQDR(startRow, startCol, DataAccess.QDR_WITH_PAGE);
Environment: JDev 11.1.1.3.0 without tasks.
Thank you
MiroslawHello
You can retrieve the value selected in the PivotFilterBar through the PivotFilterBar model, instead of dataaccess:
Download the template of the bar pivot filter instance
QueryDescriptior queryDescriptor = (QueryDescriptor) pivotFilterBar.getValue ();retrieve a list of criterion, each of them is used to fill each lov in the pivot filter bar
ConjunctionCriterion conjunctionCriterion = queryDescriptor.getConjunctionCriterion ();
ListcriterionList = conjunctionCriterion.getCriterionList ();
for (int i = 0; i)<_criterionList.size(); i++)="">
AttributeCriterion = (AttributeCriterion) criterionList.get (i) criterion._selected is the currently selected value
Selected object = criterion.getValues () .get (0);System.out.println (_selected);
}Hope that helps,
Chadwick -
How to get the RGB value of a pixel in a psd document using scripting Photoshop
Hi, guys! Does anyone know how to get the RGB value of a pixel in a psd document using scripts in Photoshop? I myself have missed for a long time and could not resolve. I am very happy to hear your voice as soon as possible!
Here is an example...
var originalUnits = app.preferences.rulerUnits; app.preferences.rulerUnits = Units.PIXELS; var doc = activeDocument; var Colour1 = GetHexColour(eyeDropperRGB(1,doc.height-1)); var Colour2 = GetHexColour(eyeDropperRGB(20,doc.height-5)); var Colour3 = GetHexColour(eyeDropperRGB(40,doc.height-14)); alert("Colour 1 = " +Colour1 + "\rColour 2 = " +Colour2 + "\rColour 3 = " +Colour3); var decColour = eyeDropperRGB(40,doc.height-14); alert("Red = " +decColour[0] + "\rGreen = " +decColour[1] + "\rBlue = " +decColour[2]); app.preferences.rulerUnits = originalUnits; function GetHexColour(reqHex){ var out=''; for(No in colours = reqHex){ out = out.concat(zeroPad(d2h(reqHex[No]),2)); } return out; }; function eyeDropperRGB(x,y) { var x2 = x + 1; var y2 = y + 1; var out = new Array(3); activeDocument.selection.select([[x,y], [x2,y], [x2,y2], [x, y2]], SelectionType.REPLACE, 0, false); for(ch in list = ["Red", "Green", "Blue"]) { histogram = activeDocument.channels[list[ch]].histogram; for (i = 0; i <= 255; i++) { if (histogram[i]) { out[ch] = i; break; } } } return out; }; function d2h(d) {return d.toString(16);} function zeroPad(n, s) { n = n.toString(); while (n.length < s) n = '0' + n; return n; };
-
How to choose the display by default when you use two screens on my Mac Pro?
How to choose the display by default when you use two screens on my Mac Pro?
The default view when you have several is made that you drag the little icon in the menu bar in this pane:
.
-
I just shared (exported) a project that is a simple take a clip for a friend who has downloaded on its website. The problem is that, when the video ends by playing on his site, he returned to a freeze frame that seems completely random and is not the image I want. How to choose the exact image that the video will return as "thumbnail by default?"
Thank you
Kevin
Cannot set lla at the FCC. Many layout site Web apps will allow you to set the poster frame for the video files.
-
How to restore the item recent tabs to favorites tree? I accidentally deleted.
How to restore the item recent Tags to favorites tree? I accidentally deleted.
See:
Or create a new bookmark:
Name: Recent Tags Location: place:type=6&sort=14&maxResults=10
Close and restart Firefox.
-
How to choose the download location? download automatically to the users in c drive folder... I want to change my office... Please help me out...
Tools-> Options-> save-> click on the Browse button and find the folder where you want to save the files.
Maybe you are looking for
-
Need Estudio232 Linux driver to activate booklet print
I have an estudio232. Under Windows, I can clarify that a print job uses a different tray to print the cover, which allows me to print a booklet with a different color cover. It is essential for an aspect of my work. Under Linux, the printer driver s
-
Problems with my iphone apps 6. Glitch or Virus?
One of my deleted apps downloaded by itself. It of just a bug, or is it a virus? My phone is not jail broken, but I used an extension online app / generator that was not part of the appstore. I didn't get my email on this extension, and then it looke
-
HELP "ARD" (Apple Remote Desktop)
If you use apple remote desktop, you will have to enter the username and password for the computer you are trying to connect to? And can connect to windows computers? I'm getting a mac soon and I wanted to know this answer.
-
Samples of output by release, with all the preloaded samples
Hello I was wondering if it was possible to (Using matlab and labview) preloads all the samples on the acquisition of data, and each trigger card, it displays the following value (rather than all of them, which is the default setting) IE load (0 5 9
-
Xw8200: Error on Boot to Sata cable
During startup, the message begins by "mistake of the Sata cable 1796" and indicates the color of the cable and will there be a performance issue. " I have four hard drives and a player. Anyway, I changed the layout of the insert and what ever I do