More than one UNION in a LOV select statment ??
Why can you only have one union in the select code for a LOV?
If I try to union more than two select statements I get ...
1 error has occurred
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
Paul P
Opps!
Sorry, I had an error in the 3rd SQL statement. Works fine
PP
Similar Messages
-
How can i select more than one record in a LOV
I want to select more than one record in a LOV and put them together before to display them in an item.
This is not possible with a default LOV, so you'll need to create your own. There are a number of ways to select multiple records:
a) you can use a tree and set Multi-Selection to Yes
2) you can use a normal block with a checkbox on each row for the user to select records
three) with the [SYSTEM.MOUSE_BUTTON_MODIFIERS|http://www.oracle.com/webapps/online-help/forms/10g/topics/designing_forms/mouse/at0604.html?tp=true] variable you can allow users to ctrl+click to select many records in a block. set the background colour to indicate a record has been selected
iv) there is a pjc in the [demo code section|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] which lets you select many rows in a poplist -
Query fails with more than one UNION
Hi,
my query stops producing results (with same input) when trying to UNION more than two tables.
Moreover, it seems to have a "bad memory". See the following snippet:
-- old events
SELECT creationTime, eventId
FROM errorEvents
UNION
SELECT creationTime, eventId
FROM successEvents
-- new events
UNION
SELECT creationTime, eventId
FROM interactiveSuccessEvents
UNION
SELECT creationTime, eventId
FROM interactiveErrorEvents
1. Starting with the above (considering only the lower SELECT - with a single UNION produces good results.
2. Un-remarking to consider the 4 tables (3 UNIONs) produces no results at all - with same input data.
3. Remarking again, still does not produce results.
4. I get the expected results only after removing major parts of the query (and then bringing it back)
is more than 1 UNION not supported?
Thanks,
YoramThe inputs are from different event hubs.
I have checked the logs and no errors are reported. The logs also report inputs, but no outputs.
I haven't verified it, but its possible that I had some outputs after a huge delay - I've noticed some output lines that I suspect are from the same "4-union query". If these lines are indeed from the same query - the delay was few hours.
I've never had this with the 2-union version - but may be coincidence... -
How To Get more than one Return Values in LOV ADF
In ADF LOV, I can get only one return value;
How can I Get more than one values like in Oracle Form?
SomeOne can help me?
Thanksyou may add more <set> tag like the following:
<event name="lovSelect">
<set property="inputValue" value="${bindings.Id.inputValue}" target="${data.work_workBusinessViewUIModel.buyCompanyId}"/>
</event>
or you can implement your Action -
Selecting more than one checkbox in selectManyListbox
Hi,
Please let me know how to select more than one checkbox by default.
The below code just selects the checkbox with value being 2 as it matches with the attribute value=2 of the <af:selectManyListbox>
<af:selectManyListbox value="2">
<af:selectItem label="One" value="1"/>
<af:selectItem label="Two" value="2"/>
<af:selectItem label="Three" value="3"/>
<af:selectItem label="Four" value="2"/>
<af:selectItem label="Five" value="5"/>
</af:selectManyListbox>
Incase if more than one checkbox has to be selected, how should the code look like?
Regards,
AshaHi,
the value property should point to a managed bean with a variable defined that is exposed through getter and setter. The reference is through EL. Selecting the check boxes then will create a List of values returned (which means your variable in the managed bean is a list to)
Frank -
hello,
in my page, i use more than one ResultSet like:
ResultSet rs_car = "select * from ...";
ResultSet rs_van = "select * from ...";
ResultSet rs_truck = "select * from ...";
ResultSet rs_test = "select * from ...";
while (rs_car.next() {
while (rs_van.next() {
while (rs_truck.next() {
while (rs_test.next() {
why don't it work?
I ever become an "RecordSet closed"-Error
thxhy
This is just solution,
where is statment ?
If there is more code ...but try this
ResultSet rs_car = "select * from ...";
while (rs_car.next() {
ResultSet rs_van = "select * from ...";
while (rs_van.next() {
ResultSet rs_truck = "select * from ...";
while (rs_truck.next() {
ResultSet rs_test = "select * from ...";
while (rs_test.next() {
try by -
How can we select more than one item from LOV in Query_Find form?
Hi,
I have a requirement i.e i want to select more than one customer number seperated by comma from the customer number lov field in the query_find form.How can we write the code for this requirement?
and after clicking find it has to display notification form which contains the details of customer which you selected from Custome query_find form.
Could you please help me out.
Thanks in Advance,
DhanaFound the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway. -
Select more than one value at a time from an LOV?
Is it possible to configure an LOV-based text field so more than one value at a time can be chosen from the drop-down LOV list? This is a user requirement for specifying multiple values in an SQL WHERE clause.
Rather several select fields because single returned value is a functional limitation of <select>.
-
How can I select more than one song from the search results?
I want to create playlists based on certain words in the song title. For example, I may want to create a playlist of all my songs with LOVE in the title.
Doing the search is easy, but I can't select more than one song at a time. Is there any way in iTunes 12 for Windows to do this? I found an answer in iTunes for Mac, and it basically says to "un-check "Search Entire Library." " but I don't see that option in iTunes for Windows.
Here is the link to that question: how can i select more than one song from drop down search bar
I hope some Windows user can help me out.Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway. -
How to select a substring in oracle up to a more than one specific character
How to select a substring in oracle up to a more than one specific character
for ex : 121.051^NP: FAMILY PRACTICE ( trim the values before ^ )
121.051^*NP: FAMILY PRACTICE (trim the value before *).
with below function I can only get rid of ^ , I want both the specific characters ^ and ^* to be removed at the same time.
SUBSTR(p.phys_sub_grp_2_desc,INSTR(p.phys_sub_grp_2_desc, '^') +1)Another option is to boldly replace 'em:
SQL> with t as (
2 select '121.051^NP: FAMILY PRACTICE' str from dual union
3 select '121.051^*NP: FAMILY PRACTICE' from dual
4 )
5 --
6 -- actuel query:
7 --
8 select substr( replace(str, '*')
9 , instr(replace(str, '*'), '^')+1
10 ) str
11 from t;
STR
NP: FAMILY PRACTICE
NP: FAMILY PRACTICE
2 rows selected. -
GetSelectedRowKeys() returns more than one on Single Selection Tree Table
Hi,
I found that this issue occurring after PS3 (I think.)
I have a tree table component, which allows single row selection. There is a listener on a column of the tree table as follows:
public void listenPackageUnit(ValueChangeEvent valueChangeEvent)
Object oldKey = getTreeComponent().getRowKey();
try
* Retrieve index of selected package unit
* NOTE: Subtract 1 to remove no selection value. This only
* needs to be done if attached LOV has No Selection option set.
if (valueChangeEvent.getNewValue() != null)
Row row = null;
String selectedPackageUnit = null;
int packageUnitIndex = (Integer) valueChangeEvent.getNewValue();
packageUnitIndex--;
* Due to the no selection item, we need to prevent search of regular
* iterator if index is < 0. In this case we know the user selected
* the no selection (blank) value.
if (packageUnitIndex >= 0)
* Using index, determine the value of the selected package unit
DCIteratorBinding packageUnitsIterator =
(DCIteratorBinding) PasUiADFUtil.resolveExpression("#{bindings.PackageUnitsIterator}");
Row newRow =
packageUnitsIterator.getRowAtRangeIndex(packageUnitIndex);
selectedPackageUnit = (String) newRow.getAttribute("LookupCode");
RowKeySet selection = this.getTreeComponent().getSelectedRowKeys();
if (selection != null && selection.getSize() > 0)
for (Object facesTreeRowKey: selection)
this.getTreeComponent().setRowKey(facesTreeRowKey);
JUCtrlHierNodeBinding rowData =
(JUCtrlHierNodeBinding) this.getTreeComponent().getRowData();
row = rowData.getRow();
setSelectedLabel((String) row.getAttribute("Label"));
setSelectedLabelType((String) row.getAttribute("LabelType"));
row.setAttribute("PackageUnit", selectedPackageUnit);
getTreeComponent().setRowKey(oldKey);
finally
getTreeComponent().setRowKey(oldKey);
The issue is that getSelectedRowKeys() returns more than one when the user selects a child row in the tree table.
It seems to be returning the total number counting from the top parent through the child.
(For example, if the child is the second generation, it returns 2, and if the third generation, it returns 3.)
This is causing the issue that the method tries to update the attribute of the parent row with a value for the child row. (And it fails, because the attribute is updateable only while new.)
I remember getSelectedRowKeys() always returned one, the selected child itself, when I coded this around October, 2010.
Is this a design change after PS3? Why does it return more than one though the tree table is for single selection?
How can I get around this issue?
It would be truly appreciated if we can get any quick help, since we are at final testing phase of our product.
Thank you,
TomoHi Vinod,
I found the solution. Thank you very much for your suggestions. :)
Now my listenSelection (custom listener of the tree table) looks like below:
public void listenSelection(SelectionEvent selectionEvent)
Row currentRow;
PasUiADFUtil.invokeEL("#{bindings.TransactionLabelTopLevelVO1.collectionModel.makeCurrent}",
new Class[] { SelectionEvent.class },
new Object[] { selectionEvent });
Object oldKey = getTreeComponent().getRowKey();
try
if (this.getTreeComponent() != null)
RowKeySet rks = this.getTreeComponent().getSelectedRowKeys();
Iterator keys = rks.iterator();
while (keys.hasNext())
List key = (List) keys.next();
this.getTreeComponent().setRowKey(key);
JUCtrlHierNodeBinding node =
(JUCtrlHierNodeBinding) this.getTreeComponent().getRowData();
if (node != null)
currentRow = node.getRow();
if (currentRow != null)
this.setSelectedRow(currentRow);
setSelectedLabel((String) currentRow.getAttribute("Label"));
setSelectedLabelType((String) currentRow.getAttribute("LabelType"));
String shippedItemFlag =
(String) currentRow.getAttribute("ShippedItemFlagValue");
if (shippedItemFlag != null && shippedItemFlag.equals("1"))
setDisableAdd(true);
else
setDisableAdd(false);
finally
getTreeComponent().setRowKey(oldKey);
/* Refresh Action menu and buttons */
RequestContext.getCurrentInstance().addPartialTarget(this.getActionMenu());
RequestContext.getCurrentInstance().addPartialTarget(this.getToolbar());
And my tree table is like below:
<af:treeTable value="#{bindings.TransactionLabelTopLevelVO1.treeModel}"
var="node" rowSelection="single" id="tt1"
contentDelivery="immediate" fetchSize="25"
emptyText="#{bindings.TransactionLabelTopLevelVO1.viewable ? commonFoundationMsgBundle.NO_DATA_TO_DISPLAY : commonFoundationMsgBundle.ACCESS_DENIED}"
selectionListener="#{pageFlowScope.MaintainTransactionSerialAssociationBean.listenSelection}"
binding="#{pageFlowScope.MaintainTransactionSerialAssociationBean.treeComponent}"
summary="#{maintainAssociationUiBundle.CONTAINER_SERIAL_HIERARCHY}">
<!-- Row Header -->
The listener is now always getting the currently selected row only.
Tomo -
LOV Return more than one value to differenent items on page
New to express. I need to returm more than one value from list of LOV. For example: LOV => select a, b, c from testtable
I would then like to
a to populate item1 => with submit
b to populate item2 => hidden
c to pupulate item3 => hidden
as items on my page
when a user chooses a (with submit) in item1 b and c would populate also, b and c are hidden to the user. Any advice?Dear Frank
I did it as like as the following link lead me:
http://www.oracle.com/technology/obe/obe11jdev/11/adfbc_new_features/adfbc.html
The problem has been appeared when I attached the "Create" button and when press on it to create new record, then the "LOV" couldn't work correctly.
Thanks for your reply -
Select distinct('more than one column') from ....
Why does this sql statement not work:
select distinct(column_a, column_b, column_c), empno
from emp;
How can I 'select distinct' using more than one column.Actually, DISTINCT applies to all columns in the result.
Distinct is not a function, you cannot do distinct(column1, column2, ...).
As a matter of fact it doesn't make sense to expect distinct applies to only one column, because you do not specify any criteria on how to select the values for the second column.
A final note: you can do distinct(column1), column2, but this will still apply to both columns!
Here're some examples that will all return both rows from the set, where set is: (1,1), (1,2):
select distinct val1, val2
from
select 1 as val1, 1 as val2 from dual
union all
select 1 as val1, 2 as val2 from dual
select distinct val1||'-'||val2
from
select 1 as val1, 1 as val2 from dual
union all
select 1 as val1, 2 as val2 from dual
select distinct(val1), val2 -- this is very misleading. distinct still applies to both columns
from
select 1 as val1, 1 as val2 from dual
union all
select 1 as val1, 2 as val2 from dual
Edited by: user4010726 on Dec 1, 2009 11:06 AM
Edited by: user4010726 on Dec 1, 2009 11:07 AM -
Selecting more than one email to delete
Has anyone figured out how to select more than one email when deleting? Thanks. Love my phone
The quickest way, especially if you are deleting bunches of them in a row is to do this...
open one email. If you want to trash it, click on the trash can icon at the bottom, it trashes it and goes to the next one. As far as skipping the ones you want to save, dunno which way that runs. I just delete all mine since I don't have the Iphone to clear the mail server, I still get it on my desktop computer later. -
LOV Return To More Than One Column
Hello,
How could I return LOV values to more than one column?
I created a dynamic LOV based on sql statement. I would like to return more than one values to multiple columns in my page.
E.g. When user selects employee number name, department and location to return to respective columns.
Any help is highly appreciated.
I am using APEX 3.2.0.
Thankshi,
Below link might help you.
http://rutgerderuiter.blogspot.com/2008/10/update-multiple-items-from-lov-field.html
Maybe you are looking for
-
Broken laptop and Iphone..how to restore
So in a span of a couple days, my iphone 5 died and so did my laptop. I have a new phone and installed itunes on new laptop BUT I need to be able to access my old restore points from my old laptop. I was able to have the hard drive copied to an exter
-
Please help! All of a sudden, my Macbook Pro has slowed to a death crawl. I downloaded and installed OS X 10.8.3 but it was running pefectly fine for about 3 weeks. But after I downloaded and tried to install the latest safari update (my computer r
-
How to view 'Balanced Leaves'?
Hi Team, Could any one tell me 'How can I check the BALANCED LEAVES' for PL, SL etc. I gave the leaves 30 for PL and assigned quota 5 days, balanced 25 leaves should display (in 2006 or in pt50), but it is not showing the balanced leaves, it displays
-
In Captivate 4, you can set project name by accessing the Edit -> preferences menu. My question is, is there a system variable that tracks the project name? Thanks.
-
Ios app with Adobe Flash performances issue?
Hi. I buy ios enroll program today. I tried to addchild few bitmap on stage and rotate them. Awful. My computer can hold about 300 rotating bitmaps without lag. IPod Touch 4: less than 10 bitmaps. 10 Bitmaps are moving = 1 fps?! Are you kidding me Ad