List which should show as empty until items are searched

Hey,
I've inserted an App Part of a list using a custom view. This view shows only the title of the items. My goal is to have the list shown as empty (=basically only showing the search box of the App Part) until the user searches the list.
I'd like to achieve this with OOTB features if it's just possible. The search box for the list is activated from its properties (Display search box).
I wonder if this could be achieved somehow with list view filtering, such as "Show the items when column [Title] [contains] [searchboxvalue]".
I'm aware of the Filter web parts, but their straight provided requirement to match exactly the item's title is something I'm trying to avoid with the list's own search box.

Hi,
We can use CSS+jQuery to achieve it, please add the following code into a content editor web part.
<style>
table.ms-listviewtable{
display:none;
</style>
<script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
setTimeout(function () {
$("img[id^='inplaceSearchDiv_WPQ']").click(function () {
if ($(this).attr("title") == "Search") {
$("table.ms-listviewtable").show();
if ($(this).attr("title") == "Clear search") {
$("table.ms-listviewtable").hide();
}, 5000);
</script>
The issue shouldn't in the referencing of jQuery. I entered alert boxes to different parts of the code followingly:
$(function () {
alert("first");
setTimeout(function () {
alert("second");
$("img[id^='inplaceSearchDiv_WPQ']").click(function () {
alert("third");
if ($(this).attr("title") == "Search") {
alert("fourth");
$("table.ms-listviewtable").show();
if ($(this).attr("title") == "Clear search") {
alert("fifth");
$("table.ms-listviewtable").hide();
}, 5000);
The alert first was popped up right after refreshing the page. The
second came 5 seconds later (Timeout function). The alert third popped up once clicking the actual search symbol (magnifying lens
or the x-symbol for clearing the search). fourth
and fifth never were alerted.
I'd like ask about two parts of this code:
Should the $("img[id^='inplaceSearchDiv_WPQ']")
be in the code as it is, or should it be e.g. WPQ2 to match the web part's ID?
About the if
($(this).attr("title")
==
"Search") part:
Should the title be the column name of the list which we are searching for?

Similar Messages

  • How do I get back my installed extensions list (which now shows up empty, in spite of working fine)?

    Firefox 19.x automatically upgraded to 20.0. Since then, it got stuck on "Checking add-on compatibility". Looking for solutions, I've come across one that indicated deleting Prefs.js, User.js and Sessionstore.js from my C:\Users\******\AppData\Roaming\Mozilla\Firefox\Profiles\********.default\ folder. It worked, but now I've only got a handfull of add-ons and no extensions listing. FileLab, Java, Shockwave and VLC are of those shown. I can't see NoScript, AdBlockPlus, TabMixPlus, Xmarks, X-notifier, LastPass and a couple more.
    Any help would be appreciated, thank you!
    BTW, the newly installed Troubleshooter doesn't show up either!

    It is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (e.g. extensions.sqlite, extensions.ini, extensions.cache) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left end side of the Search Bar ("Find Updates" button in older Firefox versions) to check if there is a compatibility update available.
    If this hasn't helped then also try to delete the addons.sqlite file.

  • I have apps loaded on my iPad. they show in the main screen are not available to load documents to in the window list which should appear below the main window. the same apps do appear in the sub window on my other iPad. any ideas?

    i have apps loaded on my iPad. they show in the main screen are not available to load documents to in the window list which should appear below the main window. the same apps do appear in the sub window on my other iPad. any ideas?

    From what I can see, unless you're doing things with old versions of Xcode on a Mac (in which case, the solution seems to be to upgrade to the latest version), this seems to e an iTunes issue.
    Accepting that it works fine with another iPad, I suggest trying the following:
    1. Restart the non-working iPad
    2. If that doesn't work, reinstall iTunes. If you're on a Windows PC, I suggest using Control Panel to uninstall all the Apple apps, restarting the PC, and doing a fresh install. If you're using a Mac, a repair permissions might help too.
    iTunes 10.3 is now available, and that may make a difference.

  • The result list for activities is empty but items are coming but invisible.

    Hi ,
    The result list for activities is empty / blank - nothing shown at all. but the line items are coming but all are invisible.
    please guide me to find the root cause of this issue.
    Thanks,
    Prem.

    Hi Rene,
    When I am click on 'Search' , the view area is created but records are not being displayed. I checked in the background and data is being fetched.
    Moreover, When I am copying one line item(which is viewed blank after the search being performed but has data)  and after saving press 'previous' all the records are being displayed.
    Do you have any idea on this? Can you share your ID , I can mail you the screenshot .
    Thanks,
    Prem
    Edited by: prem kumar on Jun 7, 2010 1:17 PM

  • Why the lens profile list can't show ALL lens profiles items from "LensProfiles 1.0" folder?

    When I add a new lens profile - Samyang 14mm f2.8 - .lcp file into the "LensProfiles > 1.0" folder, I appear there are many lens profile items can't show in the Lightroom lens profiles list.
    Please tell me how can I add these items into the LR lens profiles list........... thanks!!!

    Sorry my bad, should have put.
    Your custom Camera Raw & Lens Profiles should be installed to the User folders…
    Lightroom 5 no longer uses the shared ProgramData (Windows) / Application Support (Mac) folders for Camera or Lens Profiles. Instead, it stores the built-in profiles with its program files.
    When you create camera or lens profiles, they must be stored in the user locations listed below. If you previously stored custom profiles in other locations, you’ll need to move them to these user folders, otherwise Lightroom won’t be able to find them.
    Windows—C: \ Users \ [your username] \ AppData \ Roaming \ Adobe \ CameraRaw \ CameraProfiles \
    Mac—Macintosh HD / Users / [your username] / Library / Application Support / Adobe / CameraRaw / CameraProfiles /
    For the lens profiles, substitute the LensProfiles folder for the CameraProfiles folder.
    The camera and lens profile file extensions are:
    .dcpr—camera profile recipe file used for creating/editing a profile in the DNG Profile Editor
    .dcp—camera profile
    .lcp—lens profile

  • When replying to a distribution list, my reply shows as empty to me

    Someone sends an email to a distribution list of which I am apart of.
    I reply (reply-all, because I think the person who sent the original is not on the list)
    In the conversation view of my inbox, my reply shows as blank/empty (subject and to/from shows up, but message is empty)
    My reply looks fine when viewing in my sent folder
    Others on the distribution list tell me that my reply has the full text in the message body.
    Quiting the Mail app and then launching it again seems to fix the conversation view (my reply shows up with text in the message)
    Is there an easy fix for this? Or am I looking at a bug?

    OK, so if a message contains images as part of signatures, it wouldn't necessarily be correct to delete them. So we're left with doing it on a case by case basis.
    People who don't like graphic content use plain text; this would automatically dispose of inline graphics content (though not true attachments).

  • HT1481 I have an ipod shuffle which i need to reset as i can not sinc it on my laptop which is using windows 8, but when i open itunes i d not have the 'source panel' on the left hand side which should show up my ipod. any ideas what i need to do? please

    Hi  I have an ipod shuffle which worked well on my old pc but since i have tried to link it with my new laptop I cant get it to sinc. I have athorised the device to my laptop so i thought it maybe worth resetting it but all the info I have read tells me that to reset my ipod i need to open i tunes and on the left hand side in the 'source panel' i will find my ipod listed but when i open itunes i do not have a source panel so i cant reset it. i have spent days trying to get this problem sorted and am about to throw the thing away. I have tried to manually sinc the thing, i have installed and reinstalled the latest version of itunes, i have restarted my laptop but i dont know what to do next. any help would be very much appreciated. Many thanks in advance

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • Tax and amount total should show in the line item of confirmation screen

    Hi All,
    I need to add the Tax and amount total fields in the line item of confirmation screen for service cart.
    Could someone please tell me how and where should I add and write the neccessary logic for that.
    We are on version SRM 3.0.
    Thanks,
    Kumar

    Hi,
    Please check the foll note for addition of custom fields:
    458591 - User-defined fields: Preparation and use
    672960 - User-defined fields 2
    To change the field content you need to implement the badi BBP_DOC_CHANGE_BADI .
    Here is the sample code for BBP_DOC_CHANGE_BADI Implementation
    loop at et_item into ls_item.
    move ls_item-mfrpn to ls_item-zz_your_new_field.
    modify et_item from ls_item transporting zz_your_new_field.
    endloop.
    BR,
    Disha.
    Pls reward points for useful answers.

  • A script which should show a PPT or a web page in Contract document

    Hi Experts,
    I have requirement to write/add  the script where a user click in the contract Documents (in MA) .it should display like PPT or web page
    Ref :(Near Draft option)
    Any Help will be apprecited .
    Many Thanks
    Iqbal

    Hi Experts,
    Please help on this issue .
    Many Thanks
    Iqbal

  • Order Output should be supressed when all items are rejected

    We have a requirement, where when all schedule lines in a sales order are rejected the order confirmation output should be suppressed.
    This is what we did to achieve it.
    Using the customer modification structure KOMKBZ3, add a new field ZZ_ALL_SL_REJ . This field is an indicator that will be set if all all items in a sales order are rejected.
    Call function KOMKBV1_FILL to populate the communication structure KOMKBV1. The function calls USEREXIT_KOMKBV1_FILL, which is the header level user exit routine.
    In this user exit, through a select statement read table J_3AVBUE, and check for all schedule lines if 'ABSTA' equals C, if this is true the ZZ_ALL_SL_REJ  indicator is set to ‘X’.
    Then in the output requirement routine 900, see if KOMKBV1-ZZ_ALL_SL_REJ is set to 'X', if so set the return code to be 4.
    However when we reject items in sales order and save it, we have to go back in again and save it for the second time for the output determination to be carried out again.
    Could someone help with this...
    Thanks.
    Anne

    I believe an easier method would be to check KOMKBV1-ABSTK in the output requirement. If it's 'C', then all items have been rejected.
    Cheers, Paul.

  • How to search for the email with attachments in iphone which should return the list of mails with attachments?

    Hi am new to iphone programming,in the app i want the emails which are having the attachments to show when we search for particular email sent by others in a list which should return the content of the attachment.can any one help me to solve this thanks in advance.

    If you received character strings' variable value such as '56,34',
    then you can get it as follows.
    where regexp_instr( '56,34' , '(^|,)('||t.catid||')(,|$)') >= 1
    Ex)
    with
    test_param as
    (select '56' param from dual union all
    select '34' from dual union all
    select '56,34' from dual union all
    select '5,344' from dual
    ,test_data as
    (select 5 catid from dual union all
    select 3 from dual union all
    select 56 from dual union all
    select 34 from dual union all
    select 566 from dual union all
    select 344 from dual
    /* End of Data */
    select p.param, t.catid
    from test_data t, test_param p
    where regexp_instr( p.param, '(^|,)('||t.catid||')(,|$)') >= 1
    PARAM      CATID
    56            56
    34            34
    56,34         56
    56,34         34
    5,344          5
    5,344        344

  • Picking the right quoattion and the value should show in PO

    Dear All,
    When comparing quotations the CST and VAT applicable Suppliers where VAT may be Cenvatable or Not and CST is not Cenvatable .After maintaining comparision in quotations it has to pick the right supplier quotation depending on which condition type and should show in the PO as Non Deductable Tax.
        It should differenciate with the Cenvatable amount and Non Cenvatable amount which should show in PO
               Please suggest me which are all Condition types with Controal data should i Difine in my Pricing Procedure.
    Thanks,
    Tiru

    Hi,
    VAT and CST comes from Tax Procedure and depends on the Tax Code which you maintain in RFQ in ME41. You can see Taxes in ME47, select line item And click menu Item > More functions > Taxes
    And once you finalise the quotation and go for PO creation w.r.t. RFQ, it copies the Tax Code automatically in PO. You can see "Taxes" under "Invoice" tab at item details level in PO.

  • ALV Output - Need to show count of line items based on 1 key field.

    Hi All,
           In my prog i need to show an ALV ouput which is having Matnr,Material type and Division . MATNR is the key field. I need to show how many line items are present against a  particular MATNR in that ALV ouput itself. Not in the top of page. I think there might be some field in SLIS which can be use for the same. If any one has come across such a requirement then please revert back.
    thanx,
    Shyam.
    PS: Useful answers will be rewarded.

    Ok, so we are back to using the COUNT field and now using the SORT functionaity, the SORT will allow us to subtotal by MATNR.
    REPORT  zrich_0001.
    * Global ALV Data Declarations
    TYPE-POOLS: slis.
    * Internal Tables
    TYPES: BEGIN OF talv ,
           matnr TYPE mara-matnr,
           mtart TYPE mara-mtart,
           spart TYPE mara-spart,
           count TYPE i,
           END OF talv.
    DATA: ialv TYPE TABLE OF talv WITH HEADER LINE.
    DATA: fieldcat  TYPE slis_t_fieldcat_alv.
    DATA: sort     TYPE slis_t_sortinfo_alv.
    DATA: layout    TYPE slis_layout_alv.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM call_alv.
    *      Form  GET_DATA
    FORM get_data.
      SELECT matnr mtart spart INTO TABLE ialv
                FROM mara UP TO 500 ROWS.
    ENDFORM.                    "GET_DATA
    *  CALL_ALV
    FORM call_alv.
      PERFORM build_field_catalog.
      PERFORM build_sort.
      layout-countfname = 'COUNT'.              "<-----  HERE
    * Call ABAP List Viewer (ALV)
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          it_sort     = sort
          is_layout   = layout
          it_fieldcat = fieldcat
        TABLES
          t_outtab    = ialv.
    ENDFORM.                    "CALL_ALV
    * BUILD_FIELD_CATALOG
    FORM build_field_catalog.
      CLEAR: fieldcat. REFRESH: fieldcat.
      DATA: tmp_fc TYPE slis_fieldcat_alv.
      tmp_fc-reptext_ddic = 'Material'.
      tmp_fc-fieldname    = 'MATNR'.
      tmp_fc-tabname      = 'IALV'.
      tmp_fc-outputlen    = '18'.
      APPEND tmp_fc TO fieldcat.
      tmp_fc-reptext_ddic = 'Material Type'.
      tmp_fc-fieldname    = 'MTART'.
      tmp_fc-tabname      = 'IALV'.
      tmp_fc-outputlen    = '4'.
      APPEND tmp_fc TO fieldcat.
      tmp_fc-reptext_ddic = 'Division'.
      tmp_fc-fieldname    = 'SPART'.
      tmp_fc-tabname      = 'IALV'.
      tmp_fc-outputlen    = '2'.
      APPEND tmp_fc TO fieldcat.
      tmp_fc-reptext_ddic = 'Count'.
      tmp_fc-fieldname    = 'COUNT'.
      tmp_fc-tabname      = 'IALV'.
      tmp_fc-outputlen    = '5'.
      tmp_fc-do_Sum       = 'X'.
      append tmp_fc to fieldcat.
    ENDFORM.                    "build_field_catalog
    *&      Form  build_sort
    *       text
    FORM build_sort.
      DATA: tmp_sort TYPE LINE OF slis_t_sortinfo_alv.
      CLEAR sort. REFRESH sort.
      CLEAR tmp_sort.
      tmp_sort-fieldname = 'MATNR'.
      tmp_sort-tabname   = 'IALV'.
      tmp_sort-up        = 'X'.
      tmp_sort-subtot    = 'X'.
      APPEND tmp_sort TO sort.
    ENDFORM.                    "build_sort
    Regards,
    Rich Heilman

  • Header condition type should not be editable at item level

    Hi gurus,
    could  you please help me with the following question.
    Our requirement is to provide header discounts manually at header level which should not be editable at item level. So I've created condition type as Header condition.
    When we manually add this condition at header level in Sales order, it is copied to the item level and is not editable there.
    But after saving the SO, we find that the header discounts appearing at the item level becomes editable.
    Kindly  advice how to make the condition type as non-editable at item level.
    Thanks in advance.
    Sunny.

    hi Sunny,
    please check your condition type for discount in section 'Changes which can be made', wheather it used only for the header level or item level or both of it.
    if you want to make the condition is not editable in item level, then you must made the condition type just for the header level.
    beside changing the configuration in the condition type, you can protect it via BADI but it needs more programming.
    if you insist to use the BADI, you can made the implementation of class CRM_ORDER_FIELDCHECK BADI
    hopes it helps
    cheers

  • Query to know wich item are to a specific price list

    Hello Experts,
    In order to be able to delete a price list, I need to find out wich items are linked to this price list. Which query I need to run ?
    I tried in the OSPP table but no data are recorded in.
    Thanks in advance for your answer.
    Best regards
    Sébastien TABORE

    Hi Sebastien,
    Try this
    SELECT ItemCode,ListName,Price FROM ITM1 INNER JOIN OPLN ON ITM1.PriceList=OPLN.ListNum
    Best Regards,
    Hendry Wijaya

Maybe you are looking for

  • How do i get adobe flash player on a macbook pro

    I am currently unable to view certain youtube videos because of the adobe flash player 7 needs to be installed ive tried installing the software but it doesnt seem to work how else can i get it or is there anything else i can do

  • FI-AA and FI-GL Reconciliation

    When I run ABST2, i get error that with W004, and also 999 and some without these. Though I checked asset balance for a particular asset class and the same g/l, they have the same balance, but this is on the list with W004. I think W004 is a warning

  • Problem in Select Statment

    I have two tables <b>TAB1</b> <u>F1</u>     <u>F2</u> A1     AA A2     AA A3     BB A4     AA A5     AA <b>TAB2</b> <u>F1</u>     <u>F2</u>     <u>F3</u> B1     AA     D1 B2     BB     D1 B3     CC     D1 B4     AA     D2 B5     AA     D3 B6     BB  

  • �possible that the JNI side generates many instances of the native code?

    Hi guys, I asked this in a previous post but maybe with a bad constructed question. I have C code that generate data (particles) for one client (non multithreading). In my webapp Im gonna have many clients but changing the C side is not initially my

  • Insufficient location for USB Device

    I get the following error when I run the working program on another computer. Error was -1073807343 Insufficient location information or the device or resource is not present in the system. I have created an alias in my program #define THORLABS_ALIAS