How to apply a Filter on JSONModel for a Table data

I have a table and search text box. Now when users types in something I want to filter the Table Data which is JSONModel.
There are several columns in the JSONModel and the search string should check against each column.
If columns are Date then ignore if they are numeric convert to String and check against value.
How can I achieve this?

Hi Chandrashekhar,
Thanks for your reply it solves half of my problem.
Now if I want to have a OR condition for Filters applied on lastName and firstName column i.e. the search string should either exist in lastName or firstName return me all rows which satisfies the search string filter then how do I do it?
I tried the following by adding one more filter but I guess it creates AND condition between these filters
oTable.getBinding("rows").filter([new sap.ui.model.Filter("lastName", "StartsWith", sValue),
                                             new sap.ui.model.Filter("firstName",StartsWith",sValue)]);
I also observed that in the current code the filter is applied on lastName column but when you search the next column shows filter icon is this a bug?
Please refer screenshot

Similar Messages

  • How do you prepare a PDF file for 4 signatures & dates?

    How do you prepare a PDF file for 4 signatures & dates?

    Hi,
    You can achieve this by using text tags. EchoSign Text Tags are specially formatted text that can be placed anywhere within the content of your
    document specifying the location, size, type of fields such as signature and initial fields, check boxes, radio buttons and form fields, and advanced optional field processing rules. Text Tags can also be used as names of PDF Form fields.
    Text Tags are converted into EchoSign form fields when the document is sent for signature or uploaded to the EchoSign Document Library. EchoSign Text Tags can be placed in any document type such as PDF, Microsoft Word, PowerPoint, Excel and text files (.txt, .rtf)
    Please refer to page 5 ( date) and 10 (signature) of the Creating Adobe Echosign Forms With Text Tags.The document can be found here
    Thanks,
    Jat

  • How to apply notch filter in the PID control

    Dear all,
    I am using PID control in my positioning stage but the output is every noisy with some fixed frequencies(30,50,150Hz). I want to add a notch filter to take off those noise. However, I do not know how to apply the notch filter to the PID module. Could anyone tell me how and show me example if you have?
    Thanks
    best
    Attachments:
    PID_notch filter.png ‏21 KB
    PID_notch filter.png ‏21 KB

    Hi LYnn,
    I am sorry for my late reply. My stage is driven by a voice coil actuator (VCA). The VCA as a resolution of 1 um and range of 6 mm. The NF of the stage does shift when the load is changing. Do you have any advice for controlling such kind of stage?
    BTW, as far as I see, the control frequency is determined in the DAQ Assistant settings and its value is equal to "Sampling rate"/"Samples to read", am I right?
    Thanks
    best
    Attachments:
    VCA stage.png ‏160 KB

  • How to apply saturation filter between keyframes only?

    Hi,
    I have a bunch of old home videos that look bleached, I mean flat colours. It's the camera that causes this (it's a cheap camera). So I found a filter in Premiere that I can use to adjust saturation:
    * Fast Color Corrector
    Now I can only apply this filter to the entire clip. However, some parts of the clip need different settings than others, so I tried to use key frames but that's not going to fly with this filter. It makes sense because it's called "Fast Color Corrector". However, I haven't found a filter that allows me to adjust saturation for individual parts of the clip between key frames.
    Where should I look?
    Thanks.

    If the other two suggestions do not help you, rather than apply between Keyframes, you can also cut the Clip (Razor Tool) and apply where needed. If you need the "ramping" effect of the Fast Color Corrector, then just add a Cross-Dissolve. This works for other non-Keyframable Effects in many cases.
    Good luck,
    Hunt
    [Edit] You might want to Alt-click the Video to unlink it from your Audio, when using the Razor Tool. No sense in cutting your Audio too - in a very few instances, this can cause little "pops" in the Audio.

  • Servlet Filters : how many times a filter get executed for each reques

    <p>Hello I am fairly new to ServletFilters and I am experiencing a really annoying problem.</p> <p>I have filter that I want to check every request so if the user enters a uri I will check it and forward them somewhere but if I try to set a condition to check the uri and forward, it stops the filter from processing the rest of the images and they do not show up on the page. It looks like the filter is called for every image I load into memory too</p>here is the code :</p>
    <pre>
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
    HttpServletRequest request = (HttpServletRequest)req;
    HttpServletResponse response = (HttpServletResponse)resp;
    HttpSession session = request.getSession(true);
    boolean flag = true;
    RedirectInfo currentRedirect = null;
    String uri = request.getRequestURI();
    //If it is a first request I let them go to the first page
    if(uri.equals("/home.jsp") || uri.equals("/") || uri.equals("/home.do")){
    RequestDispatcher rd2 = request.getRequestDispatcher("/home.jsp");
    rd2.forward(request, response);
    System.out.println("in the first condition all is good");
    return;
    }else{
    //This is to stop the filter from being called twice
    if(currentRedirect != null && currentRedirect.equals("null")){
    RequestDispatcher rd3 = request.getRequestDispatcher("/home.jsp");
    rd3.forward(request, response);
    return;
    currentRedirect = RedirectManager.searchByRedirect(request.getRequestURI(), taskUid);
    if(currentRedirect != null){
    //Here we send the client to the requested URI if it exists in the database
    RequestDispatcher rd = request.getRequestDispatcher(currentRedirect.getRedirect());
    rd.forward(request, response);
    //This is to stop the filter from being called twice
    currentRedirect.setRedirect("null");
    System.out.println("in the redirect condition all is good");
    return;
    if(currentRedirect == null){
    RequestDispatcher rd1 = request.getRequestDispatcher("/home.jsp");
    rd1.forward(request, response);
    return;
    System.out.println("the URI is: "+request.getRequestURI());
    chain.doFilter(request, response);
    </pre>
    <br>
    Any help would be great @;)
    <br>
    Steven Nelson

    <p>Hello I am fairly new to ServletFilters and I am
    experiencing a really annoying problem.</p> <p>I have
    filter that I want to check every request so if the
    user enters a uri I will check it and forward them
    somewhere but if I try to set a condition to check the
    uri and forward, it stops the filter from processing
    the rest of the images and they do not show up on the
    page. It looks like the filter is called for every
    image I load into memory toodepends on the where the images resides. if they reside inside an director that the filter is mapped too, then upon every image the filter is called too. For every image inside a html document an new request is formed.

  • How to get the last update time for a table ?

    I want to know the last change of the table data , for example, a record has been changed, how can i get that time?
    Regards,
    Lament

    Hello
    check the tables CDHDR & CDPOS
    But the condition when u r checking the these table.for a particular field the at data element level- futhur charactestictab level we have one check box called change document it as tick
    Thank u,
    santhosh

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • How to stop user from entering value for already existing data

    Hi ,
    We have a situation , where we need to give user a template for entering the data and then send it to the database. But we want that if user has already entered the value for a combination, then he should not be allowed to select the same combination again in that template.
    In other words , there should be write access but not update access.
    So I have two questions related to it:
    1. How to build report with giving user , the drop-down list of available members under each dimensions. (I know that we can provide list by writing all of them in excel and then using those values in drop-down)
    2. How to restrict the user for selecting the combination which has already been selected.
    Need your suggestion
    Thanks
    Sanjay

    Hi Sanjay,
    for your first question...
    you can build an EVDRE in a hidden area/sheet to display all values of a desired dimension in rows. Set Option SuppressDataCol to 'Y'. Also maintain MemberSet options to display only the values you need.
    Now you can reference your DD-box to the key- or description range.
    With some VBA-code you can refresh this EVDRE on Workbook_Open and also set the range (attribute ListFillRange?) of you DD-box dynamically to the RowKeyRange.
    Hope, it helps.
    Regards
    Steve

  • How to query a item stock quantity for a given date

    Hi there,
    I need to query the stock quantity of an item for a given date. For example, i want to know how many pieces of A i have on stock at the 20th of march 2009.
    I know there is a report, but i need the value for a subquery.
    Regards Steffen

    Sorry Gordon,
    Your query is not wrong, far from me to insult your work. It does indeed make full sense if the business process allows the item description to change.
    If not, we can avoid a "inner join"  = smaller, cleaner and (theoritically) faster query
    Here is your code with the little review:
    SELECT T0.ItemCode, T0.Dscription, sum(T0.InQty - T0.OutQty) as 'On Hand'
    FROM DBO.OINM T0
    WHERE T0.DocDate <= '[%0]' and T0.ItemCode = '[%1]'
    GROUP BY T0.ItemCode, T0.Dscription
    Cheers
    tested on 2007 SP00 PL46

  • How do i display input values (POV) for a table control field

    Hi guyz !
    How do i display input values (POV) for a field in table control,
    i mean when user presses F4 on a table control field.
    Please help.
    Thanks
    jahan

    PROCESS ON VALUE-REQUEST( F4 ) statement  
    Code to demonstrate how to perform a manual value help(F4) on a particular field using the PROCESS ON VALUE-REQUEST statement and how to return values back to a table control on the screen. For standard screen fields simply move the value to the appropriate screen field name.
    * Screen flow logic........
    PROCESS BEFORE OUTPUT.
    *MODULE PBO_MODULE.
    PROCESS AFTER INPUT.
    *MODULE PAI_MODULE.
    PROCESS ON VALUE-REQUEST. "F4
      FIELD EKPO-EBELP MODULE help_ekpo.
    MODULE help_ekpo INPUT.
    **Transport values to table dynpro/screen table control
      DATA: l_stepl LIKE  sy-stepl,
            l_indx  LIKE  sy-stepl.
      DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
    * Adjust for scroling within table control
      CALL FUNCTION 'DYNP_GET_STEPL'
        IMPORTING
          povstepl        = l_stepl
        EXCEPTIONS
          stepl_not_found = 0
          OTHERS          = 0.
      l_indx = tc_ekpotable-top_line + l_stepl - 1.
              "tc_ekpotable should already have been declared
      REFRESH dynpfields.
      CLEAR   dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELN'.
      dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELP'.
      dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = 'SAPLZZ_EKKO'    "Program name
          dynumb     = '0100'           "Screen number
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 0.
    ENDMODULE.                 " help_ekpo  INPUT
    reward points  if it is usefull ..
    Girish

  • How to get the Horizontal Scroll Bar for a Table?

    Hi All,
    As per my requirement, I am displaying several records in a Screen in a Tabular Format. But here I have to show 21 Columns in that table which is too high. I am able to display it but due to it I am getting a Horizontal scroll bar for the whole screen since all the columns are not getting displayed in the normal window screen space. But its looking too odd since once I am scrolling it to right the columns are getting displayed but the above Header Bar and Global buttons are not displaying, they are bound to the normal screen space.
    Is there a way to have a Horizontal scroll bar only for that table instead of the entire screen so that on scrolling that bar only the table rows will beshifted ant got displayed?
    With Thanks
    Kumar Gautam

    try this approach.
    include a raw text item before and table item.
    include the appropriate HTML tags in raw text item to enable horizontal scroll
    --Prasanna                                                                                                                                                                                                                                                                                                                                   

  • How to find out last updatde timestamp for a table

    Hi All,
    I want to find out the last updated time stamp of a table. Is there some thing available with the sys tables. Is there something can be done with user_objects.
    Or, is there any need to write pl/sql code to get the last updated timestamp for a table.
    Please provide some inputs.
    regards,
    Naresh

    Hi Oleg,
    Select * from user_objects.I belieive it gives you the last_ddl_time not the time a update or delete was done.
    Not sure if we have this feature in any new release.
    I am working on Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    to the OP
    I will suggest if you planto audit then use the audit feature based on your DB version.
    Or to make it more simple have a column called modified_date and update this column whenever you update the record.
    Regards,
    Bhushan

  • Help for Adding table data to list

    Dear Folk,
    How can i add table data to a list. I tried following but not successfull
    Populate_List('OTHER.GROUPLIST', 'GROUP_LIST');
    Help me..

    V_RECORDGROUP :=FIND_GROUP(I_RECORDGROUPNAME);
    V_QUERY:='SELECT data FROM tablea';
    V_RECORDGROUP :=CREATE_GROUP_FROM_QUERY(I_RECORDGROUPNAME,V_QUERY);
    V_TEMP:=POPULATE_GROUP(V_RECORDGROUP);
    POPULATE_LIST(I_ITEM_NAME,V_RECORDGROUP);

  • Need a query for export table data .....

    Hi,
    I need a query for exporting the data in a table to a file.
    Can anyone help me ?
    Thanking You
    Jeneesh

    SQL> spool dept.txt
    SQL> select * from dept;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL> spool off
    SQL> ed dept.txt

  • How to apply stlesheet to change stlye for jbo:InputSelect tag?

    Hi,
    I wonder how can i apply a my own style sheet for all BC4J's object render from a jsp page?
    Please advice.
    Thanks.

    The following should work.
    <jbo:InputSelect datasource="foo" etc...>
    <jbo:SetHtmlAttribute name="CLASS" value="style" />
    </jbo:InputSelect>

Maybe you are looking for

  • Payment Advice transaction F110.

    Hi All, I have copied and modified the form F110_IN_AVIS. From transaction F-43 I am creating a document and from transaction F110 running payment advice.The form is working fine in development but in quality it is not picking data from REGUH table.T

  • Unknown icon

    Can anyone help please, what does a red square with clock type hands showing 3 o clock mean in my unsent text messages?

  • Extend chart of account to company code

    Hi Experts, I have created a chart of account. I want to extend all accounts  to particular company code, as mare assignment of chart of account to comapny code (OBY6) does not allow to use these accounts for this particular company code. Please guid

  • QUESTION: problem printing to Epson Stylus Photo R800

    with latest version of LR2.  When trying to print, certain options (print setting, color management, print option) in the print set-up dialog box are crossed out as unavailable "for the current architecture"  Is there a bug in LR program?  Work aroun

  • How to create a dynamic group to fetch "Managers" for members of another group?

    Hi We have a request to created 2 dynamic group. One group with all india employees and another group will managers of all india emnployees [Manager who may be out of india as well]. We created first group. But 2nd group failed for below filter