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

Tags: Java

Similar Questions

  • 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

  • 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

  • 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.

  • where the list book mark with the star icon

    The list of bookmarks with a star that normally appears on the right side does not appear. Where is he

    Note that the screenshot shows you the bar menus visible.

    The button Menu bookmarks will be only visible when you hide the Menu bar you can access bookmarks from the bookmarks menu in this case.

  • 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

  • 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

  • Place the missing documents in the list of records with a rank value

    Hi all

    I have this table:
    WITH taba AS (SELECT 99 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         1 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 99 AS id,
                         '2011-09-08' AS date_ini,
                         11 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 99 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         4 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         1 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-09-08' AS date_ini,
                         10 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 999 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         3 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-08-08' AS date_ini,
                         10 AS VALUE,
                         2 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-09-08' AS date_ini,
                         15 AS VALUE,
                         3 AS RANK
                    FROM DUAL
                  UNION ALL
                  SELECT 9999 AS id,
                         '2011-10-08' AS date_ini,
                         10 AS VALUE,
                         4 AS RANK
                    FROM DUAL)
    SELECT *
      FROM taba
    And I need to return the same results but with the addition of records that have no rank. For new records the VALUE must always be zero (0) and the value of DATA_INI must have the same value as the order of the records immediately following. Just like that:
    99       2011-08-08     10     1
    99       2011-09-08     11     2
    *99       2011-10-08     0     3*
    99       2011-10-08     10     4
    999      2011-08-08     10     1
    999      2011-09-08     10     2
    999      2011-10-08     10     3
    *9999     2011-08-08     0     1*
    9999     2011-08-08     10     2
    9999     2011-09-08     15     3
    9999     2011-10-08     10     4
    I can do this using a loop procedure, but I want a filter query. ;)

    Thanks in advance.
    Filipe Almeida

    Hi, Felipe,.

    So, you want multiple copies of a few lines. In other words, if a value or rnk (RANK is not a column name right) is missing in a given id you want to with the next highest rnk and the same id line repeated 2 or maybe even several times. All copies will be identical, except that rnk will have the missing numbers, and the value will be 0 on all additional copies.

    A way to do that is to join your table (or something very similar to it, as in the example below) to a Meter of Table , which is a table (or a result set, in this example) counts 1, 2, 3,... up to however many copies may be required.

    WITH     got_rows_needed          AS
    (
         SELECT     id, date_ini, value, rnk
         ,     rnk - LAG (rnk, 1, 0) OVER ( PARTITION BY  id
                                                ORDER BY          rnk
                                )         AS rows_needed
         FROM    taba
    )
    ,     cntr               AS
    (
         SELECT     LEVEL - 1     AS n
         FROM     (
                   SELECT     MAX (rows_needed)     AS max_rows_needed
                   FROM     got_rows_needed
              )
         CONNECT BY     LEVEL <= max_rows_needed
    )
    SELECT    r.id
    ,       r.date_ini
    ,       CASE
              WHEN  c.n  = 0
              THEN  r.value
              ELSE  0
             END               AS value
    ,       r.rnk - c.n          AS rnk
    FROM       got_rows_needed  r
    JOIN       cntr             c     ON  c.n  < r.rows_needed
    ORDER BY  id
    ,            rnk
    ;
    

    By elsewhere, store date information in a VARCHAR2 column, such as date_ini, is a very bad idea. Use a DATE column.

    Published by: Frank Kulash, August 8, 2012 11:02

    RANK is a keyword from Oracle. (It is the name of a built-in function). If you specify your own columns of RANK, it will confuse people reading the code, and it can result in compiler errors, too.
    ID is also an Oracle keyword. To be sure, you can use another name, such as grp_id, instead of id.
    It is best not to name your own objects with any name of fArrondi in v$ reserrved_words.keyword.

  • Cascading list of values with a many-to-many relationship

    Hi all

    I have three paintings; semester, subject and half of subject. Each semester has a lot of topics and a subject can be taught in several semesters.

    create table semester(
         id number not null,
         name varchar2(50) not null,
         primary key(id)
    );
    create table subject(
         id number not null,
         name varchar2(50) not not null,
         primary key(id)
    );
    create table semester_subject(
         id number not null,
         semester_id number not null,
         subject_id number not null,
         primary key(id),
         foreign key(semester_id) references semester(id),
         foreign key(subject_id) references subject(id),
         constraint semester_subject_uq unique(semester_id, subject_id)
    );
    
    

    EDIT: I have a page with a report that shows all students who are currently enrolled in the selected for the selected session object.

    There are two selection lists at the top of the report, one for the half and the other for the subject.

    What I try to do is when you select a semester in the half selection list, the topic selection list should contain only the subjects for the half of some (not all) in the subject of the painting.

    h

    If the relationship was of 1 to many that I could write to see half of value

    select name, id
    from semester
    order by 1
    
    

    and for the purpose of value list

    select name, id
    from subject
    where semester_id = :PX_SEMESTER
    
    

    But now that the relationship depends on the table of semester_subject, I can't find a way to achieve this and Googling has not helped.

    Thanks in advance for any help.

    I believe that this issue has also been implemented on stack overflow plsql - list of values cascading with many-to-many relationship - stack overflow and received a very wide response. If the OP has not yet verified, he may want to.

    (FYI: I'm not the person who answered there.)

  • Require a script to the list of files with sizes on all data stores in a cluster

    Hi all

    Please be gentle, im not new to Vmware, but new to powershell/powercli and need your help.

    cli power can make or y at - it tools available that will do that for me?

    I need to generate a list of all the files of the virtual machine in all stores of data available for cluster and their sizes to go with it.

    I am mainly interested in the .log files and vmdk files, but I don't mind if it lists all.

    I don't mind how his im laid out not after anything fancy just a list of output type something like

    /

    I did some research but there is nothing I have found that it will make.

    My environment is currently esx 3.0.2 with vcenter servers. (currently being upgraded to 4)

    Lots of help thanks

    Yes, it's a 'characteristic' knowledge when using PowerCLI 4u1 against a VI 3.x environment.

    There is a way to workaround, try this

    $dsImpl = Get-Cluster  | Get-VMHost | Get-Datastore | where {$_.Type -eq "VMFS"}
    $dsImpl | % {
         $ds = $_ | Get-View
         $path = ""
         $dsBrowser = Get-View $ds.Browser
         $spec = New-Object VMware.Vim.HostDatastoreBrowserSearchSpec
         $spec.Details = New-Object VMware.Vim.FileQueryFlags
         $spec.Details.fileSize = $true
         $spec.Details.fileType = $true
         $vmdkQry = New-Object VMware.Vim.VmDiskFileQuery
         $spec.Query = (New-Object VMware.Vim.VmDiskFileQuery),(New-Object VMware.Vim.VmLogFileQuery)
         #Workaround for vSphere 4 fileOwner bug
         if ($dsBrowser.Client.Version -eq "Vim4") {
              $spec = [http://VMware.Vim.VIConvert|http://VMware.Vim.VIConvert]::ToVim4($spec)
              $spec.details.fileOwnerSpecified = $true
              $dsBrowserMoRef = [http://VMware.Vim.VIConvert|http://VMware.Vim.VIConvert]::ToVim4($dsBrowser.MoRef);
              $taskMoRef = $dsBrowser.Client.VimService.SearchDatastoreSubFolders_Task($dsBrowserMoRef, $path, $spec)
              $result = [http://VMware.Vim.VIConvert|http://VMware.Vim.VIConvert]::ToVim($dsBrowser.WaitForTask([http://VMware.Vim.VIConvert|http://VMware.Vim.VIConvert]::ToVim($taskMoRef)))
         } else {
              $taskMoRef = $dsBrowser.SearchDatastoreSubFolders_Task($path, $spec)
              $task = Get-View $taskMoRef
              while("running","queued" -contains $task.Info.State){
                   $task.UpdateViewData("Info")
              }
              $result = $task.Info.Result
         }
    
         $result | % {
              $vmName = ([regex]::matches($_.FolderPath,"\[\w*\]\s*([^/]+)"))[0].groups[1].value
              $_.File | % {
                   New-Object PSObject -Property @{
                        DSName = $ds.Name
                        VMname = $vmName
                        FileName = $_.Path
                        FileSize = $_.FileSize
                   }
              }
         }
    } | Export-Csv "C:\File-report.csv" -NoTypeInformation -UseCulture
    

    I have attached the script to avoid any problems with the hooks.

    And the regex expression is updated to account for the names of comments with whites.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • 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

  • Refresh the list of VIAccounts with PowerCli to select a newly created group

    Hi all

    I use a script that creates groups in Active Directory and connects to my server vCenter by using New-VIPermission. The trick is that it does not find the groups unless I restart the script (and so, I suppose, the connection).

    $My_Group = New-QADGroup -Name $My_AD_GroupName -SamAccountName $My_AD_GroupName -ParentContainer $My_OU -Connection $My_adConnection

    New-VIPermission -Entity $param_objects -Principal "Domain\$My_AD_GroupName" -Role ($My_Role.Name) -Propagate:($My_Role.Value) | Out-Null

    This script is going to create the group in my ad, but if you link to a new authorization in my vCenter, he'll be backNew-VIPermission Could not find VIAccount with name 'Domain\MY_GROUP_NAME'.

    When you restart the script, he will pass on the creation of group directly to the new VIPermission and properly bind to the vCenter object.

    I tried to add a waiting order, and a sleep of 5 seconds, but used to change one thing...

    How can I manage to reload and refresh the list of available groups without having to restart the vCenter connection?

    Thanks in advance!

    Well, I added the following:

    "while (!). "(() Get-VIAccount-groupe-nommer"REDOUTE_FRANCE\$ My_AD_Task_GroupName")) {Start-sleep - s 1}.

    And it works. Slow but it works

    Thanks, LucD!

Maybe you are looking for