Bought Iphone need to create custom ringtones

Well, i've read some of the posts before but its not seeming to help... I have garageband 3 and do not have the selection of "sending ringtone to itunes" since i do not have garageband08. So, the problem is that i create my song on garageband and then export it to itunes, then convert it to a AAC file.... but after that im supposed to convert it to a m4r because that would be used for a ringtone.... after i do that it does convert but it doesnt let me put it onto my iphone? what am i doing wrong?

i found a free iphone ringtone application for mac called iring.
its pretty simple to use, you just need to make sure itunes IS NOT running when you convert from AAC when using it. otherwise, it won't add the newly created ringtone to your ringtone folder.

Similar Messages

  • How to move iPhone contact list with custom ringtones to OS X server Contacts?

    I have recently setup a new Mac Pro, Mid 2012, running Mavericks OS X Server.  I was previously syncing through iTunes on Snow Leopard, 10.6...
    Due to the changes in Mavericks WRT iTunes address book syncing, I want to setup Contacts in Server, as I do not want to use iCloud. I tried using the Address Book sync on my MacBook Pro, but that doesn't appear to save any custom ringtone data. I setup Contacts in Server & I moved the current address book to Mavericks, but dragging the contacts into the Server list in Contacts generates warnings, "Some contacts could not be copied to the server"  and then sometimes starts duplicating the groups and contacts. The system log has some errors that seem related (system & user munged):
    Jan  1 22:44:46 system.sub.domain Contacts[3203]: Error reading store metadata: Error Domain=NSCocoaErrorDomain Code=260 "The file \u201cAddressBook-v22.abcddb\u201d couldn\u2019t be opened because there is no such file." UserInfo=0x60000047ec80 {NSURL=file:///Users/kilroy/Library/Application%20Support/AddressBook/Sources/4 233913F-017D-4AA5-887A-E0957EECA4B0/AddressBook-v22.abcddb}
    Jan  1 22:44:46 system.sub.domain Contacts[3203]: Database file is empty: /Users/kilroy/Library/Application Support/AddressBook/Sources/4233913F-017D-4AA5-887A-E0957EECA4B0/AddressBook-v2 2.abcddb
    Jan  1 22:44:46 system.sub.domain Contacts[3203]: Failed adding account: The operation couldn\u2019t be completed. (AppleInternetAccountsErrorDomain error 13.)
    AddressBook-v22.abcddb, does exists, T/S of 22:44. Maybe the above is actually a warning that it created the file?  ... except the Failed adding account doesn't sound good.
    Jan  1 23:30:37 system.sub.domain Contacts[7073]: [CardDAVPlugin-ERROR] -_handleCompletedAction:(null) href:https://[email protected]:8443/addressbooks/__uids__/85897855-A1A7-4846-8134-65C7619EE3B8/addressbook/677 0d3b722f65b9d1657bb55412ad071.vcf localETag:"29b0055eeb14610abbb7d2808c08e540" errorItem:(null) error:(null); NIL href or action
    Jan  1 23:30:38 system.sub.domain Contacts[7073]: [CardDAVPlugin-ERROR] -_handleCompletedAction:(null) href:https://[email protected]:8443/addressbooks/__uids__/85897855-A1A7-4846-8134-65C7619EE3B8/addressbook/1ca 7c41d318c83472743fad0400ecdd3.vcf localETag:"aa2b10b8148984374a2117e87444f4d0" errorItem:(null) error:(null); NIL href or action
    Jan  1 23:30:38 system.sub.domain Contacts[7073]: [CardDAVPlugin-ERROR] Exception caught while running sync with server: Error Domain=CoreDAVErrorDomain Code=1 "The operation couldn\u2019t be completed. (CoreDAVErrorDomain error 1.)"
      1 23:30:41 system.sub.domain Contacts[7073]: [CardDAVPlugin-ERROR] -_handleCompletedAction:(null) href:https://[email protected]:8443/addressbooks/__uids__/85897855-A1A7-4846-8134-65C7619EE3B8/addressbook/86b 4883827ee841f0e6d01893a8ae225.vcf localETag:"79e207a20cf8e7052decba4fe9e1e743" errorItem:(null) error:(null); NIL href or action
    Jan  1 23:30:41 system.sub.domain Contacts[7073]: [CardDAVPlugin-ERROR] -_handleCompletedAction:(null) href:https://[email protected]:8443/addressbooks/__uids__/85897855-A1A7-4846-8134-65C7619EE3B8/addressbook/90c 4c7aa12d6cb1fa4d68b2748fde985.vcf localETag:"d4ca80d1e1ac5dc69e08db5c0cb18835" errorItem:(null) error:(null); NIL href or action
    So the question is:
    How to does one move or import iPhone contact list with custom ringtones to OS X server Contacts? ... and will Contacts save/preserve the ringtone settings?
    Thanks

    lsof is the standard tool for listing open files, although I'm not quite sure it'll do what you want.
    It will list every open file used by every process on the machine, including many you don't expect. I don't know how it will present files opened by network users - whether they'll appear as owned by the file sharing process or not at all. Definitely one to try.

  • Purchased a second iphone need to create an account, however the computer already has an itunes account...How do I create a second  account using one copy of itunes on a computer??

    Purchased a second iphone need to create an account, however the computer already has an itunes account for the first iphone...How do I create a second  account using one copy of itunes on single computer??

    Why do you need a new account?
    Use the same account on both.
    How to use multiple iPods, iPads, or iPhones with one computer

  • Hi i have recently bought iphone 5s and created apple id on the same day. But i didnt used the apple ID for 20 days. While trying download the apps my Apple ID was Inactive. Please tell me how to active my Apple ID

    Hi i have recently bought iphone 5s and created apple id on the same day. But i didnt used the apple ID for 20 days. While trying download the apps my Apple ID was Inactive. Please tell me how to active my Apple ID.

    Hi,
    Try to connect you on Apple.com on your computer,
    and if it doesn't work, it will tell you.
    Thanks

  • Creating custom ringtones without GarageBand . . . is it possible?

    Is it possible to create a custom (original content) ringtone in a pro app such as Final Cut Pro or Soundtrack pro? I removed the consumer apps - Garage Band, iDVD, iMovie - from my system since they never get used. I can always reinstall if necessary, but I would like to avoid that if possible. Any suggestions would be appreciated.

    Well here are the instructions for a Windows user. In general, if you have a non DRMed audio file and any software that can edit it down you can do it manually (get it into iTunes as a ringtone). Somebody else posted instructions of how to use iTunes itself to create a edited down file as well (non DRMed file of course). Had to do with editing info about the song (start and end times) then resaving it.
    For Windows Users:
    Locate the audio you want. It is best if it is in MP3 or WAV as there are far more editors out there for that.
    Once you have your file and editor, you will need to edit it down to 30secs or less (just trim it to a section you want as your ringtone).
    Save that file as MP3.
    Next, open iTunes
    Drag that MP3 into iTunes Music List.
    Locate that file in the list.
    Right click on it and choose Convert to AAC (Apples format)
    This will only take a second as it is a short clip.
    You should now have that clip listed twice in your list (first one MP3, second one AAC format)
    Highlight the first one (may still be hightlighted from your last right click)
    Right click it and Delete it (don't need it anymore). You can say don't send to recycle bin if you want to keep it on your PC.
    Next right click the other copy (the AAC one) and choose Show in Windows Explorer (or something like that).
    That will open your file browse window to the file.
    Ok, leave that window open but go back to iTunes
    In iTunes right click and delete that clip from the music library (but be sure to say Don't Send to Recycle Bin)
    Next go back to the file browse window and locate that clip. Will be named YOURNAME.M4A (note be sure you are showing file extensions).
    Cut the File.
    Go up One directory (right now you are in a folder named Unknown Artists)
    Once you go up one you should see a subfolder named Ringtones. If not, create one.
    Go into the Ringtones folder.
    Paste your file.
    Now Rename your file from .M4A to .M4R
    Now drag that file over to iTunes and drag it to the tree on the left and drop it on the branch that says Ringtones.
    It should now be in your Ringtones list and can now sync to your phone.
    Note, you have to have iTunes 7.5 and your iPhone needs to be running firmware 1.1.2
    The parts about removing from your music list first before dragging into Ringtones section are important.

  • How to create custom Ringtones (m4r files) from Songs in iTunes

    Jakarta, 14 June 2013
    On Mac OS : 10.7.5 (Lion)
    On iTunes : 11.0.4
    Difficulty : intermediate - hard
    Assuming you know basic Ctrl+Click and Option+Drag...
    Full correct steps should be like this :
    1) Select a favourite song in iTunes program to be made into Ringtone...
    2) "Get Info" on that song name and make any 0:30 seconds portion of that song....
    (specify "Start" & "Stop" time - under "Options" – to any 30-seconds duration and click OK)
    3) Right-click or Ctrl-Click again on same song name and select "Create AAC Version" to create an .m4a file...
    (when done iTunes will create a Chime)
    4) to locate the created .m4a file easily, Ctrl-Click again on same song name and select "Show in Finder" from the pop-up list...
    (iTunes will automatically point the folder location of the original .mp3 & the newly created .m4a files... keep this window open for later...)
    5) change the .m4a file to .m4r as suggested...
    (rename to whatever you like but you must change the extension to .m4r)
    6) At this point, the m4r(original) file isn't a "Ringtone" file yet... which we'll need to change now...)
    (check under "Get Info" > "Kind" :  it's still "Apple MPEG-4 Audio")
    ...1st by dragging that newly changed .m4r(ori) file to somewhere out of that same default folder it was created by iTunes...
    { this is where most confusions occur, take note here, it gets rather complicated }
    7) Once it's outside of that folder, Double Click the m4r(ori) file and iTunes will play...
    (u can stop it immediately...) this is just to let iTunes automatically convert that m4r(ori) file into a new duplicate & places it inside the initial default folder where the original .mp3 file is kept... we kept the window open previously, remember?
    8) Locate that duplicate .m4r(new & true) file, in that same .mp3 folder and now DUPLICATE-Drag (press Option while dragging to get the "+" sign) it to the "TONES" folder in your default apple folder structure. (check under "Get Info", this .m4r(new) File's "Kind" should be "Ringtone")
    //to get to that "TONES" Folder : First Locate your iTunes default Music Folder in your Mac --> usually it's in your Default "MUSIC" folder --> Navigate to "iTunes Media"  --> Navigate to "Tones". !! Keep this window open to make the transfer manually !!
    9) Once your duplicate is placed inside the "Tones" folder, double-click on that duplicate .m4r(true) file and let iTunes play, it should automatically place that ringtone file into the "Ringtone" sidebar List in the iTunes program... (check program to see)
    Somehow u needed both duplicates : 1 – inside the default initial .mp3 folder & 1 – inside the Tones Folder which we Duplicate+Drag into... and both must be "Ringtone" – Kind... for this to work.
    10) There you go. Now you can Sync / Delete / Add the whole Ringtone contents to your iPhone as you wish.
    //Don't forget to set SYNC ON under the iphone  "Tones" tab in your iTunes - iPhone screen... and click big SYNC button at the bottom of iTunes program & wait for the magic.
    ( Finally you can check inside your iPhone "Sounds" settings and hopefully if all steps done correctly, the bloodycomplicatedringtone selection will be there. Enjoy!

    Hi --
    I'm using iTunes 11.0.4 on OSX 10.8.4 and am having a hard time following your instructions to create a ringtone from a snippet of a .mp3 file using iTunes:
    1) Select a favourite song in iTunes program to be made into Ringtone... CHECK!
    2) "Get Info" on that song name and make any 0:30 seconds portion of that song.... CHECK !
    3) Right-click or Ctrl-Click again on same song name and select "Create AAC Version" to create an .m4a file... PROBLEM!
    It's when I hit Step 3 that I have a problem -- my "right click menu" at that point looks like this:
    There's no option to "create AAC version." Nor does this option appear anywhere in iTunes that I can find.
    It really shouldn't be this confusing to create a freaking ringtone. HELP PLEASE!

  • Need to create Customer to multiple sites record in one run.

    Hi all,
    we have one table called (e.g.) Prospect. To this table we can associate three different sites: one the legal
    site, one admin and one for logistic. All the three sites refer to the main Prospect table via the Prospect_id
    and related info are all saved into the same Site_all table (the site type is not stored directly into the site_all
    table but via a use_site_all table, similarly to what happens with some standard OApps tables).
    We need to create the Prospect and associated three sites via an OA Framework page (actually multiple steps).
    So to visually resume:
    _ Site1 ---- use:legal
    Prospect - Site2 -- use:admin
    - Site3 --- use:logistic
    What's the best approach to achieve the creation of the records in the tables ?
    a) to add three EO for the Site table (with related AO) and one big ProspectAllVO view object containing all the fields
    from the three EO ?
    b) to add just one EO for the site and reference it three times while defiing the ProspectAllVO ?
    c) to specify a View Link (but this should be done three times and I'm not sure how to synchronize and manage
    the transaction for the creation ?
    d) AOB ?
    Thanks in advance. Regards.
    Giuseppe Naldi

    is it really just one IDOC?
    I have never seen that SAP just does a part of one IDOC.
    the structure of DEBMAS ist like this:
    E1KNA1M
    --E1KNVVM
    E1KNVPM
    E1KNVDM
    E1KNVIM
    --E1KNB1M
    which means for your example it should be like this
    E1KNA1M
    --E1KNVVM
    E1KNVPM
    E1KNVDM
    E1KNVIM
    --E1KNVVM
    E1KNVPM
    E1KNVDM
    E1KNVIM
    --E1KNB1M
    and in this case I am very certain that it would never just process and create the part for one sales area.
    Maybe your customer already exists from ealier tests with just one sales area.
    Display your IDOC in WE02 or WE05 and make sure you have a value in name1 field

  • RE: Need to create custom fileds in sourcing in SRM

    Hi All,
    I am working on SRM 4.0. I had a requirement where in Sourcing I need to add a custom field in the standard SRM shopping cart. The best approach is BADI as far as my know ledge is concerned.
    Can anybody help me out the procedure, which BADI to use or any other suggestion so that my issue will get resolved.
    Await your response.
    vishal

    Hi Vishal,
    To bring customer fields to the sourcing cockpit , you need to add those custom fields to shopping cart first and these fields will automatically show up in the sourcing cockpit.
    To add fields in the shopping cart you need to follow the steps given in the following blog:
    How to create custom fields in SRM
    To find out in which structures the field is to be included you can go through the following notes:
    Note 672960 - User-defined fields 2
    Note 458591 - User-defined fields: Preparation and use
    And after adding the fields in shopping cart you need to regenarate the sourcing screens so that the custom fields are dispalyed in the sourcing cockpit. For doing that the below given note:
    Note 632982 - Generation of the screens for the sourcing.
    Thanks,
    Pradeep

  • I need to create  custom groups

    In order to minic the income statement, I need to create a custom group of account numbers, often out of sequence of a simple list of accounts. Thus, for accounts 1 thru 7, my goal would look like this:
    Income Accounts
    1
    2
    4
    7
    Subtotal Income
    Expense Accounts
    3
    5
    6
    Subtotal Expense
    Total Net Income/Loss
    Is there a way I can do this in Crystal?
    Thanks!

    Try to insert a group on account field and in group option select specified order and add new item with name "Income Accounts" and the condition is like 1,2,4,7. Add another item with name "Expense Accounts" and the condition is like 3,5,6. If you have any other accounts then it will be grouped with name "Others". If you don't want the "Others" group then go to options and check the option discard all others.
    Hope this helps!
    Raghavendra

  • Urgent help needed in creating customer ship_to and bill_to site id

    Hi,
    I am using an api to create customer ship_to and bill_to address, in Oracle OM R12 but the api does not return values. I am including the code so any suggestion will be helpful.
    declare
    l_num_billing_site_use NUMBER;
    l_num_cust_site_id NUMBER;
    l_rec_cust_site_use apps.Hz_Cust_Account_Site_V2pub.CUST_SITE_USE_REC_TYPE;
    l_rec_customer_profile apps.Hz_Customer_Profile_V2pub.CUSTOMER_PROFILE_REC_TYPE;
    l_chr_retcode VARCHAR2(20);
    l_chr_errbuf VARCHAR2(200);
    l_num_count NUMBER;
    begin
    -- fnd_global.apps_initialize (1885, 21623, 660); -- user id, --resp_id (OM Super User), appl_id
    -- mo_global.init ('AR');
    -- mo_global.set_policy_context ('S', 511);
    l_rec_cust_site_use.site_use_code := 'BILL_TO';
    l_rec_cust_site_use.cust_acct_site_id := 24919;
    l_rec_cust_site_use.primary_flag := 'N';
    l_rec_cust_site_use.created_by_module := 'CONVERSION'; -- Change
    BEGIN
    apps.Hz_Cust_Account_Site_V2pub.create_cust_site_use( p_init_msg_list => FND_API.G_FALSE
    , p_cust_site_use_rec => l_rec_cust_site_use
    , p_customer_profile_rec => NULL --l_rec_customer_profile
    , p_create_profile => FND_API.G_FALSE
    , p_create_profile_amt => FND_API.G_FALSE
    , x_site_use_id => l_num_billing_site_use
    , x_return_status => l_chr_retcode
    , x_msg_count => l_num_count
    , x_msg_data => l_chr_errbuf);
    EXCEPTION
    WHEN OTHERS THEN
    FND_FILE.PUT_LINE(FND_FILE.LOG,' Unexpected error creating customer site for Cust Site Id ' || l_num_cust_site_id || ' due to: ' || SQLERRM);
    END;
    dbms_output.put_line('cust_site_use:'||l_num_billing_site_use);
    end;
    Thanks,
    Srinivas
    Edited by: user2138419 on Feb 14, 2010 4:46 PM

    It might be a crossdomain.xml problem.
    Please make sure that the server hosting the xml allows the domain where the swf is hosted.
    You can start with:
    <?xml version="1.0" encoding="utf-8" ?>
    <cross-domain-policy>
        <allow-access-from domain="*"/>
        <site-control permitted-cross-domain-policies="master-only"/>
    </cross-domain-policy>

  • Do I need to create custom FM

    Hi,
    I have created a new z-segment to the standard idoc type.
    I even done the outbound processing and IDOC is reached to the destination server box.
    Do I need to create a new inbound function module to get the extra fields of the z-segment or else does  the standard inbound function module itself works.
    If I need to create new INBOUND FM how to do it?
    Should I copy the std. FM and modify it
    OR
    write my own FM for it.
    Please suggest.
    Regards
    Mac

    Edgar:
    Can you provide me any more detail reagrding how to utlize the Error Pages tab?  If I had to guess it apears I want to use Explicit Response Page Header and Explicit Response Page Body under the Appl. Erros tab.  Also, from what I have seen I need to build some kind of page using HTML tags.  Once this is complete do I need to make any changes in my templates to utilize the error pages?
    Thanks,
    Lee

  • How do I create custom ringtones from mp3 files in itunes 11?

    I've upgraded to the iPhone 5 from Blackberry, and I have several custom mp3 ringtones I would like to assign... and can't.  How do I do this in iTunes 11?

    You would have sorted it out by now.
    Anyway,
    1. Go to EDIT =>REFFERENCE
    2. Under General, tick TONES, then you will be able to see TONES folder...
    To create ring tone from mp3.
    1. Make sure your mp3 file playback duration is about 30 sec or less.
    2. Add it to your library as you do with music.
    3. Under MUSIC folder, select SONGS
    4. Find the mp3 file you want for ringtone, right click it and find CREATE AAC VERSION
    5. OPEN window explorer, browse to MY DOCUMENTS/MY MUSICS (XP) or Library/my music (Win 7), there should be iTunes folder in there, find the mp3 file... and change the file extension from [.m4a] into [.m4r]
    6. Back to iTunes, add [filename.m4r]
    Now you should have rinetone under TONES folder in  your iTunes.
    Cheer

  • Need to create custom home page for iProcurment.

    Hi,
    I have an issue in iProcurment.
    i have modified the Menu name from "Requisitions" to "My Requisitions" in custom responsibility "XX iProcurment" its a replica of standard iProcurment responsibility.
    then i clear the Cache and bounce the middle tire even though the changes are not reflecting. But when i do the same changes in the standard iProcurment responsibility then i am able to see the changes.
    Create a main menu XX_ICX_POR_SSP_HOME its a replica of ICX_POR_SSP_HOME then attached to XX iProcurment
    Menu:                XX_ICX_POR_SSP_HOME
    User Menu Name: XX Internet Procurement Home
    Menu Type:          Standard
    Description:     Internet Procurement Home
    seq          Prompt                         Submenu                                        Function                              Description     
    1          iProcurement Home Page                                                       POR SSP HOME                         Internet Procurement Home Page
    3                                        XX iProcurement: Homepage menu
    4                                                                                     EAM Function To Launch IP
    5                                        iProcurement: Function Security
    6                                        iProcurement Preferences Menu Container                                             iProcurement Preferences Menu Container
    Sub menu:
    XX_ICX_POR_HOMEPAGE_MENU its a replica of ICX_POR_HOMEPAGE_MENU
    Menu:               XX_ICX_POR_HOMEPAGE_MENU
    User Menu Name:     XX iProcurement: Homepage menu
    Menu Type:          Home Page
    Description:     iProcurement Homepage menu
    seq          Prompt               Submenu                                                  Function                              Description     
    5          Shop                    XX iProcurement: Shop                                                                      Shop tab
    10          My Requisitions          iProcurement: Requisition Status                                                       Requisition Status tab
    15          Receiving          iProcurement: Receiving Home Page Menu                                             Receiving tab
    20          Contractors               iProcurement: Contractor                                                                 Contractor tab
    25                                   iProcurement: Common Functions                                                            Common iProcurement Functions
    30                                   iProcurement: Global Menu                                                                 iProcurement Global Menu
    35                                   ICX_STANDARD_GLOBAL_MENU                                                                 ICX Standard Global Menu
    40                                                                                          iProcurement                         iP Product Branding
    Hear i am changing the prompt of "Requisitions" to "My Requisitions"
    i have modified the function XX_POR_SSP_HOME its a replica of POR_SSP_HOME
    x_object=AppsServlet&x_source=menu&x_menuFunction=displayHomePage
    OA.jsp?OAFunc=ICX_POR_LAUNCH_IP&OAHP=XX_ICX_POR_HOMEPAGE_MENU&OASF=ICX_POR_LAUNCH_IP&porMode=accessHomePage&OAPB=ICX_POR_IP_BRAND

    Do you have much experience working with HTML & CSS code?
    Does this project need to work well in all devices; not just tablets?
    If the answer to both question sis Yes, I recommend Dreamweaver.
    If the answer to both question is No, use Muse.
    Nancy O.

  • Need help creating custom objects and adding them to an array.

    Hi Everyone,
    So I'm dinking around in Powershell today and I'm failing at creating an array of custom objects.  I want to create a HTML report that builds out after every MDT image update. To do that, I need to collect my data on what's contained in each build.
    Here's my current script in progress -
    function Parse-Dependents($fullname){
    #PARAMETER SWITCHING
    if(!($fullname)){
    $dependents = get-dependents
    if($fullname){
    $dependents = get-dependents -fullname $fullname
    #SPIN THROUGH ARRAY OF GUIDS FROM GET-DEPENDENTS
    foreach($d in $dependents){
    #SPIN THROUGH EACH APP IN APPLICATIONS.XML
    foreach ($app in $apps){
    #IF MATCH THEN ADD OBJECT WITH PROPERTIES
    if($d -match $app.guid){
    #ADD APPLICATION MATCH TO THE ARRAY
    $applications = @{
    'Name' = $app.ShortName;
    'GUID' = $app.Guid;
    'Version' = $app.Version;
    'Last Modified Time' = $app.LastModifiedTime;
    'Last Modified By' = $app.LastModifiedBy;
    'Install Directory' = [string]'\\my\path\to\MDT\' + $app.WorkingDirectory.TrimStart(".","\")
    'CommandLine' = $app.CommandLine;
    new-object -typename PSObject -property $applications
    #RETURN MATCHED ARRAY
    return $applications
    It all works great until I look at my output and see that I get my expected properties and array, but at the end it's created additional empty entries for each of my initial properties I assigned.  So I get my list of apps like this :
    powershell.ex... OrgChart Plugin  \\my\mdt\server\ XX\user                     9/22/2014 5:... {ffee7497-0c...
    And then below it :
                     CommandLine                                                                                    
                     Name                                                                                           
                     Install Direc...                                                                               
                     Last Modified By                                                                               
                     Version                                                                                        
                     Last Modified...                                                                               
                     GUID                                                                                           
    And these are all listed under the Name property.  I'm still pretty new to PS (8 months or so now), and rarely have to create a custom object, but this seems like a case for doing so to create a custom html report.  Any ideas would be greatly appreciated.
    Ryan

    It's not really all that strange.  
    If you look at your script, you're not outputting the hash table until both loops finish.  The values are dependent on the properties of the $app objects enumerated in the inner loop, and only outputting an object if the dependent ($d) matches the $app
    guid property.
    At the end, you're outputting the hash table without that test, so it's going to have values based on the last $app in the loop, regardless of whether the guid matches the dependents or not.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Need to create custom offer letter templates for irec offer letters

    Hi All,
    I am trying to create a custom template for irec offer letters. The additional fields I require in the offer letter are configured as DFF on the Irec page. Steps I followed to create a custom template:
    1.Created a custom rtf and used tag names as specified in the standard "IRCESOLDD_SD.xml" file for the additonally configured DFF fields.
    2.Created a new template definiton and used the standard data definiton "iRecruitment Offer Letter Data" as reference while creating my template definiton.
    3.Associated this custom template to the required business group.
    But while navigating the irec page I get an error like below:
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select distinct tmpl.language||decode(tmpl.territory,'00',null,'-'||tmpl.territory) Template_Locale ,la.Name||':'||decode(tmpl.territory,'00',null,te.territory_short_name)||decode(tmpl.language,tb.default_language,decode(tmpl.territory,tb.default_territory,' (*)',null),null) name ,decode(tmpl.language,tb.default_language,decode(tmpl.territory,tb.default_territory,1,2),2) sort_order from xdo_lobs tmpl ,fnd_iso_languages_vl la ,fnd_territories_vl te ,xdo_templates_b tb WHERE tmpl.application_short_name= :1 and tmpl.lob_code= :2 and tmpl.lob_code = tb.template_code and tmpl.lob_type in ('TEMPLATE','MLS_TEMPLATE') and tmpl.file_status = 'E' and lower(tmpl.language)=la.iso_language_2 and upper(tmpl.territory)=te.territory_code(+) order by tmpl.language||decode(tmpl.territory,'00',null,'-'||tmpl.territory)) QRSLT ORDER BY sort_order,name at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:886) at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:1009) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:797) at oracle.apps.irc.offers.webui.IrcSaveForLaterCO.processFormRequest(IrcSaveForLaterCO.java:234) at oracle.apps.irc.offers.webui.CreateOfferCO.processFormRequest(CreateOfferCO.java:364) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:819) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:619) ## Detail 0 ## java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1783) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493) at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743) at oracle.jbo.server.ViewRowSetImpl.activateRowSetState(ViewRowSetImpl.java:4972) at oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3747) at oracle.jbo.server.ViewRowSetIteratorImpl.getCurrentRow(ViewRowSetIteratorImpl.java:886) at oracle.jbo.server.ViewRowSetImpl.getCurrentRow(ViewRowSetImpl.java:2731) at oracle.jbo.server.ViewObjectImpl.doPassivateSettings(ViewObjectImpl.java:13050) at oracle.jbo.server.ViewObjectImpl.doPassivateSettings(ViewObjectImpl.java:12778) at oracle.jbo.server.ApplicationModuleImpl.passivateVOs(ApplicationModuleImpl.java:6825) at oracle.jbo.server.ApplicationModuleImpl.doPassivateState(ApplicationModuleImpl.java:6636) at oracle.jbo.server.ApplicationModuleImpl.doPassivateState(ApplicationModuleImpl.java:6667) at oracle.jbo.server.ApplicationModuleImpl.doPassivateAMState(ApplicationModuleImpl.java:6627) at oracle.jbo.server.Serializer.passivate(Serializer.java:191) at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:290) at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267) at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5305) at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5182) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.passivateState(OAApplicationModuleImpl.java:2542) at oracle.jbo.server.ApplicationModuleImpl.passivateStateForUndo(ApplicationModuleImpl.java:7634) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.passivateStateForUndo(OAApplicationModuleImpl.java:3634) at oracle.apps.irc.offers.server.OffersAMImpl.apiValidate(OffersAMImpl.java:3239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:797) at oracle.apps.irc.offers.webui.IrcSaveForLaterCO.processFormRequest(IrcSaveForLaterCO.java:234) at oracle.apps.irc.offers.webui.CreateOfferCO.processFormRequest(CreateOfferCO.java:364) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:819) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:619) java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1783) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493) at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743) at oracle.jbo.server.ViewRowSetImpl.activateRowSetState(ViewRowSetImpl.java:4972) at oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3747) at oracle.jbo.server.ViewRowSetIteratorImpl.getCurrentRow(ViewRowSetIteratorImpl.java:886) at oracle.jbo.server.ViewRowSetImpl.getCurrentRow(ViewRowSetImpl.java:2731) at oracle.jbo.server.ViewObjectImpl.doPassivateSettings(ViewObjectImpl.java:13050) at oracle.jbo.server.ViewObjectImpl.doPassivateSettings(ViewObjectImpl.java:12778) at oracle.jbo.server.ApplicationModuleImpl.passivateVOs(ApplicationModuleImpl.java:6825) at oracle.jbo.server.ApplicationModuleImpl.doPassivateState(ApplicationModuleImpl.java:6636) at oracle.jbo.server.ApplicationModuleImpl.doPassivateState(ApplicationModuleImpl.java:6667) at oracle.jbo.server.ApplicationModuleImpl.doPassivateAMState(ApplicationModuleImpl.java:6627) at oracle.jbo.server.Serializer.passivate(Serializer.java:191) at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:290) at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267) at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5305) at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5182) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.passivateState(OAApplicationModuleImpl.java:2542) at oracle.jbo.server.ApplicationModuleImpl.passivateStateForUndo(ApplicationModuleImpl.java:7634) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.passivateStateForUndo(OAApplicationModuleImpl.java:3634) at oracle.apps.irc.offers.server.OffersAMImpl.apiValidate(OffersAMImpl.java:3239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:133) at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:797) at oracle.apps.irc.offers.webui.IrcSaveForLaterCO.processFormRequest(IrcSaveForLaterCO.java:234) at oracle.apps.irc.offers.webui.CreateOfferCO.processFormRequest(CreateOfferCO.java:364) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:819) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1031) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2974) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:619)
    Could anyone please help me with this?
    Regards,
    Divya

    Hi Divya,
    When ever you will get exception with SQL statement just copy that statement to SQL editor and run the parameter.
    that statement will give you proper error which you can understand
    Check the below statement for your environment and check your offer letter territory and language if you can found out into the output of the below query.
    Query :-
    SELECT *
    FROM (SELECT DISTINCT
                 tmpl.language
                 || DECODE (tmpl.territory, '00', NULL, '-' || tmpl.territory)
                    template_locale,
                    la.name
                 || ':'
                 || DECODE (tmpl.territory, '00', NULL, te.territory_short_name)
                 || DECODE (tmpl.language,
                            tb.default_language,
                            DECODE (tmpl.territory,
                               tb.default_territory, ' (*)',
                               NULL),
                            NULL
                    name,
                 DECODE (tmpl.language,
                         tb.default_language,
                         DECODE (tmpl.territory, tb.default_territory, 1, 2),
                         2
                    sort_order
          FROM xdo_lobs tmpl,
               fnd_iso_languages_vl la,
               fnd_territories_vl te,
               xdo_templates_b tb
          WHERE   
    --          tmpl.application_short_name = :1
    --            AND tmpl.lob_code = :2
    --            AND
                tmpl.lob_code = tb.template_code
                AND tmpl.lob_type IN ('TEMPLATE', 'MLS_TEMPLATE')
                AND tmpl.file_status = 'E'
                AND LOWER (tmpl.language) = la.iso_language_2
                AND UPPER (tmpl.territory) = te.territory_code(+)
          ORDER BY tmpl.language
                   || DECODE (tmpl.territory, '00', NULL, '-' || tmpl.territory))
         qrslt
    ORDER BY sort_order, name
    Let us know if you need any further help.
    Regards,
    Jigar Makwana

Maybe you are looking for