[U8.1][Xaml] Different Layout for RSS Feed items.

Hi everyone,
I created a simple RSS Feed reader using App Studio, and now I`m modifying it to my needs on Visual Studio. Its awesome!
Now I would like the items of my RSS Feed source to have a different layout from each other based on the Author or Date the feed item was fetched. I think that it could be done using some conditionals but I don't exactly know how.
If anyone could help me with that, that would be awesome.
Keep in mind that I have just started playing around with app development on Windows and try to be as clear as you can on your instructions.
Kind Regards.

What code do you have for the source items? I assume it is some type of ItemsControl (ListView, GridView, etc.) and you can set the
ItemsTemplateSelector to choose between different layouts based on the bound object's Author and Date. See the
DataTemplateSelector class documentation and the
How to group items in a list or grid page: the ItemsTemplateSelector works essentially the same as the GroupTemplateSelector demonstrated in that article.
If you want to know if and how this can be done within App Studio please check in the App Studio forum.

Similar Messages

  • Different layouts for different pages

    hi all,
    i have created a form in which there are 5 output pages but the print preview shows only the first page out of 5.i want to go to the next page.plz help how would i do that.and  i want different layouts for different pages.
    thnks n regards,
    mukesh.

    Hi Mukesh,
    Read these lines which has been given in help.sap.com and also go through the link given below.
    Main Window on Several Draft Pages :
    if you want the pages on which a table with items is printed to have different layouts. Height and position of the main window may differ on the different pages, but the width must remain the same throughout.
    [Main Window|http://help.sap.com/saphelp_nw70/helpdata/en/b1/243fdabeee11d4b633006094192fe3/content.htm]
    Regards,
    Sravanthi

  • Use different Layouts for Summary and Details in Drill down report

    Hi All,
    I have a 2 level drill down report in ALV.
    The summary report has certain fields and the Detail report has different fields. Now my problem is that when i use a default layout (with all fields of summary report) for the summary report, and drill down to the detail report i'm missing the fields on detail that are not in Summary. And if i save the default layout as default (with all fields of Detail) and go back to sumary, I'm missing the some other fields on summary (which are not on detail report).
    Is there a way to make different default layouts for each of those summary and detail reports:
    Also as the layouts are choosen by the user, i cannot hardcode any particular layout;
    So if the user chooses a layout for detail; it has to stay the same layout for the detail report if he goes to summary and then back to detail; unless the user changes the layout again.
    I'm using two different Layout types for each report. but i still cannot get the desired effect.
    Data:
          gt_layout_s             type slis_layout_alv,
          gt_layout_d             type slis_layout_alv,
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = g_repid
          is_layout                = <b>gt_layout_s</b>
          i_callback_top_of_page   = g_top_of_page
          i_callback_user_command  = g_user_command
          i_callback_pf_status_set = g_status
          i_save                   = g_save
          is_variant               = gs_variant
          it_fieldcat              = gt_fieldcat[]
          it_events                = gt_events[]
        importing
          es_exit_caused_by_user   = gs_exit_caused_by_user
        tables
          t_outtab                 = it_summary.
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = g_repid
          is_layout                = <b>gt_layout_d</b>
          i_callback_top_of_page   = g_top_of_page
          i_callback_user_command  = g_user_command
          i_callback_pf_status_set = g_status
          i_save                   = g_save
          is_variant               = gs_variant
          it_fieldcat              = gt_fieldcat[]
          it_events                = gt_events[]
        importing
          es_exit_caused_by_user   = gs_exit_caused_by_user
        tables
          t_outtab                 = it_detail_disp.

    Here is how you differentiate between the layout of two different grids. There is the parameter, IS_VARIANT in the function. You usually leave it empty or pass only the report name and username. <b>What you need to do is to pass unique string for each grids to the HANDLE field of the parameter IS_VARIANT.</b> You can probably hard code it as HEADER and DETAILS in your case. Once that is done, system identified that these two different layout for different grids.
    Regards,
    Ravi
    Note : Please mark all the helpful answers<u></u>

  • Different layout for PO, RFQ O/L Agreement

    Hi!
    In the PO main screen there is document overview, where we can see PR, PO, RFQ, SA, Contract. Is it possible to have
    different layout for each purchase document Or we have a common layout for every document.
    Regards,
    Vaibhav

    Different layouts is not possible. Only common layout is available.
    PR, PO, RFQ, contact are referece documents. If you make po with these referece documents you can see the document no at item overview level at Right hand side

  • Different layout for different layers in a JLayeredPane

    Is it possible to set a different layout for different layers in a JLayeredPane?
    Say, I have a JFrame with two or more JInternalFrame.
    I set a JDesktopPane as the content pane for the frame.
    Is it possible to add the different JInternalFrames to different layers with different layout?? like, BorderLayout for one layer and FlowLayout for another and so on..

    But cant you add differnt components to diffrent layers. and each component can have a layoutmanager.. dont know if you can but maybe..
    David

  • Different currencies for multiple line items in a AP invoice?

    Hi, Expert,
    Is it possible to assign different currencies for multiple line items in a AP invoice?
    Eg:
    One vendor is supplying raw materials from different regions, and we have to raise one invoice with different currency rate  to each items 
    regards,
    Sanju

    Hi Sanju,
    It is not possible to assign different currencies for multiple line items in a AP invoice.
    Try to book the different documents(different correncies for a single vendor in a A/P Invoice).
    Regards,
    Madhan.

  • Album tag for rss feed?

    Hi there, I'm quite new to RSS feeds and was wondering if anyone could tell me the itunes tag to change what appears in the "album" field when a podcast is downloaded. Or if anyone knew of a complete list of all tags that are available -- I've already checked the Apple spec page.
    Any help would be greatly appreciated, thanks!

    Sorry, I've been away for a long time and it seems all my "newly added material" to posts has been reset.
    If you're doing a podcast, true, iTMS overwrites the Album tag with the name of the podcast album, and the Genre tag with "podcast."
    The other tags remain the same.
    I don't like it either, since we do different series within our podcast, and would like to give each series an "Album" name. I can understand why Apple does it the way they do, though, it reflects where the episode comes from.
    You may wish to send feedback to Apple about it here:
    http://www.apple.com/support/itunes/musicstore/podcast/

  • Creating a title for RSS feeds

    Hello-
    I have a podcast and have made a website for it using iWeb. I went to iTunes to submit my podcast, but later found out that my RSS feed for my podcast has no title in the blue section at the top of the screen.
    How do I create a title for an RSS feed (it should be the same whether or not it's a blog or a podcast) using iWeb '08? By title, I mean the words in the blue bar at the top of any RSS feed. My website is http://web.mac.com/rafaelsands/GreatCommercials_Podcast/Great_Commercials_Podcast/Great_CommercialsPodcast.html and the RSS feed is feed://web.mac.com/rafaelsands/GreatCommercials_Podcast/Great_CommercialsPodcast/rss.xml
    Besides no title in the blue bar, I also noticed there is no source link on the right hand side.
    All help is appreciated. Thank you,
    Rafael Sands

    I am having the exact same problems, any help or ideas would be very much appreciated.

  • KM Repository Listener Service for RSS Feed Generator

    Hi,
    I would like to generate the RSS Feed for the KM respository to get the latest modified and created documents.
    Do we have any service listener to generate the .xml file (RSS Feed )?
    I would like to read the data from above .xml file through XML iView.
    Please let me know the solution.
    Thanks

    hello, if you have solution can you send it to me , [[email protected]]
    thanks
    Edited by: Nikita Kravtsov on Aug 1, 2008 3:59 PM

  • Address Book Photo for RSS Feeds, in Mail?

    Hi,
    Does anybody know how to get an image to show up for an RSS feed instead of the square box with a silhouette of a person?
    I really the new Apple Mail feature that places a photo of the sender in the mail message pane list. It works great for email. Can I get this to work for my RSS feeds, too? Ideally, Apple Mail would just use the logo, if one is designated, in the RSS feed itself, which many feeds have.
    Thanks,
    ohioguy1978

    I'm getting the same behavior in 10.5.1 with Mail 3.1.

  • Safari mangles url for rss feed

    I have a local test 'domain' on my 10.4.11 system. That domain name is cvwa without any dots. This has the ip address of localhost and/or the ip address of the internal network (like 10.0.0.8). Urls like http://cvwa/default.shtml work perfectly on both Safari and on Firefox. However, if I use http://cvwa/tryrss.xml, Safari first, briefly shows feed://cvwa/tryrss.xml (as it should) but then immediately changes to http://tryrss.xml/ which, of course does not exist. Firefox has no trouble with it and correctly handles the feed. Further, if I put the same xml file on the outside with a complete domain name like www.cvwa.org, then both Safari and Firefox correctly deal with the feed. Is Safari broken or am I doing something bad? The test feed is http://www.cvwa.org/tryrss.xml if you think the xml is at fault.
    I have turned proxies off completely for this test but it is the same on or off.
    10.4.11, Safari 3.1 (but behaved the same just before the recent update to Safari)

    Go to your blog and click on the RSS button in the URL window of Safari to view the rss feed.  Then copy the RSS feed page's URL from the URL field at the top.
    OT

  • Computer storage for rss feed / podcast?

    Can you use your computer storage say a external hard drive as your podcast storage? Instead of using a website?
    If so, how do you get a RSS feed to make it all come together?
    Basically you use your computer as the storage & host.

    It is technically posssible to do this by setting your computer up as a web server. However I don't recommend this. Firstly, it's quite a technical process on which I can't advise (and as you have Windows you won't get advice on it in these forums).
    Secondly your computer has to be running all the time. Thirdly you must have a permanent IP number - many ISPs change it from time to time precisely to prevent you from doing this because of bandwidth considerations, or charge extra for it.
    Thirdly most ISPs provide a much lower upload speed than download speed, which could make your episodes very slow to load.
    Fourthly this could consume considerable bandwidth and if you have any sort of cap on it you could hit it quite quicky.
    And finally your ISP may very well not allow this, so you need to check with them as if they don't you are likely to be disconnected in short order.

  • URL for RSS feed

    Hi,
    I'm linking my blog to another site. How do I find the URL for the RSS feed?
    thanks,
    g

    Go to your blog and click on the RSS button in the URL window of Safari to view the rss feed.  Then copy the RSS feed page's URL from the URL field at the top.
    OT

  • Mail 5.2 keeps asking for RSS Feed

    For the past couple of days, Mail has been asking me on a regular basis to "Specify the URL for a feed". When this happens, mail steals focus and presents me with this dialog box:
    I've no idea why this is happening as I've never used Mail as an RSS reader. I checked the sidebar and found 3 feeds (the Apple Hot News plus two others including the one listed in the dialog box) which I must somehow have added accidentally in the past. I've deleted all the RSS feeds so there's no longer an RSS category in the sidebar, but every so often, up pops mail with this same request.
    I've gone into Mail Preferences, set Default RSS Reader to "Safari" and Check for Updates to "Manually" but I'm still getting the request.
    I can't work out what has changed to trigger this behaviour.
    How do I stop it?

    Safari 6.0 no longer supports RSS.  Mail is trying to take over RSS duties.  Mountain Lion drops RSS feeds entirely, including Mail.
    RM

  • Safari keeps asking for Name and Password for RSS feed

    Safari version 4.0 (4530.17) keeps popping up a window asking me to "Enter you Name and Password to update the RSS feed". the message continues - " To update the RSS feed "http://mail.google.com/mail/feed/atom", you need to log in to the area "New mail feed" on mail.google.com. Your password will be sent in clear text".
    This only started after the last Safari software upgrade a few weeks ago.
    What is this? I did not sign up for any RSS feed. I keep selecting Cancel but it pops up every few minutes when Safari is open.

    Try removing all the preference files for Acrobat, see my list in Re: Acrobat 9 Pro requires admin password every time it opens?.

Maybe you are looking for