How to get QuantityUnitCode / MeasureUnitCode in specific language?

Hi Experts,
I'm currently building a form template where product quantities are displayed for line items. The quantity codes shall be different dependent on the correspondence language of the customer.
Now when I access a Quantity.unitCode data field, I always get the English quantity code, e.g. "EA". There is the possibility to get the description in user or any language via Quantity.unitCode.GetDescription()/GetDescriptionInOtherLanguage(), but how can I get the short code in another language?
Do I have to set up my own mapping table or is there any built in function to do that?
Thank you and Kind Regards
Pablo

Dont think you have anyway to tell the target language for a single text retrieval. You can obviously set the locale of the user but that will change language of other texts also. If you always want to show some predefined text in English then better you dont keep the those texts at all in the translated files. Or you keep the English text in all the files - so that everytime English only gets displayed. But if your case is a selective one - i.e. you want to show English text to only German users but spanish to Spanish and French to French then I dont have any answer how to achieve the same.
Regards,
Shubhadip

Similar Messages

  • Custom row-fetch and how to get column values from specific row of report

    Hi -- I have a case where a table's primary key has more than 3 columns. My report on the
    table has links that send the user to a single-row DML form, but of course the automatic
    fetch won't work because 1) I can't set more than 3 item values in the link and 2) the
    auto fetch only handles 2 PK columns.
    1)
    I have written a custom fetch (not sure it's the most elegant, see second question) that is working
    for 3 or few PK columns (it references the 1-3 item values set in the link), but when there are
    more than 3, I don't know how to get the remaining PK column values for the specific row that was
    selected in the report. How can I access that row's report column values? I'll be doing it from the
    form page, not the report page. (I think... unless you have another suggestion.)
    2)
    My custom fetch... I just worked something out on my own, having no idea how this is typically
    done. For each dependent item (database column) in the form, I have a source of PL/SQL
    function that queries the table for the column in question, using the primary key values. It works
    beautifully, though is just a touch slow on my prototype table, which has 21 columns. Is there
    a way to manually construct the fetch statement once for the whole form, and have APEX be smart
    about what items get what
    return values, so that I don't have to write PL/SQL for every item? Because my query data sources
    are sometimes in remote databases, I have to write manual fetch and dml anyway. Just would like
    to streamline the process.
    Thanks,
    Carol

    HI Andy -- Well, I'd love it if this worked, but I'm unsure how to implement it.
    It seems I can't put this process in the results page (the page w/ the link, that has multiple report rows), because the link for the row will completely bypass any after-submit processes, won't it? I've tried this in other conditions; I thought the link went directly to the linked-to page.
    And, from the test of your suggestion that I've tried, it's not working in the form that allows a single row edit. I tried putting this manually-created fetch into a before header process, and it seems to do nothing (even with a hard-coded PK value, just to test it out). In addition, I'm not sure how, from this page, the process could identify the correct PK values from the report page, unless it can know something about the row that was selected by clicking on the link. It could work if all the PK columns in my edit form could be set by the report link, but sometimes I have up to 5 pk columns.
    Maybe part of the problem is something to do with the source type I have for each of the form items. With my first manual fetch process, they were all pl/sql functions. Not sure what would be appropriate if I can somehow do this with a single (page level?) process.
    Maybe I'm making this too hard?
    Thanks,
    Carol

  • How to get the date in local language

    Hi,
    I want display "Date" in Local language. Written code as below to display date in my RTF Template:
    <?format-date:xdoxslt:sysdate_as_xsdformat();'dd'?><?' '?><?xdoxslt:month_name(substring(xdoxslt:sysdate(),3,2), 0, $_XDOLOCALE)?><?' '?><?format-date:xdoxslt:sysdate_as_xsdformat();'yyyy'?>
    Output showing in my RTF template as "26 May 2011". which is correct for englilsh.
    want to display same format in Local languge for example in Germany :
    26 mai 2011
    To get the local language format tried 1) by Putting "DEU" instead of "$_XDOLOCALE" 2. Tried by declaring a variable with value as "DEU"
    But it two cases it showing in english format not in Germany Language. Please give me idea how to get date in local language.
    Thanks
    -Chakri..

    Dont think you have anyway to tell the target language for a single text retrieval. You can obviously set the locale of the user but that will change language of other texts also. If you always want to show some predefined text in English then better you dont keep the those texts at all in the translated files. Or you keep the English text in all the files - so that everytime English only gets displayed. But if your case is a selective one - i.e. you want to show English text to only German users but spanish to Spanish and French to French then I dont have any answer how to achieve the same.
    Regards,
    Shubhadip

  • How to get a value from Specific XML Node

    Hi all,
    I'm just trying to introduce to XMLType and see the potencialities of that.
    DB version:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE     10.2.0.5.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - Production
    I'm a table with just one CLOB field:
    CREATE TABLE asm_test
    (doc XMLType NOT NULL)
    XMLTYPE doc STORE AS CLOB;
    Then i've inserted the following XML data:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ReceiptDesc>
    <appt_nbr>2142473</appt_nbr>
    - <Receipt>
    <dc_dest_id>401</dc_dest_id>
    <po_nbr>2142473</po_nbr>
    <document_type>P</document_type>
    <asn_nbr />
    - <ReceiptDtl>
    <item_id>509720</item_id>
    <unit_qty>83.0000</unit_qty>
    <receipt_xactn_type>R</receipt_xactn_type>
    + <receipt_date>
    <year>2012</year>
    <month>09</month>
    <day>17</day>
    <hour>15</hour>
    <minute>33</minute>
    <second>49</second>
    </receipt_date>
    <receipt_nbr>6902340</receipt_nbr>
    <container_id>1</container_id>
    <to_disposition>ATS</to_disposition>
    <user_id>NTCPO01</user_id>
    <catch_weight />
    </ReceiptDtl>
    - <ReceiptDtl>
    <item_id>509740</item_id>
    <unit_qty>17.0000</unit_qty>
    <receipt_xactn_type>R</receipt_xactn_type>
    + <receipt_date>
    <year>2012</year>
    <month>09</month>
    <day>17</day>
    <hour>15</hour>
    <minute>33</minute>
    <second>49</second>
    </receipt_date>
    <receipt_nbr>6902344</receipt_nbr>
    <container_id>1</container_id>
    <to_disposition>ATS</to_disposition>
    <user_id>NTCPO01</user_id>
    <catch_weight />
    </ReceiptDtl>
    </Receipt>
    </ReceiptDesc>
    And then i have started to make some tests to retrieve data from.
    SELECT EXTRACTVALUE(doc, '/ReceiptDesc/appt_nbr') FROM asm_test; -- got the correct value 2142473
    SELECT EXTRACTVALUE(doc, '/ReceiptDesc/Receipt/dc_dest_id') FROM asm_test; ---- got the correct value 401
    select count(*) from asm_jam_test d where (d.doc.getClobVal()) like '%NTCPO01%'; -- got 1
    But i need to find a Specific data from XML (the main goal is to update a value inside XML).
    If i try this:
    select extract(doc, '/ReceiptDesc/Receipt/ReceiptDtl/item_id/text()').getstringVal() from asm_test                     
    where existsNode(doc,'/ReceiptDesc/Receipt/ReceiptDtl/receipt_nbr') = 1;
    got: 509720509740 -- which are the concatenate of 2 Item_ids
    when i try to find out the Item_id of specific receipt_nbr i got a NULL response.
    select extract(doc, '/ReceiptDesc/Receipt/ReceiptDtl/item_id/text()').getstringVal()
    from  asm_test                     
    where existsNode(doc,'/ReceiptDesc/Receipt/ReceiptDtl/receipt_nbr') = 1 and
    extract(doc,'/ReceiptDesc/Receipt/ReceiptDtl/receipt_nbr/text()').getstringVal() = '6902340';
    What i'm doing wrong or which is the best way to get data from XML?
    Many thanks in advance

    Hi,
    Thanks for providing db version and sample data in the first place.
    Don't forget to use the &#x7B;code} tags to preserve formatting.
    Also, when posting XML, do not copy/paste directly from your browser as it retains +/- signs and therefore needs extra processing on our side.
    select count(*) from asm_jam_test d where (d.doc.getClobVal()) like '%NTCPO01%'; -- got 1No, don't do it like that.
    Use existsNode() function in this situation :
    SQL> select count(*)
      2  from asm_test
      3  where existsNode(doc, '/ReceiptDesc/Receipt/ReceiptDtl[user_id="NTCPO01"]') = 1
      4  ;
      COUNT(*)
             1
    when i try to find out the Item_id of specific receipt_nbr i got a NULL response.Yes, that's because this :
    extract(doc,'/ReceiptDesc/Receipt/ReceiptDtl/receipt_nbr/text()').getstringVal()returns :
    69023406902344So obviously it cannot be equal to '6902340'.
    When you have to deal with repeating nodes individually, use XMLTable function to break the structure into relational rows and columns.
    The resultset you'll get acts as a virtual table (or inline view) you can then manipulate with SQL operations :
    SQL> select x.*
      2  from asm_test t
      3     , xmltable(
      4         '/ReceiptDesc/Receipt/ReceiptDtl'
      5         passing t.doc
      6         columns item_id     varchar2(15) path 'item_id'
      7               , receipt_nbr varchar2(15) path 'receipt_nbr'
      8       ) x
      9  ;
    ITEM_ID         RECEIPT_NBR
    509720          6902340
    509740          6902344
    Now, you can just add a WHERE clause to filter the RECEIPT_NBR you require :
    SQL> select x.item_id
      2  from asm_test t
      3     , xmltable(
      4         '/ReceiptDesc/Receipt/ReceiptDtl'
      5         passing t.doc
      6         columns item_id     varchar2(15) path 'item_id'
      7               , receipt_nbr varchar2(15) path 'receipt_nbr'
      8       ) x
      9  where x.receipt_nbr = '6902340'
    10  ;
    ITEM_ID
    509720
    That can also be achieved with EXTRACTVALUE and a single XPath expression (assuming RECEIPT_NBR is unique) :
    SQL> select extractvalue(
      2           doc
      3         , '/ReceiptDesc/Receipt/ReceiptDtl[receipt_nbr="6902340"]/item_id'
      4         ) as item_id
      5  from asm_test
      6  ;
    ITEM_ID
    509720

  • How to get ML dictation involving multiple languages.

    Hello all I just upgraded my MBPearly2011 from Snow Leopard to Mountain Lion yesterday.
    With the upgrade, I found that I can now type by talking (probably nothing new to you guys I suppose). I use Japanese as the main language on this computer, but as you can see with this post, I also frequently use English to type, chat with friends. Talk-typing (or whatever the verb is) in Japanese is not a huge problem and I can do it pretty smoothly and I'll get better once I get used to it, although there are problems involving changing to the correct kanji character and such, but that's a different story.
    My main problem for now is being able to talk-type in English with the Japanese settings. The only "English words" the mic is picking up are major Apple products such as iMac and iPhone. I tried speaking English three ways: the native way, the typical Japanese way, and the katakana way (you'll understand if you know the language). All three don't work. The katakana is the best alternative, but I can't turn in an English essay with foreign text. Only select Japanese will understand what I am trying to say, and they'll probably give up during the first sentence because it isn't in any way formal writing.
    The best solution I can think of is changing the language on the computer back to English through System Preferences → Languages, but I type in both Japanese and English interchangeably, and I am too lazy to change the settings every time (with a necessary restart? no way).
    Is there a way to make English talk-typing possible in a Japanese language setting without going to System Preferences every time I need to switch a language?

    Try
    http://fouquet.me/apps/dictationswitcher/

  • How to get the inputs in different language

    Hi,
    I have a typical scenario in which I have a thin client (web browser).
    And I need to display a word in a input text box, followed by many text boxes for getting the inputs from the user in different languages.
    But I am not sure about getting the inputs from the user in different languages in the same screen and update the same in the database.
    If you have idea about the same. Please share it accross.
    Thanks
    Karthick

    Hi One_Dane
    I'm trying to bring a hindi text from one jsp to another. As i've installed all the IME n stuff, I'm able to get the display in hindi whenever i'm typing something in my textbox . But the same text is not displayed in hindi when i'm doing a request.getParameter() on that textbox.
    I tried printing the UTF-8 unicode charsets like
    "\\u0904\\u0904\\u0904". This does print fine. I can see the hindi appearing in these kinds of text. Also i tried out converting them to code points n stuff, and it works fine. Infact all the values that are not coming up from the request parameter are working fine.
    So i concluded that in the previous page where-in i'm giving the inputs, probably they might not be wrapped up in the UTF-8 charset. But i've specified the charsets to be UTF-8 in the meta info for both the pages.
    Kindly help regarding what might be the issue. Please tell if i missed out any point while explaning.
    thanx in advance
    Nagraj

  • How to get Captivate to recognise Tamil Language fonts ?

    Hi Dr Pooja Jaisingh
    While creating content for a Flipped Classroom, I suddenly realised that Captivate cannot recognise Tamil Language fonts.
    The fonts spells TSC_Thunaivan Normal ....
    MS Powerpoint is able to recognise without issue.
    Anyway to over come this issue ?
    Regards
    Henry

    Ok, here's how to download the update. the link in the Order History (at least for me) is useless.
    Go to Adobe.com
    Search for Captivate 8
    On the Captivate 8 page -- click "Try" (on the right), next to the buy button
    Download the product
    So essentially you are downloading the product to "TRY" and you adobe ID and Password will unlock it to USE.
    Thank you to Siddharth for helping me. --

  • How to get BPS application into multiple languages

    Hi,
    We have BPS application configured only in English.  However, when we log on with a different language, the descriptions, labels and texts went blank in the planning folders and layouts. Is there a way to supplement those descriptions, lables and texts with English content we already have without doing BPS0 for each language?  
    Thanks,
    Diana

    Hi Diana,
    I'am Afraid if there is a method apart from doing the Language translations manually.You have to do them manually for all the labels in the folder and entries for the layouts etc..i have faced a similar situation for Translations in Japanese and Korean Langauges for BPS.The method is to do them manually for each layout and folders labels.
    regards
    Sai Vishnubhatla

  • How to get open calender of specific date from adf-mobile

    HI,
    I have 2 variablesin my bean class. 1st contains the date and 2nd contains the event name.
    in my poc when user click on a commandLink it opens the calender with that date selected and with an event which is in our second variable.
    Kindly help me in this, how can i do this with ADF-Moble on AMX or HTML page.
    Thanks and Regards,

    Hi,
    Please try this.
    PARAMETERS: P_START LIKE SY-DATUM,
                P_END   LIKE SY-DATUM.
    DATA: DAYS    TYPE I,
          WEEKDAY LIKE DTRESR-WEEKDAY.
    DAYS = P_END - P_START.
    DO DAYS TIMES.
      CALL FUNCTION 'DATE_TO_DAY'
        EXPORTING
          DATE    = P_START
        IMPORTING
          WEEKDAY = WEEKDAY.
      IF WEEKDAY = 'Sat.'.
        WRITE: / P_START.
      ENDIF.
      P_START = P_START + 1.
    ENDDO.
    Regards,
    Ferry Lianto

  • How to get keyboard cursor on specific field with a condition

    I am using forms6i. i have two fields 1st field1 and field2. I want that when field1='A' then keyboard cursor go to field2 else it must automatically skip the field2. and the condition is that the trigger must not be key-next-item, because if this process completed or not we have to go to next record and to save it.How is this possible???

    Depending on how your users navigate your application (mostly keyboard or combination of keyboard and mouse) the Key-Next-Item (KNI) trigger will not file if the user uses the mouse to leave Field1. Rather than use the KNI trigger I suggest you use a combination of the When-Validate-Item (WVI) and the Module/Form level When-Timer-Expired (WTE) triggers. This ensures no matter how your user leaves Field1 that the navigation cursor will go to Field2 if the value of field1 is 'A'. For example:
    /* Sample WVI trigger */
    DECLARE
       timer_id   TIMER;
    BEGIN
       IF ( :FIELD1 = 'A' ) THEN
          Create_Timer('GOTO_FIELDB',1,NO_REPEAT);
       END IF;
    END;This code creates a 1 millisecond timer which will execute immediately so there is no lag in your application. Also, since it is a 1 millisecond timer, it will not cause a network trip to the application server.
    /* Sample WTE trigger */
    /* This is a Module/Form level trigger */
    DECLARE
       v_Timer   VARCHAR2(30) := Get_Application_Property(TIMER_NAME);
    BEGIN
       IF ( v_timer = 'GOTO_FIELDB' ) THEN
          Go_Item('FIELDB');
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to get websharing to work?

    First... I thank you in advance for your time and efforts on this issue that I have.
    =========
    I have 4 macs each hooked up to separate TVs and running Plex for content serving and so far have been able to adequately manage the lot of them. I can remote Admin from my mac and I've done a good job with setting permissions and access as far as file/printer sharing goes.
    But I haven't been able to get the web Sharing features working.
    It seems easy enough... turn on the web sharing in preferences and point the browser to the correct IP address.
    When I do that I am able to reach the web page located in the top webserver/documents folder... or the ones in the users site folder from any of the locally networked machines from the IP addys that can be found in the websharing preference pane.
    But from off site... over the net... no one can get access at all... "cannot locate server" ... and "server time out" messages appear.
    These are all new Mac Minis and a new Mac Book running Snow Leopard and they seem to network rather well for me locally so I'm thinking my router is blocking????
    I have the firewall turned off and it reads that all incoming connections are allowed.
    What am I not setting/looking at properly? what need I do to allow someone to get access to my websharing folder and view a web page or download a file? Or to get access to the htdocs folder in MAMP/
    I tried installing MAMP and that all seems to be up and running but I have the same issue... local machines can access the files but off site machines can not. grrrr .... (i love macs)

    You can't just access machines on your home network from the outside world. Your typical home internet connection has one single dynamic IP address assigned to it. Depending on your network setup, that IP address might be your wireless router, wired router or cable/DSL modem, and that device takes responsibility for routing traffic to machines on the local network. On the local network, machines will have IP addresses like 10.0.1.1 (if you're using an Apple AirPort base station), which are completely meaningless to the outside world.
    I posted some instructions for how to get access to a specific machine on my home network from outside here:
    http://discussions.apple.com/thread.jspa?messageID=9436505&#9436505
    Of course, as I mention on that thread, if you have different hardware, this method may not work for you. Also note that you should not expect to host a website this way. Web access for your own use is one thing, but your internet service provider will shut you down if you try to host a public web site over your home network connection.

  • Restore problem - how to get rid of corrupt database ?

    Folks,
    Some dumb developer managed to trash on of our Oracle database by doing a mistake in SQLDev.
    This database was / is using the "autobackup" feature as proposed in the installation wizard.
    For some reason it would seem that the restore is not complete, tough.
    I get an error when mounting the database
    ORA-01248: file 5 was created in the future of incomplete recovery
    ORA-01110: data file 5: <path to file>
    not sure to understand what happened but I can live without that specific database assuming the others are ok.
    Any advise as of how to get rid of that specific database and enjoy the rest of the server ?!
    Nest step will be to understand why autobackup is not doing what it is supposed to do...
    This is Oracle 11g standard on Oracle Linux.

    1. What statement did the developer issue? What did they do?none - they used the SQLDevelopper GUI to copy tables form db1 to db2
    2. What system table was affected?SYS tables where unintentionally affected.
    3. What does "erased" mean? DELETE statements? TRUNCATE? UPDATE?
    4. What does "corrupted" mean?Corrupted in the sense that the SYS table content was mangled to the extent that the database engine would not run anymore (the database process would not start). This has been fixed after the recovery.
    Run some SQL statements and show us what you are referring to. We can not recommend a fix based on what you've posted.Well I can run many statements on a database that will not go into an open state...
    Just to repeat the above:
    lSQL> startup;
    ORACLE instance started.
    Total System Global Area 845348864 bytes
    Fixed Size 1339796 bytes
    Variable Size 532680300 bytes
    Database Buffers 306184192 bytes
    Redo Buffers 5144576 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01248: file 5 was created in the future of incomplete recovery
    ORA-01110: data file 5: '/home/oracle/beautec/data/MODM_tab_0100.dat'
    Again I can live without that shema assuming it is the only one having problems - but I can't drop it as far as I know...
    That said I can log in as SYS and perform a drop database followed by using DBCA to create a new database in less than 20 minutes. Which I expect is more
    time than you've spent working with this so far.No point to get insulting - I spent much more than 20m on the issue. Unfortunately - as you have probably understood from my earlier posting - my DBA expertise is limited. That's the very reason I am looking for help.
    I can do
    shutdown abort;
    startup mount exclusive restrict;
    drop database;
    exit
    but that's the whole database going into the toilet - a bit extreme...

  • JNDI/DNS Provider - How to get TTL & other header info ?

    Hi,
    I am using JNDI/DNS Provider for accessing DNS Records from DNS Server. After the DNS lookup, the Attribute collection received from JNDI/DNS Provider does not contain TTL information for SRV records. Further investigation shows that JNDI/DNS Provider only exposes "RData" section of DNS UDP Packet Response through Attributes & its values. The TTL comes in the "Header" section of DNS UDP Packet Response and not included in the Attributes & its values.
    When I dig into the source code of JNDI/DNS Provider, it is clear that TTL value is stored in the ResourceRecord class. But there are no get methods for it. Even worse, there does not seem to be ways of getting the collection of ResourceRecord objects!!. Most of the classes / functions in JNDI/DNS provider are either package scoped OR private scoped.
    Do anybody know how to get the TTL for SRV records ?. Or, is it not possible at all ? (That means should I move to other DNS libraries like DnsJava ?)
    Thanks,
    Ram.

    Thanks v.r. for your quick reply. In fact we are using the TTL SOA for the time being. But when it is overridden in specific SRV / A / AAAA records, we are not able to get that value. Any idea how to get these overridden record specific TTL values ?
    Thanks,
    Ram.

  • How do I find audiobooks in a specific language, let's say children's books in Italian?

    Hi! I'm new to iTunes and have been trying to find audiobooks in a specific  language, say Spanish or Italian. How do I add this criterion to my search? If I'm looking at novels, I want to be able to choose language easily.

    Select it, choose Get Info from the File menu, and look at the Where section. If it's a document you have open somewhere besides the Finder, command-click its name in the window's title bar.
    (72500)

  • How do I get photos in a specific iPhoto Album into my Photo Stream?

    How do I get photos in a specific iPhoto album into My Photo Stream so that I can use my Apple TV to show them in a slideshow on my TV?

    That is not possible - PhotoStream has no organizational capability - no albums or other organization
    With the correct software versions You can import from PS into an iPhoto event on your Mac either automatically (by setting the iPhoto preference to do that) or manually and then you can add the photos ot an iPhoto album and sync to Apple TV
    what version of iPhoto do you have? Is OS X 10.7.5 correct for your OS?
    LN

Maybe you are looking for

  • How to call a Web Api from from a Visual webpart code behind?

    Hi, I am trying to create a visual web part in sharepoint 2013 with data received from another Web API. I followed the below steps. 1. Created a Visual Web part. 2. In the code behind(.cs) file I wrote the following code.  async private void GetResul

  • How to switch off iTunes match

    I got a new Iphone 5S, I try to sync my musics to my phone, But I have got the following: "Iphone can access music in icloud. songs can be downloaded and played via Wi-Fi or a cellular network." Also I cannot get my ringtunes on to my new phone. Are

  • SMS Integration

    Hi Experts, I am doing IDoc-XI-File scenario. Scenario is done. Now issue is....In any case due to some issue file is not created...My Mean mapping Error OR any Error came in scenario.... So i need to send an Alert SMS to Client in such a case. My qu

  • Unable to start ICM Configuration Manager in ICM 8.5

    Hi, We are in the midst of setting the unified contact center 8.5.2 on windows server 2008 R2. We are using CUCM 8.5. As for the icm 8.5.2, the servers are as follows: 1. Router A & logger A & CMPG A & VRU PG A on 1 mcs 7845 2. Router B & logger B &

  • Hier node variabe urgent plz

    Hi All, I hav to create a report using variable. there is char in the dimension suppose "customer" it cosist of atttributes suppose c1,c2,c3,c4. Now I hav to create a Variable using this char "customer" with multiple value. Suppose the user enter the