Sorting DD-MON-YY in BI template

Helo,
I have to sort the looping data with the trx_date format in DD-MON-YY, I am using the below option
<?sort:TRX_DATE;'descending';data-type='Date'?> but it is not working properly as the date is not in canonical format.....is there a way in BI template or I will do it .rdf report itself..
Thanks,
Sridhar

Hi USer
Try this link
How to change date format in OBIEE
Re: repository variable at date prompt
Thanks
Diney

Similar Messages

  • Bonjour, j'ai un problème ou pas ? des que je sort de mon TC je doit me connecter a nouveau et ca sans arrêt. Merci pour vous réponses.

    Bonjour, j'ai un problème ou pas ? des que je sort de mon TC je doit me connecter a nouveau et ca sans arrêt. Merci pour vous réponses.

    alfkai
    Can you get support from the Apple store, since you bought it three days ago?
    https://getsupport.apple.com/Issues.action
    AirPort Time Capsule: Time Machine backups may not mount; "Backup volume cannot be found" may appear - Apple Support

  • Not able to use @section and Sort within a group in RTF Template

    When i try to use sort with for-each-group@section in my template, the Output Post processor is throwing the following exception
    Caused by: oracle.xdo.parser.v2.XSLException: <Line 31, Column 84>: XML-22047: (Error) Invalid instantiation of 'xsl:sort' in 'fo:flow' context.
    My tags in the RTF template are as below:
    <?for-each-group@section:G_PERSON_ID;./DEPT?><?sort:DEPT;'ascending';data-type='text'?>
    -- there are 2 more groups within this.
    <?end for-each-group?>
    I don't get the error if i remove @section from the above tag in my RTF template.
    OR
    IF i remove the sort tag and keep the @section , it still works.
    I need the "sort" so that i can sort the output by department number and I need the "section" so that i can acheieve context based header title for the page using the tag given below in the header area of the word RTF doc. The DEPT number should change as per the data shown in the report.
    DEPT <?DEPT?> CLASSIFICATION SENIORITY LISTING BY CLASS CODE & DATE
    I am stuck with either being able to use the Sort or the Header feature but not both.
    I guess that section is needed for the context based header title to work, because all the data shown in the current page should correspond to only one single DEPT value (to make the Header title consistent with the data). But i dont get why i am not able to sort. The exception from OPP simply beats me. Please help!!
    I am using the XML Pub Desktop 5.6.2 to develop my templates.
    Is there any way to acheive this? Can someone throw some light on this.
    Thanks in advance.

    Help About says I'm on 20.0.1
    Up until last week, I was able to use the tab key when typing emails and other multi-line text boxes.
    Suddenly the behavior of the tab key changed. This isn't the first time. It's been quite a while ago that the function of the tab key changed from indenting to moving around the page, then after some time it changed back to indenting.
    Can we get this fixed and leave it alone, please?
    I may give one of those add-ins a try, but my problem with add-ins is that they break when FF is patched or upgraded, then I'm left with out the solution they provide.
    Can we just fix Firefox, please?
    Thanks,
    Frank
    P.S. Another potential fix I came across suggested starting FF in safe mode to see if the problem goes away. It does not. It seems to be a change to FF that appeared after an update last week. On or just befor 24 Apr.

  • Custom Sort via the XSL and custom template?

    I am trying to add a sort order to a CQWP. I would like a template style that does the sorting? I have to sort by a field called SortOrder, then I want it to be by file name - here is the code:
    I am thinking to do a foreach but not able to get it working? Is there another easier way?
    <!--Start Custom Policy Sort-->
        <xsl:template name="PolicySortedBullets" match="Row[@Style='PolicySortedBullets']" mode="itemstyle">
            <xsl:variable name="SafeLinkUrl">
                <xsl:call-template name="OuterTemplate.GetSafeLink">
                    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
                </xsl:call-template>
            </xsl:variable>
            <xsl:variable name="DisplayTitle">
                <xsl:call-template name="OuterTemplate.GetTitle">
                    <xsl:with-param name="Title" select="@Title"/>
                    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
                </xsl:call-template>
            </xsl:variable>
            <div class="item link-item bullet">
                <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
       <a href="{$SafeLinkUrl}" title="{@LinkToolTip}" target="_blank">
                  <xsl:if test="$ItemsHaveStreams = 'True'">
                    <xsl:attribute name="onclick">
                      <xsl:value-of select="@OnClickForWebRendering"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
                    <xsl:attribute name="onclick">
                      <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
                    </xsl:attribute>
                  </xsl:if>
                  <xsl:value-of select="$DisplayTitle"/>
                </a>
            </div>
        </xsl:template>
    <!--End Custom Policy Sort-->

    http://stackoverflow.com/questions/5415383/xslt-sortingboth-ascending-and-descending
    http://sharepoint.stackexchange.com/questions/81167/content-query-web-part-group-by-sort
    You can use the XSLT <xsl:sort> element to customize your sort order.
    https://sites.google.com/site/icsharepoint2010/xslt/sorting-in-xslt
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="text"/>
    <xsl:template match="employees">
    <xsl:apply-templates>
    <xsl:sort select="salary"/>
    </xsl:apply-templates>
    </xsl:template>
    <xsl:template match="employee">
    Last: <xsl:apply-templates select="last"/>
    First: <xsl:apply-templates select="first"/>
    Salary: <xsl:apply-templates select="salary"/>
    Hire Date: <xsl:apply-templates select="@hireDate"/>
    <xsl:text>
    </xsl:text>
    </xsl:template>
    </xsl:stylesheet>

  • Sorting unstructured resume info into a template form

    Hi
    I need to write a java program that can read the various info in a resume e.g. "degree from XX university" which are apparently unstructured and place it into a structured template form.
    This is supposed to work for all kinds of resumes.
    Searched the web but they are mainly about XML.
    I am thinking of writing program that speed up the process instead of going through the database first, although that may slow down the process.
    What is the best way to use Java to do this? Any idea?
    If it has to involve a database, any idea on the most efficient method to achieve my objective?
    Thanks!
    Path-Finder

    Hi Voodi,
    I have the same problem too. Worked  fine in SP 9 . Now we are in SP11 with FEP also in SP11 revision 277.Did you resolve the issue if so how?
    Thanks,
    Karthik

  • Sorting with nulls last on the fact column

    anybody tell me how to do the sorting with nulls last in the template? i can't change anything in data model or anywhere other than template.
    i did try to put the descending order,but null values are coming in between positive and negative values.
    <?sort:FACT_Column_Name;'decending';data-type='number'?>
    could anyone please tell me how can i do that in template?
    Thanks in advance.
    Edited by: user12255470 on Apr 12, 2012 5:29 PM

    Hi to all,
    i've solved, is very simple using decode inside the select:
    SELECT
    ID,
    FK_HTMLDB_ITEM, DECODE(FK_HTMLDB_ITEM,1,HTMLDB_ITEM.DATE_POPUP(3,rownum,VAL,'dd-mon-yyyy'),2,HTMLDB_ITEM.TEXT(3,VAL)) VALORE
    FROM TESTID
    my table is:
    CREATE TABLE "DEV"."TESTID"
    (     "ID" NUMBER NOT NULL ENABLE,
         "FK_HTMLDB_ITEM" NUMBER,
         "VAL" VARCHAR2(4000 BYTE))
    Bye Bye

  • Issue With Page Break When Sorting is also applied on group

    Hi
    I am facing an issue with Page break only when I have sorting applied on the grouping that I have in the template.
    The following is the sample XML
    <ROWSET>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Accounts</ORGANIZATION>
    <FULL_NAME>test1,</FULL_NAME>
    <ELEMENT_NAME>TEST BONUS</ELEMENT_NAME>
    <CLASSIFICATION>Supplemental Earnings</CLASSIFICATION>
    <RUN_VALUE>250</RUN_VALUE>
    <MONTH_VALUE>500</MONTH_VALUE>
    <QUARTER_VALUE>500</QUARTER_VALUE>
    <YEAR_VALUE>500</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test2</FULL_NAME>
    <ELEMENT_NAME>VOLUNTARY AD AND D</ELEMENT_NAME>
    <CLASSIFICATION>Voluntary Deductions</CLASSIFICATION>
    <RUN_VALUE>5.19</RUN_VALUE>
    <MONTH_VALUE>10.38</MONTH_VALUE>
    <QUARTER_VALUE>10.38</QUARTER_VALUE>
    <YEAR_VALUE>10.38</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test3</FULL_NAME>
    <ELEMENT_NAME>HMO MEDICAL</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>19.67</RUN_VALUE>
    <MONTH_VALUE>39.34</MONTH_VALUE>
    <QUARTER_VALUE>39.34</QUARTER_VALUE>
    <YEAR_VALUE>39.34</YEAR_VALUE>
    </ROW>
    <ROW>
    <GRE>org1</GRE>
    <ORGANIZATION>Finance</ORGANIZATION>
    <FULL_NAME>test4</FULL_NAME>
    <ELEMENT_NAME>PENSION NR DC</ELEMENT_NAME>
    <CLASSIFICATION>Pre-Tax Deductions</CLASSIFICATION>
    <RUN_VALUE>0</RUN_VALUE>
    <MONTH_VALUE>360</MONTH_VALUE>
    <QUARTER_VALUE>360</QUARTER_VALUE>
    <YEAR_VALUE>360</YEAR_VALUE>
    </ROW>
    </ROWSET>
    In the template I group the data based on CLASSIFICATION and then sort on the same column CLASSIFICATION. I have a page-break applied for every group.
    When I generate the PDF, I am not getting the page-breaks for every group. Instead some of them are displayed in the same page.
    But when I remove the sorting that I had in the template on the column CLASSIFICATION, I am getting the output in the desired way but not in a sorted order.
    kumar

    Hi All,
    I am using MS-WORD 2007 and BI Publisher desktop 10.1.3.3.3.
    When I use split-by-page-break, splitting is performed for every line .. but not for group of lines.
    Can anybody throw some light on this?
    FYI...
    I am using this code:
    ?if: position() mod 6= 0?
    ?split-by-page-break:?
    ?end if?
    (Of course with in tags)
    in G_LINES loop.
    Can anybody help me out :-(
    --Saritha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Office 2013 simply refuses to update templates

    Hi All,
    Was wondering if you could help as i'm really getting thin on ideas now.
    I've been working with Azure RMS for a couple of weeks with no problem but all of a sudden I can't get Office 2013 to update the custom templates I've been creating on multiple devices.
    I've created custom templates before that have refreshed in Office perfectly but new ones simply will not download. As far as I'm aware everything is set as it should be  in terms of the template is published and my user account is within the scope
    of users who can use the template.
    I have installed the RMS sharing app on my Win 8.1 machine and when right clicking a file to complete an in place protect the most up to date templates are present but whilst working directly within Word or Excel etc the templates are out of date.
    I've tried all sorts of combinations of deleting the templates folder in: %AppData%\Local\Microsoft\MSIPC\Templates and deleting the LastUpdateTime dword, signing out of office and signing in again but nothing I try seems to help.
    Does anyone have any ideas of what I could try?
    Thanks in advance!

    While this feature (departmental templates) is in Preview, Office applications don't recognize these templates, by default.  From
    https://technet.microsoft.com/en-us/library/dn642472.aspx#BKMK_HowToConfigureCustomTemplates, see step 8 and the behavior you're seeing:
    Not all applications can support departmental templates. To do so, the application must first authenticate with the RMS service before downloading the templates. If the authentication process does not occur, by default, none of the departmental templates
    are downloaded. 
    There is a script that you can run (see the Note) for this to work with Office applications during the Preview period. We were hoping to get the script on the Download Center, but it's currently on the Connect site.  If you have problems accessing it,
    email [email protected] 

  • Grouping and Sub total Problem in Template Builder

    Hi,
    Please help me out to sort the problem am getting in template builder.
    am here by attaching the xml and RTF which i have done. please go through the files and help me sort the problem.
    <LIST_G_REQ>
    <G_REQ>
    <BUYER_ID>DENIECE</BUYER_ID>
    <BUYER_GROUP>1</BUYER_GROUP>
    <BUYER_SUBGROUP>ADMIN</BUYER_SUBGROUP>
    <REQ_TOT>1</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>THUGHES1</BUYER_ID>
    <BUYER_GROUP>1</BUYER_GROUP>
    <BUYER_SUBGROUP>ADMIN</BUYER_SUBGROUP>
    <REQ_TOT>12</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>VACHAVEZ</BUYER_ID>
    <BUYER_GROUP>1</BUYER_GROUP>
    <BUYER_SUBGROUP>ADMIN</BUYER_SUBGROUP>
    <REQ_TOT>19</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>KAJIKAWA</BUYER_ID>
    <BUYER_GROUP>2</BUYER_GROUP>
    <BUYER_SUBGROUP>AP</BUYER_SUBGROUP>
    <REQ_TOT>25</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>MSVIC</BUYER_ID>
    <BUYER_GROUP>2</BUYER_GROUP>
    <BUYER_SUBGROUP>AP</BUYER_SUBGROUP>
    <REQ_TOT>171</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>FESPINOZ</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>C&amp;R</BUYER_SUBGROUP>
    <REQ_TOT>19</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>ASEJH</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>COMPUTER</BUYER_SUBGROUP>
    <REQ_TOT>16</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>BFINLEY</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>COMPUTER</BUYER_SUBGROUP>
    <REQ_TOT>23</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>JSMETANA</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>COMPUTER</BUYER_SUBGROUP>
    <REQ_TOT>21</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>SAVANCIL</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>COMPUTER</BUYER_SUBGROUP>
    <REQ_TOT>84</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>CALANE</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>CWA</BUYER_SUBGROUP>
    <REQ_TOT>28</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>KATHYR</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>CWA</BUYER_SUBGROUP>
    <REQ_TOT>13</REQ_TOT>
    </G_REQ>
    <G_REQ>
    <BUYER_ID>STEFANIF</BUYER_ID>
    <BUYER_GROUP>3</BUYER_GROUP>
    <BUYER_SUBGROUP>CWA</BUYER_SUBGROUP>
    <REQ_TOT>1</REQ_TOT>
    </G_REQ>
    </LIST_G_REQ>
    This is my xml file please let me know how to do the groupingbased on "BUYER_SUBGROUP" and also "BUYER_GROUP_TOTAL" and "BUYER_SUBGROUP_TOTAL" in RTF.
    Thanks in advance

    Hi,
    I see that your data is having this format
    <LIST_G_REQ>
    <G_REQ>
    <BUYER_ID>DENIECE</BUYER_ID>
    <BUYER_GROUP>1</BUYER_GROUP>
    <BUYER_SUBGROUP>ADMIN</BUYER_SUBGROUP>
    <REQ_TOT>1</REQ_TOT>
    </G_REQ>
    </LIST_G_REQ>
    So to group by BUYER_SUBGROUP, your code will be
    <?for-each-group:G_REC;BUYER_SUBGROUP?>
    <?end for-each?>
    I dont know what you mean by BUYER_GROUP_TOTAL and BUYER_SUBGROUP_TOTAL here.

  • Disabling auto sort of rows for Pivot Tables in BI Publisher

    is there a way to avoid the Pivot table in BI Publisher from sorting your data and just display the rows in the order retured from the data model ? By default it is sorting the data in asc order. Thanks !

    hi jim
    if you carefully look inside the form field's you will find the logic of sort . if you remove that you will get the data without any sorting order.
    else send me your template and xml to my email id i can look into that .
    email : [email protected]

  • XSLT Sort Issues

    I have an XML document that give me a list of PO lines and orders. When I get the PIX message I want to sort it by PO number and then PO Line. For some reason my syntax below isn't working. I need to sort by Reference2 then Reference4. I tried to just get 4 to work but that wasn't working either.
    <xsl:template match="/">
    <xsl:for-each select="tXML/Message/PIX">
    <xsl:sort select="PIXFields/Reference4"/>
         <xsl:apply-templates select="."/>     
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    <tXML>
         <Message>
              <PIX>
                   <TransactionType>603</TransactionType>
                   <TransactionCode>02</TransactionCode>
                   <TransactionNumber>10731</TransactionNumber>
                   <SequenceNumber>1</SequenceNumber>
                   <PIXFields>
                        <DateCreated>11/29/12 13:25 EST</DateCreated>
                        <ReferenceCode1>104</ReferenceCode1>
                        <Reference1>ASN1769527</Reference1>
                        <ReferenceCode2>108</ReferenceCode2>
                        <Reference2>1769527</Reference2>
                        <ReferenceCode3>107</ReferenceCode3>
                        <ReferenceCode4>43</ReferenceCode4>
                        <Reference4>7.000</Reference4>
                   </PIXFields>
              </PIX>
              <PIX>
                   <TransactionType>603</TransactionType>
                   <TransactionCode>02</TransactionCode>
                   <TransactionNumber>10731</TransactionNumber>
                   <SequenceNumber>2</SequenceNumber>
                   <PIXFields>
                        <DateCreated>11/29/12 13:25 EST</DateCreated>
                        <ReferenceCode1>104</ReferenceCode1>
                        <Reference1>ASN1769527</Reference1>
                        <ReferenceCode2>108</ReferenceCode2>
                        <Reference2>1769527</Reference2>
                        <ReferenceCode3>107</ReferenceCode3>
                        <ReferenceCode4>43</ReferenceCode4>
                        <Reference4>7.000</Reference4>
                   </PIXFields>
              </PIX>
              <PIX>
                   <TransactionType>603</TransactionType>
                   <TransactionCode>02</TransactionCode>
                   <TransactionNumber>10731</TransactionNumber>
                   <SequenceNumber>3</SequenceNumber>
                   <PIXFields>
                        <DateCreated>11/29/12 13:25 EST</DateCreated>
                        <ReferenceCode1>104</ReferenceCode1>
                        <Reference1>ASN1769527</Reference1>
                        <ReferenceCode2>108</ReferenceCode2>
                        <Reference2>1769527</Reference2>
                        <ReferenceCode3>107</ReferenceCode3>
                        <ReferenceCode4>43</ReferenceCode4>
                        <Reference4>3.000</Reference4>
                   </PIXFields>
              </PIX>
              <PIX>
                   <TransactionType>603</TransactionType>
                   <TransactionCode>02</TransactionCode>
                   <TransactionNumber>10731</TransactionNumber>
                   <SequenceNumber>4</SequenceNumber>
                   <PIXFields>
                        <DateCreated>11/29/12 13:25 EST</DateCreated>
                        <ReferenceCode1>104</ReferenceCode1>
                        <Reference1>ASN1769527</Reference1>
                        <ReferenceCode2>108</ReferenceCode2>
                        <Reference2>1769527</Reference2>
                        <ReferenceCode3>107</ReferenceCode3>
                        <ReferenceCode4>43</ReferenceCode4>
                        <Reference4>6.000</Reference4>
                   </PIXFields>
              </PIX>
              <PIX>
                   <TransactionType>603</TransactionType>
                   <TransactionCode>02</TransactionCode>
                   <TransactionNumber>10731</TransactionNumber>
                   <SequenceNumber>5</SequenceNumber>
                   <PIXFields>
                        <DateCreated>11/29/12 13:25 EST</DateCreated>
                        <ReferenceCode1>104</ReferenceCode1>
                        <Reference1>ASN1769527</Reference1>
                        <ReferenceCode2>108</ReferenceCode2>
                        <Reference2>1769527</Reference2>
                        <ReferenceCode3>107</ReferenceCode3>
                        <ReferenceCode4>43</ReferenceCode4>
                        <Reference4>10.000</Reference4>
                   </PIXFields>
              </PIX>
              <PIX>
                   <TransactionType>603</TransactionType>
                   <TransactionCode>02</TransactionCode>
                   <TransactionNumber>10731</TransactionNumber>
                   <SequenceNumber>6</SequenceNumber>
                   <PIXFields>
                        <DateCreated>11/29/12 13:25 EST</DateCreated>
                        <ReferenceCode1>104</ReferenceCode1>
                        <Reference1>ASN1769527</Reference1>
                        <ReferenceCode2>108</ReferenceCode2>
                        <Reference2>1769527</Reference2>
                        <ReferenceCode3>107</ReferenceCode3>
                        <ReferenceCode4>43</ReferenceCode4>
                        <Reference4>2.000</Reference4>
                   </PIXFields>
              </PIX>
         </Message>
    </tXML>

    This is usually achieved with a classic identity transformation, amended with a special template to process element(s) of interest :
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template match="node()">
        <xsl:copy>
          <xsl:apply-templates select="node()"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="Message">
        <xsl:copy>
          <xsl:apply-templates select="PIX">
            <xsl:sort select="PIXFields/Reference2" data-type="number"/>
            <xsl:sort select="PIXFields/Reference4" data-type="number"/>
          </xsl:apply-templates>
        </xsl:copy>
      </xsl:template>
    </xsl:stylesheet>

  • Any one found any good templates to use with BC?

    Hey all,
    just wondering if anyone has found some good templates I can use for ecommerce sites
    Thanks,
    Dan

    BC is a relativly unique CMS and the type of template depends on your skil levels with the system and HTML, CSS, Javascript etc.
    http://www.tribevita.com/ is a great source for ready to go made BC templates.
    BC itself has some pre-made templates when you make an account you can choose from. The latest ones offfer more features but are a little more complex compared to the older ones using things like jQuery for fading banners etc.
    You can obtain any sort of stand alone HTML only template from a number of sites such as Template Monster which you can then work to transition into BC converting them into templates, replacing elements with web apps, modules and content holders etc. This of course requires people to have  good to high knowledge of BC and HTML, CSS.... etc.

  • Sort a 'std::list' containing classes/structures

    Hi all,
    I find that std::sort' cannot be used to sort 'std::list' because it requires a random access iterator which is not available for a list. Although that works for dqueue without any problem. Is any body know about any workaround for std::list sorting. I have one using template but i required without using template. ??
    Using template
    #include <iostream>
    #include <algorithm>
    #include <list>
    using namespace std;
    typedef struct xx {
    int a;
    int b;
    bool operator<(const xx& src) const;
    bool operator>(const xx& src) const;
    } X;
    bool xx::operator<(const xx& src) const
    if (b <= src.b) return true;
    return false;
    bool xx::operator>(const xx& src) const
    if (b > src.b) return true;
    return false;
    template<typename T>
    class PtrClass
    public:
    T *m_src;
    PtrClass(T &src):m_src(&src)
    bool operator<(const PtrClass& src) const
    return m_src->operator<(*src.m_src);
    bool operator>(const PtrClass& src) const
    return m_src->operator>(*src.m_src);
    int main()
    X o1 = {1, 9};
    X o2 = {2, 8};
    X o3 = {3, 7};
    list<PtrClass<X> > l;
    list<PtrClass<X> >::iterator it;
    l.push_back(o1);
    l.push_back(o2);
    l.push_back(o3);
    cout << " BEFORE ______"<<endl;
    for(it = l.begin(); it != l.end(); it++)
         cout << "Inside"<<endl;
    l.sort();
    cout << " AFTER ______"<<endl;
    for(it = l.begin(); it != l.end(); it++)
         cout << "Inside"<<endl;
    return 0;
    }

    1. You can use std::list::sort method.
    2. You can use std::set instead of std::list.

  • Motion Drop Zone template question

    I am using a drop zone template to make a short promo video. I am trying to figure out how to transition from the drop zones flying in to open the video full screen to play. So the effect I want is a bed of music and the motion template flying in 6 drop zones. I want to see a drop zone expand into like a 20 second spot and then fly the drop zones again, pick a different one to expand into the full movie and so on. I have about 3 minutes to make this promo. I am using Final Cut Studio 3 and Motion 4.
    What behaviors is there in Motion to do this or do I need to just bring in the motion file into FCP and use some sort of transition there?
    Jeff

    Which template are you trying to use?
    I'd maybe do it this way...
    1. Create the project in Motion using a frame that is twice the size of your editing format in FCP. If you're editing DV in FCP, use one of the HD templates. If you're using HD in FCP, you'll need to change the properties of the project to about 2160 pixels high. but the dropzones should be able to hold a full size clip.
    2. Render it all out full size.
    3. Import it into FCP and drop it into your timeline, set it to 25% or 50% scale, don't let FCP scale it to fit the sequence.
    4. You will be able to use the scale and position (center) keyframes to zoom in on any single dropzone to fill the frame at 100%.
    That's just one of many simple ways to do this without using a camera in the template. If you're new to Motion, save that for a later project.
    Mark or others will have more interesting suggestions later.
    bogiesan

  • Sorting xml

    hi,
    How can I sorting xml file before parsing it.
    for example:
    parser.parse("test.xml");
    Document doc = parser.getDocument();
    Thanks.

    you can sort the data using xsl. Here's what i'm doing
    empdata.xml file
    ========
    <?xml version="1.0"?>
    <?xml-stylesheet href="empdata.xsl" type="text/xsl"?>
    <employees>
    <employee>
    <name>
         <got>4</got>
    <given>James</given>
    <family>Cook</family>
    </name>
    </employee>
    <employee>
         <name>
         <got>5</got>
    <given>Aames</given>
    <family>Dlark</family>
    </name>
    </employee>
    <employee>
         <name>
         <got>1</got>
         <given>Bames</given>
    <family>Dlark</family>
    </name>
    </employee>
    <employee>
    <name>
         <got>3</got>
         <given>marshesi</given>
    <family>park</family>
    </name>
    </employee>
    <employee>
    <name>
         <got>7</got>
    <given>Lames</given>
    <family>lamb</family>
    </name>
    </employee>
    </employees>
    empdata.xsl
    ===========
    <?xml version="1.0"?>
    <xsl:stylesheet version='1.0'     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
    <xsl:output method="xml" indent='yes'/>
    <xsl:template match="employees">
    <ul>
    <xsl:apply-templates select="employee">
    <xsl:sort select="name/got"/>
    <xsl:sort select="name/family"/>
    <xsl:sort select="name/given"/>
    </xsl:apply-templates>
    </ul>
    </xsl:template>
    <xsl:template match="employee">
    <li>
    <xsl:value-of select="name/got"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="name/given"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="name/family"/>
    </li>
    </xsl:template>
    </xsl:stylesheet>
    I hope this will help you.
    sachin

Maybe you are looking for

  • How to config CRM Free Goods with R/3 as backend

    Hi, We using CRM 4.0 SP 10. We are having problem displaying the free goods quantity in CRMD_ORDER. I already done customizing "set up free goods" in CRM and downloaded R/3 customizing and master data but yet when i do the transaction CRMD_ORDER stil

  • Data transformation tool in wli8.1

    hi, We are trying to explore the data transformation tool of the wil8.1. We have cobol copy books as input and we need to end up populating oracle tables. These are the steps we are following: 1. Use format builder to change cobol copy books into .mf

  • [SOLVED] chicken-locale environment issues

    So I've recently decided that I want to give Lisp or Scheme a try. I eventually settled on Chicken Scheme because it seemed to fit better into the Linux ecosystem than Common Lisp or something like that. AFAICT, and I'm obviously not an expert, it se

  • Procurve - Default Gateway Issue

    Help Help Help 2 Weeks on this is still doing my head in, i have a procurve 3800 with multiple vlans and we are looking at testing some new internet filtering that sits inline, so i have created a new interface on my firewall and put the new filter i

  • Help to get back Apple ID

    My gf icloud was hacked. The hacker changed the password and my information of my iCloud but i still have the email address which is the iCloud username. is there anything i can do. please help. My gf is using an Iphone 5. She was charging her phone