How to detect locale specified in the BI platform in a Dashboard custom component

Does anyone know if there is a way to determine the locale which is specified in the BI Platform (see pic below) from a custom component?
During design time we can use proxy.getLocale() to determine the locale specified in dashboards, but we would like to be able to determine the user's platform locale preference at runtime.
Any ideas?
Thanks,
Eddie

Hi Eddie,
As Arjit suggested, there are a bunch of functions available in WEBI like GetDominantPreferredViewingLocale(), GetLocale() and GetPreferredViewingLocale(), etc. that you could use.
There are no such specific functions provided within Dashboards tool.
So, you can create a WEBI report, and have one of these formulas specified in a variable in the webi report. Then, have the block published as a BIWS and use this BIWS in your dashboard.

Similar Messages

  • How to manage Locale info in the URL path, but not the query string

    We are building an application using Struts 1.1 and Tiles, on Oracle Application Server 10.1.3.3...
    I know this is a strange question... but we have a requirement to represent the locale info in the URL string using one of the following options:
    option 1: /eng/page.do?id=2 for english.../fra/page.do?id=2
    option 2: /page-eng.do?id=2 for english.... and /page-fra.do?id=2 for french
    We need to represent the 3 letter ISO lang code either in the directory structure, or suffix the page name (in our case, the struts action name)... we cannot replicate this using a parameter in the query string. I know this is odd, but that is what we are told to implement.
    Is there any robust way of implementing either option in Struts 1.1, JSP, JSTL etc...?
    Currently, we are looking at using a servlet filter to intercept the HTTP requests, parse the URL string, and extract the ISO lang value, and set locale and forward on the request.
    This poses a few problems... adding additional action mappings (page-eng... page-fra... page) to our struts-xml.config file to handle lang permuations... but the biggest issue is all the embedded html:link action values throughout our code...
    Because all our public facing URLs must comply with the rule, we need to change the html:link action to point to a different action, based on locale.
    Very inefficent, and I'm sure not industry standard best practice... we are using Tiles, and resource bundles for all our labels etc... but fall short in meeting this rule with regards to URLs and locale.
    Any advice or tips etc.. is greatly appreciated.

    The filter option sounds like a good solution. So it can receive the urls and parse them appropriately.
    You just need to take it one step further.
    Additional actionmappings in your struts-config should not be necessary.
    Filter:
    - analyses the url and sets the appropriate locale
    - adjusts the url such that the next level of the chain does not have to know anything about the locale being encoded in the url string.
    Thus your struts classes and mappings can remain unchanged
    /eng/page.do or /fra/page.do once through the filter should just look like /page.do to struts.
    That should get rid of half of your headache.
    Next the issue of generating urls.
    There are two approaches I can see here
    1 - use the filter approach again, this time with some post processing. Gather the generated HTML in a buffer, and do a find/replace on any urls generated, to put the locale encoding into them.
    2 - Customise struts to produce urls in this format. This would involve the html:link tag, and the html:form tag at the least (maybe others?). Get the source code for struts, and grab the html:link tag code. Extend that class to generate urls as you want them to be generated. I think you would need to extend the class org.apache.struts.taglib.html.LinkTag and override the protected method calculateURL. You would then have to edit/modify the struts-html tld to point the link tag at your classes rather than the standard ones.
    Option 1 is architecturally good because it gives you a well defined layer/border between having the locale encoded in the url, and not having it there. However it involves doing a find/replace on every html going out. This would catch all urls, whether generated by html:link tag or not.
    Option 2 requires customising struts for your own requirements, which may be a bit daunting, but has the advantage of generating the urls correctly without the extra overhead involved with option 1. Of course you would have to ensure that ALL urls are generated with the html:link tag.
    On reflection, I think option 1 is preferable, as both easier and quicker to implement, and doing a better separation in the architecture.
    Cheers,
    evnafets

  • Creating a button that leads back into the main Pages/States from a custom component

    Hello Y'all! isnt F.C. awesome!
    BUT... just cant get a button that leads from a custom component ive made back into the main bulk of pages and states ive created to work.
    it runs a bit like this:
    Main title page...
                            Photography...
                                                 Nature (on which theres a Custom Component which when clicked leads to...)
                                                            20 different custom component states each with different pics, linked via buttons
    from each of which id love a button that led back to Photography, exiting the custom component
    ive tried the basics:      Add interaction.. when clicked.. play transition to.. state: Photography
    but to no avail
    any ideas? im at a loss!
    thanks in advance,
    Tom

    Cross component communications are an issue in Flash Catalyst 1.0. Thankfully, in Flash Catalyst 5.5 the team addressed some of those issues.
    The only idea I have for remove the 'return' button from within the component, then it should be able to get you back to the home state.
    Or, you might be able to wait a few weeks for the new version of Flash Catalyst to ship (or you can play with the older preview release on labs.adobe.com)
    Chris

  • How to detect keystroke events on the console

    I'm currently implementing a basic menu driven system which needs to
    identify keystroke events (eg. alpha characters). I'm not too sure of the
    best way to deal with this, but can anyone suggest how one could go
    about doing this?
    Cheers,
    Richie !

    If you are refering to the ability to capture user key strokes you will need to add a listener to the class. If is a matter of is it a charater or a number then look into isDigit. Or are you trying to capture Hot-Keys? Please specify and will see if we can help - Bart

  • How to browse local link in the last version of firefox

    I use below code to open local link but it doesn't work.
    Open Firefox.
    Enter about:support to the address bar.
    Click Open Directory for Profile Directory.
    Create or open user.js and add the following lines:
    user_pref("capability.policy.policynames", "localfilelinks");
    user_pref("capability.policy.localfilelinks.sites", "file:///[[PUT SERVER NAME HERE]]";);
    user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");
    Restart Firefox

    See also:
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=995943 bug 995943] - local (file://) links don't work even when configured for company's internal system
    <i>Please do not comment in bug reports<br>https://bugzilla.mozilla.org/page.cgi?id=etiquette.html</i>

  • How to detect peak frequencies in the frequency domain?

    Hello,
    I have built a small test program consisting of two sine waves of variable frequencies, there sum is found and subsequently FFT is performed on it to find the two peak frequencies. I have been trying to somehow display the values of these two frequencies but I just can't find a way.
    I searched the forum before posting the question, many of them suggested using the Extract Multiple Tone Information VI which I tried and couldn't get any results. 
    I have attached my file. Please have a look. If you know any threads on the forum directly related to my problem, please just cite it.
    Thanks,
    LD
    Solved!
    Go to Solution.
    Attachments:
    DTMF Decoder.vi ‏168 KB

    Exactly, I just found that out too ... how silly of me.
    Thanks very much for replying
    LD

  • How to detect a click in the jList?????

    Pleaseeeee someone can help me??? I need to recognize a click in a jList or a double click and then do an action. Thanks

    RTFM
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/MouseListener.html
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/MouseAdapter.html

  • How to detect if a user has changed a record using a custom method?

    I am in the process of developing a test case application using ADF JSF and a collection of Java objects that are not populated by a database.
    Details of what I have developed so far can be found on this post:
    how to create a new record using a custom method?
    Is it possible to detect if a user has changed the value(s) of a record?
    I have set the edit page up (as described in the other post) and this works fine, but how could I tell if the user has changed something on that record. This is what I would like to do, but am not sure how to achieve it or whether it is possible....
    when the user puts a record in edit mode, take a copy of that record
    then when the user presses save or exit to navigate away from the edit page do a comparison between the original values and the potentially changed ones
    then depending on the outcome of the comparison call an appropriate action
    Thanks in advance for your help
    David

    If you just want to know if the value has changed you can put it in a while loop and use shift registers to see if the value has changed.
    Brian
    Attachments:
    Changed.vi ‏22 KB

  • How to detect the OS version and the hardware info??

    Hi all, according to the project needs, I to know how to detect OS version and the hardware info.
    The point is to detect client's OS version, weather Win98, 2000, XP, Vista.
    I have been search the information for several days already.
    But can not really found a example which returns the OS version like"Windows XP Version 2002 *****".
    And also could not find the CPU type such as"Core 2 due, or  pentium D".
    Is there anyone have done this before?
    Thanks.
    The Info I need looks like the photo below.
    Message Edited by EricLu on 07-21-2009 08:09 PM

    Well, in fact I have the VI and also read the topics as well...... The searching tag is OS info , system info......... After reading your post, now I understand the relation between the version number and the real OS version now, tks.  And another problem is, the processor type returned within the VI have only 4 type:"INTEL 386, INTEL 486, PENTIUM, Unknown". 
    It can not really return my CPU TYPE. For example the desktop I’m using now is a Pentium, D , 2.80G, 2.80G.. and it only returns type "Pentium". That's why I'm asking is there any other way to do this...... (( Please forgive me if you can not really know what I'm talking about in my first post, now I know how bad my english is.......   ))  I guess I can only try to find out the solution from the registry then... Thanks for your information and reply. 
    Message Edited by EricLu on 07-21-2009 09:25 PM
    Message Edited by EricLu on 07-21-2009 09:26 PM

  • How to detect the number of logical processors?

    Hi,
    How to detect Hyper-Thread Technology, the number of processor cores on a single package, and the number of logical processor?
    What java api can do this?
    Thanks for help!

    Who can help me?

  • How to Detect browser crash

    hi i want to know how to detect browser crash or the way to go about it , i can use any language to any api's plz specify me some solution .It would be really healpfull

    paul_123 wrote: hi i want to know how to detect browser crash ..
    Like the other person that replied, I do not quite understand why it is of interest that the end user's browser crashes. If, like they suspect, it is to do with your applet, I think the best solution is to launch the applet using webstart and forget the browser. If the end user launches a webstart based applet from the browser and the browser crashes, the applet will keep working just fine.
    Is your applet publicly available? If so, what is the URL where we can see it?

  • How to detect system date Format?

    Could some one help to find out how to detect local system is in MM/DD/YYYY or DD/MM/YYYY format?
    Thanks.

    What happens when you run this code in a country where the default format is yyyy-MM-dd?
    My advice is to either use the deault format for a given locale, or allow your app to be configured with a format.
    demo:
    import java.text.*;
    import java.util.*;
    public class RingingTheFormats {
        public static void main(String[] args) {
            Date now = new Date();
            for(Locale locale: Locale.getAvailableLocales()) {
                DateFormat fmt = DateFormat.getDateInstance(DateFormat.SHORT, locale);
                System.out.format("%20s %s%n", fmt.format(now), locale.getDisplayName());
    }What's going on in the Japanese format? What is H21?
    edit: [Heisei |http://en.wikipedia.org/wiki/Heisei] period. nvm.

  • How to detect JRE with Javascript and without any help of class file

    Please tell me how to detect JRE with using the Applet file. Is it possible to detect only through Javascript

    It is possible to detect the Sun JRE using only Javascript without any class file.
    However, it is rather complicated due to difficulties with Internet Explorer.
    http://forum.java.sun.com/thread.jspa?threadID=5177843&tstart=15
    http://www.pinlady.net/test/PluginDetect.htm

  • [Solved] Keep the last button pressed with a custom style

    Hello,
    I have a VBox with 20 buttons and I have this style applied (menu.css) (only for VBox wrapper):
    .button:focused {
        -fx-background-color: #0768A9;
        -fx-text-fill: #FFFFFF;
    But when I pressed other button outside the VBox the style disappears, because the other button get the focus.
    I'm afraid I'm taking the wrong way.
    How I can do to keep the last button pressed with a custom style? (Only for buttons containing the VBox).
    Best regards

    I created a simple method to change background colors in buttons:
        private void setSelectedBtnStyle(Button bboat) {
      // Change style oldSelectedBoat
        selectedBoat.setStyle("-fx-background-color: white;-fx-text-fill: black;");
        // oldSelectedBoat var change to newSelectedBoat
        this.selectedBoat = bboat;
      // Change style newSelectedBoat
        selectedBoat.setStyle("-fx-background-color: #0768A9;-fx-text-fill: #FFFFFF;");;
    Surely not the best solution, but it works for me.
    Best regards.

  • How do I use multiple local workspaces for the same website in VS2013?

    For quite some time I've been using VS2010 with multiple workspaces mapped from the same TFS branch to test different variants of a website in parallel. The internal web server (Cassini) seems quite happy to run multiple versions and simply maps a new port
    number for the second and subsequent instances that start up.
    We are now looking to move to VS2013, so have to use IISExpress since the 'internal' web server is no longer provided.
    How do I configure things so that if I open a single workspace, IISExpress runs against that workspace using the default port number (specified in the solution), but if I open a second instance in a different workspace it correctly uses a new port number
    and working folder. Do I need to invoke IISExpress using the command line (presumably from each workspace) and specify the relevant defaults or is there some way to enter this in the local config file for IISExpress?
    My initial attempt at editing to config file resulted in the 2nd and subsequent instance using the same physicalfolder as the first instance, presumably because the speficied site name and port number are the same!

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Based on your description, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     or IIS forums: http://forums.iis.net/ for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Add custom query to standard PLD layout

    Hi Everybody, I need to change the standard Invoice PLD report, in order to include additional data that is kept in my UDO. Is it possible to define a custom query inside PLD to retrieve data from the UDO (the UDO is linked to the Invoice) and show i

  • Missing listener-threads attribute in orion-ejb-jar.xml !!

    Hi All, I was trying to do some performance tuning as given in BPEL admin guide. For one of the BPEL property namely 'dspMaxThreads', guide says "Sum of dspMaxThreads of ALL domains should be <= the number of mdb listener threads on the workerbean".

  • FRIKKIN' ERROR -8! VIDEO/VOICE CHAT IS USELESS!!!!

    Why won't it work? At least when I used video chat, it'd work ever 8th try. But now, it doesn't work at all! It always says "There's been an error" or something like that.... I did the whole change the quicktime to 1.5 mbps thing, turned off my firew

  • Concurrent Program Takes Long Time to complete

    Hi every body, Normally concurrent i will takes 5 min time to complete.But some time same concurrent program takes more than 30 min's to complete. How to troubleshoot in that senario. Thanks in Advance With Regards Gogineni'S Edited by: Gogineni Sure

  • Creating a Matte - I need your help!

    So i found this tutorial on how to create some cool things in Ai. I'm fairly new to this program I've been using it for about a year. I don't have any formal training and I can't get passed the first step. If anyone can clarify this step for me furth