How to simulate version numbers like (version: 3.5.2.11.2)  - Jdev 11.1.2

Hello:
I have to insert and update version numbers like (version: 3.5.2.11.2) and keep them in proper order. If version is stored as a string, it will not sort correctly. Is there anything like a version number data domain that sorts correctly and allows insert by adding another decimal and a number? Or any other way to accomplish this?
Thanks for the help.

Hi,
I think this forum thread may help you to implement the corresponding query for your version number in the business component: How to order IP address
Other approach could be a query like:
select version_number from your_table order by regexp_replace(regexp_replace(version_number, '(\d+)', '00\1'), '0*(\d{3})', '\1');
Being version_number a varchar field where you store that version number in the database.
Hope it helps.
Thanks,
Cris

Similar Messages

  • How to print Sequential  Numbers like purchase order?

    I ma new to mac and Numbers 09 and have a quick question. How do I print sequential numbers? I have my own MS Excel purchase order number with macro and I want to use Iwork Numbers to print the numbers. For example, Purchase Order: 70085-1 is in my form. When I ask to print 20 copies, it will print 70085-1, 70085-1, 70085-3, etc.
    Thanks in advance

    Here is a modified version of my original script which was posted in :
    http://discussions.apple.com/thread.jspa?messageID=12679002
    This time, with a single run, we may define the number of consecutive invoices to create.
    --[SCRIPT openAndNameInvoiceWithAnumber]
    Enregistrer le script en tant que Script : openAndNameInvoiceWithAnumber.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    aller au menu Scripts , choisir Pages puis choisir openAndNameInvoiceWithAnumber
    crée un nouveau document à partir du modèle personnel prédéfini
    et renomme le document avec un nouveau numéro.
    Il insère également le numéro de facture au début du document.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as Script, Application or Application Bundle: openAndNameInvoiceWithAnumber.xxx
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    go to the Scripts Menu, choose Pages, then choose openAndNameInvoiceWithAnumber
    will create a new document from the defined user template
    and name it with a new number.
    It also insert the invoice number at the very beginning of the document.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (Vallauris, FRANCE)
    2010/11/30
    2010/12/20 edited to apply if the template is a flatfile one.
    2011/01/11 added ability to build several invoices in a single call
    property theApp : "Pages"
    property theExt : ""
    property myTemplate : "ma_facture.template" (*
    Adapter à vos besoins
    Put your preferred template name *)
    property fichierNum : "le_numéro.txt" (*
    Adapter à vos gouts
    Put your preferred text file name *)
    --=====
    on run
    if theApp is "Pages" then
    set theExt to "pages"
    else
    if my parleAnglais() then
    error "The application “" & theApp & "” is not supported !"
    else
    error "L’application « " & theApp & " » n’est pas gérée"
    end if
    end if
    if my parleAnglais() then
    set nombredefactures to my askAnumber("Enter the number of consecutive invoices needed", 1, "i")
    else
    set nombredefactures to my askAnumber("Saisir le nombre de factures consécutives demandé", 1, "i")
    end if
    repeat nombredefactures times
    my buildaninvoice()
    end repeat
    end run
    --=====
    on buildaninvoice()
    set {p2myTemplate, numero} to my prepare()
    set numero to text -5 thru -1 of ("0000" & numero) (* pour numéro de 5 chiffres *)
    set UNTITLED_loc to my getLocalizedFrameWorksName(theApp, "Untitled")
    tell application "Pages"
    activate
    try
    close document UNTITLED_loc
    end try
    end tell -- to Pages
    tell application "Pages"
    activate
    open p2myTemplate
    set theDoc to numero & "." & theExt
    set name of document 1 to theDoc
    tell document 1
    tell body text
    if my parleAnglais() then
    set paragraph 1 to "invoice #" & numero & return & paragraph 1
    else
    set paragraph 1 to "facture n°" & numero & return & paragraph 1
    end if
    end tell
    end tell
    end tell
    end buildaninvoice
    --=====
    on getLocalizedFrameWorksName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFApplication.framework:Versions:A:Resources:"
    set x_loc to my getLocalizedName(theApp, x, p2bndl)
    return x_loc
    end getLocalizedFrameWorksName
    --=====
    on getLocalizedFunctionName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
    set x_loc to my getLocalizedName(theApp, x, p2bndl)
    return x_loc
    end getLocalizedFunctionName
    --=====
    on getLocalizedName(aa, tt, ff)
    tell application aa to return localized string tt from table "Localizable" in bundle file ff
    end getLocalizedName
    --=====
    on prepare()
    local d1, d2, p2d, containerOfTemplates, pathToTheTemplate, p2n, nn
    tell application theApp
    set d1 to localized string "Templates" (* nom local du dossier "Modèles" *)
    set d2 to localized string "My Templates" (* nom local du dossier "Mes Modèles" *)
    end tell -- theApp
    set p2d to (path to application support from user domain) as Unicode text
    set containerOfTemplates to p2d & "iWork:" & theApp & ":" & d1 & ":" & d2 & ":"
    set pathToTheTemplate to containerOfTemplates & myTemplate & ":"
    try
    set pathToTheTemplate to pathToTheTemplate as alias
    on error
    if my parleAnglais() then
    error "The template “" & pathToTheTemplate & "” is unavailable! Please make sure the template file “" & myTemplate & "” is installed in Numbers “Templates:My Templates” folder, then rerun this script."
    else
    error "Le modèle « " & pathToTheTemplate & " » est introuvable! Veuillez installer le fichier modèle « " & myTemplate & " » dans le dossier « Modèles:Mes modèles » de Numbers avant de relancer ce script."
    end if
    end try
    tell application "System Events"
    if class of disk item (pathToTheTemplate as text) is file then
    (* flat file *)
    set p2n to containerOfTemplates & fichierNum
    if not (exists file p2n) then
    make new file at end of folder containerOfTemplates with properties {name:fichierNum}
    write "100" to file p2n (* mettez le numéro de départ de votre choix *)
    end if -- not…
    else
    (* package *)
    set p2n to "" & pathToTheTemplate & fichierNum
    if not (exists file p2n) then
    make new file at end of pathToTheTemplate with properties {name:fichierNum}
    write "100" to file p2n (* mettez le numéro de départ de votre choix *)
    end if -- not…
    end if
    end tell -- System Events
    set nn to read file p2n
    set nn to ((nn as integer) + 1) as text
    write nn to file p2n starting at 1
    return {pathToTheTemplate, nn}
    end prepare
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    Asks for an entry and checks that it is an floating number
    set myInteger to my askAnumber(Prompt, DefaultValue, "i")
    set myFloating to my askAnumber(Prompt, DefaultValue, "f")
    on askAnumber(lPrompt, lDefault, IorF)
    local lPrompt, lDefault, n
    tell application (path to frontmost application as string)
    if IorF is in {"F", "f"} then
    set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
    try
    set n to n as number (* try to convert the value as an number *)
    return n
    on error
    if my parleAnglais() then
    display alert "The value needs to be a floating number." & return & "Please try again."
    else
    display alert "La valeur saisie doit être un nombre décimal." & return & "Veuillez recommencer."
    end if
    end try
    else
    set n to text returned of (display dialog lPrompt default answer lDefault as text)
    try
    set n to n as integer (* try to convert the value as an integer *)
    return n
    on error
    if my parleAnglais() then
    display alert "The value needs to be an integer." & return & "Please try again."
    else
    display alert "La valeur saisie doit être un nombre entier." & return & "Veuillez recommencer."
    end if
    end try -- 1st attempt
    end if -- IorF…
    end tell -- application
    Here if the first entry was not of the wanted class
    second attempt *)
    tell application (path to frontmost application as string)
    if IorF is in {"F", "f"} then
    set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
    try
    set n to n as number (* try to convert the value as an number *)
    return n
    on error
    end try
    else
    set n to text returned of (display dialog lPrompt default answer lDefault as text)
    try
    set n to n as integer (* try to convert the value as an integer *)
    return n
    on error
    end try -- 1st attempt
    end if -- IorF…
    end tell -- application
    if my parleAnglais() then
    error "The value you entered was not numerical !" & return & "Goodbye !"
    else
    error "La valeur saisie n’est pas numérique !" & return & "Au revoir !"
    end if
    end askAnumber
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) mardi 11 janvier 2011 09:30:37

  • How to print page numbers like 'Page 2 of 10' on an ALV report

    Hi,
    I've seen a few threads regarding this, but haven't seen any code that actually works. 
    What I'd like to do is print page x of y (i.e. Page 2 of 10) on an ALV report once the report is printed.
    Is this actually possible?  If so, what are the steps and coding required? 
    I greatly appreciate your help experts!
    Mark

    Hi Mark,
    I think there is no better way than calculate it before doing the output. If you do not have extra-new-page, the total number of pages may be calculated as the number of lines displayed divided by lines on one page - this will depend on the lines used for top-of-page and end-of-page. Also filters and subtotals could not be used.
    An other approach could be to read the current page number in end-of-list event and then scan the whole list using READ LIST and MODIFY LIST in each page top accordingly.
    Because it is decades ago I printed a list last time I will never have the chance to try.
    Regards,
    Clemens

  • How can I drag contacts into numbers like the old version?

    How can I drag contacts into numbers like the old version?

    Copy and paste works.  But drag and drop is also back in version 3.2. It works well here. Just drag and drop onto the canvas.Make sure you've upgraded to version 3.2 as earlier versions of Number 3 did not support drag and drop from Contacts.
    Note that the column headers are misaligned if you are dragging contacts that do not contain an image.  But the information in the body of the table drags in correctly.
    SG

  • I've just updated to iMovie '11....How do I add chapters like did in the older versions of iMovie?

    I've just updated to iMovie '11....How do I add chapters like did in the older versions of iMovie?
    And are there any other changes that may not be in iMovie '11?
    thank you,
    Paul Neathery

    paulneathery wrote:
    How do I add chapters like did in the older versions of iMovie?
    Do you mean chapter markers?
    http://support.apple.com/kb/PH2308?viewlocale=en_US&locale=en_US
    Matt

  • How i can categorize column like in previous version if iWork?

    How i can categorize column like in previous version if iWork?
    They sayed that it will be easy to work in new iWork, they sayed install it! It's ****! new desoign suc*s!!!!!
    How i can simply categorize my column????????? Where is this usefull option?????

    Search in the forums to find multiple posts relating all items that did not make it to the new version "upgrade". This is one of them.
    Jason

  • How to use Version and Comments column in Finder

    Hi,
    in Finder you can choose to show the Version column and also the Comments column.
    Can someone please explain how to use these features?
    I hope there are some type of configuration managment feature hidden behind this column but I haven't found any info on this when seraching the web. To begin with I'd like to be able to add info to these fields.
    Have a nice day!
    /Erik

    Applications can have version numbers, like Safari 5.1.10 or 7, or Image Capture, as above.
    Files that the user can write to, may have 'spotlight comments' added via the Finder - Get Info window. Those can be displayed in a Finder listing, as you've noted, and entries  will be indexed by spotlight so that they show up in a search of file contents.

  • How to identify version of Adobe creative Suite

    I am working on packaging for Adobe Creative Suite. After installing Adobe Creative Suite Premium\Installer 1\Adobe Creative Suite\Setup.exe, I am not able to identify the version (like CS1 or CS2 or CS3  so on.........)of this product even in ARP entry its showing "Adobe creative Suite" only . I am also not getting how to do silent installation of this product because its not extracting any Install.xml OR deploy.xml,Uninstall.xml OR remove.xml,setup.xml,Application.xml.override files. Also no folder is there like Payloads and deployment.
    So my question is how to identify version and how to do silent installation?

    You don't.  Registration is a one time thing that you do the first time you install an application.  Once registered it does not need to be done again.
    You should see if yoiu can have the activations reset before you try installing on a new machine so that you still have the two activations that are available to you.  If not, you should still have an activation available for use with the new installation.
    To reset activations contact Adobe Support and ask them to reset your activations....  For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )
    To get it working on the new machine you just install and activate using the serial number you should already have.

  • How does optimistic version locking work

    Hi,
    I have below questions regarding toplink with optimistic version locking vs pessimistic locking after checking the developer guide:
    in the guide, it suggests optimistic version locking oppose row level locking with select for update.
    if use optimistic version locking, additional column is required in database for each table and it keeps version of each row via toplink, how does toplink keeps the version technically, does it have triiger or other procedure installed in DB for this tacking between DB and Apps cache? how does the version gets incremented and what is the max value for it?
    if there are many rows in the table, how is the performance on the database level as each update statement need to verify the version of each record or it is all done on the apps cache?
    Thanks.

    It is quite simple
    With optimistic locking you have extra column in database which transfer to another attribute in your object.
    So when your application reads such object it has ID (primary key) and another attribute with version.
    When you persist changes to object that attribute value (read when object was read from db) i added to query, so you have something like:
    update xxxx set y = z,.... , version = version + 1 where id = <your obj id> and version = <current attribute value>
    That way if another session updated such object your update won't work because there is no row in table with id and version of your object.
    Assumption is that there is low concurrency and you are the only one editing that object (thats why its optimistic)
    There is no max value for it other then database field limit. It is incremented at every update by adding that increase to sql send to db, so no trigger/procedure is needed.
    As to performance - it is usually better then pessimistic locking but some of updates can fail, and since tables are accessed by primary key anyway additional condition for value shouldn't have much performance impact.

  • How to find version of package

    Hello every body
    Anyone please tell me how to find version of package ASAP.
    Thanks
    Rahul

    And what exactly do you mean by version of the package?
    Are you using a versioning system like CVS or SubVersion etc? or you want to know the version of the database holding that package?
    For the first case, consult the documentation related to that software. For db version, do this:
    logon to the db using any user, or preferably as sys user as sysdba and enter this query:
    select * from v$version;

  • How to download versions of apps compatible with OSX 10.7 not the ones updated for 10.9

    how to download versions of apps compatible with OSX 10.7 not the ones updated for 10.9?
    I'm trying to download iLife and iWork apps for my MacBook. For example: The GarageBand app will not download because it says it is compatible with 10.9. I have 10.7 and cannot update to 10.9 because I'm on a 13in. Late 2007 MacBook. Any suggestions?

    Click here and follow the instructions. If they’re not applicable, you can’t download them and need to install them from a DVD.
    (108988)

  • How to assign version in sales order and transfer to PP module

    Hi all
    Users say that customer will require to produce/deliver old goods (we active revision level. The newest material version is D. But customer want version B). How to assign version in sales order and let PP user know the version customer want (MRP run and production order must use version B's BOM)?
    Regards,
    Rita

    Hi,
    i have a query if you have implimented ECM this will serve the purpose but it also depends on how good the planning is, in ur client site ( out of SAP ) where planner will plan according to the customer requirement as to which version to be kept active for a date range.The ECO analysts(functional) or consultants will make the ECO changes for those dates.
    In general for those type of customers (who needs old version) a different SO created under different document type which will create a production orders with specific order type depending on the assignment of requirement type and requirement class.
    those specific production ordertypes can be inturn assigned to either different plant where your old version BOM's will be active.
    You need to look into the custom settings in SAP to design the larchitecture to allign with other requirements.What i explained u is common methodology used.
    Hope this is clear..
    Prakash
    Message was edited by:
            prakash Uddagatti

  • Some one please tell me how to reset version 10.6.8 i just bought off cl

    some one please tell me how to reset version 10.6.8 on macbook air  i just bought off craiglist and forgot to ask if password on there

    Clean Install of Snow Leopard
         1. Boot the computer using the Snow Leopard Installer Disc.  Insert the disc into the
             optical drive and restart the computer.  After the chime press and hold down the
             "C" key.  Release the key when you see a small spinning gear appear below the
             dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, set the format type to Mac
             OS Extended (Journaled, if supported), then click on the Partition button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current. Start by downloading and installing Mac OS X 10.6.8 Update Combo v1.1.

  • How  to maintain version in ERwin Data Modeler

    Hi all
    Please tell me
    how to maintain version in ERwin Data Modeler
    regards

    In SharePoint, navigate to the form library, and then click Library Tools > Library > Settings > Library Settings.
    On the Form Library Settings page under General Settings, click
    Versioning settings.
    On the Versioning Settings page under the Document Version History section, select either the
    Create major versions option or the Create major and minor (draft) versions option, and click
    OK.
    http://www.bizsupportonline.net/blog/2012/10/version-control-infopath-forms-templates-sharepoint-libraries/
     Or
    plan this wsp nfoPath_VersionHistory.wsp
    http://infopathversioning.codeplex.com/

  • How the show version of the Acorbat in the title bar?

    How the show version of the Acorbat in the title bar?
    I’m not sure if there is an option that shows the version of the Acobat (8.0, 8.1, 9, …) on the title bar! Wondering why it is not shown by default. We need to know where we are!
    AutoCAD has this feature!
    Thank you for the help,
    Best
    Jamal

    You can try the Feature Requests forum, but to be honest I don't see what's
    the big deal. As you showed in your screenshots, a single click on the Help
    menu reveals the version, and if you click on the "About" item, you'll get
    all the full version info. And since you can't have more than one version
    of Acrobat on the computer, there's no real chance of accidentally using
    the wrong version.

Maybe you are looking for