Lov cascading with webservice
Hi, I want to create LOV at two levels, I get the values of service, how to get this feature for example I show popular banks in one level and other banks in other level from the drop-down list looks like this
Pouplar CIty Hdfc federal Other abc xyz asdf
Thank you
Delphine
This isn't about filling webservice data to build Lov.
only on the display of hierarchical data select one option
Ashish
Tags: Java
Similar Questions
-
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.
-
problem: lov cascading with the UNION query
I have develoep my LOV cascade according to
http://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:29Hello
I think that you need a partial refresh in jspx.
See: LOV Cascading Update
concerning
Peter -
Hello
I use APEX 4.0 on 10g.
I have 2 LOV, the second, based on the first.
One displays null as 'null' % values to display all rows back.
When I select a value from the first LOV (except 'null'), the second is updated with the correct values: it works.
But when I select the value 'null', the second list is empty, rather than be filled with all the values.
The second LOV based on the first request (P3_FILTRE_AREA_NAME):
When I run this query as a replacement for Sqlplus: P3_FILTRE_AREA_NAME by '%', it works, it returns all the rows.select distinct(ACCL_NAME) display_value, ACCL_NAME return_value from POINTS WHERE upper(AREA_NAME) LIKE upper(:P3_FILTRE_AREA_NAME) order by 1
Any idea?
Thank you.
Yann.Hi Yann,
You must set * "Optimize Refresh" = No * regarding your second select list P1_ACC_NAME. If you do that it will work.
I also suggest to change your list of first selection P1_AREA_NAME to
Display null value: "- show all xxx -" (without the quotes)
"Return NULL value:" (without the quotes)and the declaration of LOV your second selection P1_ACC_NAME list to
select distinct(VALUE1) display_value, VALUE1 return_value from TABLE WHERE upper(VALUE2) LIKE nvl(upper(:P1_AREA_NAME), '%') order by 1
I think this makes it more transparent by looking at the SQL statement what happens where nothing has been selected. It is also more pleasant that P1_ACC_NAME is set to null if you need to access this page element in the continuation of the procedure on your page.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
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
-
Hide child element LOV cascading
Hi allI have two selection lists set up in cascade LOV s, using the point of LOV cascading parameters. Selects a Select1 element updates Select2 with child options available. It works very well.
What I also want to do, is to hide the Select2 element when no options are available. I guess I can use a dynamic action to hide/show the item, but I can't work on how to get a number of available options and hide/show when it is required. Should be simple but good?
The apex is 4.2.5.00.08
Thank you!
~ L
OK think I worked this one, if will post it here for other peoples reference.
Create a single dynamic action:
Event: change
Type: element
Articles: List of child selection
Condition: Expression of Javascript
Value: this.triggeringElement.length - 1 > 0 (counting of list entries,-1 for a display null value)
Real Action: The child show selection list
False Action: Hide the child selection list
-
Turn off validation for LOVs cascading messages
Hello
I created LOVs cascade (input text with a list of values) by calling af:query. When a value is entered in the function LOV (say Subclass) without entering a value in the LOV(say Class) Parent, I get an error message "Invalid Value". Is it possible to disable these error messages?
Thank you
KK
Published by: 842704 on July 21, 2012 19:51you use this type of snippet
http://jobinesh.blogspot.com/2011/03/retrieving-viewcriteria-from-custom.htmlor can u paste what you do?
-
Q: problem LOV cascading APEX 4.1.1 DB 11.2.0.3
Hello
I have a form with two LOVs (region and country) and I try to get the country LOV change when I select a region. What happens is that I can choose a region, but no country appear (there is a small circular thing that gets displayed for one second, but the LOV country is never updated).
That's what I did and I read the docs, and it seems that I made the right choice. I created 2 LOVs:
LOV_REGION
The example data:select region_name d, region_id r from region order by 1
LOV_COUNTRY:REGION_ID 7 REGION_NAME APAC
The example data:select c.country_name d, c.country_id r from country c where c.region_id = :P3_REGION order by 1
On a page, I have two questions (list selection both of them):COUNTRY_ID 284 COUNTRY_NAME Australia REGION_ID 7
P3_REGION:
-Named LOV: LOV_REGION
-View the Null value
-Opportunity source: only when current session value is null
-Static assignment
P3_COUNTRY:
-Named LOV: LOV_COUNTRY
-View the Null value
-Articles of Parent LOV cascading: P3_REGION
-Opportunity source: only when current session value is null
-Static assignment
To see that I'm sane, I followed the example here: http://docs.oracle.com/cd/E23903_01/doc/ doc.41 /e21674/bldapp_item.htm #HTMDB05014. On the same page. But no luck because it does not work either.
Any ideas what I'm doing wrong, I hope that I just need more RedBull and a crash course by reading the documentation?update of the following
Page items to submit P3_REGION
-
Hello
I use apex 4.1.1. and I have 3 + LOVs cascade (selection list) on my page. All these selection lists are in the window of the modal dialog box. When I open this modal dialog box in edit mode, I need selection lists of complete filling with the correct value of the DB (ajax call). When I change the value of the first selection list, that I call $('_#selectlist1').change () function, so the selection lists depended should full fill with correct LOVs. I want to change the list of the second selection to the right value of DB (I use $('#selectlist2').val ("new value"), but because the function $('#selectlist1').change () call is asynchronous, second selection list is not options still ($('#selectlist1').change () function is not yet finished) and $('#selectlist2').val ("new value") of the command runs without any efect.)
Is there a way how it is possible to register the callback function to funtion includeMergeSourceInfo? Or another solution?
Thanks for help.
KIASHi Kias,
setTimeout isn't reliable because you never know how long will take the request. Instead, I suggest to use the event 'apexafterrefresh' that you can use on a selection list to fill in the field when it has been updated with the data. I think that the following code should work.
apex.jQuery("#selectlist3").bind("apexafterrefresh", function(){ $s('selectlist3', json.ROWSET[0].POJ_POJISTOVNA) });
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
Hi guys,.
I have read many articles on the generation of LOV cascading in a tabular presentation, but have not been able to make it work
I created an example in my apex workspace at:
http://Apex.Oracle.com/pls/Apex/f?p=4000:1500
XXAPPS workspace
Name of guest user
Password demo
App no 17551
Page 2
In my test scenario, I have a table emp, dept and a desk.
In my tabular form (based on the emp table), I have a column deptno and a column of office.
Depending on what the user selects in the column deptno, I want the corresponding list of offices associated with this dept LOV to return to offices LOV.
The structure of the table is
EMP
EMPNO
ENAME
JOB
MGR
HIREDATE
SAL
COMM
DEPTNO
OFFICE_ID
DEPT
DEPTNO
DNAME
LOC
OFFICE
OFFICE_ID
OFFICE_NAME
DEPTNO
When the user selects a deptno in the LOV I would like that to control the values that are returned to the office of LOV.
I used the blog post from Jari:
http://dbswh.webhop.NET/dbswh/f?p=blog:read:0:article:2003800346210117
but as you can see there is not enough work that LOV Office does not return anything.
I'm fairly new new JavaScript and jQuery, so probably something wrong, because some steps are responsible for errors and are confusing me a bit for example step2 is causing the page to return to the white (I have commented the code in the example)
Any help would be greatly appreciated.
Thank you
Edited by: Cashy March 7, 2012 04:05Hello
See your sample now
I have fix your dynamic action. You got some strange numbers start JavaScript.
Also, you have used bad selectors for parent and child select list.I have also change the application process
Kind regards
Jari -
Hi all...
Please help with this question.
Not sure this is a bug or browser problem.
APEX: 4.1
Browser: IE 7
Database: 11g
If I have a lov cascading, and if I have a bit of javascript
under the HTML FORM ELEMENTS ATTRIBUTES '"onchange ="alert ('hi');" » »
Fires the event on change twice.
why he shoots twice onchange?
Please check the following application.
http://Apex.Oracle.com/pls/Apex/f?p=41803:2
Select a Department, you will get 2 alert messages.
Y at - it a fix for this?Checked Firefox and Safari on Mac and I only get the alert once on two of these browsers. Sounds like a problem with IE. Surprise, surprise...
Earl
-
Hi all
I'm unable to do a search using a LOV cascading,
I have an option in the first selection list and then it is generated a list in the second selection list, where I also choose an option.
Now when I press submit, I see the return value in my second select list and no results.
I wrote a custom query to retrieve the results, and I also have other fields of research, which work perfectly.
Anyone have any ideas on what I might hurt?
Any help is appreciated.1st selection list (parent) is empty and then the child selection list displays only the return value
suggests that select 1 is not registered in the session, while the second is saved, but the application does not set the value (probably because query that uses the parent selection list not returned no records). Check the session state (session in the developer toolbar in the foot buton) whenever the page is refreshed (submitted, reloaded, etc.).
- How is sent after choosing the areas?
You have a branch reset that one of these elements, or does this second selection a redirect (and has not set the first)If you are on 4 Apex, Cascading lov is built using ajax and you do not reload or submit the page when you are working with to parent-child LOV
-
using the same LOVs cascading on multiple pages
Hello
I use apex 4 and try to get the LOV cascading to work.
need basically for LOV cascade like "RÉGION" and "CTY", which is used in many pages in the application
Because it will be used in several pages, I tried to create the LOVs in the shared component
with the LOV for 'REGION '.
Select the REGION display_value, REGION_ID return_value
of MR_REGION_LOOKUP
order by 1
and "CTY".
Select CTRY display_value, CTRY_ID return_value
of MR_CTRY_LOOKUP where MR_CTRY_LOOKUP. REGION_ID AS: P3_REGION_ID
order by 1
He worked on the P3, but I can't use the same shared component LOV in other pages, unless I have change the P3 in the binding variable: P3_REGION_ID to the new as page number: P5_REGION_ID.
Is there a way to use a generic approach for the CTY LOVs, which will work on several page?
The elements of level application perhaps?
Or at least to use the wildcard to replace the P3 to work for all pages?
Thanks in advance for all advice :)
Concerning
Kian coulibalyNot my preferred solution but how about something like this
select CTRY display_value, CTRY_ID return_value from MR_CTRY_LOOKUP Where MR_CTRY_LOOKUP.REGION_ID LIKE v('P'||v('APP_PAGE_ID')||'_REGION_ID') order by 1
Kofi
-
LOV cascading works not when the page is public
Hello
I have a LOV cascading in a tabular form that I built example Denes Kubicek
http://Apex.Oracle.com/pls/OTN/f?p=31517:176:2702932664861989:
Thanks to this wonderful examle, I could make my lov cascading.
However when I do the public page, the second lov (which is based on the first) does not work.
Inorder to debug I changed to get.get () get.get ('XML') and put an alert on it; to check if the string of the selection list is correctly returned by the application process - it returns null. The alert even returns the string from the selection list when I set the authentication on the page.
Also I noticed that when the page is public the application (TAB_CASCADING_ITEM) item is not be filled with the value of the first selection list.
No matter who has encountered the same problem?
Appreciate any suggestions?
Thank you
DippyOne of the parameters in the htmldb_get is the page on which the process is running. You should change this to the current page or make public page 0 as well.
Maybe you are looking for
-
SSD Samsung Pro like second SSD on optical drive
Hi all! I have an i7 MacBook Pro mid-2012 2.9 Ghz Mavericks I have upgrated it replaces first my Superdrive with the original apple Hd 750 GB, defining a Pro SSD 256 gb HD first OSX. Everything was ok. So I decided to change my second HD (Apple 750 G
-
HP 8540w: HP 8540w unknown material
Hello I use a HP Elitebook 8540w and recently upgraded to windows 8.1 (64-bit). There is an unknown device on my PCI Express Root Complex, with the hardware ID following: ACPI\VEN_HPQ & DEV_0004ACPI\HPQ0004* HPQ0004 any help regarding the drivers wou
-
connection for iPad 2 Hotmail... fails to sign vew Received an iPad 2 for Christmas and the first thing I try to do is to add my additional emails... whenever I have try to sign in to Windows Live accounts or Hot Mail, the answer is "password" is fal
-
Open several Windows Calculator in Windows 8
Hi all Was wondering if there was a more effective method to open multiple windows/instances of the calculator, in addition to going through the splash screen, typing in 'calc' and right click on the icon to open a new window? Thank you
-
Duplication of a query on multiple fields
Hello We have a form for more information of the person to research-toward the top. It consists of a block of record single (PERSON) with fields as a PERSON. PERSON_SURNAME per PERSON. PERSON_FORENAME. The user uses the built in buttons query enter a