Is it possible to hide empty list items in a web app?

Hi,
as you can see on the here included image, below "Ihr Profil", there are 10 items provided by a webapp which are customized in the details.htm page as an unordered list.
In this case there are only 6 items filled out, the rest is empty, but the empty items do appear. Is it possible to tell the details page, not to display those empty items?
Thanks a lot for your interest and help

There are ways to do this with jQuery, but an easier way would be to use CSS.
ul li:empty {
   display: none;
Though this will not work in IE8/7, if that is a deal breaker you will need to use jQuery: http://jsfiddle.net/F7ZWV/
$("ul li").each(function() {
                                                  var $this = $(this);
          if($this.text() == ""){
             $this.remove();

Similar Messages

  • Is it possible to submit a list item and at same time query/search the results if parameters are matched.

    Hello,
    Is it possible to submit a list item and at same time query/search the results if parameters are matched.
    Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
    SP designer and InfoPath doesn’t work due items limits.
    Please suggest.
    Thanks,
    Manish
    Manish

    Hi Manish,
    may i ask if you need,
    when user account click the login button, it will be authenticate the user and then it will show search result page?
    may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
    or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Invalid element 'welcome-file-list' in content of 'web-app',

    HI, folks.
    I recently used struts to develop a simple web applicaiton, and whenever I tried to use tag libs
    such as /WEB-INF/struts-html.tld
    /WEB-INF/struts-html.tld and
    tried to compile it, it gives out compile error such as:
    Error(52,21): Invalid element 'welcome-file-list' in content of 'web-app', expected elements '[taglib, resource-env-ref, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'.
    if I remove the above tag libs, the jsp file compiles
    without any problem.
    Are you guys familiar with these problems?
    please let me know if I'm doing anything foolish.
    Thanks!

    Unless some other elements tag are not close correctly this error does not make sense. Can you cut and paste your web.xml?
    It should look something like:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <welcome-file-list>
      <welcome-file>/untitled1.jsp</welcome-file>
    </welcome-file-list>
    <taglib>
      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    </web-app>Charles.

  • ¿Is it possible to hide a list in service request customized form?

    Hi all.
    I've created two custom lists in authoring tool to the service request form.
    My question is : ¿ Is it possible to hide one or both ?
    Tks.
    Regards.

    You tried to set the "Visibilty" of the list field in the form to "Hidden"? (Mark the list field and set "Visibility" to "Hidden" in the Details)
    Andreas Baumgarten | H&D International Group

  • Is it possible to hide part of the line in webI line chart

    I had webI line chart which is showing for 2 months data, and is it possible to hide the line for only first 10 days in the line chart and continue the line after 11 th day till the end?

    @rajesh:  I didn't understand why should we use Relativedate() function?can you please explain little bit more. Becuase the report has customer exit written such a way that if I run the report today it will show up previous 60 days
    For example:
    today is 04/06/2011
    so in the report date column has values and shows up like
    02/06/2011
    02/07/2011
    02/08/2011
    04/05/2011.
    So now I should hide/avoid/shouldn't show First 10 days. In example above 02/06/2011, 02/07/2011,02/08/2011.....like wise 10 days so till 02/16/2011 shouldn't be shown in the report. The beginning of the report should start from 02/17/2011 till 04/05/2011..
    Edited by: saathiyaa on Apr 6, 2011 9:31 PM

  • How do I use the alternate list template when rendering web app items to a page?

    I need to have the ability to use the main list template on particular pages, but then use different markup for other pages - is there a way that I can specify the alternate list template within the module tag?

    Hi Matt, You should read about web apps here:
    http://helpx.adobe.com/content/help/en/business-catalyst/partner/web-apps-module-create-cu stom.html
    And module reference here:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html
    If you insert through the admin and click customise you will see the option to use listbackup. You will also see that layout availible via FTP and in the admin or DW.
    Here you can see where in the module paramaters the option to choose listbackup occurs:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html#id_65138

  • Liquid: How to filter on specific items in a web app collection

    I am trying to write some logic in Liquid that will show/hide certain html based on the value of a specific property of the webapp.
    I am trying to limit users to being able to create only one item of each type based on this filter.
    So in this case, the user has the option to create a 1 Bedroom Cabin, 2 Bedroom Cabin, 3 Bedroom Cabin or a 4+ Bedroom Cabin. I want them to be able to create only one of each type of cabin. I am pretty sure if/else statements are not a good way to check for this as I would be checking not only if the certain cabin type exists, but also for each situation of if say they have created a 1 Bedroom Cabin and a 4+ Bedroom Cabin. The way I am currently trying to accomplish it, I would have to write a ton of If/Else statements to check for all of these possibilities.
    Also, I notice that this code only checks if the type exists. So, if there are 4 web app items, all of these if/then statements below will evaluate to true. This is not the behavior I am looking for.
    Is there a different filter in Liquid to accomplish what I am trying to do? It seems as though my ability to iterate and do custom logic on collections is a bit limited right now in the current system. Any help would be greatly appreciated. Thanks.
    {module_webappscustomer id="28157" filter="all" render="collection" collection="listingsApp" template=""}
    <select name="CAT_Custom_1" id="CAT_Custom_1" class="cat_dropdown">
        <option value=" ">-- Please select --</option>
         {% for item in listingsApp.items %}
              {% assign accomodation = item.['Accommodation Type'] %}
              {% if accomodation == "1 Bedroom Cabin" %}
                   <option value="2 Bedroom Cabin">2 Bedroom Cabin</option>
                   <option value="3 Bedroom Cabin">3 Bedroom Cabin</option>
                   <option value="4&#43; Bedroom Cabin">4&#43; Bedroom Cabin</option>
              {% endif %}
              {% if accomodation == "2 Bedroom Cabin" %}
                   <option value="1 Bedroom Cabin">1 Bedroom Cabin</option>
                   <option value="3 Bedroom Cabin">3 Bedroom Cabin</option>
                   <option value="4&#43; Bedroom Cabin">4&#43; Bedroom Cabin</option>
              {% endif %}
              {% if accomodation == "3 Bedroom Cabin" %}
                   <option value="1 Bedroom Cabin">1 Bedroom Cabin</option>
                   <option value="2 Bedroom Cabin">2 Bedroom Cabin</option>
                   <option value="4&#43; Bedroom Cabin">4&#43; Bedroom Cabin</option>
              {% endif %}
              {% if accomodation == "4 Bedroom Cabin" %}
                   <option value="1 Bedroom Cabin">1 Bedroom Cabin</option>
                   <option value="2 Bedroom Cabin">2 Bedroom Cabin</option>
                   <option value="3 Bedroom Cabin">3 Bedroom Cabin</option>
              {% endif %}
         {% endfor %}
    </select>

    If I understand your intent, I’d loop once over listingsApp.items, setting a boolean to represent the ‘already used’ state of each accommodation type. Then I could use those to control the options:
    <select>
        {% unless hasAlreadyUsed1BRC -%}
            <option value="1 Bedroom Cabin">1 Bedroom Cabin</option>
        {% endunless -%}
        {% unless hasAlreadyUsed2BRC -%}
            <option value="2 Bedroom Cabin">2 Bedroom Cabin</option>
        {% endunless -%}
    </select>

  • Looping through items in a web app

    Hi there,
    On this site - http://www.dandmrural.com.au/
    Where it reads Latest news, I have each news piece setup as a content holder with a piece of javascript looping through them.
    I want to modify this to use Web apps so the client can add and remove items themselves and have them looping through as they do now.
    Using a Webapp I have access to {module_webapps,20117,a} which lists out all the items and {module_webappscount,20117} which gives me a count of the number of items.
    Can someone please give me some pointers on how to go about migrating from a content holder setup to using webapps.
    Thanks, Ben

    Your first step should be to customize the web app item list layout to match how each item is rendered in the shared content holder. From there, you should recreate each news item as an individual web app items. Finally, replace the content holder with the web app item list module ( {module_webapps,20117,a} ). It appears that the script that is responsible for handling the looping can be found here and is not relying on any sort of fixed number to control the transitions. Instead, it simply is looking for any divs which have an id that begin with "content-" and fades them in & out in whatever order it finds them until it reaches the final item and then starts over.
    Additionally, I would recommend adding some sort of incremental counter to your div id within your list template. Currently, the divs which contain each of the three news items share the same id attribute of "content-" which is not something you want.
    Something like this in your list layout should do the trick:
    <div id="content-{tag_counter}">

  • How do I get the ratingrank to show up in the list view of a web app?

    I'm trying to add a review section to my site and can get the form to work correctly on my web app detail view. However I also need the list view to show the rating count. Does anyone know how I can accomplish that?
    Many thanks in advance!
    Jake

    Hi SalynotSally,
    I use the Weather Channel app, but shortly after I posted this problem, the weather did start showing up.  The notification center says at the bottom that the weather is provided by yahoo.  I did make sure the location services and such were on though as Diavonex recommended above.
    Good luck and hope it works for you!

  • Wish list request-  {tag_classifications} in Web apps list layout

    To be able to use the {tag_classifications} in the Web app list layout, list would allow for advanced filtering i nthe list layout.    

    Agreed!! Why this wasn't done when they added {tag_itemID} etc. is beyond me! This can be used for so many resources.

  • Literature Item URL in Web App Field

    Greetings,
    I'm building a web app which allows the client to create items linking to literature items.  One question, how do I tell the client to get the literature item url?
    For example, if the literature item linked to a "House" PDF literature item, I have a field called "url-house":
    <strong>{tag_name_nolink}</strong>
    <ul>
        <li><a href="{tag_url-house}">House</a></li>
        <li><a href="{tag_url-senate}">Senate</a></li>
    </ul>
    Thanks!
    Brian

    Thanks Liam,
    I'm curious about URL itself now, see the question I asked here: http://forums.adobe.com/message/4514423#4514423
    I suppose another way to get the URL would be to mouse over the literature item, note the ID number and place it in the URL convention mentioned in the KB article, the other discussion mentions.

  • Possible to have two login configs in same web app?

    Sorry for not having tried this first, my server and webapp are in a state
    of flux at this moment, but I wanted to see what the consensus is out there,
    not just whether I can or cannot make something work quickly.
    If I have two types of things that might be called in my Web App (WAR) in
    different ways (eg, browser accessing via HTTP by users that want to login
    via pretty forms, and SOAP clients that may access functionality through the
    same servlets (but with alternate Servlet Path Info after the servlet name
    in the URL)), is there ANY way I can have multiple login configs, each tied
    to a different security constraint within that web app?
    In other words, with a servlet of /frazzleblitz and security constraints
    like:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Foo</web-resource-name>
    <url-pattern>/frazzleblitz/doFooBar</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>FoobarBrowserUsers</role-name>
    </auth-constraint>
    </security-constraint>
    and the SOAP constraint (for all users of incoming SOAP requests):
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Foo</web-resource-name>
    <url-pattern>/frazzleblitz/doFooBar</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>FoobarBrowserUsers</role-name>
    </auth-constraint>
    </security-constraint>
    where my frazzleblitz controller knows whether the incoming request is
    browser vs SOAP based by the path info after the servlet name
    Can I associate the first security constraint with a FORM based login
    config, and the second security constraint with a BASIC AUTH login config
    since I could in theory require SOAP clients to send in credentials in a
    HTTP BasicAuth header, but I can't expect a SOAP client to be HTTP
    Redirected to a login form and then to enter the right credentials into a
    user type form and then be redirected back to an app...
    Seems to me the J2EE Security spec is really lacking in the area of
    programmatic authentication (allowing my SOAP code to get credentials out of
    the request envelope and call an API to login myself). Yeah, WebLogic has
    the ServletAuthentication weak() API, but these apps need to be J2EE
    compliant and work across J2EE servers... Anybody know of any improvements
    coming in the J2EE security space to address such functionality needs?
    Thanks in advance
    Mike

    Sorry, hit send accidentally before finishing the second security
    constraint - I've fixed it up below to reflect what I meant...
    "Mike" <[email protected]> wrote in message
    news:[email protected]...
    Sorry for not having tried this first, my server and webapp are in a state
    of flux at this moment, but I wanted to see what the consensus is outthere,
    not just whether I can or cannot make something work quickly.
    If I have two types of things that might be called in my Web App (WAR) in
    different ways (eg, browser accessing via HTTP by users that want to login
    via pretty forms, and SOAP clients that may access functionality throughthe
    same servlets (but with alternate Servlet Path Info after the servlet name
    in the URL)), is there ANY way I can have multiple login configs, eachtied
    to a different security constraint within that web app?
    In other words, with a servlet of /frazzleblitz and security constraints
    like:
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Foo</web-resource-name>
    <url-pattern>/frazzleblitz/doFooBar</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>FoobarBrowserUsers</role-name>
    </auth-constraint>
    </security-constraint>
    and the SOAP constraint (for all users of incoming SOAP requests):
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Bar</web-resource-name>
    <url-pattern>/frazzleblitz/doSOAPRequest</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>SOAPUsers</role-name>
    </auth-constraint>
    </security-constraint>
    where my frazzleblitz controller knows whether the incoming request is
    browser vs SOAP based by the path info after the servlet name
    Can I associate the first security constraint with a FORM based login
    config, and the second security constraint with a BASIC AUTH login config
    since I could in theory require SOAP clients to send in credentials in a
    HTTP BasicAuth header, but I can't expect a SOAP client to be HTTP
    Redirected to a login form and then to enter the right credentials into a
    user type form and then be redirected back to an app...
    Seems to me the J2EE Security spec is really lacking in the area of
    programmatic authentication (allowing my SOAP code to get credentials outof
    the request envelope and call an API to login myself). Yeah, WebLogic has
    the ServletAuthentication weak() API, but these apps need to be J2EE
    compliant and work across J2EE servers... Anybody know of anyimprovements
    coming in the J2EE security space to address such functionality needs?
    Thanks in advance
    Mike

  • Open a list item automatically

    Hi,
    I am using forms 10g. Is there anyway to show (open) the list item automatically when the input cursor or focus moves to the list item field?
    Thanks in-advance!

    HI
    if u wanna hide show list item or any text item then use
    set_item_property('itemname',visible,property_false);
    Rizwan

  • How to disable a particular list item in flash cs3

    Friends,
    I need a small help on list component in flash cs3.
    assume that i have 5 items in my list and i want to disable 3,4,5 items from mylist box. how to do this ??
    item 1 -- enabled state
    item 2 -- enabled state
    item 3 -- disabled state
    item 4 -- disabled state
    item 5 -- disabled state
    using flash cs3, i want to achieve this , how to do this ?? any ideas pls..
    Rajesh

    Hi Rajesh,
    I've seen your query all over the internet, so I should warn you I don't believe it's possible to disable a List Item.
    For that you should use Josh Tynjala's open source Advanced List (http://code.google.com/p/flextoolbox/downloads/list).
    Best Regards,
    Filipe.

  • CSOM - Fetching list item version history programmatically

    HI,
    Is it possible to get the List item version history programmatically using Client Object model?
    I have checked these links:
    http://www.learningsharepoint.com/2010/07/16/programmatically-get-document-version-history-using-client-object-model-sharepoint-2010/
    but was not able to achieve. I am not looking for Document library, but for a custom list.
    Thanks

    Hi,
    In SharePoint Object Model, there is a
    SPListItem.Versions property
    can help to “Gets the collection of item version objects that represent the versions of the item”.
    However, in SharePoint Client Object Model, this property is not available at this moment.
    A workaround is that we can create a custom WCF web service for consuming from client side, then in this web service, we can use Object Model to access the versions of a list
    item.
    About how to
    create and a custom WCF web service:
    http://nikpatel.net/2012/02/29/step-by-step-building-custom-wcf-services-hosted-in-sharepoint-part-i/
    This workaround would not be applied to SharePoint Online cause Object Model is needed.
    If there may be some better ideas or solutions about this topic, your sharing would be welcome.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

Maybe you are looking for