How to hide multiple XsltListViewWebPart when they are empty using OOTB or script?

Hello,
I have a SharePoint 2013 page that displays a few XsltListViewWebParts i.e.(Lists).
All the lists contains rows of data when we open: 
http://Server/Pages/MyPage.aspx
But, We have some customized filters and views in place, and when we open e.g.: http://Server/Pages/MyPage.aspx?FilterField1=LinkTitle&FilterValue1=250
The page opens correctly, But all the XsltListViewWebParts which do not meet the filtering will still be shown but as empty web parts - How to hide those?
In other words, In my SharePoint 2013, How to fully hide multiple XsltListViewWebParts on a page when they are empty ?
I have already tried:
http://mmman.itgroove.net/2014/06/22/hiding-empty-sharepoint-web-parts-using-javascriptjquery-on-a-dashboard-page/
http://sharepoint.stackexchange.com/questions/340/setting-displaynone-for-empty-web-part-zones
https://social.technet.microsoft.com/Forums/en-US/f26383dd-b53d-4ffa-8075-0ef8e46ab0b1/hide-list-view-web-part-when-list-is-empty?forum=sharepointgenerallegacy
Nothing works - Am I doing it incorrectly or am I missing anything ?
I would be thankful for your suggestions !

Hi,
The problem was due to JQuery is not loaded in the page.
Please follow the steps given in the URL :http://mmman.itgroove.net/2014/06/22/hiding-empty-sharepoint-web-parts-using-javascriptjquery-on-a-dashboard-page/ 
Instead of referring the JQuery link provided in that page, use the Google CDN (<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> )Link in script editor before calling 
$(document).ready(function(){
     setTimeout(waitForSPReady, 100);
Thanks.
A'Kumar

Similar Messages

  • How to add multiple table when creating add on using b1de

    Hi all,
    Plz help me
    How to add multiple table when creating add on using b1de.
    Thanks

    Hi dns_sap,
    Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
    If so, you can use the following code
    Add User Table
            Try
                Dim lRetCode As Long
                Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
                oUDT.TableName = TableName
                oUDT.TableDescription = TableDescription
                oUDT.TableType = TableType
                lRetCode = oUDT.Add
                '// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
                If lRetCode <> 0 Then
                    oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
                End If
            Catch ex As Exception
                oApplication.MessageBox(oCompany.GetLastErrorDescription)
            Finally
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
                oUDT = Nothing
                lRetCode = Nothing
                GC.Collect()
            End Try
    Add User Field
    Try
                Dim lRetCode As Long
                Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                oUDF.TableName = TableName
                oUDF.Name = FieldName
                oUDF.Description = FieldDescription
                oUDF.Type = FieldType
                lRetCode = oUDF.Add
                '// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
                If lRetCode <> 0 Then
                    oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
                End If
            Catch ex As Exception
                oApplication.MessageBox(oCompany.GetLastErrorDescription)
            Finally
                System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
                oUDF = Nothing
                lRetCode = Nothing
                GC.Collect()
            End Try
    Regards,
    Vítor Vieira

  • NVGRE - How do publish servers internally when they are behind an NVGRE Router?

    I'm looking to span 2 server rooms across my network. I get how outgoing traffic from the Hyper-V hits the GW and gets nat'd from the CA to PA.
    What I don't get is how does external machines access the virtual machines when they initiate the conversation?
    in my scenario I want one NVGRE router at each server room with a site-to-site vpn to span the network. (I'm assuming)
    Lets say I span 10.20.0.0/24 across the L3 network so servers at each site can use the network. Now lets say I put an application on the network that network with a 10.20.0.10/24 CA IP.
    How do my clients on the know how to reach this application server and how do they now which server room to connect to? 

    My Mini which was plugged into the same outlet did not go down. The webserver was shut down earlier than the fileserver (according to the logs), so I thought hacker activity was more likely. It has me very puzzled, however. The fileserver went down at 5:26 PM.
    May 27 17:26:14 localhost named[23968]: Cleaned cache of 17 RRsets
    May 27 17:26:14 localhost named[23968]: USAGE 1148765174 1144992369 CPU=100.03u$
    May 27 17:26:14 localhost named[23968]: NSTATS 1148765174 1144992369 A=21338 PT$
    May 27 17:26:14 localhost named[23968]: XSTATS 1148765174 1144992369 RR=102977 $
    =2715 RTCP=655 SFwdR=4228 SFail=0 SFErr=0 SNaAns=155651 SNXD=145602 RUQ=0 RURQ=$
    May 28 11:33:26 filesvr syslogd: restart
    May 28 11:33:26 filesvr mach_kernel: standard timeslicing quantum is 10000 us
    May 28 11:33:26 filesvr mach_kernel: vmpagebootstrap: 253940 free pages
    I suppose a possibility is that the hacking ceased at 3:25PM, and there was no log item between then and 5:26PM on the webserver, and they both went down in the same power surge.

  • How do you refresh devices when they are not showing up on iTunes?

    Sometimes my iTunes doesn't recognize one of my devices after I have left the building and come back.  Is there a way to tell iTunes to refresh the devixes listed?  There is no problem with the wifi, so there should be communication between the iPhone or iPad and iTunes on my Mac.

    You mean they don't appear in the Notes app on your devices?

  • How do I add applications when they are denied?

    Every time I go to open an e-mail, I get a message stating "Your browser must have Flash 9.0 or higher installed to add this application." However, I cannot download this application. At times, I get other messages stating that I need to tell my browser to allow access (such as to att.net), but I don't know how to do this. Any help is appreciated.

    1.Download the Flash setup file from here: <br />
    [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe Adobe Flash - Plugin version]. <br />
    Save it to your Desktop.<br />
    2. Close Firefox using File > Exit <br />
    then check the Task Manager > Processes tab to make sure '''firefox.exe''' is closed, <br />
    {XP: Ctrl+Alt+Del = Processes tab}
    3. Then run the Flash setup file from your Desktop.

  • Is there a way to remove files when they are in used

    i got a file in the trash when i restart log of or shut down the files keeps saying in used its a exe fie i would this as a exe file it will not let me delete it and when i move it it stays in there and keeps cloning its self
    Pls help me as its been bugging me for the past week
    thanks mike

    My wild guess is that changing the Filetype changes what application can use it, perhaps breaking what is already using it...
    I gave the answer above. There's probably nothing actually using it, and in the case there is, changing the code won't do anything. It's how the Finder interprets the 'bzy ' type that causes the report.
    Start up using your Tiger install disc or your Restore disc, then trash the file.
    No bootable Mac OS X install or restore disk includes an usable Finder.
    (54123)

  • I recently had to get a new computer, my list of audible books is there but can't open because original file cannot be found.  how do I find them or redownload them when they are not in my purchased list anymore?

    I recently had to purchase a new computer, after doing so I no longer can open my audible books.  the list is there, but I get an error message telling me that the original file cannot be found.  How can I redownload them when they are not in my purchased list anymore when I go to the Apple Store??

    Downloading past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Movies currently available in the USA only. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list, or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • On a iphone4, under settings, messages, send and receive, there are multiple phone numbers listed.  How do I remove them? they are constantly checked even when i uncheck them.  this is causing copies of my text messages to go to those phones.

    on a iphone4, under settings, messages, send and receive, there are multiple phone numbers listed.  How do I remove them? they are constantly checked even when i uncheck them.  this is causing copies of my text messages to go to those phones.

    Are you using the same AppleID for all those phones? If so, get them all their own AppleID.
    KOT

  • How to transfer music from one computer to another when they are at 2 diffe

    yes hi I was wondering how do i get music off of my one computer to another when they are in two different homes. they are both authorized to my account but i have music on one that i want on my other. can anyone please help.

    Hello!
    To have same library on both of your authorized machines, you need first locate, on both of them, the iTunes Media Folder location (Preferences > Advanced) then you need make them syncronized. How to do this, will exists some tools, I will not go further about that stuff, you can google them... back to topic:
    After you do any change to the files content of one library, you can just drag and drop the media folder on iTunes, it will rescan the library itself and update all changes you made.
    Be aware if your machines are authorized on multiple accounts, you need be logged on store with the account used to purchase any drm-enabled song you want to listen.
    Message was edited by: Andrea Rimicci. Typos

  • My ipod 5th gen won't change volume when headphones are plugged in, but when they are not I can change the volume on the speaker.  How do I fix this?

    My ipod 5th gen won't let me adjust volume when headphones are plugged in, but when they are not I can adjust the volume on the speaker.  How do I fix this?

    Try a hard reset of the Nano. To do this, press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    I assume you have double checked to make sure you are plugging the headset all the way in meaning the white part of the headset is flush with the body of the Nano?
    B-rock

  • I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    From the Finder menu select 'Secure Empty Trash'. If this or the suggestion above doesn't resolve the problem take a look at the various suggestions in this link:
    http://www.thexlab.com/faqs/trash.html

  • How can I watch my tv shows when they are in the cloud and I am not near wifi?

    I can't watch my tv shows on my phone when they are in the cloud and I am not near wifi.  How can I get them out of the cloud?

    You have to download them or sync them to your phone ahead of time.

  • I was adding something to one of my notes when half of my notes disappeared, how can I find them again, they are not even in my iCloud?

    i was adding something to one of my notes when half of my notes disappeared, how can I find them again, they are not even in my iCloud?

    http://support.apple.com/kb/HT1848  Did you transfer your purchased item, take a look at the link

  • How do I show the details of a customer when they are logged in a secure zone?

    How do I show the details of a customer when they are logged in a secure zone?
    I want to show the customer details as well as some customer CRM fields that are applied to the customer. None of these are entered via a form, they would be entered by the client. The customer would need to be able to log in to view the information and get an email alert when it is updated. Help!?

    Hi,
    You might want to look into customer service zones which allows customers once logged in to see their case, order and own details. 
    - http://kb.worldsecuresystems.com/133/bc_133.html
    - http://kb.worldsecuresystems.com/kb/customer-service-area-orders.html
    - http://kb.worldsecuresystems.com/kb/allowing-customers-view-update-crm.html
    Kind regards,
    -Sidney

  • My Macbook is not playing sound unless i have headphones in. The light in the headphone plug stays on even when they are not plugged in. How can i fix this?

    My Macbook is not playing sound unless i have headphones in. The light in the headphone port stays on even when they are not plugged in. How can i fix this?

    You might need to clean the headphone port (I was in the same situation and this worked for me).  Dirt, dust, and debris accumulate in the port and eventually the computer registers the debris as headphones being plugged in.  After cleaning the issue was resolved.

Maybe you are looking for

  • If I install Bootcamp will I lose apps I already have installed on my computer?

    I've been using my mbkpro for over a year now, so if the process of trying to setup Bootcamp at this point means my drive gets wiped, it would take me forever to reinstall all my apps and files from scratch. So my query is: 1. Can I install Bootcamp

  • Can I use  the database with as the ses as a regular database?

    I write a application base on SES recently, and I need to store some data in the database. Can I use the the database with ses? I can login using sqlplus login the database using the same pc as the ses installed, but I cannot login using sqldeveloper

  • Remote_user not passed in reverse proxy

    Hi Team, Our webserver is ARR enables.Trying to setup the reverse proxy but  using urlrewrite.Request reaches the backend server but the Request header Remote_user is empty.Any workaround to pass the value to the Backend server. Do i need to build a

  • Moduslink Vista upgrade is Free or not Free?

    I've just bought the A100-906 notebook with Windows XP Home. As I understand I can upgrade it to Windows Vista. And, as I understand, for free. But then I visit Microsoft Upgrade site I've seen an item price 95,47USD without shipping and handling for

  • How to senda single alert for the similar error for the last specified time

    HI, We have configured alerts in OSB flow and alert destination as email. but we are receiving lot of emails. is there any possibility to consolidate alerts from past 30 mins and send as single alert in OSB