Search region help!

I have two tables as following:
Department
depart_id number(2),
department varchar2(30)
depart_id is PK.
Depart_id,Department
1,PPT
2,FCT
Room
room_id number(2),
room varchar2(30),
depart_id number(2)
room_id is Pk, depart_id is FK refernced to Department depart_id
Room_id,room,Depart_id
1, A307, 1
2, A306, 1
3, B113, 2
4, B116, 2
In the search region, I have department and room two fields. Both of them use select list to get value. Room's select list should be different based on department value.
I get a trouble that room's select list always be same with value A307,A308,B113,B116. It should have A307,A308 when I choose PPT department and should have B113,B116 when I choose FCT department. It should have A307,A308,B113,B116 when I don't choose any department.
How can I do this?
Please give me detail info and thanks in advance!
Edited by: ca060728 on Dec 14, 2009 3:03 PM
Edited by: ca060728 on Dec 14, 2009 3:03 PM

Hi,
I think you need cascading select list
http://apex.oracle.com/pls/otn/f?p=11933:37
Br, Jari

Similar Messages

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

  • ORA-06502 when searching region source

    The following is listed as a limitation of Apex 3.1, for both interactive reports and the application builder, although the specific context is not mentioned.
    The row length limit is 32k (just as with Classic Reports). You can include more columns but if too many are selected to be displayed, the user will get the following error - "ORA-06502: PL/SQL: numeric or value error: character string buffer too small". This should be considered when creating your report.You can find that here: http://www.oracle.com/technology/products/database/application_express/html/3.1_known_issues.html
    I'm getting this very error when trying to search region source for one of my application items. Presumably the region source is larger than the 32k limit where my particular page item is being used?
    Can anyone from Oracle verify that this is still a problem in Apex 3.2.0.00.27?
    Earl

    >
    The following is listed as a limitation of Apex 3.1, for both interactive reports and the application builder, although the specific context is not mentioned.
    The row length limit is 32k (just as with Classic Reports). You can include more columns but if too many are selected to be displayed, the user will get the following error - "ORA-06502: PL/SQL: numeric or value error: character string buffer too small". This should be considered when creating your report.
    You can find that here: http://www.oracle.com/technology/products/database/application_express/html/3.1_known_issues.html
    I'm getting this very error when trying to search region source for one of my application items. Presumably the region source is larger than the 32k limit where my particular page item is being used?
    Can anyone from Oracle verify that this is still a problem in Apex 3.2.0.00.27?
    EarlAnyone have any ideas about the above? I'm getting this error when searching region source code, here:
    Home>Application Builder>Application nnn>Application Reports>Page Components>Search Region Source
    Any help would be appreciated. Thanks.
    Earl

  • How to add a Quick Search Region of the shuttle

    JHeadstart 10.1.3.1.26
    Help me! Help me! Help me!
    How does add a Quick Search Region of the shuttle
    http://cid-857a1e2135747b0c.spaces.live.com/?_c11_PhotoAlbum_spaHandler=TWljcm9zb2Z0LlNwYWNlcy5XZWIuUGFydHMuUGhvdG9BbGJ1bS5GdWxsTW9kZUNvbnRyb2xsZXI%24&_c11_PhotoAlbum_spaFolderID=cns!857A1E2135747B0C!112&_c11_PhotoAlbum_startingImageIndex=&_c11_PhotoAlbum_commentsExpand=&_c11_PhotoAlbum_addCommentExpand=&_c11_PhotoAlbum_addCommentFocus=&_c=PhotoAlbum
    Message was edited by:
    user589457

    JHeadstart 10.1.3.1.26
    Help me! Help me! Help me!
    How does add a Quick Search Region of the shuttle
    http://cid-857a1e2135747b0c.spaces.live.com/?_c11_PhotoAlbum_spaHandler=TWljcm9zb2Z0LlNwYWNlcy5XZWIuUGFydHMuUGhvdG9BbGJ1bS5GdWxsTW9kZUNvbnRyb2xsZXI%24&_c11_PhotoAlbum_spaFolderID=cns!857A1E2135747B0C!112&_c11_PhotoAlbum_startingImageIndex=&_c11_PhotoAlbum_commentsExpand=&_c11_PhotoAlbum_addCommentExpand=&_c11_PhotoAlbum_addCommentFocus=&_c=PhotoAlbum
    Message was edited by:
    user589457

  • Modifying the Seeded oracle Page's search region

    I have a situation where i need to add one more search field in my open Requirements page in Oracle PRM. This "Open Requirements" Registered as function in oracle with akRegionCode parameter. I found region.xml and able to find the map between region code and the path where the original xml is stored. but my issue is i'm trying to copy the original Page XMl file to MYrequire.xml and modified the search region there to add one more field for search.and also i paced this xml in the same location as other one. but how to get this new custom XML work. i tried modifying regionxml file's region code to poing this new xml i have created but no luck. it still bringing the OLD one. So can you please help me here so that i can address our requirement.

    user626393,
    You need to be more detailed. Is it a simple search page or are you talking of the LOV window? What is the seeded function call? Is the new search field part of the seeded VO?
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                               

  • Creating a Search Region in Trinidad

    Hello Guys,
    I am working on ADF mobile and using Trinidad faces.
    I want to implement a search region. I followed the steps of creating a search region with ADF. But I was unable to add a query region.
    Took refrence of this blog http://baigsorcl.blogspot.com/2010/04/creating-simple-search-form-in-oracle.html.
    Can anyone help me?
    Thanks,
    Bm

    Hi Bm,
    As trinidad components does not support query components like af:query or af:quickquery, you would have create the search form manually and pass the values to the view criteria - which would filter the required records based on the values entered.
    Thanks,
    Navaneeth

  • Customize Search region of LOV - Basic mode

    I created an Input text with List of Values in JDev 11.1.1.2 and designed the search region of this LOV in Basic mode (disable the Advance mode) so the combo box to choose the condition of Search fields like: Contains, Start with, Equal to... disappear.
    I wonder if in this Basic mode there is way to make all the search fields in "Contains" condition (Because now, by default, in my Search region, some of the search fields in "Contains" and some in "Equal to" ).
    Does any one know how, please help. Thanks.
    Edited by: Mun on Jan 30, 2010 10:11 PM

    Hi Mitesh,
    I provide here some more details:
    I want to create the LOV component as unbounded, like the Countries LOV in this post http://andrejusb.blogspot.com/2008/02/list-of-values-component-in-search-and.html. However, JDev 11.1.1.2 seems not support to do like this.
    So I find another way to create my LOV as below:
    Let's say: The view Object is MainVO which contains 2 fields: AAA and BBB.
    1. Open the MainVO, in View Accessors tab, I create a view accessor named viewAss and choose the MainVO from the available View Objects and shuttle it to the View Accessors part
    2. In Attributes tab of the MainVO, set the List of Values of AAA attribute to viewAss.
    In my jspx page:
    drag the AAA from the data controls to a this jspx page by choosing: Create -- List of Values -- ADF LOV input.
    So the problem here is I can't find in my viewAss the place to choose operators like Contains or Start with etc (as you suggested in the View Criteria).

  • I normally dont need a login when I install new program, but I try to Install a new flash player im asked to write a login and I have no clue? when I search for help it suggest to put in the original installation cd but that doesnt work. Please help!

    When Trying to install the newest Flash player, Im asked to fill in my login.
    I have no clue what my login is. (It happened very rarely that I was asked to fill in this when installing a new program, and the login I have used before are not valid now.
    When I search for help, I am suggested to put in the original installation Cd.. and press the "C" button when I hear the starting sound... but when I do this nothing is happening.
    Please Help me If you have an idea for a solution to this problem!
    / Joel

    You need the admin password you created when you first set up the machine.  Just about every installer running under OS X will require you to authorize the installation by entering an administrator password - even software update requires this.  You really should not forget your admin password, as it is required for many things in OS X since, unlike Windows, you often need to manually type in the admin password to proceed with an install or update (whereas Windows will take admin authority, if you are logged in as an admin, by simply clicking continue or yes).
    If you cannot remember your admin password, you can reset it from the recovery CD that came with your mac - http://support.apple.com/kb/HT1274

  • When I use Firefox for Yahoo mail the tabs such as sign out, search email, help seem to be disabled. How do I make them work? Works in Internet Explorer

    There are a number of tabs at top of my inbox such as sign out, search email, help, etc. They do not work. For example cannot insert a name for search email- will not give me the curser to do this. When I use internet explorer these tabs do work so not a problem with Yahoo mail- must be problem with Firefox. Recently updated Firefox.

    SafeBrowser posted Recently, the Yahoo Toolbar and the Babylon extension have been reported to cause that problem. They seem to overlap invisibly over the top of the web page display. If you have either or both, uninstall or disable them/it, or see if an update is available that solves the problem.
    See --> http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    I disabled the Babylon extension and Yahoo Mail works now.
    Thank you SafeBrowser

  • How to use input box LOV in query panel (search region)

    Hi,
    We are having JDeveloper version 11.1.2.4.0
    In one of the JSF page, we are showing some data (absences).
    Requirement is to add search region at the top so that user can filter the data, based on search parameters like Business Group, Job etc.
    The search parameters are inter-dependent e.g. Job is dependent on Business Group. So when user selects some particular Business Group, Job search field should show jobs for that Business Group only.
    This works fine we use Choice List for both Business Group and Job.
    However since there are huge number of jobs, Job choice list makes page rendering very slow.
    So we tried to use Input box with LOV for Job.
    But now when job is selected in the LOV popup and returned to main page, job search field shows job id instead of job name.
    Please note that our base VO (AbsencesVO) contains JobId attribute. We have added List of Values on JobId, which fetches Job Name through JobVO1 view accessor.
    How to make Job LOV field show selected Job Name instead of ID? Kindly advise.
    Thanks,
    Vivek

    Thanks Timo/Bangaram, for prompt replies
    Timo, the link mentioned by you talks about showing IDs (DepartmentId, ManagerId etc.) in the search region. I need to show names in the form of Input box LOV.
    Bangaram, as per your suggestion I tried using transient JobName attribute. However now when I select any value in the Job LOV popup and return to main page, it shows first Job Name in the Job Name search field.
    Also when I click 'Search' button in Search panel, it shows error - Attempt to set a parameter name that does not occur in the SQL: BindJobName
    Please note that I have added both JobName and JobId in the List configuration as you suggested.
    In View criteria, I have removed previous item (condition) on JobId and added condition on JobName.(This is required because JobId condition shows JobId search field)
    I also tried making JobName dependent on JobId..still same behaviour.
    Kindly advise.
    Thanks,
    Vivek

  • Please help me. My YouTube app will not work. Every time I open it says 'cannot connect to youtube'. I have searched for help and tried resetting my settings and rebooting my ipad2 but nothing has solved the issue.

    Please help me. My YouTube app will not work. Every time I open it says 'cannot connect to youtube'. I have searched for help and tried resetting my settings and rebooting my ipad2 but nothing has solved the issue.

    Yes, I am connected to the Internet through my wifi. Everything is working fine with the e  eption of youtube.  I have reset all Internet settings and have tried synching to iTunes followed by rebooting.  This is all the advice I have found although none of it has been helpful.
    Has anyone else encountered this problem?

  • Modify CSS in region help

    Hi, I am using a region help type following the instructions in APEX Users Guide.
    But the code generated by APEX has 2 issues:
    It hasn't CSS (bgcolor hardcoded):
    <table bgcolor="#CCCCCC" width="100%"><tr><td><b>Region</b>:  Acciones Generals</td>...
    For every region the page helped, it generates a table with the text "Region", and I have the APEX in Spanish but "Region is not spanish".
    <table bgcolor="#CCCCCC" width="100%"><tr><td><b>Region</b>:  Acciones Generals</td> ...
    Which would be the solution for change the CSS and the "Region" text?
    Thanks.

    You owe it to yourself and your employer to learn HTML & CSS fundamentals before you monkey around with the company web site. 
              http://w3schools.com/
    Start by validating your code and fix reported errors.  You have an extra closing </div> that doesn't belong.  Also, ID names are unique identifiers.  They can be used only one time per page. 
              http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.hrserase.com%2Fjobs.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Search in Help Viewer always returns "No matching help topics were found".

    Hi!
    I'm running 10.3.9 on 14" iBook G4.
    Recently re-installed OSX from CD after a hard disk replacement. Help viewer was fine on the original / old installation of the same version number of OSX.
    The CD installs a version earlier than 10.3.9. Possibly 10.3.4? Cannot recall... is this important?
    After HDD replacement, went through all the updates fairly rapidly, and arrived at version 10.3.9. Excellent! Except one thing (there may be more, but I've only discovered this so far!)... searches in Help Viewer return the same message irrespective of what I search for. I type the search string (e.g. "dvd" ) in the search bubble in the Viewer window. The message is as follows:
    [bouyancy aid with question mark logo] No matching help topics were found
    I have tried the usual things, without success, of:
    - Removing the Famous Four cache and preference files/dirs.
    - Repairing permissions. This repaired a few 'permissions'.
    - Rebooting.
    I think the icon of the bouyancy aid is a comic irony, but very well suited to my situation. Anyone out there with any suggestions on how to fix, please?
    RSJ

    Excellent pointers, thanks!
    I haven't quite got it working, yet, but have got it to a point that is better than nothing.
    Very peculiar -- discovered that, after trying many of the troubleshooting ideas without success, the solution was to hit the "back" icon on the viewer to get to the list of help topics satisfying my search criteria... cannot work out why. It would appear that, for some reason, the viewer is skipping the page with the help topics, and going directly to the "No topics found" page. Curious. I am wondering if one of the above activities (from your help pages) may have helped.
    Anyway. Thanks very much for your help on this, and your *very* rapid responses.
    Yours most impressed,
    RSJ.

  • How to hide search box in the search region for the attachments (table)

    Dear,
    I have attachments region on the page with Render Search Region property set to true. What I want is to hide the text box in the search region? Is it possible? If I set this property to false the whole region goes away. I want the search region to stay, just get rid of the search box.
    And one more question - what property (of the attachment image) governs 'Publish to Catalog' behaviour?
    Thank you.
    Anatoliy

    I dont think that its possible to change the image.
    Are you trying to disable the document search ? Is the entire region disappearing when you tried disabling the search through personalization, walking the page hierarchy ? Is it for Document catalog ? If so, then it is a bug
    Thanks

  • When i type a search term in the URL box, the result is returned on an AOL Search page; I want a Google search page - help....

    When i type a search term in the URL box, the result is returned on an AOL Search page; I want a Google search page - help....

    In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see [[How do I create a screenshot of my problem?]]
    Once you've done this, attach the saved screenshot file to your forum post by clicking the '''Browse...''' button below the ''Post your reply'' box. This will help us to visualize the problem.
    Thank you!

Maybe you are looking for

  • Updated Mavericks Mail, Version 1.0 (1822) has killed all accounts

    I have a Yahoo account, an ATT account (via Yahoo), a gmail account and an iCloud account. They worked fine after upgrading to Mavericks.  THEN, the gmail bug fix came out and Mail updated.  Now, I can't access the Yahoo, ATT or Gmail accounts. Mail

  • Does Flex or Flash islands support ALV table scrolling ?

    Hello experts, if I have a webdynpro abap ALV table, no "real" scrolling in a large list is possible. The paginator buttons as well as the "scrollbars" always trigger a roundtrip, and it takes a moment or two until the next page or line is displayed.

  • A question about ordering 32-bit Test drive DVDs on SAP Knowledge Shop

    Dear all, I ordered the following DVDs on the SAP Knowledge Shop website: - SAP NW2004s Testdrive Linux DB2 PPC                 - SAP NW2004s Testdrive MaxDB And it seems that the first one works with 32-bit linux. Because, this is the first time tha

  • Close Bridge to install, it's closed

    I'm trying to install CS5 on Vista 64 and I keep getting a message to close Adobe Bridge to continue.  It is closed and I have started and closed bridge, rebooted the computer and still get the same error message.  Not liking CS5 already.

  • How can I find the correct URL

    I am new and having a problem trying to use Jconnect with the sybase database on my PC. I got an exception as follows after run in JBuilder for the connection code like this: Connection conn = DriverManager.getConnection("jdbc:sybase:Tds:localhost:78