narrows the list of values

Hello guys, I want to put something like where clause to the list of values. lets say I have an employees VO and VO of countries with ID and ID of country area in the attributes tab in the VO used, I can add a LOV of a specific attribute, I want to put a LOV on the employee name attribute. the source is the ID of country where the area ID =? I would like to declare the area ID grammatically. I know that this example doesn't do not any sense: P is it possible to make the VO.xml? Thanks in advance. Saidi

Hi Saidi,

Yes, you must first go to your country and create a view of criteria based on the zone ID. Next, you need to go to your EmployeeVO and create a LOV for countryId. Then in the tab to your EmployeeVo accessor, you must change the accessors for countries and criteria for views that you have created a shuttle. Oh, one thing is missing, since you want to add the country code grammatically you can create a transitional employee VO attribute and that attribute is that you select in the application of the criteria to view in your view accessors.

Concerning

Tags: Java

Similar Questions

  • The list of values in the table of the ADF is not other cela rather single attribute yourself.

    Dear all,

    I have a list of the values on the view object and and created a table by dragging the drop to the page.

    Problem is that LOV is advising no other attributes I mentioned as other attributes in the list of values. only the LOV element becomes selected ID.

    The following table properties

    -------------------------------------

    < af:table value = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel}.

    var = "row".

    lines = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    emptyText = "#{bindings." XxIncidentRptInjuredPersonsEOView1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    rowBandingInterval = '0 '.

    filterModel = "#{bindings." XxIncidentRptInjuredPersonsEOView1Query.queryDescriptor}.

    queryListener = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1Query.processQuery}.

    filterVisible = "true" varStatus = "vs."

    selectedRowKeys = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t1".

    "partialTriggers =": cb2.

    Binding = "#{CreateReportManageBean.injurdemptable} '"

    Width = "100%" >

    - ComboboxListOfValues - Tags

    < af:inputComboboxListOfValues id = "empIdId".

    popupTitle = "search and select: #{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.label}.

    value = "#{row." Bindings.EmpID.inputValue}.

    Model = "#{row." Bindings.EmpID.listOfValuesModel}.

    required = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.mandatory}.

    columns = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.displayWidth}.

    shortDesc = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.tooltip}.

    autoSubmit = "true" >

    < f: validator binding="#{row.bindings.EmpId.validator}"/ >

    < / af:inputComboboxListOfValues >

    ---------------------------------------------------------------

    Take the af: inputComboboxListOfValues Id (for example, "empIdId") and put it in the partialTriggers of other attributes.

    or

    You can go to pageDef. --> select iterator table--> properties--> Advanced--> ChangeEventPolicy set for ppr

  • How to create parameters and the list of values in BI Publisher

    Hello friends,
    I use BI Publisher 10.1.3. I tried to create a report based on the data of a column for ex: dept_no
    in the data model, I specified the name of the table to select all columns
    I created the list of values taken as a query sql-type. in the query I wrote dept_no Department selection
    In the settings section I gave him as an integer value, and by default as * parameter type in the menu then I chose the name list the value that I've previously specified...
    now the problem is when I run the report I receive all data despite selecting the parameter I need particular data of this deptno
    What could be the reason
    pls let me know
    Thanks and greetings

    In your main data model query, you use this parameter to limit the data for the selected service?

    For example. Select dept_name of departments where dept_no =: p_dept

    where: p_dept is your parameter...

    Thank you!

  • Unable to read the list of values of FRM-40502

    Hi all

    Unable to read the list of values of FRM-40502

    get this error when I try to fill the list of values for some employees

    Here's the LOV query
    Select dsm_code,dsm_desc,dsm_content from deschange_master
    where dsm_orgn=:parameter.p_orgn
    and (dsm_ctry =:parameter.p_ctry or :parameter.p_ctry is null)
    and(dsm_loc =:parameter.p_loc or :parameter.p_loc is null)
    and( dsm_oru =:parameter.p_oru or :parameter.p_oru is null)
    and
    ((DSM_CODE  like '%PWI%' and DSM_CODE like '%INCR%')
    and (select count(eih_emp_code)from employee_increment_header
    where eih_emp_code =:edcd_emp_code and
    to_date(eih_eff_date,'DD-MON-RR') = to_date(:desig_date,'DD-MON-RR'))=1)
    or
    ((DSM_CODE not like '%PWI%' and DSM_CODE not like '%INCR%')
    and (select count(eih_emp_code)from employee_increment_header
    where eih_emp_code = :edcd_emp_code and
    to_date(eih_eff_date,'DD-MON-RR') = to_date(:desig_date,'DD-MON-RR'))<>1)
    order by dsm_code

    Hello
    Try

    Select dsm_code,dsm_desc,dsm_content from deschange_master
    where dsm_orgn=:parameter.p_orgn
    and (dsm_ctry =:parameter.p_ctry or :parameter.p_ctry is null)
    and(dsm_loc =:parameter.p_loc or :parameter.p_loc is null)
    and( dsm_oru =:parameter.p_oru or :parameter.p_oru is null)
    and
    (((DSM_CODE  like '%PWI%' or DSM_CODE  like '%INCR%')
    and (select count(eih_emp_code)from employee_increment_header
    where eih_emp_code = :EDCD_EMP_CODE and
    eih_eff_date = to_date(:DESIG_DATE))=1)
    or
    ((DSM_CODE not like '%PWI%' and DSM_CODE not like '%INCR%')
    and (select count(eih_emp_code)from employee_increment_header
    where eih_emp_code = :EDCD_EMP_CODE and
    eih_eff_date = to_date(:DESIG_DATE))!=1))
    

    Thank you

  • The list of values Swich, need help

    Hello! I have two elements LOV in my form! When I change the first element, then the second LOV values need to change. I use the list of values Switcher! (see: http://my.jetscreenshot.com/2677/20100713-r6tu-74kb), but when I run my page, change first LOV, nothing happens with the second LOV. But when I go to another page and back and then second LOV changed values. The two LOV I have true AutoSubmit. Abyone can tell, where is the problem and what to do?

    Best regards!

    Hi Debuger,

    First, double-click the second entity and goto option dependencies LOV field and just select LOV first field on the left and move it to the right...
    This is because once the first LOV posted value in the entity it will update the secod one too...

    Kind regards
    Suganth.G

  • Select the first value in the list of values when running in poplist

    Hello
    IM using forms 6i. I filled the poplist by request. But what I need, I want to choose the first value in the list of values when running...

    That is to say, during execution, the poplist should have chosen its first value in the list of values.

    What to do...

    Concerning
    Sery

    WHEN CREATING a RECORD of the block of the list item or after the filling of the list item, you can write

    : my_list_item: = GET_GROUP_CHAR_CELL ('my_list_item', 1); / * If the data type of the item in your list is character.*.

    Here, instead of 1, you can give any clue... 1: value to the first list item position

  • How to complete the list of values when loading screen

    Hi all

    I have a list of values based on another field (ANOTHER_FIELD).

    for example
    Select the value d, r
    from table_name
    where id =: ANOTHER_FIELD;

    ANOTHER_FIELD has a default value.

    But when the screen is opened to the list of values does not have the default value and the values list is empty.
    Just when it is filled with submission of the form, the list of values.

    Please tell me how can I complete the list of values when loading screen.

    Thank you!

    Hello

    It depends on how you have defined the default value for ANOTHER_FIELD.

    I always set my default settings using a calculation, that runs before header, on the element that defines the value using a static assignment, but to ensure that the calculation is dependent on the order of the day being NULL - try this

    Andy

  • Display the list of values

    I created a page in a table with 3 elements. I wanted one of the items in a value list.

    Under the shared components, I created a dynamic list of value. I wanted now to fix the LOV on this element. For the page in question, I went to Page rendering-> items, but can not see all items created for this slot table form. Where did I select the item so that I can join the list of values.

    I read the day 2 + Application Express Developer's Guide and followed the example here.

    Thank you

    Hello

    On your page go to 'regions' and before the name you have given to this area, you can see a link that says "Report" click there and you can see all the items in the form of tables.

  • The list of values with contains criteria

    Hello

    I use Jdev 11.1.2.0.

    I created a template driven Input text with a list of values and display the page and works very well. (List of values to an attribute in a VO and display of this attribute as LOV)

    My requirement here, is when the user enter something in the inputtext LOV and clicks, then pop LOV should open with result of defined values.

    These defined values of result should be extracted from the operator 'Contains'.

    How to get there?

    I created a viewcriteia using the ' contains ' operator, but its giving the result set with the operator 'starts by .

    No solution to achieve this?

    I was unable to try it, because criteriaItems list contains nothing other than '{} '.

    We obviously do not understand each other.

    As I said in the previous answer, you can't check if criteriaItems contains 'something' with System.out.println ("criteriaItem" + criteriaItem);

    With this declaration, you can see that criteriaItems is not null.

    Thus, code comments, replace "=" with JboCompOper.OPER_CONTAINS (or with another operator) and try it.

    Dario

  • From the list of values in the procedure and trying to validate values

    Hello

    I create a procedure that will allow to validate data entered by the user.  Users can add values in a text box on my web page and I need to pass to an oracle procedure and check the table if these values exist.  I need to return a list of values that do not exist.  That's what I have so far

    CREATE OR REPLACE PROCEDURE VALIDATE 
    (
      P_VLIST IN VARCHAR2 ,
      P_RECORDS OUT SYS_REFCURSOR
    )
    AS
      V_SQL VARCHAR2(4000) := '' ;
    BEGIN
    V_SQL :=          'SELECT VAL '||CHR(10) ;
    V_SQL := V_SQL || 'FROM DVALUES '||CHR(10) ;
    V_SQL := V_SQL || 'WHERE VAL NOT IN (' || P_VLIST || ')'||CHR(10) ;
    V_SQL := V_SQL || ' ORDER BY VAL' ||CHR(10) ;
    OPEN P_RECORDS FOR V_SQL;
    END VALIDATE ;
    /
    

    My problem is that it will return all the values of DVALUES.  Can I put my list into a temporary table and do a left join to DVALUES and where the values of the two tables I can create a bool column that has a 1 or 0 indicating whether or not the value is good then select on the table and return the list of bad values?

    Thank you

    SQL > CREATE OR REPLACE
    PROCEDURE (2) P_VALIDATE
    3 P_VLIST IN VARCHAR2,
    4 P_RECORDS OF THE SYS_REFCURSOR
    5                        )
    6 AS
    V_STMT 7 VARCHAR2 (4000);
    BEGIN 8
    9 V_STMT: = ' SELECT ELEMENT FROM (SELECT ";)
    10 V_STMT: = V_STMT | REPLACE (P_VLIST, ',', 'ELEMENT OF DOUBLE UNION ALL SELECT');
    11 V_STMT: = V_STMT | FROM DUAL) WHERE THERE IS NO (SELECT 1 FROM DVALUES WHERE VAL = ELEMENT)';
    12. OPEN P_RECORDS TO V_STMT;
    13 END P_VALIDATE;
    14.

    Created procedure.

    SQL > EXEC P_VALIDATE('10,15,20,25,30,35,40',:V_CUR)

    PL/SQL procedure successfully completed.

    SQL > V_CUR PRINT

    ELEMENT
    ----------
    15
    25
    35

    SQL >

    SY.

  • How to get the attributes from the list of values

    Hello

    I have two display objects, of 'Customer' and 'CustomerDetails '.
    'Client' view, has the attribute 'CustomerId' I've defined as LOV with view of 'CustomerDetails '.
    Like this:
    <ListBinding
        Name="LOV_CustomerId"
        ListVOName="CustomerDetailsView1"
        ListRangeSize="-1"
        NullValueFlag="start"
        NullValueId="${adfBundle['oracle.javatools.resourcebundle.SystemBundle']['NULL_VALUE_RESID']}"
        MRUCount="0">
        <AttrArray Name="AttrNames">
          <Item Value="CustomerId"/>
        </AttrArray>
        <AttrArray Name="ListAttrNames">
          <Item Value="Id"/>
        </AttrArray>
        <AttrArray Name="ListDisplayAttrNames">
          <Item Value="Name"/>
        </AttrArray>
        <DisplayCriteria/>
      </ListBinding>
    I hung out in the soc on my page
    <af:selectOneChoice value="#{bindings.CustomerId.inputValue}" label="#{bindings.CustomerId.label}"
          required="#{bindings.CustomerId.hints.mandatory}"
           shortDesc="#{bindings.CustomerId.hints.tooltip}" id="soc16" autoSubmit="true">
     <f:selectItems value="#{bindings.CustomerId.items}" id="si16"/>
    </af:selectOneChoice>
    In the 'CustomerDetails' view, there is also "address" attribute.
    I would like to get the address according to the ID.

    How could I get through links?
    or in another way.

    Thank you!!

    Hello

    You want to display the address that is present in VO from customer to customer details?

    If so,.

    Perform the following steps:

    1 - Create a transient with string type attribute customer details VO (always updated).
    2 - I hope you have an attribute customer id here attribute where you created LOV. When LOV created in create list of values jump towards the top in the list of return values assign the value of the address in the transitional attribute.

    If you put this attribute on the user interface you can see the customer address id value correspondent.

    Thank you
    Prateek

  • The list of values for an unfounded of parameter database

    Hi all

    Again, the question is maybe stupid, but we are not able to find a work around.

    Scenario:
    We have a database record that contains a column named FLAG. FLAG column have values:
    Am a combination of 'W', 'F', 'and has'. That is, there may be values such as 'W', "WD", "WDFM"...
    What we weant must have a parameter say 1 m env, so that we can have a condition like FLAG like "%" | : P1 | » %'.
    Now, we insist on users to enter W, F, M or D to: P1 (P1 is an unfounded database parameter). Is it possible to make a list of values?

    Thanks in advance,
    Jac

    Hello

    Yes you can do it. You must create a folder in the EULS that returns 4 lines with 'W', first'm 'F', 'and has'. You can then create an item LOV class based on this issue.

    Then in the EUL, you create a dummy element in the folder that you use in the report. The dummy element can always return null, but you will be able to put the dummy element in your item class.

    Then in the workbook create the setting based on the fake item, but does not create a condition with the parameter. You can then use the parameter in a condition like "%" | : P1 | » %'. Because the setting is based on an element that is located in the item LOV class there will be a LOVs for the parameter.

    Rod West

  • The concatenation of the list of values in a single variable.

    My query returns the list of transactions. I want to store all of these operations in a single variable, and are separated by commas. We reach this feature of loop FOR. are there - it a simple method to do this? Please let me know if you have any ideas.

    Thanks and greetings
    Nana Akkivalli.

    If you use database 11 g 2, you can use see LISTAGG
    http://download.Oracle.com/docs/CD/E14072_01/server.112/e10592/functions087.htm

    There is a post here with various other alternatives;
    http://www.Oracle-base.com/articles/Misc/StringAggregationTechniques.php

    See you soon
    David

  • The list of values - return value identical to the display value

    I fill a selection list with the names of the members with a lov sql like the following

    < tt > select memberName d, r FROM whateverTable < /tt > memberId

    The problem is that in the database, the stored value is the Member ID. I really want the real memberName stored in the database instead I want to use this name of Member elsewhere in my application.

    When the integrated trigger executes its code

    < tt >

       if NVL (:old. CONTACT_PERSON,'0') ! = NVL (:new. CONTACT_PERSON,'0'( ) then

    Insert into eba_ca_history ()table_name component_rowkey COMPONENT_ID column_name old_value new_value) values

           ('EVENTS', :new.row_key, :new.event_id, 'EVENT_OWNER',:old. CONTACT_PERSON,:new. CONTACT_PERSON()

       end if ;

    < /tt >


    I get the following text shows on my apps update page-"owner of an event has changed from 457879885611315631565 to 2546454654546546546546..."

    lov.PNG

    I want the value of the actual display to display for an update instead of the return value.


    I tried to convert the value to help

    lov2.PNG


    But which causes the following error


    lov3.PNG


    How can I make sure that the return value of the lov being stored in the database matches the display value for the lov?

    Hi Richie,

    If I understand your request, simply set your LOV query with the same column like screen and return:

    select memberName as display_value, memberName as return_value FROM whateverTable
    

    If this isn't what you're asking, I apologize for the misunderstanding.

    Thank you

    Erick

  • How to display the list item values both from 2 different tables?

    Hello world.

    I have a problem for the display of the data.

    There are 2 tables in the database.

    Table-1 has lc_value, lc_no, lc_dt, and vendor_code columns.

    Table-2 has vendor_code, $vendor_name & vendor_address.

    I created the form where I display data in list item 30 (tabular presentation - 30 records displayed).

    I need to display all values automatically at the same time in the form just by clicking on "Enter_Query" and "Execute_Query".

    It worked when the form had fields in a table in a single table.

    I created fields in a table for tables; then created the relationship between the tables by using the join (vendor_code).

    But when I run the form, click on "Enter_Query" and "Execute_Query", its does not work.

    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production.

    How can I do this?

    Help me.

    Thank you.

    Dear Bruno,

    Each provider code is to have a folder, then

    Why keep two tables?

    Why you want to update both the table at the same time?

    Master / detail means,.

    a master record depends on several detail records.

    Please, understand and try to build your form with single table.

    If you have already created 2 tables, then merge these into a single table.

    Or other wise keep table_1 as a database block and to vend_name as a data field (element of database in the palette of the property is set to 'no').

    Then go to the trigger of table_1 block post_query and write the following:

    Select vend_name in: vend_name from vendor_mst where vend_cd =: lc_vend_cd;

    In doing the above, the form will look as you wish but the change on the vend_name not to be saved because that is the point of no database.

    Other than vend_name all fields in table_1 will be recorded.

    Hope this will help.

    Post edited by: Priyasagi

Maybe you are looking for