Filtered model, but how to use it?

Hi,
we have a JSON model with around 2000 projects, prefetched at startup of the app. That is not an issue and it also runs smoothly on our tested smartphones (because you will never render all of the 2000 on the DOM).
We bind this JSON model to a sap.m.table with growingScrollToLoad active and a threshold of 15 projects (otherwise it’s getting a bit laggy).
We are filtering the list (using sap.ui.model.filter and table.getBinding() of the table). This is working fine without problems. But now we want to have a list of all projects that are currently in the table (so after filtering).
If we use the JSON model to get all projects, the filter is not applied (of course, because we just used the binding of the table). If we use table.getItems(), we just get the items that already got loaded (problem growing).
But we need the list of all projects, after filtering without the need to scroll to the end of the list to get the items loaded…
Anybody an idea how to do that?
Best regards
Ben

Hi Maksim,
thanks for your answer!
The private field aIndices is doing the trick. With that I can look up the indices in the oList to get the corresponding item...
Not sure jet, if this is bound and I can change it directly or if I have to iterate over the model...but this is implementation stuff.
The only real problem, which I see with this solution, is that I am using internal implementations of the binding. It is not documented in the API, because normally nobody should use it. No getter means do not touch it, right?
Has anybody a good idea? Maybe a feature request in the OpenUI git hub repo?
Nevertheless I marked your answer as correct.
Best regards
Ben

Similar Messages

  • But how to use submit??

    but how to use submit?? i mean how to generate an event thru submit and how to receive these values in the next page

    but how to use submit??You can do it by using Simple HTML Code
    <INPUT TYPE="SUMBIT" VALUE="SUBMIT">
    i mean how to generate an event thru submit and how to receive these values in the next pageTo generate an event through Submit! You need to do this using java script.
    I think you are talking about assingning some values on the click of submit and collecting those values in the next page!
    To do that
    keep some input fields in page1. Then try to assign the values to those input fileds using javascript through onclick event.
    <INPUT TYPE="SUMBIT" VALUE="SUBMIT" onclick="javascript:callSomeFunc()">
    In
    callSomeFunc() {
    //Assign values to the hidden fields
    In next page say page2 collect those values using request.getAttribute(" InputHiddenFieldsName);
    That's it.

  • I have problem  in signing in I don't like read and accept terms I cannot access this I don't know about this read and accept terms this is poor, I just like android's simple option and simple singing in, but how to use apple I'd?

    I have problem  in signing in I don't like read and accept terms I cannot access this I don't know about this read and accept terms this is poor, I just like android's simple option and simple singing in, but how to use apple I'd?

    Your computer is called an iMac.
    Did you turn proxies on?  If so, you should turn them off.

  • I have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?

    i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?
    thanks!

    You'd do something like:
    <%
    //vvv this part can potentially be done in initialization
    Context ctx = getInitialContext();
    BeanHome home =
    (BeanHome)PortableRemoteObject.narrow(ctx.lookup("the.jndi.name"),
    BeanHome.class);
    Bean b = home.create();
    //^^^
    Result r = b.invokeMethod();
    %>
    "toxin" <[email protected]> wrote in message
    news:3d2e95e5$[email protected]..
    >
    i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke theEJB's method?
    thanks!

  • MAX(SummaryNum) +1 bad idea, but how to use sequence part composite column

    Hi,
    My relational mode is as follows
    Policy (policynum PK) has 1:M with Summary (policynum FK, SummaryNum part of PK, other columns part of PK)
    Basically for each policy users can enter notes with SummaryNum 1, 2, 3, 4.... These numbers are shown to the user for tracking purpose. I need to make sure summary notes for EACH policy start with 1 (cannot really use sequence in the table in the strictest sense) and are incremented by 1. The current Oracle form basically creates the next highest possible value of SummaryNum by adding one to the currently available highest value. In brief, it is like a sequence number for summaries of a particular policy in the summary table.
    PRE-INSERT
    SELECT MAX(SummaryNum ) + 1
    FROM Summary
    I am trying to replicate this in ADF BC (using 11g) and know that not using sequencing and adding one to get the next number is a very bad idea due to concurrency challenges (transactional ACID properties). The reasons are as follows.
    •     Using MAX(policy_memo_seq_num) + 1 is not scalable,
    •     It will lead to duplicates in a multi-user environment, whether ADF BC, Oracle Forms, or any other technology
    I also know how to use create a sequence in db, a related trigger, and then set the attribute in EO properties as DBSequence. My challenge is that since SummaryNum is not a primary key, and instead is part of a composite key in my case, how do I make sure that summary notes for EACH policy start with 1 in the Summary Table.
    I appears that i cannot really use sequence in the table in the strictest sense as this will mean that for policies the summaryNum will start from the next available sequence number, but what i really want is to have it start by one for all policies.*
    I would appreciate any help.
    Thanks,

    Not sure if there is a better way, but here is one way. Let's say your table was like this:
        SQL> desc versioned_item
         Name         Null?    Type
         ID           NOT NULL NUMBER
         VERSION      NOT NULL NUMBER
         DESCRIPTION           VARCHAR2(20)and lets say your data looked like this:
        SQL> select * from versioned_item order by id, version
                ID    VERSION DESCRIPTION
              1001          1 Item 1001
              1001          2 Item 1001
              1001          3 Item 1001
              1002          1 Item 1002
              1002          2 Item 1002
              1003          1 Item 1003To select only the rows for the max-version-id, you could do this:
        select id, version,description
        from versioned_item
        where (id,version) in (select id,max(version) from versioned_item group by id)
        order by id
                ID    VERSION DESCRIPTION
              1001          3 Item 1001
              1002          2 Item 1002
              1003          1 Item 1003To capture this as a view object, you'd only just need to paste in the WHERE clause above into the Where clause box of the view object. No need to use expert-mode since you're not changing the select list or from clause.

  • I had downloaded ringtone 60000   and also created ringtone on that but how to use that ringtone

    please let me know how to use the ringtone created using this app

    I couldn't find the app you refer to in the App Store US however the ringtone makers I have used in the past send the tone to your email and when you click the link provided in the email, using your computer, it sends the tone to iTunes on your computer to sync with the iPhone. Try that and see if that works.
    Perhaps you could post a link to the app and if possible I can check into it.

  • Finally got a recovery CD but how to use it?

    Hello, after months of trying i finally got my self a product recovery CD
    https://backupmedia.toshiba.eu/landing.aspx
    I hope this was the right place to get one, as it was the only one i could find. Anyway i as far as i know i have keep pressing f10 when i turn the laptop on, im sure i pressed f10 before. However when i press F10 now i get something completely different.
    Edit windows options for: boot micosoft windows vista
    path: windows/system/windows.exe
    partition 2
    hard disk: 48623b6e
    [ /NOEXECUTE =option
    This is what i get, so how do i use the CD and wipe my hard drive like i have before?

    Ok i acually got a hold of there email address and i said it had no data on it. They hadn't even so much sent me a reply since then, until now. I got an Toshiba Shop order confirmation email. On it says;
    Thank you very much for placing an order at the Toshiba Europe Backup Media Online Shop powered by arvato digital services.
    We have received your order and it is currently being examined and processed.
    As soon as your order is dispatched, you will receive confirmation via e-mail which you can then use to view the delivery status of
    your order online.
    It says the Reference ID is 2010033376-R where as before it was just 2010033376. Under items ordered it says that that i have ordered a recovery CD but the cost is 0.00 GBP. It also says that the order date was the 13.8.2009 which is today.
    My point is, is this there reponse? why haven't they asked me to send it back or sent me an email with instructions? because so far they have completely blanked me and i have no idea what to do. Do i send them a letter? do i just send the thing back to them without any instructions?
    *EDIT* LOL i looked in my junk emails and found an email from them there, they sent me a free copy WOOT its all coming up good :D
    Message was edited by: whitescar911

  • I want to do a clean install, but how to use Time Machine to get my data back?

    I want to do to clean install of my Snow Leopard OS system...all my data is backed up on my TM. I heard if I restore from Time Machine any system errors created then will have an effect on the clean install? Wouldn't that defeat the whole purpose? So how am I supposed to get around that?
    Any help would be appreciated, since it would be my first clean installed ever performed (I'm a bit scared, lol).

    greyskiesblack wrote:
    would it be okay to delete the Time Machine back up then and use the external hard drive as a normal back up of all my stuff copied over to it by drag and drop?
    Leave the TM drive alone, it's a extra backup as you should have two separate hardware backups of your data at all times. Use another new drive for a copy of the files until your safely up on the fresh install, then erase and reset the TM drive to your new configuration.
    It didn't occur to me that TM would keep the system as it was...and I'm just now learning about TM. I'm glad I have decided to ask before I proceeded to install!!
    TM copies stuff over in a general manner, trying to keep what you have just like what you had, which unfortuntly if something goes wrong that isn't the best course of action because you don't want the old junk back on the new machine.
    So since it's incrediably difficult to cherry pick exactly what you want when restoring from TM, it's better to have the user files on a regular drive (no TM) when doing a fresh install.
    It's really not that hard restoring manually, just create the same named user and drag and drop the contents of the User file folders (music, pictures, documents, movies) right into the new folders on the new user.
    You do a fresh install in this manner.
    1: Backup files manually to a external drive, disconnect all drives.
    2: hold c boot off the 10.6 disk, erase the drive and reformat (wipes all contents)
    3: quit and install 10.6, reboot and go through setup, create the same named user as before
    4: Software update to 10.6.8
    5: install all programs from fresh sources
    6: last files cherry picked from backup (do not transfer Users/Library)
    In that spefic order for best performance.
    It's not excactly as perfect as TM restore, but then you don't get all the problems back.

  • TS1702 I have an apple ID for the company but how do use my Itunes and a single id to download and manage multiple copies of the same purchased app for multiple Ipads that I need to support?

    Hi,
    I am trying to manage a number ipads in the business but I have problems managing the download of apps to multiple ipads using a single copy of Itunes and appleid.
    I obviously want purchase correctly the number of copies of the app I require and manage them going forward but the issue I have is that when I try to purchase an additional copy of the app it shows as already purchased and downloaded in my Itunes.
    What am i doing wrong or is this a feature?
    Any help appreciated.
    Chris

    Use VPP.  Select an MDM.  Read the google doc below.
    IT Resources -- ios & OS X -- This is a fantastic web page.  I like the education site over the business site.
    View documentation, video tutorials, and web pages to help IT professionals develop and deploy education solutions.
    http://www.apple.com/education/resources/information-technology.html
       business site is:
       http://www.apple.com/lae/ipad/business/resources/
    Excellent guide. See announcment post -- https://discussions.apple.com/thread/4256735?tstart=0
    https://docs.google.com/document/d/1SMBgyzONxcx6_FswgkW9XYLpA4oCt_2y1uw9ceMZ9F4/ edit?pli=1
    good tips for initial deployment:
    https://discussions.apple.com/message/18942350#18942350
    https://discussions.apple.com/thread/3804209?tstart=0

  • I purchased tones but how to use it as my ringtone in 5s

    i bought a song from a ringtone category but after purchasing it,it goes to my music and no option to choose ringtone. how to set it as a ringtone?

    Hey kashaenaparisi,
    Thanks for the question. The following resource outlines how to change your default ringtone for all calls:
    Change your ringtone - Phone - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI8
    If you wish to have a ringtone for a specific contact, see this resource:
    Set a special ringtone for a contact - Phone - iPhone Basics - Apple Support
    http://support.apple.com/kb/TI16
    Thanks,
    Matt M.

  • How to use a Web Service Response

    In the snps_users documentation it seems to be really easy but in fact...
    After invoking my web service I retrieve a XML file which is my response then we would like to use it.
    As written in the documentation I Export Response in XSD file, I create my XML Model but How to reverse the XSD ???
    There's 4 references to XSD into all the snps_users documentation but no one talking about.
    Moreover it's written See Creating and Reverse-Engineering a
    Model for an XML file for more information and that's what I'm doing but no way...
    So without the XSD I m trying to use the Response file like an XML file but I always have an error which looks like :
    java.sql.SQLException: No root found in the DTD file
    The Web Service Response XML File use NameSpace could the problem come from here ???
    If someone ever use it ...
    Thanks in advance.
    BM

    When I specify the XSD It raises another error,
    my URL is :
    jdbc:snps:xml?f=C:/Temp/File.xml&d=C:/Temp/File.xsd&s=REPON&nspg=xml
    Error message:
    java.sql.SQLException: A SAXException was caught while reading the model saying [Element value has no type]
    The XSD and the XML are generated by ODI after invoking a Web Service...
    Any idea ???

  • How to use the generated SQL of "Recommendation"

    Dear Experts,
    I am using KXEN recommendation function. After trained the model, I expose the result in form of HANA SQL. However, I am really have no idea how to make this SQL runnable because there are some subqueries like:
    FROM $Dataset "SPACEIN"
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".MemberID)
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Product') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Transactions') "NOTIN" ON ("RULES"."KXNODESECOND_2" = "NOTIN"."KXNODESECOND") AND ("NOTIN"."KXNODEFIRST" = "SPACEIN".MemberID)
    Please pay attention to the red parts. While $Dataset, I assume it should be the data source which is used to train the model, but how to handle the "GRAPH" parts(the next 3 subqueries)? There are something missing after "FROM" clause, what should I fill in here? why the XKEN will generate sucn incomplete codes?
    Thanks for your help!

    Hi Richard,
    To apply a recommendation model, you first need to save your model in your database. (saving the model in the database for such models and for what you want to do is mandatory).
    Once you saved it, you will see many tables starting with "Kx" : KxInfos, KxLinks, KxNodes...
    These tables contains information on the nodes available in the data used, on the links between products.
    Now, if you generate the SQL code for Hana, the name of your KxLinks table should now be used in the SQL code.
    When prompted for $Dataset and $Key, you should specify in place of $Dataset the name of the table on which you want to apply your model. In place of $Key, you should enter the name of the key of this table (e.g. UserId).
    In my case $Dataset =>KAR_UniqueCustomers and $Key=>UserID
    My generated code looks like this :
    FROM KAR_UniqueCustomers "SPACEIN"
    LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".UserID)
    LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'ItemPurchased') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
    Note that your application table must contain:
    - A column with the same name as your users identifier in the training dataset. It contains the list of distinct users (stricly 1 row for each customer id)
    - A column with the same name as your products name in the training dataset. It can contain the name of the same product for all customers.
    I hope you'll make it work !
    Armelle

  • How to use Logical database in function module?

    I will create a function module in HR.
    but how to use Logical database  in function module ?  Logical database PNP always show screen.in function (RFC) code , it is a matter.

    You cannot attach the LDB to the main program of the function group.
    - So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
    - Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
    - Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • How to use an Aggregate in a Computation on an Interactive Report?

    version 4.0.2.00.07
    Hello,
    I'm trying to create a computation on an Interactive Report from the Actions menu to compute a percentage.
    I have two Status columns, one for open and one for closed. I have to count the number of open and count the number of closed and then divide the two.
    I created an aggregate, count, on the open status and closed status, but how to use them in the computation? There's no 'count' in the Function list in the Compute box.
    I was hoping that those aggregated columns would be displayed in the Compute sub-menu on the Actions button but they don't appear to be.
    Can someone help me with this?
    Thanks,
    Joe

    Maybe an alternative would be to put this logic into the select.
    select u.object_name,
           u.object_type,
           count(case when u.object_type = 'TABLE' then 1 end) over () count_tables,
           count(case when u.object_type = 'VIEW' then 1 end) over () count_views
    from user_objects u;This would count the number of tables and views in the data dictionary. And it is returned as a column value.

  • How to use import script with FDM using adapter ERPI?

    Hi,
    I use FDM and ERPI 11.1.2 to load data from EBS R12 to Planning 11.1.2
    Data loaded from eBS are YTD data.
    I have seen that I could use an import script to calculate manually the amount with the periodic_net_cr and periodic_net_dr fields.
    But how to use this import script? Because in my import format in FDM, I don't use a file but directly the adapter, so no "Expression" field.
    Thanks in advance for your help
    Fanny

    Hello Fanny,
    No you will not need to put anything in the BatchAction. If you review the FDM API Documentation posted it will outline all the scripts that will execute for a particular event ... and the order in which they execute. The BatchAciton only affects the execution of the batch ... it does not control processing of data. Processing of data is controlled by many others.
    There is a script that can be written and placed (as Tony mentioned) in the ImportAction that will be able to recaculate the values from ERPi to be YTD values. You can possibly open an SR and a support Engineer can help you .... or you can search the current KM base and use that information there from the v11.1.1.3.00 version to build your own for v11.1.2.x
    Thank you,

Maybe you are looking for