problem: lov cascading with the UNION query
I have develoep my LOV cascade according tohttp://download.Oracle.com/otn_hosted_doc/JDeveloper/11/demos/ADFBC_Cascading_LOV/ADFBC_Cascading_LOV.html
I choise contain LOV like (detriment - banks - employed)
another a cascading contain information for (detriment or banks or employees) depeding on first LOV
data for detriment, the banks and the employees split into 3 table so
read only display for second LOV was:
SELECT id, name, "DPT".
of detriment
Union
SELECT id, name, "BNK".
from banks
I followed step above link, when I test the application in British Colombia, it ' good job, but when I test the jsp page, is not woking!
What wrong with my application? its because the UNION? or I'm wrong steps?
IAM using jdeveloper p4, ADF BC + ADC faces
Published by: user652271 on August 25, 2008 05:03
Published by: user652271 on August 25, 2008 05:29
Hello
I think that you need a partial refresh in jspx.
See: LOV Cascading Update
concerning
Peter
Tags: Oracle
Similar Questions
-
Question LOV cascading with the plugin Select2
Version 4.1.1.00.23
Hello
I have a plugin Select2 Setup like a multiple-selection list.
I have a second Select list that is configured as a page item list select Standard.
I try to have the second element of the page list select Standard like a waterfall LOV based on the plugin Select2, so when one or the values are selected in the plugin Select2 I want the list item select Standard to hold the values based on the plugin Select2.
The Standard selection list has the Parent article (s) as the plugin Select2 LOV waterfall and the query made reference to the plugin Select2.
Since the plugin Select2 likes the selection list Standard may not Submit/redirection is why my list select Standard is not get the values. I tried to put a dynamic Action to requery the list select Standard when the plugin Select2 is changed, but looks like there is no case of "onchange" of the plug-in.
Can someone help me to get this set up?
Can what additional information I predict or explain?
Thank you
Joe
Joe,
I faked your question on an instance of APEX 4.1 and I managed to make it work as follows:
Remove the dynamic action of one of my previous posts. Use the following dynamic action:
-Event: Change [Select2]
-Selection Type: Item (s)
-Article (s): P6_DEP
Add two real actions:
-Action: Execute the PL/SQL Code
-PL/SQL Code: apex_util.set_session_state ('P6_DEP',: P6_DEP);
-Items to submit: P6_DEP
-Elements of return:
-Action: update
Items affected
-Selection Type: Item (s)
-Article (s): P6_EMP
The definition of LOV's P6_EMP is based on a PL/SQL function that returns a query as a string.
List of values definition: return get_emp_query(:P6_DEP);
Below the get_emp_query function:
create or replace function get_emp_query(in_teams in varchar2) return varchar2 is l_teams varchar2(32767); l_emp_query varchar2(32767); begin l_teams := replace(in_teams, ':', ','); l_emp_query := 'SELECT ename, empno FROM emp'; if (l_teams is not null) then l_emp_query := l_emp_query || ' WHERE deptno IN (' || l_teams || ')'; end if; l_emp_query := l_emp_query || ' ORDER BY 1'; return l_emp_query; end get_emp_query;
You have to be able to use an element of selection mode multiple select2 to dynamically filter the values in your resource item.
BR,
Nick
-
LOVs cascading with the ability to create a new record. Is this possible?
Hello
I am trying to create a couple of LOVs. The first is a list of manufacturers, the second a list of items. Essentially, when you select a manufacturer from the first LOV you will see their articles in the second LOV.
I had a look through the forum and I think I have a handle on how to make a waterfall... except LOV...
I would like users to have the ability to enter a NEW manufacturer and a NEW element if necessary and have this combination, then saved in the source table.
Is this possible?
Thank you
JosephHello
Browsers is not the drop-down list box functionality that you would find in something like MS Access. You could try autocomplete - see [http://apex.oracle.com/pls/otn/f?p=31517:53] - but you would have to search all the entries (the field only would focus on the display text and not the ID of the element, which would have to be searched every time).
I want to say that you should be able to trust your users to not create duplicates. I want to say this, but... ;)
Andy
-
How to combine code C++ of Cascade with the native C code in a project?
Purpose: Using C++ Cascade camera video sample with native C sensor log.
and function by using Cascade C++ user interface with native C detection function.
Problem: After putting code of Cascade C++ native code C, the library shows unresolved inclusion.
Question: How do I combine code C++ of Cascade with the native C code in a project?
Minimal code:
#include
#include#include 'printf.h.
#include
#include
#include#include "hellovideocameraapp.hpp".
to: bb::cascades:Application;
int main (void) {app app (argc, argv);
New HelloVideoCameraApp (&app);)
Return app.exec ();
printfhw();
printf ("Hello new %d", hwnum);
Return EXIT_SUCCESS;
}You just add the header and call the function as you would normally call a C in C++ function.
You will need to provide clarification as to what you are trying to accomplish. In its current form it looks like you want to run C code in an application of cascades. You are more that welcome to do so, there is nothing to stop you.
Waterfalls of projects are default C++ projects. You do not even need to use QML and can do everything straight c++.
Cascades IS C++ and C and C++ get along very well, so the answer that was given to us.
We cannot give exmamples because all you need to do is create a new project of cascades in the IDE and it will generate the default files for you who are C++. Just add your headers and other whatnot and start coding.
-
Alternative and improvement of the union query?
Hello
I have 2 sets of similar data together with a union query.
Simplified example
I want to do is to ONLY include data from the second part of the union query, where it is associated with the first part of the union query data.*Table A* Name Dept Ben 1 Amy 3 Ken 3 *Table B* Name Dept Jim 1 John 2 Sue 3 select Name, Dept from table A UNION select Name, Dept from table B
For example
That's why John, who works in the Dept 2 would not be included in the results.select Name, Dept from table A UNION select Name, Dept from table B where Dept in (select distinct Dept from A)
Is there a better or more effective way to achieve that my example using the subquery in the where clause?
Thank you very much
HazelHi, Hazel,
What you posted is as good as you can get without changing tables.
Do not say SEPARATE in the IN-under-query:
... where Dept in ( select Dept from A )
will get the same results, maybe a little faster.
-
Question
I can't access to sites such as Youtube or truckcam.tv , seems, the problem may be with the last Adobe flash and firefox as other browsers work I reinstalled both, but without success, even on the two desktop using Vista and laptop on Windows 7See:
-
Anyone know when will fixed the problem of material with the "IPAD PRO"? The question that keeps it from starting after the load.
According to Apple, it has been addressed in the latest update of the iOS, iOS 9.2.
-
My photoshop is flashing, there are problems of compatibility with the graphics card. I tried to turn off the graphics card option in photoshop, uninstalled and installed several times, but still. Please, what should I do?
I have an Intel (R) Graphics 5500 HD and Nvidia GeForce 820 M.
I disabled the Nvidia because it seems to me that Photoshop is not supported.
Hey Mohit and other colleagues!
See how I solved this problem (temporarily): workaround Photoshop for screen flashing - YouTube
I hope that helps for a while this problem.
Best regards.
-
Create and schedule the iBot cover seed with the saved query
Hi all
Can I know how to create and schedule I Bot seeds cached with the saved query ((iBot to directly run a daily load of reseeding the cache)Here's the documentation:
30%
http://download.Oracle.com/docs/CD/E10415_01/doc/bi.1013/b31767.PDF
31%
http://download.Oracle.com/docs/CD/E21764_01/bi.1111/e10544/delivers.htm#i1060405
-
Count (*) with the nested query
Hello
I have a question about the count (*) with the nested query.
I have a table T1 with these columns:
Number of C1
Number of C2
Number of C3
Number of C4
Number of C5
(The type of each column is not relevant for example).
This query:
Select C1, C2, C3, C4
from T1
Group C1, C2
It is not correct becausa C3 and C4 are the columns specified in the GROUP BY expression.
If you run this query:
Select count (*)
(select C1, C2, C3, C4
from T1
Group C1, C2)
I don't have an error message (properly, the result is the number of records).
Why?
Thank you.
Best regards
Lucabecause the optimizer rewrites as
SELECT COUNT(*) FROM T1 GROUP BY C1, C2
G.
Edited by: g. March 1, 2011 09:19
-
Problem with the simple query.
Hi all
I am facing problem with the query below
Select A.COL1, A.COL2
B.COL1, B.COL2
FROM TABLE1 A
TABLE 1 B
WHERE A.header = '123'
AND B.header = '123'
AND nvl (A.COL6, 'ABC') = 'ABC '.
AND NVL (B.COL6, 'DEF') = 'DEF '.
Basically, my requiremenyt is: I have only one table, TABLE1 here, which has a line two lines (for the same header) as "ABC" and another is "DEF". Table 1 has two columns (col1, col2) that should be displayed for both lines.
When the header has two records in table1 top query works. and but if I do not have a record for any header example there are a record for "abc" in col6 only. so my query above does not work because there is no record for 'DEF' in col6. But I want to again request to fecth the output (for b.col1 and b.col2 should have null values)
could you pls suggest me how to get the 4 columns.
Thanks in advance
Kind regards
UVA.
Try to place the status of outer join on column: analytical_criterion_code as
and nvl (AUDIT.analytical_criterion_code, 'AUDIT2') = 'verification2. '
.
.
and nvl (TRANS.analytical_criterion_code, 'TRANS2') = 'TRANS2.
In the sub query based on the opinions that you have given in post # 1, although there is no value "DEF * ' for col6 due to the condition of outer join on b.col6 (+) line is extracted with b.col [1,2,3] as NULL values. Try to remove the (+) sign b.col6 and test.
with t as)
Select 111 col1, col2 'aaa', 'ABC' col6 123 header of all the double union
Select 222 'bbb', 'DEF' col6, 123 double header
)
q as (select 123 double header)
Select A.COL1, A.COL2, A.COL6
B.COL1, B.COL2, b.COL6
q.header
T a
t b
q
where a.col6 (+) = 'ABC '.
and b.col6 (+) = "DEF."
and q.header = a.header (+)
and q.header = b.header (+)
-
Problem with the input query mode. FRM 41009, 40301
Hi all
I have a problem with the mode of input query. What can I say, I'm in the mode of input query, and I click on a button. I get the error THAT FRM-41009 displayed.
Now, I've wanted handled. So I created a trigger of error in order to handle the error.
IF ERR_CODE = 41009 THEN
NULL;
END IF;
A problem is that when you use the null value, it will not terminate the mode of input query, and then I get frm-40301 error.
Second, it's that I can't use exit_form in a trigger of the error.
I am aware that I can press F4 to exit this mode, but I don't want to do whenever I'm sure I'll get the user complaints.
Another solution would be to put the following code in the trigger when key pressed for each button in the form:
If: system.mode = "ENTER-QUERY" then
exit_form;
end if;
But I don't want to reproduce this code in my form.
Please can you give me an idea how to handle this correctly?
Thank you
Michael
PS: Version of the form = > ORACLE FORMS 10g (Forms [32 bit] Version 10.1.2.3.0)I have a problem with the mode of input query. What can I say, I'm in the mode of input query, and I click on a button. I get the error THAT FRM-41009 displayed.
What is the code in the trigger of your button When-Button-Pressed (WBP)? Maybe you should check to see if the form is in the Mode query in your WBP rather than try and remove the error? In other words, eliminate error - do not delete it. :)
If you want instead to remove the error, there is a technique to built-ins call restricted to a trigger that does not allow them. Do this by the use of a millisecond zero Timer. For example:
/* Sample On-Error Trigger */ DECLARE n_err_cd NUMBER := ERROR_CODE; t_on_error TIMER; ZERO NUMBER := 0; BEGIN IF ( n_err_cd = 41009 ) THEN /* Create Timer to execute Exit_Form() */ /* to Cancel Query-Mode. */ t_timer := Create_Timer('ON_ERROR', ZERO, NO_REPEAT); ELSE /* Handle all other errors here... */ END IF; END;
/* Sample When-Timer-Expired Trigger */ DECLARE v_Timer VARCHAR2(30); BEGIN v_timer := Get_Application_Property(TIMER_NAME); IF ( v_timer = 'ON_ERROR' ) THEN /* Notice, the timer name is case sensative! */ Exit_Form; END IF; END;
I am aware that I can press F4 to exit this mode, but I don't want to do whenever I'm sure I'll get the user complaints.
Well, it's just standard features of Oracle Forms. If you switch the Mode request form - you must run a query or cancel the query Mode! This is how it works. Your users need to understand that and accept it - just as they accept the functional also for other programs. ;) Another option would be to add a "Cancel request" button to your form and make it so it is enabled only when the form is placed in Query Mode. Just a thought...
I personally prefer to prevent the occurrence of an error rather than remove the error. :)
I hope this helps.
Craig... -
Original title: error Windows 7 installation files
I bought a copy of Windows 7 at Tiger Direct on 22/05/2014. I lost my copy and I tried to download the iso from the Microsoft web site, but my product key is not valid. I get this error message
We had a problem with the request for approval.
See for other directions:
http://answers.Microsoft.com/en-us/Windows/wiki/Windows_7-update/how-to-what-are-my-options-for-obtaining-Windows-7/528163c1-0b2e-4AD2-a26d-7112851d1dc2
-
Link to calendar for a calendar with a Union query
I have a calendar with an SQL query. The query is a union with 3 different tables data. When a user clicks the calendar of events, go to different pages based on the element in the query
How to create the link. Can someone guide me
I'm on apex.oracle.com
Caledar Query
**************
Select (event_no |) » -'|| event_name) name, event_date main_events
Union of all the
Select (order_no |) » -'|| order_name) name, Order_date main_orders
Union of all the
Select (action_number |) » -'|| wo_name) name, main_actions scheduled_start_date
gkthomas wrote:
Definition of color for the different elements are clear. But building the target of the dynamic link is not clear. Would you like to explain a little more.
I also want the link to go to that particular record when the user click the input data for the calendar
I don't really see how it can be made clearer. Have you read the online help for the attributes of link calendar? Do you understand the concept of chains of substitution? And the use of APEX URL to link pages and applications?
Link target URL can be built dynamically in the region of link attributes. In a UNION data source, each request can contain values that are used to specify the different target pages and elements of page/values to define column. These columns are referenced in the attributes of calendar display/change link as substitution strings to specify the page number and set the values of the elements of the requested page:
Source of the region
select event_no || ' - ' || event_name event_title , event_date , 'apex-cal-green' css_class , '10' link_page , 'P10_EVENT_NO' link_items , event_no link_values from main_events union all select order_no || ' - ' || order_name , order_date , 'apex-cal-yellow' css_class , '11' , 'P11_ORDER_NO' , order_no from main_orders union all select action_number || ' - ' || wo_name , scheduled_start_date , 'apex-cal-red' , '12' , 'P12_ACTION_NO,P12_WO_NAME' , order_no || ',' || wo_name from main_actions
View/Edit link
f?p=&APP_ID.:&LINK_PAGE.:&SESSION.::&DEBUG.:&LINK_PAGE.:&LINK_ITEMS:&LINK_VALUES.
If you really have trouble with this then as usual the best course of action is to create and share an example on apex.oracle.com where the proper techniques can be demonstrated.
-
LOV cascade with two items of parents (one might be hidden)
Hello
I have a LOV cascade which depends on two elements of parents, who works as expected. When two parent elements have values then the LOV cascading is populated with the appropriate values.
I have the following situation, if. The elements of two parents are not always visible. According to an another page element (e.g. product code), one or the other Parent may be hidden (using JavaScript).
The list of values for the LOV cascading is dynamic, so that part is ok
if PARENT_ITEM_01 is hidden then return 'select product_descr display, product_code ret from products where product_cat_02 = ' || :PARENT_ITEM_02 || '''; elsif PARENT_ITEM_02 is hidden then return 'select product_descr display, product_code ret from products where product_cat_01 = ' || :PARENT_ITEM_01 || '''; else return 'select product_descr display, product_code ret from products where product_cat_01 = ' || :PARENT_ITEM_01 || ' and product_cat02 = ' || :PARENT_ITEM_02 || '''; end if;
Is there some sort of workaround to parent of the items but one of them may be hidden?
Teo
I have finally found a workaround.
I created a dynamic action and that page_item was hidden I put this element with a default value and the works of lov cascading.
Maybe you are looking for
-
YouTube playlist AutoPlay feature does not work in firefox.
I use Firefox 32.0.3, the latest version and I have problems in the playlist of youtube, with autoplay. In the playlist, I click on 'play together', but the game ends after the current song. I tried with all the addons disabled and the same thing. I
-
Satellite L300D - 18 d - which hard drive I need to replace?
Hi guys, my first post here. My girlfriend has a Toshiba Satellite L300D - 18 d and the hard side is now more and more corrupted so I want to buy a replacement drive, but I'm not sure what I need, the size is not as important as its only really used
-
88302 error occurred at .vi:1780001 DAQmx create channel (I-voltage-Basic)
Hi all. I'm new to the Forum so if I leave aside any improtant info please forgive me. I try to enter a NOR-DAQ sensor voltages, but the 88302 error keeps popping up when I run the vi. I took screenshots and circled the blocks which throw errors. I h
-
can I move all functions to another monitor and still close the laptop without turning off the second monitor on a laptop
-
Before doing the test and quiz have the same behavior
I have a pre-test and a quiz. Questions before the test and quiz questions are part of the same quiz experience. Must be like that for technical reasons, can't just be quiz.Before the test1st quarterQ2Q3SCORE = AQuizQ4Q6Q6= SCORE BCol requires pret