Liquid: Sort Webapp items by custom date

I would like to be able to sort a list of web app items by a custom date. It is a list of events that have dates associated with them. They all get released on the same day, but they have unique event dates to each of them for when the event actually happens.
This is what I have so far:
{module_webapps render="collection" filter="classified" collection="warroadEvents" id="17654" itemId="122469" hideEmptyMessage="true" sortType="datereverse" template=""}
{% for event in warroadEvents.items %}
     {% assign todaysDate = globals.site.dateNow | date %}
     {% assign eventDate = event.['Event Date'] %}
     {% assign dateOrder = todaysDate | minus: myDate %}
     <div class="col-xxs buffer event-callout">
         <a href="{{event.url}}"><img src="{{event.['banner image']}}?Action=thumbnail&Width=825&Height=275" alt="{{event.name}}" class="img-responsive"></a>
         <a href="{{event.['e-split url']}}" target="_blank" class="ticket float-right" style="margin-top: 1.5em;">
             <img src="/_images/layout/buy tickets com.PNG" alt="" class="ticketimage">
         </a>
         <h2>{{event.name}}</h2>
         <p><strong>{{event.['Event Date'] | date:"dddd"}}, {{event.['Event Date'] | date:"MMMM d"}}: {{event.['Start Time']}}</strong></p>
         <h4><a href="{{event.url}}">View More Details</a></h4>
    </div>
{% endfor %}
I have created 3 variables. One that stores today's date, another that stores the event date from the web app item, and a third that subtracts the two to find the difference. I think I am part of the way there. I am not sure how to re-sort my for loop so that the date that is coming up soonest shows up first and so on.

Custom filter solutions are one of the big limitations with this stuff at the moment.
Basically you cant.
While you could wrap the items in an if..... And do date matching and comparing and not show them etc you will not be able to sort or order them based on that.
And with anything you do you can only do it in a scope of a total of 500 items or per pagination page. Per pagination page stuff creates an issue where it will show say 24 per page and lets say 3 on each page do not match you get 24 render pagination still but 21 shown on a page. It creates some funky results a bit.
I have been going on about this for a while now and that we need some core changes to Liquid to make it a bit more viable in the scope of how BC spits out data. For now though you cant do what your doing really.

Similar Messages

  • Dunning - sort open items by due date

    Dear experts,
    please help, havenu2019f found the right answer in the sap support channel or here.
    My question: I want to sort the result table of the dunning open items
    special on its due date.
    Any ideasu2026
    Thanks and regards..

    More information about my problem:
    I have setted my field under environment  > sort fields > dunning notice items
    New sort variant 50 u2013 for a test have tried the
    Sequence 1 u2013 budat
    Sequence 2 u2013 bldatu2026 (not necessary for test only )
    Also under environment I have changed the company code datau2026
    As:
    Comp code     Sort MHNK          sort MHND
    K1 (unchanged)     50 (new u2013 changed)     
    But still the dunning print will not react to the settingsu2026

  • Ical..... Sort items by due date

    I always like to see my tasks deadlines. so I always like to sort the items by due date in the list the "To Do Items". My point is when I updated something I always need to click the option and sort items by due date again. Can I do that action with an special command instead to used the click option?
    Thank you

    More information about my problem:
    I have setted my field under environment  > sort fields > dunning notice items
    New sort variant 50 u2013 for a test have tried the
    Sequence 1 u2013 budat
    Sequence 2 u2013 bldatu2026 (not necessary for test only )
    Also under environment I have changed the company code datau2026
    As:
    Comp code     Sort MHNK          sort MHND
    K1 (unchanged)     50 (new u2013 changed)     
    But still the dunning print will not react to the settingsu2026

  • Can Reminders in ML sort/order items per dates?

    Can Reminders in ML sort/order items per dates?   It was possible when it was part of Calendar  in its previous incarnation.  Doing it manually is a drag (no pun intended).  Seeing uncompleted reminders as well as what is imminent, without sifting through the whole list would be very useful.

    ops
    i mean
    about the 1 screenshot
    can i have  the list
    caeram data exit
    iptc core
    camera raw
    file properties
    second screeshot
    can i have the filter list
    aperture value
    exosure time
    file type
    keywords
    and so on
    thanks

  • Error Dummy items from Customizing have to be excluded @ Liquidity Planner

    Dear Experts,
    I want to try Liquidity Planner Calculation, using FLQAD,
    when in selection screen i aready insert :
    - Paying Company Code
    - 1st Derivation Step : Query Sequence
    - 1st Derivation Step : Exit Module
    - 2st Derivation Step : Buffer Item
    - 2st Derivation Step : Exit Module
    - Test Run
    - Detail List
    so when Execute / F8, i get error message "Dummy items from Customizing have to be excluded"
    please help me.
    thx you.

    You get this error if the liquidity items in FLQC2/FLQC13 and buffer item field of flqad selection screen are same.
    Buffer item refers to liquidity items assigned to vendor/customer recon accounts.
    To avoid this error donot use liquidity items from FLQC2/FLQC13 in FLQAD buffer item.

  • As an iTunes music seller, do you receive any customer data?

    As an iTunes music seller, do you receive any customer data? I am wondering how people would run a contest/giveaway by incentivizing people who purchase certain songs.

    Max OSX 10.6.8, iTunes 11.1
    I had a similar problem: I wanted to synch my playlist to my iphone. I like to have my playlist sorted by genre. But under each genre, albums are not sorted by the track numbers. This is a problem, especially when I am listening to club mixes when the DJ smoothly transitions from 1 track sequentially to the next one. Under the properties of each audio file, the Track Numbers and Disc Numbers are already there.
    My perfect solution was to turn On Sorting - Sort Album under View>Show View Options. Then, select all the songs in that album (Shift click, Cmd click, etc) , and Edit multiple item information (Cmd I). You will see Info-Video-Sorting-Options buttons. Click on Sorting. Then, under Sort Album, Enter the name of the album. Then OK.
    You should now have the playlist sorted by Genre, then each album individually sorted by track numbers. On your playlist you should see, if you scroll right, the column added called "Sort Album".
    Hope this helps.

  • How to target a specific webapp item

    Hi all,
    Can I target a specific webapp item?  Forexample I have a content holder that has three places for news information, but the css is slightly different on the last two items.  So my two thoughts are to eith specifically target webapp items (ie date) in the three css areas or can/should I do this using a backup list for the last 2 items?  I want them to display newest to oldest.  Will using a backup list keep my date sorting the same or will it start it over again?  Is there a way to tell BC to always display the second latest and then thrid latest item (like you can with the latest item)?
    Thanks.

    Hi there.
    Well there is lots of ways you can do this depending on the exact things you want to do.
    You have {tag_itemid} you can use to form unique classes, You got {tag_counter} on list view that you can use to render something like ns-1,ns-2,ns-3 etc to target with your CSS.
    You got :first-child and :last-child in CSS you can use and you also have nth child in css as well.

  • Generate webapp item ID

    Hi, any chance we can generate the webapp item ID on the front-end?
    I would want to use this on the data source field.
    Our site is a webapp submitted listing site that sellers will register via webapp/secure zone, once logged in they can upload a webapp item, and from there I would want the data source ID to auto generate based from the customer that submitted the listing.

    Thanks Liam, but im trying to render this outside the list/detail layout though

  • No Data in Reports Details in Custom date range

    Hello, iTunes U Public Site Manager Admins.
    As the iTunes U Public Site Manager admin, I've been trying to access our institution's iTunes U Reports Details for a couple of days. (I send a monthly report of usage to our course/collection contributors.) When I custom the date range, under Details, there is zero entry; "No data available in table" message is shown.
    This feature had been working well since Apple iTunes U added this enhancement on August 13, 2013. The report Details showed the exact stats for Browse, Subscribe, Download, Stream, and Enclosure for each course/collection in the custom date range.
    Now under "Details", the data is shown only when the date range is Last 30 Days. It shows no data in custom date range when the Calendar is used to select a Start Date and End Date.
    Has anyone else noticed this problem?
    Thanks.
    Q. Wang

    Erik.
    I used your suggestion and it worked very well. This is how I did it.
    Export the range of data that includes Feb. 1-Feb. 28, 2014 as .tsv file.
    Open that file in Excel.
    Add a blank column next to the Date column. Use function =Month() to just extract the month into the new column. Fill down the whole column. Then copy and paste special (value) into the same column (I have over 26,000 rows of data in the file.) Converting to Value will allow for the next step of PivotTable.
    Create a PivotTable for the 26,000 rows of data. Use Month as the Report filter, iTunes_ID as the Row Labels, Select Browse, Subscribe, etc. as the Sum Values. (The result is a summary table with about 200 rows.)
    I then do a Vlookup to my premade Master file to add Category (course, collection, resources) and Instructor Name to each of the 200 rows.
    That will do it for my monthly report.
    Thanks for your tip again. I did not know the .tsv file would have DATE for each item.
    Sincerely,
    Q. Wang

  • How to display multiple categories of webapp items in list view? Changing listbox list to checkbox list to select category in submission process?

    Hello!
    1.
    I am trying to get my page to list webapp items that are part of a few categories. I understand that if i want to view only one category, I just need to do the normal process of choosing that category and placing it out. So my question is: How do I display multiple categories of items in a webapp in a single page. I've tried this
    {module_webapps,WEBAPP_ID,c,CATEGORY_ID1,,,,10,,1} {module_webapps,WEBAPP_ID,c,CATEGORY_ID2,,,,10,,1}
    This only displays the everything from the first category, then everything from the next, which will not make it in order of date.
    I've also tried this for fun:
    {module_webapps,WEBAPP_ID,c,CATEGORY_ID1&CATEGORY_ID2,,,,10,,1}
    How can I go about doing it?
    2.
    I am looking to allow users to input a webapp item and allow them to select a category to tie to that item.
    <label for="CAT_Category">Category (You may select more than 1)<span class="req">*</span></label>
        <select name="CAT_Category" id="CAT_Category" class="cat_listbox" rows="4" multiple="multiple" style="height: 60px;">
        <option value="CATEGORY_ID1">--- Option 1</option>
        <option value="CATEGORY_ID2">--- Option 2</option>
        </select>
    Is it possible for me to change the listbox style into a checkbox style such that the user doesn't have to control+click multiple options?

    No answer to No.1 but I really want to find it out too.
    No.2 
    If you already know list of the categories & ID you can manually create a list of checkboxes
    <input type="checkbox" name="CAT_Category" value="89081" />
    <input type="checkbox" name="CAT_Category" value="89082" />
    <input type="checkbox" name="CAT_Category" value="89083" />
    something like that should work

  • I'm looking for a decent CRM app, so I can load my customer data base

    HI I'm looking for a CRM app or package, just started using my air for business and would like to have my customer data base with me handy
    for pulling up local customers and being able to enter some data sales related or just comments regarding conversations and topics talked about so I can follow up ect!
    any suggestions would be appreciated!
    thanks, Lee.

    Hi Lee what sort of database are you looking at also what sort of business do you run ?
    I have a CRM Package that is native to mac and pc and is built off of filemaker it is normally targeted at Recruitment businesses.
    Drop me a line if you wanna chat about it!
    Sammie

  • Commision based on item group & customer group

    Dear all,
    Does anyone have an idea about how to get commission based on item group & customer group sales?
    My customer wanted commission report based on item group or customer group & based on payment collection dated.
    Example
    Term given for customer A is 30 days.
    12/3/09 Inv 1000   RM 10,000   30 days payment
    20/4/09 Inv 2000  RM    5,000   60 days payment
    The term given is 30 days of the invoice month.
    Salesman will get commission if get the collection at May'09 for Inv 1000, & July'09 for iinv 2000 based on the invoice date month.
    The salesman get commission at any date of the month May'09. More longer collection, less commission they will get.
    Example:
    Salesman A
    Customer Group             1st of the month, 2nd of the month, 3rd of the month, 4th of the month
    Normal Dealer                         1.5%         ,  0.75%,              0.00%                   ,    -0.25%
    Sub Distributor                       0.5%         ,  0.25%,               0.00%                  ,    - 0.25%
    Any idea?
    Thanks in advance?
    Regards,
    Eric Tan

    Hi Eric
    SAP does not calculate commissions, but merely provide a mechanism to report on it. The multi level calculation you require can be achived with a custom query linked to a report layout. Standard SAP will not provide this type of calculation. You will need to look at the open transactions such as invoices and link to the relevant payment transaction to get the payment date. Then compare this date to the invoice due date to determine if the terms were adhered to or not. If not payment date - due date in number of days will be needed to calculate the effective commission percentage.
    Kind regards
    Peter Juby

  • MATERIAL CODES IN PO OF CUSTOMER DATA NOT APPEARING AUTOMATICALLY

    Hi Experts,
    We are facing a problem regarding feeding of material codes in customer data in PO. Previously in PO we use to give scrap material number & if we press enter automatically some scrap codes (i.e. 2804020001, 2804020005, 2804020018) was getting updated in customer data of PO, but as per management instruction we have hold the old codes and created new one. Please see if we can get that material codes automatically in new scrap codes also. It will save our time and will increase our efficiency without manual feeding faults.
    So I want to know in customer data of PO i.e the scrap materials codes are maintained in SPRO settings or it is stored in some table
    S.No.     Old Scrap Code     New Equivalent Scrap Code
    1     2804020001     2804020102, 2804020039
    2     2804020005     2804020103, 2804020040
    3     2804020018     2804020106, 2804020107
    Regards,
    Manjax

    Customer Data is maintained in Item Detail of PO
    Regards,
    Manjunath

  • In Mavericks, is there a way to sort by and arrange by date modified?

    In Mavericks, is there a way to sort by and arrange by date modified? I know how to do it in normal finder, however, if I try to upload something or open a document, it will not sort or arrange by date modified. I can sort by, but I cannot arrange by. It always seems to reset itself as well in finder for me. Is there a way to make this the default view?

    Hello Miss Vicky
    Check out the quoted section below to change how finder opens up as well as other information on changing Finder views.
    Mac OS X: How to Save a Finder View (Column, Icon, or List) for a Specific Folder or Disk
    http://support.apple.com/kb/TA20803
    OS X Mavericks: Choose options for viewing items in Finder windows
    http://support.apple.com/kb/PH13896
    How to set a preferred view
    There are several ways you may open a given item in a new Finder window for the purpose of saving a view, but this method is the simplest. Follow these steps:
    Close open Finder windows.
    Click the Finder icon in the Dock.
    Choose Preferences from the Finder application menu.
    Click "Always open folders in a new window" to enable that option.
    Open the item for which you wish to set a view. It should appear in its own new window.
    Set the desired view in the new window.
    Close the new window.
    Repeat Steps 5 to 7 for any item you wish to set.
    If desired, click "Always open folders in a new window" to disable that option.
    Close the Finder Preferences window.
    Regards,
    -Norm G. 

  • Sort list items according to predifined order

    hi all,
    I wonder is there any way to sort the items of a list
    according to a predefined order (e.g., 2,3,1)?
    Many thanks

    As far as I know the only predefined sort order is
    alphabetic. You could write a function using
    list.addAt(position,value) to add new items in the proper location
    and maintain the sort order yourself. This might involve a lot of
    looping through the target list, depends on how complex your sort
    rules are.
    I had a project where I needed to keep a list of file names
    sorted by rules other than alphabetic. I actually used a big lookup
    table (case statement) to append letters to the beginning of each
    name just before adding them to the list, the letters were stripped
    off when data was retrieved from the list. This trick allowed me to
    use list.sort() to maintain the sort order. It’s an ugly
    solution and I’m not proud of it, but it got the job done.

Maybe you are looking for

  • Cannot get all rows from cfProcResult

    We upgraded one of our servers (A) from CF 6 to 7.02. Another server (B) has CF 7.01. On server B (CF 7.01) the code works (below), all rows of each dataset are returned. Now on server A (CF 7.02) all of the resulting datasets have only the first rec

  • Crystal Report Templates for User-Defined Objects

    Hello Experts, I am running SAP B1 8.8 PL11. In the current patch SAP has default Crystal Reports that can be used as Layouts for Invoices, Credit Memo's so on. Is it possbile to have layouts for user defined objects ( say for instance i have a custo

  • Change output filename in webengine

    Hi all I was wondering if it is possible to change filename at export in a LR webengine? My problem is that I want to add the 'copyname' to the filename. Lightroom just adds an underscore and a number for virtual copies. Thanks for any answer!

  • Can I update to ML without backing up my hard drive will it erase?

    Can I update to ML without Backing up my hard drive will it erase?

  • Lock table overflow - Delta (fetch)

    Hi, I have an InfoCube which contains large amount of data. Before starting to extract data from this InfoCube, I want to set datamart status as fetched to start extractions with new coming requests. However, when I choose the processing mode of DTP