Filter view object by selected values from list of values

Hello,
I've the following problem with my ADF Application. I have three view objects in my application module. Two of them are connected via a view link. For example take users, who are connected to their departments. The remaining view object consists of factories. Now I want to show the user/department dependency in a tree table and the available factories in a list of values. This list of values should be used to filter the shown users.
I've already tried to use bind variables in the users view object. But I don't know how to fill them with the value of the list of values.
Can someboy give me a tip how to solve this problem.
Best regards,
Enno

Hi Enno,
Try this:
- Have a AM method with one parameter(which takes user from the list of values) and inside AM method write code to set the bind parameter value and execute the query
Sample Code
public void filterByUser(String user){
   //Get your UserViewObject instance to userVO
   userVO.setNamedWhereClauseParam("<Bind_Variable_Name>", user);
   userVO.executeQuery();
}- Expose the method as client interface
- Drop the method (Data Control) as a button on to the page and pass the listofvalues value as a value to the method binding param
Something like this: ${bindings.<User>.inputValue}
- Finally refresh the master and detail tables based on the ListOfValues selection by setting partialTriggers property to the listofvalues component id
Hope it is clear
Sireesha
Edited by: Sireesha Pinninti on Oct 15, 2009 4:54 AM

Similar Messages

  • Get column values from list of values programmatically

    hi all
    how i get column values from list of values programmatically in the
    returnPopupDataListener method

    If this answers your question , please close this thread by marking it as answered.
    Thanks

  • How to access a value from "List of Values" by giving a name?

    I have a "List Of Values" defined in my BI Report. It comprises list of label-value pairs.
    I have defined a parameter :p_Value for the above "List Of Values" defnition. this parameter is used in datasource sql defnition to filter the query results. I configured a template which has a table that shows all the parameters used for filtering query results. If I give <?$p_Value?> in the template then the parameter value is rendered on it. But I want the "name" of the parameter and not the value. Can anybody tell me how to access name of the parameter which refers to one of value in "List of Value" defnition?

    option 1:
    Can you get the value from the DB in the report sql ?
    You have the code, inside the report query, if you can get the decoded value form that
    option2:
    create another paramater, LOV and query, and make it as hidden, and use the first :param_1_value in the lov query in the second param and decode the value.
    Now , you can refer the :PARAM_2_value in template which will have decoded value.

  • Display specific value from List of Values(LOV)

    Hi All,
    Is this possible in BOXI R2 that i created a List of Values like below:
    1. P1AF
    2. P1XA
    3. P2AF
    4. P2XA
    5. P2XD
    6. P3AF
    7. P3XA
    8. P3XD
    and i would like to show only 1 & 2 values for specific users. Or switch on /off some values without accessing the database.

    Can you confirm that this question is posted to the correct forum, or if it should go into another? 
    If this is Universe Designer related, you can review your LOV's by:
    1. right-click on the object in the universe designer, and select Properties dialog
    2. Select Properties tab,
    3. Select 'Display'
    4. then shift or control select the LOV's that you want to be viewable,
    5. enable the checkmark next to 'Show Selected Only'
    6. Click OK, and then save and re-export the universe.

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • JavaScript function which fetches return_value from List of Values

    Hi,
    I have created List of Values named "NICKS". I want to write JavaScript function "get_workers_fullname(nick)" which returns display_value from List of Values. The parameter of function is return_value of List "NICKS".
    I am new with this and don't know how to handle this case.
    Please help me.

    Hi,
    The LOV, I mean is the item in Application's Shared Components. I don't mean the visible SelectList on the page.
    This is what I found in ApEx's help: "A List of Values can be referenced by page items as well as report fields. It controls the values displayed and limits the user's selection. Lists of Values can be static (based on values you enter) or dynamic (based on a SQL query)."
    I'd like to access values in such LOV from JavaScript. I am not sure it is possible.
    Cheers,
    Tom.

  • Read more than one attribute from list of values record

    Hi,
    I am using Jdev 11.1.1.3.0.
    I have the following situation,
    have defined a read only view (schools information) which is a list of values for schools information ( schoolId, school name and school code) , I have to execute Query for that view as an Invoke Action in the executable s of the page,
    I need three attributes (A, B, C) in another view (name it student's school) to be set to the school information corresponding to a school chosen from a SelectOneChoice List
    I could not define the schools information as LOV for the attributes in the student's school, as I have to execute it in the executable s,
    I have an Iterator for the schools Information on the page and, bound the attribute A (from the student's school) SelectOneChoice as list to the school name (from school Information) , and then tried to read the current row of the schools Information Iterator like this inside a bean:
       Row  tempRow = getIteratorBinding("CmnLookupPrevSchoolRegView1Iterator").getCurrentRow();
       currStdPrevSchoolRow.setAttribute("B", tempRow.getAttribute("SchoolId"));
       currStdPrevSchoolRow.setAttribute("C", tempRow.getAttribute("SchoolCode"));but referring to the data saved in the DB, the values stored for the attributes B and C are not corresponding to the chosen school name , but corresponding to the first row of the iterator. ( not the current chosen)
    is there any suggestions, to have another approach to connect all the three attributes to the corresponding chosen values.
    or maybe it is just some properties for the Iterators,
    thanks in advance
    best regards,

    Hi,
    Have a look here: http://blogs.oracle.com/jdevotnharvest/2010/12/reading_the_selected_value_of_an_adf_bound_select_list_in_java.html
    If you read from a list binding then you get the row value from there as well - not from the iterator as lists don't change the current row
    Frank

  • Setting button property after selecting data from list

    I am not able to set the button property after selecting data from list.
    I would like to say that
    * If a user select an item from list, then user is only allowed to update or delete the data. The update and delete button should be enabled and save button should be disabled.
    * If the users types data manually, then user is allowed only to save this as new entry. The update or delete button at this time should be disabled and only save button should be enabled.
    I want to say that
    In both case, value will be there
    In one case, value will be from list and that is available for update or delete
    in another case, value will be typed from keyboard that is available for save(new entry).
    I do not want to use separate form for update/delete/save new record. I want to use single form for all these operations.
    I am using Form 6i and oracle 8
    Please guide me, I am trying to find this answer for last four days, but could not find the answer. Please help me. Waiting for you reply...

    Thanks Mr. fdellipriscoli,
    But where should this code be written and
    Where the parameter be set to 'YES'
    I think this code should be written somewhere when calling list.
    But bydefault list is called by pressing F9 key. Then where the parameter be set to 'YES' .
    Please help Mr. fdellipriscoli. Waiting for your reply...

  • Accessing view object class (impl) method from bean (or vice versa)

    Halo everyone, I am using JDeveloper 11.1.2.1.0
    I have a UsersViewImpl class with a method which refresh the user table like below.
    public void resetEmployeeSearch() {
    removeApplyViewCriteriaName("viewCriteria");
    executeQuery();
    and I have a UserBean class with a method which reset the search fields values like below.
    public void resetInput(ActionEvent actionEvent) {
    ........RichInputText = input ...
    input.setValue("");
    AdfFacesContext.getCurrentInstance().addPartialTarget(searchForm);
    I would like to implement it in such a way that, once I press a button, both methods will be called.
    I have tried to call from bean method using UsersViewImpl vs = new UsersViewImpl ..... which is wrong and wont work.
    I have read about doing something like ViewObject vo = am.findViewObject("DeptView1") but I duno how to use it because I cant have a proper example.
    Any suggestion on accessing view object class (impl) method from bean (or vice versa)?
    Or is there any way to combine both method in the same class ?
    Thank you :(

    User, if you get class not found exceptions you need to tell us which classes you can't find. The JSFUtils and ADFUtils classes needing some other libraries which should already be part of your Fusion Web Application template (which your adf application should be based on). If you did not use this application template, you may have to add some libraries yourself.
    What is the diff of using the ADFUtils and OperationBinding way?
    The ADFUtils can get you access to the application module which you then use to call exposed methods on. The disadvantage of doing this is that you have to implement your own exception framework which then handles exceptions thrown by the application module. An other thing is that if you e.g. alter a VO which you use on the page this changes are not seen on the page until you refresh the page. The binding layer does not know about these changes so the iterators (which are used on the page to show the data) are not refreshed and so you don't see the changes.
    In general you should avoid using the application modul in a managed bean method and always use the binding layer (OperationBinding) to call methods. This ensures that exceptions are all handled the same way and that changes to the data model are reflected in the GUI.
    Timo

  • Add Option of choosing values from list in "Person Responsible" field of Cost Center Master

    Dear All,
    Could anyone advise me how can I add the option to Choose Values from list to field "Person Responsible",
    in Cost Center Master Data ?
    The Technical Name of this field is VERAK, and currently it is an open field.
    I would like to allow the user to choose values from existing list.
    Thank you!
    Orly

    Hi Orly,
    You have take it to your ABAPer, who will have to modify the attributes of CSKSZ-VERAK field in CSKSZ structure. ABAPer will have to define it with foreign key and introduce the name of the table, which will be used for deriving the available values. No standard table exists for it, but you can either create your own Z-table or take it from users table (USR02) if you have the necessary information there. Of course, this action would account for modification of standard SAP structure.
    Regards,
    Eli

  • How create temporary table from list of values

    Can you anybody advise me how can I create temporary table from list of values? I have list of values and need create temporary table for next use with command JOIN etc.
    Thank you for help

    NO, you can not create temporary table in oracle on the fly ( Like #Tabels in SQl Server or Sybase ) , you will have to use the GTT i.e Global Temporary Tables
    check the following link GTT :
    to flush the tables after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT DELETE ROWS;In contrast, the ON COMMIT PRESERVE ROWS clause indicates that rows should be preserved until the end of the session.
    so to keep rows in Table after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT PRESERVE ROWS;

  • Calling function from list of values section?

    can i call a function from list of values(LOV) section as well? I know we can sql query but udf is supported?

    See this recent thread: Display as Text (LOV) or join
    Scott

  • Custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list

    I  am looking for custom sendemail in sharepoint 2013 designer workflow using dictionary object with email template from list
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Greetings.
    pls check if it helps you.
    http://msdn.microsoft.com/en-us/library/office/jj554504(v=office.15).aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to select 2column from 1 column values

    Hi All,
    How to select 2column from 1 column values
    Ex : In Emp they have JOB column
    JOB
    CLERK
    MANAGER
    SALESMAN
    MANAGER
    MANAGER
    ANALYST
    PRESIDENT
    SALESMAN
    CLERK
    CLERK
    ANALYST
    CLERK
    here i want to get output like as follows
    Ex: ejob1 ejob2
    ANALYST SALESMAN
    ANALYST SALESMAN
    Can anyone helps me in this,it is urget
    Thanks,

    Something like
    select a.job, b.job from scott.emp a, (select job from scott.emp) b
    CLERK     CLERK
    CLERK     SALESMAN
    CLERK     SALESMAN
    CLERK     MANAGER
    CLERK     SALESMAN
    CLERK     MANAGER
    CLERK     MANAGER
    CLERK     ANALYST
    CLERK     PRESIDENT
    CLERK     SALESMAN
    CLERK     CLERK
    CLERK     CLERK
    CLERK     ANALYST
    CLERK     CLERK
    SALESMAN     CLERK
    SALESMAN     SALESMAN
    SALESMAN     SALESMAN
    SALESMAN     MANAGER
    ...

  • How many view object instances can create from Single Entity ?

    Hi All,
    JDev Ver : 11.1.1.5
    I want to How Many view objects can i create from the single entitiy ?
    Is there any limit ?
    Thanks,
    Gopinath

    No, there is no limit

Maybe you are looking for

  • Ipod nano - Error Message 'Win 32 is not a valid application'

    Can anybody help ? I have just downloaded the itunes set up as instructed but get this error message. Is this something I have to do to the PC ?

  • Automatic Windows Update via Group Policy in Windows 8

    Hi, I have created a new GPO to place some settings on the Automatic Update to all my client pcs. The settings applied as the image i uploaded below. The problem is that this GPO were successfully applied to all my Windows 7 machine but not Windows 8

  • Smart applications not always so smart

    Hi. Most of us are becoming well aquainted with, and even to the point of depending upon, "smart" devices and "smart" programs for our daily activities and business dealings. And, these smart devices and smart programs have made a big difference in o

  • Syncing iTunes with my iPad2

    I have my music library in iTunes on my PC. Included are CD's that I have downloaded. When I sync my iPad2 with the iTunes on the PC, I do not get the downloaded CD's onto my iPad, only the iTunes purchases. How do I get my CD's in the iPad as well?

  • Infobject missing in  0FIGL_C10

    Hi All, We hae implemented NEW GL Functiionality in our SAP 6.0. For reporting this into BW 7.0 I have installed the Business content of  Infucbe 0FIGL_C10 , ODS 0FIGL_O10. The System has installed the 3.x datasource and structure and there are some