How to filter data by list item

hi all,
I create list item on block BLK1 ,
name :emp_name
item type: list item
elements in list : list_elements : (null) list_item : (null)     
data type : Char
maximum length : 200
and create PROCEDURE :
PROCEDURE POPULATE_LIST_BY_QUERY(P_LIST_NAME VARCHAR2,P_QUERY VARCHAR2) IS
   RG_NAME  VARCHAR2(30) := 'RG_CODE_DESC' ;
   RG_ID    RecordGroup;
   errcode  NUMBER;
   LIST_ID  ITEM;
BEGIN
     RG_ID := FIND_GROUP(RG_NAME);
     IF NOT ID_NULL (RG_ID)
        THEN DELETE_GROUP (RG_ID) ;
     END IF;
     RG_ID   := Create_Group_From_Query (RG_NAME, P_QUERY) ; 
     errcode := Populate_Group (RG_ID) ;  
     LIST_ID := FIND_ITEM (P_LIST_NAME) ;
     POPULATE_LIST (LIST_ID,RG_ID) ;
END;and wrote in trigger WHEN_NEW_FORM_INSTANCE:
  POPULATE_LIST_BY_QUERY('BLK1.emp_name', 'SELECT emp_name,emp_id FROM employees');
create table employees
(emp_no number(10) primary key,
emp_name varchar2(200))
Insert into EMPLOYEES
   (EMP_NO, EMP_NAME)
Values
   (1, 'hhh uuo');
Insert into EMPLOYEES
   (EMP_NO, EMP_NAME)
Values
   (2, 'hh ppp');
Insert into EMPLOYEES
   (EMP_NO, EMP_NAME)
Values
   (3, 'ph');
Insert into EMPLOYEES
   (EMP_NO, EMP_NAME)
Values
   (4, 'uuuuu');
COMMIT;when Run my form list item give me all data, no problem ,ok
My question is that can i want to filter data when write anythnig data is found im my list or part of data,
show data only by my filter,
for example:
I wrote in my list : hh
show data in list:
hhh uuo
hh ppp
I wrote in my list : h
show data in list:
hhh uuo
hh ppp
ph
I wrote in my list : uu
show data in list:
uuuuu
if not wrote anything fetch me all data,
Thanks a lot

Hi,
You can try,
POPULATE_LIST_BY_QUERY('BLK1.EMP_NAME', 'SELECT EMP_NAME, EMP_ID FROM EMPLOYEES WHERE EMP_NAME LIKE ''' || <your_search_variable> || '%''');Hope this helps.
Regards,
Manu.

Similar Messages

  • Report workload by calculating how many versions of SharePoint list items created in a certain time period

    I have a total of 66 SharePoint 2010 lists - yes, 66! - each lists contains between 1500 and 3200 list items.  My employees update these various list items throughout their workday.  Each update to a list item creates a new version of the list
    item.  On average each list item will have anywhere from 5 to 10 versions before it is done.  I need to create a report that tells me how many list items they've updated in a certain time frame.  I have come close but still cannot arrive at
    the data I'm looking for. 
    This is what I have so far:
    I've created a report using SQL Report Builder 2008 v3 where I've filtered it to show only items MODIFIED between, for example, Feb1 and Feb28.  Of those records, I want the report to tell me how many versions were created during that time
    frame.  The result is one list item with 5 total versions.  Versions 1.0, 2.0, & 3.0 were created on 12/12/14.  The last two versions, 4.0 and 5.0, were created on 2/24/15.  Therefore, the answer I'm looking for is 2 because they
    created 2 versions between Feb1 and Feb28.
    However I get the following results using these queries:
    If I do a =Sum(Fields!owshiddenversion.Value) in the expression field I get the total versions which is 5
    If I do a =Count(Fields!owshiddenversion.Value) in the expression field I get the instance which is 1
    Is there a way to count ONLY the number of versions created in a time period?  Is there another hidden field in SharePoint that I can use in the expression that will give me results I'm looking for?

    Hi Rafael70,
    Per my understanding that you have already get all the need fields and informaiton of the updated version of list items and now you want to calculate how many versions of SharePoint list items created in a certain time period, you can't get desired result
    using sum and count function, right?
    I have tried to tested on my local environment but because I am not clear what is value in the field "owshiddenversion", I assumed you have two datatype parameters (StartDate and EndDate) to help filter the report in a certain time period.
    Generally, if you have add the filter correctly, it will filter the correct number's updated version in this time period, I would like you to provide details information as below to help better analysis the requirements:
    Could you please provide sample data of the table.
    Please provide snapshot of the report structure you have currently designed.
    Please try to provide all the expression you have used.
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to filter data

    Dear Friends
    How to filter data by entering data in the field then the data filtered according to the data that is enter the filed
    For example
    If I have a list of values in the field EMPNO , and If I enter ‘S’ at the field EMPNO before pressing F9
    it should display those employees only when I press F9 as the following :
    SMITH
    SCOTT
    And if enter ‘AL’ it should display those employees only when I press F9 as the following:
    ALLEN
    ALI
    But if don’t enter any value in EMPNO and press F9 Then It should display all the All the employee’s name as the following
    ENAME
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    ALI
    ABDULLAH
    Waiting for your valuable answer .
    Best regards
    Jamil Alshaibani

    Dear Rosario
    I have SET THE ITEM PROPERTY VALIDATE FROM LIST TO YES
    Of the field EMPNO ON WHICH I HAVE ASSIGN THE LOVE.
    And also I have written the script as the following:
    SELECT ENAME,EMPNO FROM EMP
    WHERE EMP.ENAME LIKE :EMPNO||'%'
    Then I type ‘S’ in the field EMPNO and I press F9 it is not responding for displaying the list of values it is displayed this message in the status bar ‘FRM-40502: ORACLE ERROR :UNABLE TO READ LIST OF VALUES .
    Waiting for valuable answer in details.
    Best regards
    Jamil Alshaibani

  • Displaying Multiple XML Data on List Item List

    Hi there..
    Is it possible to display multiple XML Data on List Item List. I mean like the example below.
    and how to programatically load image that depends on the XML data value (0=down arrow, 1=up arrow) and also how to refresh data every 1 second.
    Thank you very much...

    Hi Ann,
    Write a Forms procedure and in that open a cursor fetching all data you want to show in the list element and populate the list within the loop using Add-List-Element built-in. Call this procedure in When-New-Form-Instance trigger. Whenver form will be opened the your list element will be populated automatically.
    Hope that helps you.

  • 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

  • HOW TO FILTER DATA FROM MICROSOFT ACCESS

    HOW TO FILTER DATA FROM MICROSOFT ACCESS BASED ON DATE AND TIME AND GIVE THE RESULT TO A TABLE ?
    I need some example files , can anybody please help me ?
    Solved!
    Go to Solution.

    Just be sure to get examples specific to the Jet DBMS. It is rather "idiosyncratic" when dealing with time and date values.
    One question: the timestamp is being saved in a datetime field, right?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to pass data from list to internal table

    Sir,
    Please tell me how to pass data from list display to internal table. Some fields in the list display are input fields .These are added at run time and these added values should be stored in the internal table

    Follow this code sample:
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
        I_CALLBACK_PROGRAM                = W_REPID
        I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS'
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                            P_SELFLD TYPE SLIS_SELFIELD.
    case p_ucomm.
    when '<Some user Action>'.
      Data ref1 type ref to cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    E_GRID = ref1.
    call method ref1->check_changed_data
    * Your internal table will have the data
    endcase.
    ENDFORM.
    Regards,
    Ravi

  • How do I remove reading list items?

    How do I remove reading list items?

    Hello,
    In your reading list, just move your mouse pointer on the item and a small x will appear at the left of the title. Click on it to delete the selected item.

  • How can I delete a list item entry based on date? Nintex workflow?

    I have a list with two columns. One of the columns in the list has a training date. I would like to delete entries in the list after the date has passed. How can I do this?
    Should I create a Nintex workflow to run everyday?  What operation in Nintex would I use to check the date in the list and then delete an entry if the current date has come?

    Murugesa,
    I have access to SharePoint Designer and also Nintex.  Are you suggesting I use SharePoint Designer instead of Nintex?  I have not used visual studio much so my knowledge with it is not good.
    You can create the simple workflow using visual studio. Drag and drop the IF else activity and Code activity to delete the item.
    Inside code activity event, Retrieve your date column value and compare against your logic date. if list column value passed then code activity executes the deletion.
    Option 2:
    If you have SPD design permission on your site,you can simply wire the same logic in the out of box workflow GUI level.
    Murugesa Pandian.,MCTS|App.Devleopment|Configure

  • How to get the duplicate rows in dynamically generate data table [list items collection] and send emails in sharepoint2010

    Hi,
    i have share point list like  below
    ID   name AdminEmail Useremail   URl   DueDate   UploadSatus
    1    ppp     [email protected]  [email protected]    url  some date    uploaded
    2    yyy       [email protected]   [email protected]   url somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   emp
    AdminEmail and UserEmail  are lookup column
    i using query the list using caml query
    inside of foreach i am checking  two condition like below
    one is upload status in not empty
    i need to send to mail to admin user  this part i have done my adding all list items which have datatable apply group by working fine
    in send condition i am checking difference between DueDate And current date value
    if the value is =1 or -1
    if the value is i
    thank
    i am getting the
    table like below
    ID   name AdminEmail Useremail   URl   DueDate   Upload
    2    yyy       [email protected]   [email protected]   url   somedate    empty
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    my issue is here  how can i get the dynamic table rows which are same values of AdminEmail and user email  one set and distintict rows are another set
     sets which are same emails are same
    3  xxx         [email protected]   [email protected]    url   somedate   empty
    4  jjj           [email protected]    [email protected]  url     somedate   empty
    set 2
    2    yyy       [email protected]   [email protected]   url   somedate    empty
     how can i get this separate this can any one tell i need to send mail only one time to user [adim and user] .planing to aviod duplicate mail
    Srinivas

    your case better to use the two data tables to store the data
    DataTable dt = list.Items.GetDataTable();
    foreach (DataRow row in dt.Rows)

  • How to delete to-do list items in 5800 XM

    I transfered the data from my old PDA to Nokia 5800 XM. Now there are hundreds of to-do list items with showing up every day at the top of to-do list. I would like to delete lots of them. So, i can delete only one at a time. How do I select and delete a group of them on the phone? No, I am not using MS Outlook.
    I hope this state-of-the-art phone can do something basic as this.
    Thank you.

    Try installing Ovi Suite on a PC, connecting the phone up by USB, and selecting "PC Suite" mode. There should be a section in Ovi Suite for managing the calendar, and it'll let you get through it much quicker.
    An alternative (I'm not familiar with that model) would be to look in "options" for a "Mark/unmark" menu, which should give you "mark many" as an option.
    Help I'm trapped in a sig factory.

  • CAMl Query -CSOM - Display Modified date of list Item in a required format

    Hi All,
    I want to display last modified date of a List Item.
    I am getting the value in this format : 
    Tue Feb 25 23:06:57 PST 2014
    How ever, I want to display it as : Tuesday 25th February 2014
    Please suggest how to achieve this.
    Any informative articles, links w.r.t building such queries in CSOM (jQuery) is welcome.
    Thanks.

    I have the query : 
    function ReadListItem() {
                siteUrl = "my site Url";
                var listTitle = "NewsList";
                //Get the current client context
                var context = new SP.ClientContext(siteUrl);
                var newsList = context.get_web().get_lists().getByTitle(listTitle);
                var camlQuery = new SP.CamlQuery();         
                camlQuery.set_viewXml('<View><Query><OrderBy><FieldRef Name=\'Modified\' Ascending="FALSE"/></OrderBy><RowLimit>1</RowLimit></Query></View>";')
                this.listItems = newsList.getItems(camlQuery);
                context.load(listItems);
                context.executeQueryAsync(ReadListItemSucceeded, ReadListItemFailed);
            function ReadListItemSucceeded(sender, args) {
                var itemsString = '';
                var enumerator = listItems.getEnumerator();
                while (enumerator.moveNext()) {
                    var listItem = enumerator.get_current();
                    itemsString += 'Modified On: ' + listItem.get_item('Modified');
                $("#P1").append(itemsString);
    I am able to get the Modified Date using the query
    But I need it in a specific format like : Tuesday 25th February 2014
    Please suggest

  • How to filter a sharepoint list with report parameters

    Hello there,
    I'm trying to make a sql report on a sharepoint library. I have no problems to connect to the library but i cannot find a way to filter my data source with report parameters. I've searched on the net a lot, found some stuffs about xml but nothing that shows
    how to do it with sharepoint. Any help would be greatly appreciated!
    Thanks in advance!

    Hi mgarant,
    As you mentioned, by default, we can use xml parameter "query" to filter a SharePoint list from SQL Server Reporting Services. We can also modify the value for the "query" to use SQL Server Reporting Serivces parameters to filter the SharePoint list.
    Below are the detailed steps for your reference:
     1.Change the query string to be a string like this:
    <Query>
    <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
    <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
    <Parameters>
    <Parameter Name="listName">
    <DefaultValue>{ADBE55DB-63A1-4C14-9DA0-B1B05C13B4C8}</DefaultValue>
    </Parameter>
    <Parameter Name="query" Type="xml">
    </Parameter>
    </Parameters>
    </Method>
    <ElementPath IgnoreNamespaces="true">*</ElementPath>
    </Query>
     2.In the dataset modification dialog, go to "Parameters" tab.
     3.Create a Report Parameter(e.g. CityParam).
     4.In parameter tab, create a parameter with:
    Name: query
    Value: ="<Query>
       <Where>
          <Eq>
             <FieldRef Name='WorkCity' />
             <Value Type='Text'>" & Parameters!CityParam.Value & "</Value>
          </Eq>
       </Where>
    </Query>"
    Please note, “case sensitive” is required. In this case, the parameter name for "query" must be in lower case. WorkCity is name of a field in the SharePoint list.
    For more information about how to retrieve value from SharePoint list, I would suggest you reading the following article and threads:
    http://vspug.com/dwise/2007/11/28/connecting-sql-reporting-services-to-a-sharepoint-list-redux/
    http://blogs.msdn.com/mariae/archive/2007/12/13/querying-sharepoint-list-from-reporting-services-returns-only-not-null-columns.aspx
    I also implemented a sample, you could download it from:
    http://cid-3c7e963ff6ccd974.office.live.com/browse.aspx/.Public/SharePoint%20List%20sample?uc=2
    Please feel free to ask, if you have any more questions.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • How do I change multiple list items at once in a SharePoint list with ribbon button

    Hi
    I have a sharepoint list and a ribbon button that open a dialog box with buttons to set color on a row
    The problem is that i can only selecet one item at once to set the color. 
    How can i do so it could set all or a couple items att once to the color i want 
    I want to do this with javascript
    here is the code i use to get the item id and the color code is in a seperate js file
    'use strict';
    var clientContext, hostweburl, parentContext, parentWeb, selectedItem, itemId, listId;
    clientContext = new SP.ClientContext.get_current();
    hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
    listId = decodeURIComponent(getQueryStringParameter("SPListId"));
    itemId = decodeURIComponent(getQueryStringParameter("SPListItemId"));
    parentContext = new SP.AppContextSite(clientContext, hostweburl);
    parentWeb = parentContext.get_web();
    selectedItem = parentWeb.get_lists().getById(listId).getItemById(itemId);
    $(document).ready(function () {
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(OnSuccess, OnFail);
    function OnSuccess() {
    $("#Blue").click(function () {
    selectedItem.set_item('Color', 'Blue');
    selectedItem.update();
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(function () { window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, function (sender, args) { alert('Error:' + args.get_message()); });
    $("#Green").click(function () {
    selectedItem.set_item('Color', 'Green');
    selectedItem.update();
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(function () { window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, function (sender, args) { alert('Error:' + args.get_message()); });
    $("#Red").click(function () {
    selectedItem.set_item('Color', 'Red');
    selectedItem.update();
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(function () { window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, function (sender, args) { alert('Error:' + args.get_message()); });
    $("#Transparent").click(function () {
    selectedItem.set_item('Color', 'No Color');
    selectedItem.update();
    clientContext.load(selectedItem);
    clientContext.executeQueryAsync(function () { window.parent.postMessage('CloseCustomActionDialogRefresh', '*'); }, function (sender, args) { alert('Error:' + args.get_message()); });

    Check if below can help you
    http://sp2010batchedit.codeplex.com/
    http://sharepoint.stackexchange.com/questions/35935/use-view-ribbon-custom-action-on-multiple-list-items
    http://webcache.googleusercontent.com/search?q=cache:XqMO-PRLHQIJ:dannyjessee.com/blog/index.php/2014/06/enabling-custom-ribbon-buttons-dynamically-based-on-multiple-selected-item-values-using-refreshcommandui-and-jsom/+&cd=1&hl=en&ct=clnk&gl=in
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction Id="DannyJessee.TestCustomAction"
    Location="CommandUI.Ribbon"
    RegistrationId="100"
    RegistrationType="List">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition
    Location="Ribbon.ListItem.Actions.Controls._children">
    <Button Id="DannyJessee.MarkItemsFinishedButton"
    Command="cmdMarkItemsFinished"
    Image16by16="/_layouts/images/kpinormallarge-0.gif"
    Image32by32="/_layouts/images/kpinormallarge-0.gif"
    LabelText="Mark as Finished"
    TemplateAlias="o2" />
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="cmdMarkItemsFinished"
    CommandAction="javascript:MarkItemsFinished();"
    EnabledScript="javascript:EnableFinishedButton();">
    </CommandUIHandler>
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    <CustomAction Id="DannyJessee.TestScript"
    Location="ScriptLink"
    ScriptSrc="/_layouts/15/CustomRibbonButton/CustomAction.js" />
    </Elements>
    If this helped you resolve your issue, please mark it Answered

  • How do I move a list item to the left?

    I need help formatting graphic banners inside a list.
    What I'm doing: Updating a very old pre-CSS site with messy,
    messy code.
    The layout is done by tables within tables within tables
    (three layers of nested tables.)
    In the innermost table, the right column contains a list of
    links. Originally the page had every link in a seperate <p>
    tag, with bullets specified as numbers in the HTML. To try to
    update and clean things up, I made everything an unordered list,
    and used a LI style to set margin-bottom to .75em (to put some
    spacing between the list entries) and text-align to justify.
    And, I want to have a few (graphic banners) flush against the
    left margin of the table column.
    I created a new style, BareListItem, and gave it no style (to
    remove the bullet), and left margin of -1em. That's close.
    How can I get the left margin to actually be zero (absolute),
    rather than relative?
    Here's the style sheet.
    LI {
    text-align: justify;
    margin-bottom: .75em;
    .BareListItem {
    list-style: none;
    margin-left: -1em;
    Problem #2: Dreamweaver insists that the column is too wide.
    The only thing contained within the column are list items, text,
    links, and graphic banners that I'm moving leftward with this style
    element. I cannot find anything in there that is too big, yet DW
    insists that the table column cannot be thinner.
    How can I find out what's the oversized problem -- how can I
    find out what's forcing the column to be wider than I have
    specified?

    I think this is what you're talking about... give this a shot. You can style the menu with CSS if you want. 
    This code will make a drop down like this: (http://www.melsbgc.com/test.htm)
    <FORM NAME="form" ID="form">
      <SELECT NAME="jumpMenu" ID="jumpMenu" onChange="MM_jumpMenu('parent',this,0)">
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Junior%20Nationa l">Junior National</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=250%20National">250 National</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Elite">450 Elite</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Clubman">450 Clubman</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Elite">Open Elite</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Nationals">Open Nationals</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Clubman%2 0Cup">Open Clubman Cup</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=450%20Quad">450 Quad</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Quad">Open Quad</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=650%20Superlite">650 Superlite</OPTION>
        <OPTION VALUE="http://www.pitlanepass.com/pages/orgdetail.php?orgname=NORASPORT&ridercat=Open%20Superlite">Open Superlite</OPTION>
      </SELECT>
    </FORM>

Maybe you are looking for