SAP M list search not working

Hello Experts,
I am trying to implement a search function on my list.
I'm using this code for the search:
Code: List - Selection & Search
SAPUI5 Explored
My controller looks like this:
onInit: function() {
  var sServiceUrl = "http://blablabla.com:8000/sap/opu/odata/sap/YXM_GWS_BART_SRV";
  var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl, false,
  "user", "pass");
  this.getView().setModel(oModel);
  onSearch : function (oEvt) {
     // add filter for search
     var aFilters = [];
     var sQuery = oEvt.getSource().getValue();
     if (sQuery && sQuery.length > 0) {
       var filter = new sap.ui.model.Filter("Materialname", sap.ui.model.FilterOperator.Contains, sQuery);
       aFilters.push(filter);
     // update list binding
     var list =  sap.ui.getCore().byId("promotionsList");
     var binding = list.getBinding("items");
     binding.filter(aFilters, "Application");
And in my view.js i have this searchfield
new sap.m.Bar({
  contentMiddle : [ new sap.m.SearchField({
  placeholder : "search for promotions",
  width : "100%",
  liveChange: oController.onSearch
I can see the list refresh after i put an 'A' in the searchbar for example but nothing has changed.
I get no immediate errors from my console....
Except when i hold the 'Backspace' button in the searchbar and it removes some letters, i get this:
"The following problem occurred: Request aborted -"
"u"
"fatal"
"f._handleError"
"j"
Any Ideas ?
Kind Regards,
Bart

This does not mean it will filter based on MaterialName. you need to implement the logic.
Please see my blog Let’s code CRUDQ and Function Import operations in OData service! and see Query operation where I mentioend how to access filter parameter.
OData Query
Method Parameter
Alternative way to get the value
Coding required to implement Query Operation
UserCollection?$filter=UserID eq '123' and LastName eq 'Mahajan'
IT_FILTER_SELECT_OPTIONS and IV_FILTER_STRING
DATA: my_filter_options TYPE/iwbep/t_mgw_select_option,
my_filter_string TYPE string.
my_filter_options =io_tech_request_context->get_filter( )->get_filter_select_options( ).
my_filter_string  = io_tech_request_context->get_filter( )->get_filter_string( ).
Yes

Similar Messages

  • SAP XI fourm search not working

    Hi
    I have a strange problem...I was trying to search on SAP XI forums from yesterday but the search results are empty for every search string we give....Is this happening only to me or some others are also facing the same problem...
    Thanks

    Its working now

  • GRC 10.0: Access Request Creation - LDAP user advanced search not working

    Dear Experts,
    We are implementing SAP GRC Access Control and we have an issue in Access Request Creation. If we put the user name in “User” field and press intro, the user details are updated, but if we want to make an "Advanced search" the user is not found and the application give us the following message: “No records found for the search criteria entered.”
    Scenario 1: If we put the user name in “User” field and press intro, the user details are updated:
    Scenario 2: If we want to make an "Advanced search" the user is not found and the application give us the following message: “No records found for the search criteria entered.”
    We are using the Active Directory as Data Source.
    Thanks and Regards.

    Hi Jose,
    Try maintaning the parameter 2050 as YES and check once.
    Kindly, also make refer to  the below list of SAP notes:
    1757906 - GRC 10.0 - LDAP user search does not work in NWBC
    1745370 - LDAP search in GRC does not work anonymously
    1718242- UAM: User search not working in Access Request.
    Regards,
    Neeraj Agarwal

  • Search not working on Task Description

    Hi,
    I am facing a strange scenario with search not working on Task Description for a particular task item. This task item has around 18 versions of itself within it.
    I tried replicating the same scenario in our Test environment with following changes in the task item description:
    1. Copied the task list over to Test environment.
    2. Deleted all the versions of this task and put a single line description as.
    3. Initiated full crawl and search results with task description were
    coming up fine.
    4. Made few more versions : 5 Versions and again initiated full craw. Search results are fine.
    5. Made few more versions this time and again a FULL crawl, but now NO results with this task description.
    So, my question here is that is there any limit by MS for multiline text limit or version limit which prevents the task description from coming up in search results. 
    This task description as multiple line text with links to other lists/libraries and user names who created the versions in this task item. We are not using FAST search.

    I found the answer elsewhere on the forum:
    Somehow the main drive was added to the privacy list in Spotlight. Search is working fine now that I've removed it.

  • Archive folder missing from Mail & search not working

    I've been having trouble getting the Archive mailbox to appear in Mail. What's worse, often the search function is broken, and Mail doesn't turn up any search results. I've found some ways to get the Archive folder to reappear, but these only seem to help temporarily. For instance, clicking on the gear at the bottom left and selecting "Get Account Info" then selecting the Archive folder causes it to reappear, but this is only temporary and it disappears after another restart or sometimes after an hour or two. The search not working is the worst, as it sometimes is working and sometimes isn't. I don't have any idea what's causing this, but I am at my wit's end because I NEED Mail to be firing on all cylinders.

    Hello, and welcome to the Discussions.
    What are your selections in Mail Preferences/Accounts/Advanced for this Gmail account, if using IMAP, regarding keeping message for Offline use? The Mail search can only access the list of messages to search Subject, From, etc, but not the entire message unless copies of all messages are being kept on the computer. This would be true for any IMAP account, btw.
    More info, please.
    Ernie

  • 10.9.1 Mail spotlight search not working!!!!! APPLE HELP!!!!!!

    10.9.1 Mail spotlight search not working!!!!!

    When you type in a search term in Mail, does it drop down a list of search criteria like People, Subjects, Mailboxes?
    Or does it just offer "message contains"

  • Mail search not working + Spotlight keeps indexing

    I have an old problem that has resurfaced after creating a new user on my Mac. Mail search brings no results and Spotlight is constantly indexing - day in, day out. It never seems to get there. I tried turning my hard drive to private in Spotlight settings and then taking it out. Previously Spotlight seemed to get bogged down with external drives now it's stuck indexing my Mac.
    Any advice? Is there a way I get unstick this?

    I can't believe that Apple have STILL not sorted this out. I haven't created a new user (so it's nothing to do with that), but Mail.app won't find anything when searching "Entire Message" in the current Mailbox or in "All Mailboxes". This has been ongoing since Leopard was first released, and we are now up to 10.5.8 without this being fixed.
    Here are some of the reports:
    Topic : Spotlight does not search Mail messages
    http://discussions.apple.com/thread.jspa?threadID=1366101
    Topic : Search "Entire Message" returns "0 Found" in mailboxes
    http://discussions.apple.com/thread.jspa?threadID=1341832
    Topic : Spotlight died on me
    http://discussions.apple.com/thread.jspa?threadID=1226645
    Topic : I can't search through my inbox!
    http://discussions.apple.com/thread.jspa?threadID=1387827
    Topic : Leopard's Spotlight doesn't search Mail messages
    http://discussions.apple.com/thread.jspa?threadID=1219030
    Topic : Mail Search
    http://discussions.apple.com/thread.jspa?threadID=1347387
    Topic : Mail Won't Search
    http://discussions.apple.com/thread.jspa?threadID=1204827
    Topic : Search does not work
    http://discussions.apple.com/thread.jspa?threadID=1254966
    Topic : Mail search not working
    http://discussions.apple.com/thread.jspa?threadID=1289253
    Topic : Unable to Search Mailbox
    http://discussions.apple.com/thread.jspa?threadID=1232504
    Topic : Why is Search in Mail.app busted?
    http://discussions.apple.com/thread.jspa?threadID=1403758
    Topic : Mail Search comes up empty
    http://discussions.apple.com/thread.jspa?threadID=1378473
    Topic : Search "Entire Message" not working with Smart Mailboxes?
    http://discussions.apple.com/thread.jspa?messageID=6548355&#6548355
    Topic : Mail searches yield no results! Smart mailboxes also yield no results!
    http://discussions.apple.com/thread.jspa?threadID=1395508
    Topic : 10.5.2 Mail.app search still not working (Entire Message)
    http://discussions.apple.com/thread.jspa?threadID=1389466

  • Windows 8.1 search not working- program- data missing

    Hi :)
    I followed the instructions here 
    http://social.technet.microsoft.com/Forums/windows/en-US/bb1ba41a-80d9-4036-974b-50e81dc99893/windows-81-search-not-working?forum=w8itprogeneral
    but program-data is not in there
    Tried searching for how to correct this but no luck atm
    Any advic eplease
    Cheers :)

    Hi,
    Please show hidden files and then you will see ProgramData, then try the steps in the link you mentioned.
    Please also try this command to repair your PC:
    dism /online /cleanup-image /restorehealth
    Kate Li
    TechNet Community Support

  • Knowledge Search not working in Win client

    hi there
    i have a problem with knowledge search not working in IC Win Client in CRM version 5.0
    i guess the problem is with the workspace that is IIA for solution search that is assigned against the knowledge search
    please tell what should i do as right now when i am trying to execute it or open the knowledge search dump is coming  stating null object referenced
    i wonder what could be the solution
    best regards
    ashish

    Hello ashish,
    I had that problem too. You have to apply note 1002299 to restore missing configurations in SAF.
    Also, if you worked with IIA in previous versions, take a look at note 656321 to check it's evolution (replacement by SAF).
    Good luck and Kind regards,
    Bruno

  • Search not working in itunes store 11.0.5.5

    search not working in itunes store 11.0.5.5

    Fixed.  Tried a lot different things but the ones that seems to have worked is going in Preferences>Advanced and hitting the Reset cache button.  Though I'm not sure it is necessary it never hurts to do a restart.  

  • Select list pagination not working for big tables

    Hi,
    i am trying to view a table with large amount of data using tabular form. the pagination using select list is not working in this page. i have selected select list kind of pagination but it is showing "row range 1-15 16-30(with set pagination)' type of pagination. when i lowered the amount of data in the table the pagination type will automatically change to select list pagination. could you please tell me why this happens and any possible work around if any.
    Thanks,
    Jo

    Hi Jo,
    I don't know what you call a large amount of records, but the effect you describe might be intentional by apex.
    The select list pagination would generate a selection tag with (number of records in table/15) options in your page HTML.
    Although there isn't a hard limit to the number of options a select list can have there certainly is a limit to what your browser/pc can render.
    Think about it
    Let's say you table contains a million rows. this would result to a select list with 66666 options. Which your browser won't handle :)
    I very possible the apex team resolved this by simply reverting to row range pagination when the number of select options would grow to large.
    Geert

  • Site list update not working with TED and Zenworks for Servers

    Product: Zenworks for Desktops 7Sp1 and Zenworks For Server/TED 7Sp1HP5
    Subject: Site list update not working with TED and Zenworks for Servers ,
    all on Linux
    Description: We have an exiting environment with 6 ZfS Servers and now we
    brought up a new Server for another location. I configured all same as on
    the other Server and the new one created all NAL-Apps at the new location.
    But in the Application Site list on the golden App is this Application
    missing. So I clicked on the Link up site list on the Distribution Screen
    in C1. On ApplicationSite list the App from the new location is missing.
    So I removed all and added the new from the new location and now i see all
    in the application site list.When I install an app on the client on the
    new location NAL is connecting alway th the same (wrong location-server
    and i get an msi error 1612 or id=53272 with path=\Wrong serverpath to
    file.
    I looked on the other tab on C1 at the golden app an I see the backlinks
    are going to all other servers without the new one. Software installation
    on other locations are ok
    Regards

    Andreas,
    I forgot to mention that you can also set the loging level on the Distributor and the Subscriber to 6. to do this at the Zenworks Server Management prompt type "setconsolelevel 6" if you want to capture this to the log file ted.log then use "setfilelevel 6"
    Next delete the Distribution from the Subscriber and then re-push the channel.
    What we are looking for here in the log is the creation of the object and the linking information about the gold object. it should look like this (not the failure part ;-))) )
    In this excerpt you will see the entry
    Golden App =
    This should be were the link is to
    You can check this both ways in the Golden App and in the Distributed Application.
    Here is a log from me that shows this info as an example of what you should be looking for.
    2008.05.29 03:35:41 [TED:Work Order In(yourserver.yes.com)] Receiving distribution: Creating new application failed,
    Subscriber Tree Name= YOUR-TREE,
    Subscriber DN = SUBSCRIBER_YOURSERVER.BRN.FL.SUBS.SUBSCRIBERS.ZSM. GRS.CBH,
    Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
    Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
    error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details..
    2008.05.29 03:35:41 [TED:Event Processing] Handle Event: Work order IN completed... Creating new application failed,
    Subscriber Tree Name= YOUR-TREE,
    Subscriber DN = SUBSCRIBER_HAVERHI-FLBRN1.BRN.FL.SUBS.SUBSCRIBERS.ZSM.GRS.CBH,
    Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
    Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
    error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details..
    2008.05.29 03:35:41 [TED:Event Processing] Received (from haverhi-flbrn1.yesbank.com) Creating new application failed,
    Subscriber Tree Name= YOUR-TREE,
    Subscriber DN = SUBSCRIBER_HAVERHI-FLBRN1.BRN.FL.SUBS.SUBSCRIBERS.ZSM.GRS.CBH,
    Golden App = SCRIPT-MS-HOTFIX.APP.BRN.ZENGOLD.GRS.CBH,
    Attempted AppName = SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH,
    error message: Failed creating SCRIPT-MS-HOTFIX.APP.BRN.HAVERHI.PALM.FL.CBH. With error message: Setting the trustee for BRN.HAVERHI.PALM.FL.CBH on the file "VOL1:\ZEN\UTILS" failed. Look in subscriber log file for more details..

  • Safari search not working

    Search not working after typing in and attempting to get search  safai says not connected to server. Url works and all other apps connect. Only when attempting to open through search - does not work.   Have cleared cookes etc, and reset network, have turned oof am back on. Nothing so far has worked.

    Search not working after typing in and attempting to get search  safai says not connected to server. Url works and all other apps connect. Only when attempting to open through search - does not work.   Have cleared cookes etc, and reset network, have turned oof am back on. Nothing so far has worked.

  • Launchpad search not working mavericks

    Search not working on mavericks under launchpad. Normally you can click into the search bar on launchpad, or just start typing to filter/find. Under mavericks I can no longer do this. The search bar is inert, does not respond to typing or clicking with mouse. Any ideas?
    Thanks in advance

    Just fixed the same problem by restarting the dock process which Launch Pad is apparently connected to.
    Terminal command:
    killall Dock
    Source:
    http://osxdaily.com/2011/08/01/refresh-launchpad-in-mac-os-x-10-7-lion/
    Cheers!

  • Where used list is not working for IMG nodes/Document   in solar01

    hi experts
    In template project , we are using same IMG objects in different business processes and subsequent configuration document is attached to each IMG node in configuration tab.  ( like same IMG node  -  define order types used in different business process configuration tab )
    when i use " where used list " from the configuration tab , its not showing the IMG objects  used in different business processes in the same project. whereas its showing the IMG nodes used in the different project.
    I need to find out the same IMG objects/ document  used in the same project using the " Where used list " button.
    Please provide your answers
    Note : we have linked one configuration document to same IMG nodes used in different business. " where used list " also not working for documents as well
    Thanks
    Sol man

    Hello there,
    I just tried some tests and couldn't face any problem with locating other usages for the objects in configuration tab.
    You mentioned a configuration document, so have in mind that the document usage will only be considered if it is a link to the same document and not just a copy.
    e.g:
    Here I created a document in this node:
    Then I added it as a link here:
    and as a copy here:
    When I go back to the original node and use the where-used, it'll only show the original and the link:
    This happens because after copying a document, it is considered as a new one instead of another usage of the original one.
    best regards,
    Fabricius

Maybe you are looking for

  • Turning on the MB when docked...

    I use the Mini-DVI to VGA adapter to connect to my home LCD and essentially "dock" my MacBook. Every time I turn on the MB, I have to lift the lid and press the power button only to close it again. Is there any way to turn the MB on without opening t

  • Calendar no longer syncs after ios7 update

    since updating the firmware on my iphone 4 it no longer syncs the calendar with outlook 2003, ive been in the info tab many times, selected and unselected the sync calendars with outlook box and it makes no difference, ive been in the add in menu in

  • TS2446 Apple ID is still disabled after doing everything?

    Someone please help.. How do i enable my apple id again? Already tried resetting password and billing details

  • Front Row with Extended Desktop

    Im interested in purchasing a new Macbook and using it along side my plasma. Is it possible to run Front Row from the macbook using its screen for the interface and displaying the content on the plasma via the extended desktop?

  • Can You mount a mac Pro In a case for On the Road work

    I do audio pre and post production and I was thinking aobu ttaking a mac pro and putting it in a rack sideways . I know that the HD need pins(I think) to do that But I dont really know much else. any suggestions are appreciated