Sorting in Template

Hi, I have to sort by a column which is a text column.
for instance, I have column as:
Product Code:
A
2
B
1
3
I need the out put as :
1
2
3
A
B
But, I am getting this as
A
B
1
2
3
I tried sorting in SQL, Excel everywhere, which gives me as 1,2,3,A,B ..in this order. But Template is sorting it as A,B,1,2,3
Any ideas?

Try This:
<?sort:XML_FIELD;lang='no'?>
or
<?sort:string-length(substring-before ('01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
,substring(XMLFIELD,1,1))) ;'ascending';data-type='number'?>
or
<?sort:string-length(substring-before ('01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
,substring(XML_FIELD,1,1))) ;'descending';data-type='number'?>
or
can you send me your template and xml to my email. i can try at my side.
email:[email protected]

Similar Messages

  • Custom sorting of templates to be displayed in the report package?

    Hi,
    Can anyone help me out on how can I sort templates depending on user's input?
    For example:
    Template1 = [2]
    Template2 = [4]
    Template3 = [3]
    Template4 = [1]
    where [1], [2], [3] and [4] is the user's input.
    The result should display
    Template4
    Template1
    Template3
    Template2
    Thanks in advance!!

    Hello Arun,
    Thanks for your reply but do you know which method I should use for this purpose if I use the table interface?
    Thanks,
    Inma

  • Sort in template

    I need to perform a sort in my template. <?sort: ELEMENT_NAME?> works, but what if I want to sort descending instead? I have also tried <xsl: sort order="ascending" select"ELEMENT_NAME"/> but this does not sort at all.
    Any ideas?
    /Björn

    hi,
    i'm using the tag <?sort:ELEMENT;'ascending';data-type='text|number|date'?> but the data being returned is still not yet sorted.
    example:
    <?for-each-group:GROUP;./LASTNAME?><?sort:LASTNAME;'ascending';data-type='text'?><?for-each-group:current-group();./FNAME?><?sort:FNAME;'ascending';data-type='text'?>
    the data being returned is still not sorted by lastname then by firstname.
    any ideas?

  • Project 2013 - How do you sort the list of Enterprise Templates in Project Pro?

    In Project Pro 2013, click File > New > Enterprise I see the list of templates from our project server. We have a global installation with 40-50 templates. These are displayed in a random order and reading through the whole list to find the one I
    want is quite tedious. Is there a way to sort this list alphabetically? Can the list be displayed as a "details" view rather than icons?

    Greg --
    Guillaume is totally correct.  The display order of enterprise templates is by the date they were created.  I have tested this on a Project Server 2013 system that has the latest Cumulative Updates applied.  The problem is that in the
    Microsoft Project 2013 desktop application, Microsoft has ditched the Templates dialog we used to see and replaced it with a page in the Backstage.  I am afraid that in doing so, they have eliminated the sorting capabilities that we found in earlier versions.
    Out of curiosity, I have sent an e-mail to my MPV contacts within the Microsoft Project Server development team at Microsoft, asking if there is any intention of changing this functionality to allow for sorting by template name.  If I get an answer,
    I will post it in this user forum.
    Your question is a good one, and the sorting problem (or lack of sorting) can be a real problem in any organization that has a sizable number of enterprise templates.  Hope this additional bit helps.
    Dale A. Howard [MVP]

  • 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>

  • How do I delete a default text message (template) that I appear to have accidentally created?

    Every time I want to send a text message and I start from scratch or I forward a text from my inbox an old message appears as a sort of template that I have to delete before I type my new message. I don't know how I created this "template" but its very annoying as it is a long message that I need to delete every time.. I would be grateful if anyone can tell me how to clear it..

    Reset the Device using this method:  Hold the home button + the lock button for about 10-12 seconds until the Apple logo appears.  You will not lose any data or current settings.

  • Using a request template in Answers

    I am new to OBIEE, and am just getting into messing with Answers. What I'm looking at trying to do, if it is even possible, is having some sort of template that all of our users can use as a starting point when creating a request. I would like to have a standard header and footer in this template. I would store it in a shared folder, and when a user is going to create a request, they would simply open this template & use it to build their request, and then save it over to their 'My Folder'.
    I guess I'm having a bit of a problem with this because I cannot just create a 'blank' request -- one that doesn't pull back any real data. If I can just create a request that doesn't pull back any real data, and then save it, I think I could pull this off.
    Any ideas?
    Chris

    Chris,
    There's not such functionality yet in Answers. i know, because I've met exactly the same issue. I filed SR with Oracle and received a negative answer. However, there's a workaround that we're using.
    Development team created several reports that serve as templates for various subject areas. They usually have most common time, org, and some common filters pre-applied. This seems to be the easiest thing to do at this point. Just make a clear structure of the folders - reports, put them in the Shared folder. This seems to work fine with us.
    If you find this answer helpful, please mark it so. Thanks

  • EVHOT with links to source template Issue

    Hello Experts,
    I have created 2 input templates.  The first input template has an EVHOT function to the second template.  The EVHOT function is working fine.
    I am having an issue because the second template has links to cells on the first template.  The first template drivest he behavior on the second template.
    When I open the second template(using the EVHOT), it opens up fine for me.  However, when other users open the template, they keep getting the Update Links error and the template does not function properly.  Microsoft keeps putting a path (i.e. C:\...\...\...\filename.ext)  in my formulas that look to the first template for values.  This is causing me big headaches as I cannot figure out how to make this work properly.  It doesn't seem like rocket science,.
    So have any of you successfully attempted this sort of template behavior?  If so, any advice you could provide me would be appreciated.
    Some Other Facts:
    1.  Yes, my EVHOT template is in the Wizard folder and working properly
    2.  I have tried to save the source template on the server and open from there, but the other users still get the update links
    3.  I have increased the template version and synchornized all templates on the other users pc's.
    Thank you for your feedback.
    Mark Glowczewski

    Hi Mark,
    Have you tried using a relative path (../template.xls) in the template instead of an absolute path (C:/...../...../template.xls)?
    Ethan

  • Sort the list of Favorite Servers, in the Connect to Server window?

    Hello...
    In 10.5 and 10.6, can I change the order of the Favorite Servers list in the Connect to Server window?
    I see the data is stored as files in ~/Library/Favorites, but I'm not seeing where the Connect to Server window gets its sort order.
    TIA

    Greg --
    Guillaume is totally correct.  The display order of enterprise templates is by the date they were created.  I have tested this on a Project Server 2013 system that has the latest Cumulative Updates applied.  The problem is that in the
    Microsoft Project 2013 desktop application, Microsoft has ditched the Templates dialog we used to see and replaced it with a page in the Backstage.  I am afraid that in doing so, they have eliminated the sorting capabilities that we found in earlier versions.
    Out of curiosity, I have sent an e-mail to my MPV contacts within the Microsoft Project Server development team at Microsoft, asking if there is any intention of changing this functionality to allow for sorting by template name.  If I get an answer,
    I will post it in this user forum.
    Your question is a good one, and the sorting problem (or lack of sorting) can be a real problem in any organization that has a sizable number of enterprise templates.  Hope this additional bit helps.
    Dale A. Howard [MVP]

  • Templates not applied properly?

    It seems that sometimes templates aren't applied properly.
    Here's a
    link to a dummy
    project that will illustrate my point:
    If you generate WebHelp for this dummy project, you'll see
    two topics. One is called 'Intro', the other 'Liabilities 1'.
    You'll also see that in the 'Intro' topic, there's white
    space between bread crumb and 'Print topic' button at the top-right
    corner.
    In the other topic 'Liabilities 1', there's NO white space
    between bread crumb and button.
    Both files use the SAME template.
    If you re-apply the template to the 'Liabilities 1' topic, It
    will show the same behavior as the other topic and you'll see white
    space.
    Herman

    We discovered the following problem with RoboHelp 7 HTML:
    Sometimes, when we update a template (that is, its header,
    footer, or background properties), this change does not propagate
    to all help topics that are associated with this template.
    We found a workaround: In the Topic List, sort the template
    column. Then, select all topics that are associated with the
    template in question. Right-click, select Properties, and change
    the template to "None". Right-click, select Properties, and change
    the template back to what you want it to be.
    This re-set of the templates updates all of the selected
    topics.
    I hope that this helps you in any way.

  • Where can i find this slideshow template?

    I've seen this slide show interface on a few different sites:
    http://downtownrivals.com/store/DeasVail/Shirts/Girls/299
    When you click on the images it darkens the screen and then
    brings up a flash slide show.
    I'm assuming that this is some sort of template because i've
    seen it on a few different websites.
    Does anyone know where I can download something like
    this?

    Oddly enough under Cards in Choose a Template.
    Peter

  • Spry:sort with thead

    Hi All:
    I have been trying to get spry:sort to work in a complex
    table, but no matter what I try, the columns will not sort. As all
    examples appear to show simple tables, I suspect this is the
    problem. Has anyone got the sort function working on a complex
    table? Sample code below.
    Thanks for your advise.
    Skip Keats
    =================
    Code sample:
    <table cellspacing="1" summary="SDLC alphabetical listing
    for A">
    <caption>Alpha Listing: A</caption>
    <col id="TemplateDocNameA" />
    <col id="TemplateDocOwnerA" class="sdlcDocOwner" />
    <col id="TemplateDocPhaseA" />
    <col id="TemplateDocDescA" />
    <thead>
    <tr>
    <th id="DocNameA"
    spry:sort="SDLC_Template_Document_Name">Template Document
    Name</th>
    <th id="DocOwnerA" class="alignCenter">Document
    Owner</th>
    <th id="DocPhaseA">Phase</th>
    <th id="DocDescA">Description</th>
    <th id="DocLastModA" class="alignCenter"
    spry:sort="SDLC_LastModified">Date Last Modified</th>
    </tr>
    </thead>
    <tfoot>
    <tr>
    <td colspan="5"><!-- #BeginLibraryItem
    "/Library/SDLCTableFooterAlpha.lbi" -->Footer message.<!--
    #EndLibraryItem --></td>
    </tr>
    </tfoot>
    <tbody>
    <tr spry:repeat="dsSDLC"
    spry:test="'{SDLC_Template_Document_Name}'.charAt(0) == 'A'">
    <th id="RA{ds_RowID}" headers="DocNameA"><a
    href="{SDLC_Document_URL}" title="{SDLC_Template_Document_Name}:
    {SDLC_Description}">{SDLC_Template_Document_Name}</a></th>
    <td headers="RA{ds_RowID} DocNameA
    DocOwnerA">{SDLC_Document_Owner}</td>
    <td headers="RA{ds_RowID} DocNameA
    DocPhaseA">{SDLC_Phase}</td>
    <td headers="RA{ds_RowID} DocNameA
    DocDescA">{SDLC_Description}</td>
    <td headers="RA{ds_RowID} DocNameA
    DocLastModA">{SDLC_LastModified}</td>
    </tr>
    </tbody>
    </table>

    Unfortunately an public url is not possible as this is for an
    intranet site. However, I finally got it to work. For some reason,
    a delay occurs within Firefox and IE when you click to sort.

  • Where does Leopard store icon preview templates?

    I like the Finder's icon previews and am interested in learning more about them. I assume there are some sort of template stored in the System folder which are used to generate previews. But they presumably aren't icns files, and they aren't inside the Finder package, or in coretypes.bundle — where is the system getting them?

    I'm pretty sure about this. QuickLook.framework appears to include PNG resources that are not used by QuickLook proper, but that do contribute to preview icons.
    Here is a screenshot for reference: http://i56.tinypic.com/2v2jw3c.png
    The QuickLook window does not use any frame, other than the usual translucent grey, and a simple shadow. But the icons do use such elements as curled page corners and the movie's reflection.
    Note that I am using 10.5.8 -- maybe they aren't there in Snow Leopard?

  • How do I USE the slices I generate in Illustrator from "Save for Web"?

    I am having trouble understanding slices. I want to save a raster graphic from Illustrator that takes advantage of "slices" to put hyperlinks to certain labels. I am working on a map with about 20 links to a website describing recreation sites shown on the map.
    I am able to do this by bringing my map as a graphic into InDesign, and setting up links to text or picture boxes there. I can export an interactive PDF of the map, and the PDF has live links.
    but the client's web host can't post the PDF with active links. (client would have to link from a static image to a copy of the PDF on a separate website). We may do this as an interim measure.
    So I'd like to go back and figure out how to use slices in Illustrator to do the same thing. I've seen web pages that have a series of sliced-up graphics; I wouldn't wish that on anyone but it's the solution I want to get to.
    Illustrator tutorials and help describe how to set up slices, how to type in links in the "slice options" dialogue box (in objects/slices... pulldown menu). And describe how to "save for web" to generate JPEGs or GIFs of the individual slices.
    My available options in AI CC 2014 (I checked in CS6 too) are to save the slices as images. (Helpful articles which say to save as HTML and Images...aren't helpful if I don't have that option).
    I get a folder called images, that contains about 74 sliced JPEGs of various sizes and shapes. I don't see, nor see an option where I can ask to make...a file that pulls all these together into a single image, with clickable links. There's no HTML file (or way to create one that I can see).
    What am I missing? What application would I use to toss this folder's contents together. Or how would I create the HTML or envelope file within Illustrator?
    I have entered URLs for links in three or four different places but haven't found a way to export them in such a way that they are actually useful.
    Thanks for your help.
    Ben PEase

    Thanks, I am a print guy, mostly. I've almost figured out CSS for my did-it-myself website, so buttons, actions, slices, etc. are new angles for me.  I am hip to the general concept that Adobe likes certain applications to do certain things. It was certainly easier to set up links from InDesign.
    In what application would you suggest I DO foolishly create my interactions (raster graphic with multiple links? Does it work any better in Photoshop?  The client's web host does the web design (some sort of template thing)  so I don't believe I have the option of drawing hot-spots like is (was?) possible in Dreamweaver.
    (That may be a question for the web host).
    One of the problems with "discontinuing this functionality" is there are about half a dozen how-to guides online that suggest it is still possible to kluge a solution in AI (sometimes in older versions) and it's hard to tell well-executed funtionality from abandoned functionality since Adobe hides instructions in multiple, random dialogue boxes, and left so many of the pieces strewn about the current versions of AI.... How would we really know?  But I am not all that surprised they did. 

  • Decommissioned a file server, but every mobile account in the place is still trying to connect to it on login!

    A couple of months ago we decommissioned the 10.4.11 xserve that was serving as our LDAP server and home directory server for mobile accounts.  We migrated all of that to a newer 10.6.8 xserve.  It was a fairly rough migration, but we've pretty much sorted it out except for one last annoyance: when you look at System Preferences->Accounts->Login Items for all of our mobile accounts, every single client is still trying to mount an afp share on the old server.  Logging in takes FOREVER because the connection needs to time out, so now my users are no longer logging out/in as often as they should, and so their Home Sync's are getting old.
    When you go to the client's Preferences, the line referencing the old server share is still there, but the minus sign is greyed out so the item cannot be deleted.
    The Kind is listed as "unknown" and there is a grey warning triangle next to it.
    This is clearly some sort of template/Preference that is hardcoded to the old name, and whatever file this is got moved to the new server (which has a different name and different numeric IP address.)  Because even the BRAND NEW users that I have created since after "pdc04.hgbc.com" disappeared are trying to log in to the non-existent share on the non-existent server, too!
    I have tried running grep on the entire disk on one of the clients looking for the string "pdc04", and updated everything that I found using vi directly on the files.  I have tried running grep on select directory trees on the new file server looking for pdc04.  In my grep on the client, I found the string in
         /Library/Managed Preferences/user/loginwindow.plist
         /Library/Managed Preferences/user/complete.plist
    but searching all of the logingwindow.plist and complete.plist files on the new server comes up with nothing.
    Does anyone have any idea where the template or preference or plist is on the server so that I can delete or update the file with the new host name?

    I think that Grant is on the right track -- but the problem is that whatever file that pdc04's Server Manager wrote into is not available to pdc's Server Manager to edit or even display.
    We upgraded mostly by turning off the G5 10.4 xserve and unplugging the fiber-channel RAID (with user accounts on it) and plugging the RAID into a fiber-channel card on the new (to us) Nehalem 10.6 xserve, which we did after using Migration Assistant between the machines.  Then we had various and sundry problems, and we ended up moving all of the mobile account directories to the internal RAID on the new server.
    Clearly there is a file somewhere that acts as a template for mobile accounts and it refers to the old machine but its been moved to the new machine.
    Only two of the mobile accounts have directories in the /Library/Managed Preferences folder.  One of them, ironically, is mine, and my account hasn't worked right since we went to the new server.

Maybe you are looking for

  • Lost all the events in my calendar on my iPhone overnight!

    I checked my phone this morning, and overnight, all my events have disappeared. They are still on my MacBook so I'm unsure why this has happened. I've tried turning the phone on and off again and checked the calendars are ticked that I want to be dis

  • Need Help for Itunes and quicktime

    Hi there, I just formated my computer and my os is windows 2003 server. When I installed itunes, everything is fine however when I installed quicktime I got an error code : -3. What's going on? and after I done with the installation, I couldn't open

  • Is this bad coding style?

    I have come across a price- winning GUI library for java (JSuite from Infragistics). A lot of high quality GUI- components... Now, I am trying to understand the code. Here are three of the code- lines if(m_iCurM > 0) iDay |= ((m_iCurY << 9) | ((m_iCu

  • IPhone displaying incorrect email receive date

    Forgive me if I have posted in the wrong community, however this is my first post. My iphone 4 (iOS 6.0.1) has recently (over the past three days) started sporadically assigning a xx/xx/00 date to emails rather than xx/xx/12. When I open the email th

  • What is the best way to store a battery?

    Hi, I have an extra MBP battery. What is the best way to store this extra battery? Should I store it when it is fully charged? or Should I store it when it is half full? Is it necessary to use that batter once in a while? Thank you beforehand. Bob