Rearrange rectangular cards based on some logic

Hi,
I am looking to implementing the following.
I have a page which has a scroll viewer and this scroll viewer holds a list of cards [ Rectangular grids of some height].
It is very obvious that these cards appear in the scroll viewer based on the order they are in XAML.
But in the on navigated to event, I want to change the order of these cards based on some logic and then shown the cards accordingly during run time.
Could you please help me on how this can be achieved.

Hi Naveen,
>>I have a page which has a scroll viewer and this scroll viewer holds a list of cards [ Rectangular grids of some height].
Could you please tell us how did you show the card list? Any code snippets will be helpful to understand your implementation.
If the data was loading from a collection, you can consider using
LINQ OrderBy to reorder it.
For example, to get a random collection, we can do like this:
var result = collection1.OrderBy(elem => Guid.NewGuid());
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Need to populate Y or N based on some logic in Bex Report

    Hi Experts,
    I have a report requirement following are the details:
    1. ENDDA is a characteristics DATE field coming from Info Provider.
    2. Now if ENDDA < Report Run Date we need to populate N in report field
    3. If ENDDA > Report Run Date we need to populate Y in report field.
    would be great if some body can give some insight into the approach to follow and achieve this requirement.
    Regards
    Raj Rai

    Hi
    Now i have created a CKF with two formula variables:
    Var 1 is replacement path variable which is taking ENDDA time characteristics as its reference value.
    Var 2 is SAP Exit formula var bringing in the report run date.
    Issue:
    Var1 date format is MM/DD/YYYY
    Var2 date fromat is MMDDYYYY
    we need to substract these two in order to get the difference in days but for that the date format have to be uniform for both variables. In SAP Exit i tried appending the '/'value b/w MM, DD & YYYY but its showing x when i look at query o/p.
    I checked the code by executing the query in RSRT in debug mode and checked the value of L_S_RANGE which is perfect in 05/24/2011 but the same value in var o/p in showing X at query side.
    Any pointers would be help ful
    Regards
    Raj Rai
    Edited by: Raj Rai on May 24, 2011 10:01 AM

  • I had a USA itunes card in my account and now I have shifted to the UK, I would like to shift my account and change my itunes store to the UK based store but cant do it as itunes card has got some credit left about $1.30. Please help

    I had a USA itunes card in my account and now I have shifted to the UK, I would like to shift my account and change my itunes store to the UK based store but cant do it as itunes card has got some credit left about $1.30. Please help.

    You can try contacting iTunes Support and ask them if they can remove the balance from your account so that you can change countries : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • MDX calculation based on date logic for the Jan 1 of current year through the 15th of the previous month

    Hello, 
    We need some help with an SSAS MDX query based on date logic. One of the problems is that I don't have access to the Cube but have been given a query example with the logic needed for the calculation. Here's the scenario; 
    The ETL process will run on the first Tuesday after the 15<sup>th</sup> of a given month. The Analysis Cube data queried should include the current year up to the end of the previous month. For example, on May 19<sup>th</sup>
    (the first Tuesday on or after the 15th) the query should include data from January 1<sup>st</sup> through April 30<sup>th</sup>.
    The 15<sup>th</sup> of the month is not part of the query, it is a factor in when the query is run. The query will always be in terms of complete months.
    SELECT
                    NON EMPTY { [Measures].[Revenue Amount],
                    [Measures].[Utilization],
                    [Measures].[AVG Revenue Rate],
                    [Measures].[Actual Hours] }
    ON
                    COLUMNS,
                    NON EMPTY { ([dimConsultant].[User Id TT].[User Id TT].ALLMEMBERS * [dimConsultant].[Full Name].[Full Name].ALLMEMBERS * [dimConsultant].[Employee
    Type].[Employee Type].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION,
                    MEMBER_UNIQUE_NAME
    ON
                    ROWS
    FROM
                    ( SELECT
    ( { [dimDate].[Week Date].[1/4/2015], [dimDate].[Week Date].[1/11/2015], [dimDate].[Week Date].[1/18/2015], [dimDate].[Week Date].[1/25/2015], [dimDate].[Week Date].[2/1/2015] } )
                    ON
                                    COLUMNS
                    FROM
                                    ( SELECT
    ( { [dimIsBillable].[Is Billable].&[True] } )
                                    ON
    COLUMNS
                                    FROM
    [SSASRBA]
    WHERE
                    ( [dimIsBillable].[Is Billable].&[True], [dimDate].[Week Date].CurrentMember ) CELL PROPERTIES VALUE,
                    BACK_COLOR,
                    FORE_COLOR,
                    FORMATTED_VALUE,
                    FORMAT_STRING,
                    FONT_NAME,
                    FONT_SIZE,
                    FONT_FLAGS

    Hi Hans,
    Thank you for your question.  
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.  
    Thank you for your understanding and support. 
    Regards,
    Simon Hou
    TechNet Community Support

  • Can we create a hierarchy based on two logical table in 10g RPD

    Hi,
    I have a question, please give me some clarity, about creating hierarchy,
    I know we can create a hierarchy based on one logical table which is form by two physical table...
    Can we create a hierarchy based on two logical table? If yes, and how?
    Thanks in advance!
    anne

    Use preffered drill paths...
    -suman

  • I need help with event structure. I am trying to feed the index of the array, the index can vary from 0 to 7. Based on the logic ouput of a comparison, the index buffer should increment ?

    I need help with event structure.
    I am trying to feed the index of the array, the index number can vary from 0 to 7.
    Based on the logic ouput of a comparison, the index buffer should increment
    or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
    (My event code doesn't execute when there is an  event at its input /comparator changes its boolean state.
    Anyone coded on similar lines? Any ideas appreciated.
    Thanks in advance!

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • Urgent! group by query based on a logical OR (bitwise)

    Let's say I have the following table:
    field: f1 f2 f3 f4 f5
    record 1: a a 1 0 4
    record 2: a b 2 3 7
    record 3: a b 0 8 1
    I want to make a group by on f1 so that I get just one record which is:
    field: f1 f3 f4 f5
    record 1: a 3 11 7
    where the result of each field is actually a group by based on a logical OR (bitwise)
    ie:
    3 = 1 or 2 or 0
    11 = 0 or 3 or 8
    7 = 4 or 7 or 1
    any suggestion ?
    Thank you

    You can try using DECODE
    e.g.
    Select F1,
                Sum( Decode( F3, 1,1,  2,2,  0) ) F3,
                Sum( Decode( F4, 3,3,  8,8,  0) ) F4,
                Sum( Decode( F5, 7,7,   0) ) F5
      from your_table
    group by F1
    I want to make a group by on f1 so that I get just one record which is:
    field: f1 f3 f4 f5
    record 1: a 3 11 7
    where the result of each field is actually a group by based on a logical OR (bitwise)
    ie:
    3 = 1 or 2 or 0
    11 = 0 or 3 or 8
    7 = 4 or 7 or 1
    any suggestion ?
    Thank you

  • How to dynamically add/remove a button from the ribbon based on some condition? (Ribbon XML)

    Hi,
    I have a ribbon (done using ribbon XML) with menu options. I need to remove few buttons from the menu dynamically based on some condition. Also, I want to change the label of another button. How to achieve this programmatically? (C#)
    Thanks in advance.
    Thanks Prasad

    Hello Prasad,
    Use callbacks for populating Ribbon controls such as menu, dropDown, gallery and etc. Then you can use the
    Invalidate or
    InvalidateControl methods of the
    IRibbonUI interface to get your callbacks invoked when required. Thus, you will be able to delete the required item(s).
    You will find the following articles in MSDN helpful:
    Chapter 11: Creating Dynamic Ribbon Customizations (1 of 2)
    Chapter 11: Creating Dynamic Ribbon Customizations (2 of 2)
    To change the label of your controls at runtime you need to use the getLabel callback and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. The following series of articles describe the Fluent UI in depth:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

  • HT5552 i want my credit card off of itunes account. my kids use there itune cards but for some reason this gets charged to my credit card instead

    i want my credit card off of itunes account. my kids use their itune cards but for some reason my credit card keeps getting charged

    On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link.  If you are doing it on an iOS device (iPad, iPhone or iPod Touch) then try tapping on your id in Settings > iTunes & App Store (Settings > Store on iOS 5 and below) and selecting 'View Apple ID' on the popup - that should also give you a payments link on your account's page.
    Changing payment info : http://support.apple.com/kb/HT1918
    If you don't get the 'none' option then do you owe iTunes anything : http://support.apple.com/kb/TS5366 ?

  • No credit card, based uk

    no credit card, based UK, i've followed the usual instructions as posted but the last bit asks me for a usa address/phone no/zip code so I can't complete the create ID bit..what to do..??

    Set your apple pages to UK via the small flag in the bottom left hand corner.
    This is Apple's guidance ... Though you last few words suggest you may already have tried this route.  
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    They probably expect you to enter your UK address and UK Post code (equal to US Zip code)

  • Two Dimension Hierarchys based on one Logical Table

    Is it possible to have two dimesion hierarchys based on one logical table? Suppose we have the following case:
    Accounts Table
    Code
    Name
    Category
    Subcategory
    Level 1
    Level 2
    Level 3
    I would like to have one dimension Total > Category >Subcategory > Code and one Total > Level 1 > Level 2 > Level 3 > Code, so I can drill down on both paths. Is this possible?
    Thanx

    Yes, the trick is to have the same key on the lowest level in your hierarchy.
    regards
    John
    http://obiee101.blogspot.com/

  • [svn:fx-trunk] 11810: Fixing up some logic around pauseWhenHidden ( there were some bugs) and also changing some logic around enabling/ disabling.

    Revision: 11810
    Revision: 11810
    Author:   [email protected]
    Date:     2009-11-13 17:07:56 -0800 (Fri, 13 Nov 2009)
    Log Message:
    Fixing up some logic around pauseWhenHidden (there were some bugs) and also changing some logic around enabling/disabling.  Also fixing a small documentation bug on VideoPlayer2.scaleMode.
    When a video component (or one of its ancestors) becomes disabled, the video pauses.  When it becomes re-enabled, we do not play the video.  This behavior is baked in to VideoDisplay and does not depend on the pauseWhenHidden flag.
    QE notes: -
    Doc notes: -
    Bugs: SDK-24182, SDK-24181, SDK-24193
    Reviewer: Kevin
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24182
        http://bugs.adobe.com/jira/browse/SDK-24181
        http://bugs.adobe.com/jira/browse/SDK-24193
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoDisplay.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer2.as

    Thanks Erik,
    If nothing else, this huge list of updates and fixes, shows clearly that the Logic Dev team is working hard on fixing and improving LPX to a major degree.... and from the list of fixes done.. show they do read the bug reports submitted!
    As an aside....
    I recall how all the 'naysayers' prior to LPX (and in some cases, since...)  were proclaiming how Logic was dead, the team was being disbanded, we won't see any further development, the Dev team doesn't listen or care... and so on....... I wonder where those people are now?

  • Grey out a particular row in ALV based on some condition.

    Hi All,
    How can we grey out the particular row in ALV based on some condition( I am using the function modules and not OOPS).
    Regards
    Ramesh.

    Hello Ramesh
    In this case you need to add a specific field to your structure:
    TYPES: BEGIN OF ty_s_outtab.
    INLCUDE TYPE <my table or structure>.
    TYPES: CELLTAB   TYPE lvc_t_styl.  " name is arbitrary but this one is most frequently used
    TYPES: END OF ty_s_outtab.
    DATA: gt_outtab  TYPE STANDARD TABLE OF ty_s_outtab
                                 WITH DEFAULT KEY.
    You can use the fieldcatalog to make an entire column non-editable (LVC_S_FCAT-EDIT = ' ' ).
    However, in case of rows you need to inactivate all cells of this row. For sample coding please refer to thread:
    How to conditionally set ALV field as hotspot
    Regards
      Uwe

  • Display Image(which set as behind text)   based on some condition.

    hi all
    I have developed a xml report and in that rtf am displaying a static image (which is set as behin text).
    But i need to display the image based on some condition
    for example i have a field as ORG_ID
    if org_id=87 then image should display for that purpose am planning to use <?if:ORG_ID=87?> condition but where to place this condition for the image.
    kindly help me
    thanks for all in advance.

    that too not working because
    on image am displaying some other fields.
    see i think you didn't get my point.
    in my out put page am displaying item details ,quantity,and cost and customer details just like invoice copy .
    behind this data am displaying my company logo which will capture whole page size..
    if i place the image in table then fields will be automatically in table so i cant restrict image in this way.
    Kindly suggest any other way that works only for image which is behind text. i mean condition should be applicable only for image and leaving all other fileds in rtf.
    or
    help on this how to set a dynamic image as behind the text.
    Edited by: maddy on Nov 28, 2012 7:32 AM
    Edited by: maddy on Nov 28, 2012 7:35 AM

  • Display an exception based on some condition

    HI..
    how to run a exception based on some condition i.e
    i want to highlight the sales(key figure) which r less than the  average sales..
    where sales and average sales r keyfigures...

    Hi!
    welcome to SDN.
    create a calculated key figure which will be 1 if the sales is less then the average sales.
    create exception based on this calculated key figure.
    with regard
    ashwin
    <i>PS n: Assigning point to the helpful answers is the way of saying thanks in SDN.  you can assign points by clicking on the appropriate radio button displayed next to the answers for your question. yellow for 2, green for 6 points(2)and blue for 10 points and to close the question and marked as problem solved. closing the threads which has a solution will help the members to deal with open issues with out wasting time on problems which has a solution and also to the people who encounter the same porblem in future. This is just to give you information as you are a new user.</i>

Maybe you are looking for