Using TimeZones in a GUI

I'm wondering if anybody out there has had to create a form or other type page where a user had to select a timezone. If you do a TimeZone.getAvailableIDs() you get a couple hundred items which is more than what I'd like to have in my list box of choices. Any input would help,
Thanks

I'm wondering if anybody out there has had to create a
form or other type page where a user had to select a
timezone. If you do a TimeZone.getAvailableIDs() you
get a couple hundred items which is more than what I'd
like to have in my list box of choices. Any input
would help,Of course those are all valid timezones.
So if want less than that you will have to provide a customized version that is specific to your application.

Similar Messages

  • Using the HTML SAP GUI inside the Enterprise Portal?

    Hello everyone
    In our company we plan to set up the SAP Enterprise Portal (NetWeaver 7.0). The first application we want to provide inside the portal is the SAP GUI that connects to our SAP ERP 2005 system via single sign on. Therefor two different approaches exist:
    1: Using the standard SAP GUI inside a portal iView. In this case every client pc needs the SAP GUI installed.
    2: Using the HTML SAP GUI. In this case we have to set up the integrated ITS in our SAP ERP system.
    Now I have some questions about the second approach. Is the functionality of the HTML GUI equal to the functionality of the standard GUI? If not, what are the restrictions? How high is the additional load on the network and SAP ERP system caused by the HTML GUI? Would you recommend this approach for a system with more than thousand SAP users?

    Hi Marc,
    At least if you consider using webgui, you should test the transactions properly as there are some issues for example with scandinavian characters and lines visible in lists of search helps.
    Also you might want to consider the limitations of the screen resolutions and space which the portal framwork already takes from the gui. This of course is a topic for both HTML/SAP GUI's.
    Kind regards,
    Ville

  • Issue in using timezone setting

    We have a java app. The data is stored in an Oracle db .The time is stored in GMt.
    We set the timezone to GMT using
    TimeZone.setDefault(tzGMT)
    So when the time is displayed .It gets displayed in local time. There is no problem with this.
    But other applications sharing the same JVM has a problem.
    I would like to know how to correct this problem  ?
    Thanks in advance
    Regards,
    Zaif

    > The time is stored in GMt.
    I question how that is stated.
    Oracle, not your app, has a timezone.  Presumably you mean that Oracle is set to use GMT (or more likely UMT).
    And then you use the appropriate JDBC/db framework code to store timestamps.  And specifically there are no 'tricks' using strings to store timestamp\date values.
    > TimeZone.setDefault(tzGMT)
    That has nothing to do with storage in Oracle.  Java keeps timestamps in UMT always.  That code has nothing to do with that.  So at best it could have an impact on how your parse incoming data in your application or how you display it.  But then it would have nothing to do with Oracle and, presumably, it would be obvious that the wrong value is stored in Oracle itself.
    > But other applications sharing the same JVM has a problem.
    What do you mean by "application"?  If you are using a JEE server like tomcat\jboss then I wouldn't suppose that setting the timezone in one application would impact another.
    However if you mean that you are running an 'application' using a different process then that application would need to do something with the timezone itself.

  • Error "Please use the Latest SAP GUI version" in service admin

    Hello everyone,
    I have successfully installed ITS 6.20 & We are using ECC 6.0, But when I try to logon to the Admin service. I gives an error message saying <b>"Please use the Latest SAP GUI version"</b>.Please help me solve this problem.
    Regards
    Subramanya

    Hi,
    several instances of ITS 6.20 have to be mapped either to
    a) different TCP/IP ports or
    b) if the same TCP/IP port should be used they have to have an individual hostname.
    These settings have to be defined correctly in ItsRegistryWGATE.xml.
    Please have a look at this thread for further information:
    Re: How to register agates with the ADMIN instance
    You could also search within this forum for the keyword "ItsRegistryWGATE.xml" or do a SAP Notes search to get more information.
    Also please read the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/44/211cc811f21a74e10000000a1553f6/frameset.htm">ITS Administrator's Guide</a>
    Best regards
    Henning

  • Implement Screenflow using PAPI in Custom GUI

    Hi
    We are trying to implement our custon GUI (.NET) using the PAPI api , we are able to retrieve the Views /Presentations / Inbox and other view instances . However I want some suggestions regarding how to implement the Screen flows /Process Work Items in the custom GUI using the PAPI call . Is there any API's which are already available to do these .
    I see that the API has options like runActivity etc within the session , am I on the right track (however I am unclear how to achieve the screenflow in API mode)
    Thanks

    Probably is not what you want but have you consider implement the interactive activities as external and build them in .NET?.
    I think there are other threads in this forum and product documentation that explain how you implement an interactive activity as external but let you explain in few words.
    1.- You create an external resource of type server configuration where you will have your .NET external application. The engine when executing this activity is going to redirect yo to that url adding the user, the activity id and the instance id.
    2.- You implement the interactive activity as external, main task external.
    3.- In the bottom part you put the url already defined in step 1.
    4.- You define a prepare method. This is the method that you have to execute once the execution has been redirected to your .NET external application, you have the instanceid and then you can perform the prepare with PAPIWS. With the prepare you interchange information with the engine, you can define out arguments that you take in your application and also the engine blocks that instance to prevent other user execute the same activity to the same instance. Once yo have the control of the execution in your external application you can show the process data in your .NET client, modify it...
    5.- You define a commit method, this is the method that you have to invoke, again with PAPIWS from your external application once you have finished the activity (the activity can be a .NET screenflow in your case). Performing the commit method you pass information back to the engine and the engine unblocks the instance execution.
    I think that if you want to have the interactives built in .NET this is the recommended approach.
    HTH

  • Using text in a GUI without using .swing classes

    In a Java application, is there any way to create a text object that can be positioned in a GUI like an ImageIcon (using a class from the standard Java API)? For example, when using ImageIcon, you feed the x and y-coordinates, whereas with .swing, you'd have to create a new panel, position the panel, and re-position the panel using BorderLayout.(direction).
    Ex. (with ImageIcon, you'd place it like so):
    //construct ImageIcon w/ URL
    ImageIcon myImage = new ImageIcon(new URL("http://..."));
    //x and y are pixels to the right and to the bottom from the top left corner
    myImage.paintIcon( (Component), (Graphics), x, y);
    //I'm looking for one that does the same, like this (without using an image, preferrably), TextMessage is what the class might be:
    TextMessage myText = new TextMessage("Here is some string to print out");
    myText.printText( (Component), (Graphics), x, y)

    or you can paint a string, like this
    public void paint(Graphics g) {
         super.paint(g);
         g.drawString("Hello World!", x,y);  // replace x, y with your own coordinates
    }hope that helps

  • Should I use an IDE for GUI development?

    I have never wrote a GUI before and am wondering if I should use an IDE such as Glade (or something else) or if I should write everything by hand?  I want to develop with GTK.  What do you guys suggest? 
    EDIT:
    Also the reason I was thinking of using GTK was because I am making a front end for a project I wrote in C.  From looking around it seems people like QT over GTK.  Is it difficult to use QT (C++) with C code?
    Thanks
    Last edited by pavekt (2010-06-11 13:07:18)

    A lot of informal polls I've seen indicate coding GUIs by hand is more common than using a designer.  That said, there is nothing "wrong" with using a designer and they can be extremely helpful in some projects.
    To put it simply--try both and find what works best for you and your project. That is what you should use.
    Same goes for using an IDE.  If Vim gives you everything you want, great.  If you love Eclipse and use it for everything, well that's great too.  Choice FTW!!
    No one can make these decisions for you (except your boss... )
    Last edited by xenobrain (2010-06-11 20:08:10)

  • Can't use bitmap font in GUI apps

    I like the look of bitmap fonts and I used to be able to use them in GUI apps such as GTK apps.
    For the last few months whenever I try to start GUI app with a bitmap font selected the application crashes. Always with the same error message about cairo-scaled-font.
    For example, here is my terminal output when I try to start dwb using the bitmap font Lemon as my default font:
    dwb: cairo-scaled-font.c:459: _cairo_scaled_glyph_page_destroy: Assertion '!scaled_font->cache_frozen' failed.
    This problem is not limited to just dwb but any GUI app when I try to use any bitmap font.
    I've tried googling the problem and the only advice I could find was to run fc-cache -fv, which didn't fix the issue.
    Any help would be appreciated.

    I normally use BSPWM as my window manager, and I have just discovered that If I try to start dwb in Gnome it actually works!
    This isn't really a solution for me because I spend most of my time in BSPWM, but it's interesting.

  • How to create a form which uses graphical user interfaces(GUI) features.

    i'm working as a administrator in a private college..i have some problem..
    how to create a student registration form that uses most of the graphical user interfaces(GUI) features. The form should consist of the following features:- Label, Button, Check box, Radio Button, List, Panel and Layout. The GUI features must be functional.
    how to write that programme in JAVA ?
    please help me to get the code..

    So are you saying that this person is legitamately asking for someone to write up this student registration form, for use in some sort of production student registration application? Ok, if so, I apologize for jumping to the wrong conclusion. But, to me it sounds like a student hit the "Using Swing" chapter in the text and was given the following assignment:
    For this assignment you are working as an administrator in a private college and you need to solve the following problem:
    You need to create a student registration form that uses most of the graphical user interfaces(GUI) features. The form should consist of the following features:- Label, Button, Check box, Radio Button, List, Panel and Layout. The GUI features must be functional.
    You have two weeks.
    Now, I suppose that I could be wrong, if so, I apologize and go with the previous poster that said ask a comp sci student to do this for you.
    Lee

  • Using ActiveX controls in GUI application, which uses TestStand API

    When using ActiveX controls in TestStand Operator Interface GUI,
    CVI reports User Interface Library error no.-143:
    "ActiveX control Error" on attempt to load panel, which contains ActiveX controls.
    The same code, which takes care of user interface, but not references
    TestStand ActiveX API (i.e. not creates TS Engine), works properly.
    What's wrong?

    Hello again Misha,
    Sorry about my previous answer, I overlooked the fact that you were saying this error was caused by placing ActiveX controls in your Operator Interface (OI) GUI (as my example shows I thought the problem was with GUIs displayed from step code modules).
    Nevertheless, the problem is still being caused by the same issue, and is solved in a similar fashion. The source for the CVI OI initializes the TestStand engine before it loads/displays the UI panels. The calls to initialize the engine seem to be CoInitializing the main GUI thread as multithreaded apartment (MTA) mode whereas you will need it to be single threaded apartment (STA) mode in order for the ActiveX control container to work properly. The TestStand engine is compatible with either modes, but only one can be in place at a given time. If we CoInitialize the OI's main GUI thread as STA this will solve the problem (the subsequent attempts of setting it to MTA will fail, but again this is ok since the engine is compatible with STA).
    In order to perform this functionality you will need to put a call to CoInitializeEx in the main function of the CVI OI source (this will also require that you #include the "windows.h" file at the top of the source also). Here is what the main function in your main.c file for the CVI OI will look like once you have done this:
    int main(int argc, char **argv)
    int retval = -1;
    sArgc = argc;
    sArgv = argv;
    if(InitCVIRTE(0, argv, 0) == 0) /* Initialize CVI libraries */
    goto Done; /* out of memory */
    // Intialize main GUI thread as STA to prevent other attempt to make it
    // MTA, which will not allow ActiveX controls to be used.
    CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
    /* initialize the test engine */
    if(!InitEngine())
    goto Done;
    if(!InitErrorDialogStrings())
    goto Done;
    if(!InStandaloneExecutable() && !DisplayRunningInEnvironmentWarning())
    goto Done; // get out now
    if(!ProcessPreLoginCmdlineArgs())
    goto Done;
    if(!CfgFile_Load())
    goto Done;
    if(!CfgFile_RestoreOptionSettings())
    goto Done;
    if(LoadGUIPanels() < 0)
    goto Done;
    if(!InitFileQuickList())
    goto Done;
    /* set initial gui state */
    if(!InitGUI())
    goto Done;
    RunUserInterface();
    retval = 0; /* normal exist status */
    Done:
    /* cleanup */
    SeqFileList_DeleteAllSequenceFileRecords();
    ExeList_DeleteAllRecords();
    IconList_DeleteIconList();
    SaveAndCleanupFileQuickList();
    CfgFile_SaveOptionSettings();
    CfgFile_WriteAndCleanupForExit();
    AdaptList_DeleteAdapterList();
    DestroyToolMenus();
    CloseEngine();
    FreeErrorDialogStrings();
    return retval;
    Note: Remember to #include "windows.h" at the very top of the main.c file and to include ole32.lib in your project file list in order to link in the definition for CoInitializeEx.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • Using Xcode for non-gui C++

    I originally posted this in the wrong place, and I was told to post in here.
    I am learning standard c++ in school, and we're programming with Microsoft visual Studio on PCs. I wanted to work on my projects at home, but I don't know how to create and build non-gui C++ projects. Anyone know?

    we're programming with Microsoft visual Studio on PCs
    If you want something like "Visual Studio" on Mac, then you can use the "Xcode" application in /Developer/Applications/. (I assume you have installed Xcode Tools, which is in your Leopard DVD).
    Start Xcode, and select "New Project..." from the "File" menu. In the Assistant dialog, open "Command Line Utility" and select "C++ Tool". Enter the name of the project and where to save it, and push Finish. Double click on "main.cpp", edit it, save (cmd-S), and push "Build" or "Build and Run". Is this what you want?
    Of course the project file is not comatible with Visual Studio, but you can copy the source files (*.cpp and *.h) to Windows PCs.
    If you prefer to run C++ compiler from the command line (rather than to use Xcode application), then just open Terminal.app (in /Applications/Utilities/), cd to the directory where the source files are, and try typing "g++ xxxx.cpp".

  • How can i get a file header using this method cl_gui_frontend_services= gui

    Hi Experts,
    How can i get a file header using this method cl_gui_frontend_services=>gui_download
    Thanks
    Basu

    Hi,
    You can use the FM - GUI_DOWNLOAD to specify the headers. It can be done in the following manner -
    TYPES: BEGIN OF ty_head, "Structure for header
                 h(10) TYPE c,
                 END OF ty_head.
    DATA: it_head  TYPE TABLE OF ty_head WITH HEADER LINE.
    "Adding header details
    it_head-h = 'Field1'.
    APPEND it_head.
    it_head-h = 'Field2'.
    APPEND it_head.
    it_head-h = 'Field3'.
    APPEND it_head.
    it_head-h = 'Field4'.
    APPEND it_head.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = p_file
       filetype                        = 'ASC'
       write_field_separator           = 'X'
       header                          = '00'  "<= note this
      TABLES
        data_tab                        = it_tab
       fieldnames                      = it_head[] "<= Pass your header table here
    EXCEPTIONS
       OTHERS                          = 1.
    Hope this helps.
    Regards,
    Himanshu

  • Transaction VL10, SAP ECC 6.0 (using the ITS interface & Gui)

    I am trying to run VL10 in the ITS interface but i keep getting a message that the maximum number of session exceeded. But in the Gui version the SAPLPD box pops up and tries to print something to my default windows printer. (ITS does not like SAPLPD)
    Does anyone know how to switch of the printing from this transaction???
    Look forward to your replies...................

    applying an sap note to sort out addition sessions

  • How to use a Flash/Flex GUI for DW Extensions

    I am creating a DW extension for an image and flash gallery.
    The extension will be accessible from the Insert menu. Once
    clicked, it would present me with a Flash/Flex form to
    search/browse for images/swf by file name or tags. Once I select an
    image/swf and clicked OK, it would insert into my webpage the
    absolute URL associated with the image/swf. The problem is I am not
    aware of how to create an extension with a Flash/Flex GUI.
    Any suggestions would be greatly appreciated.
    Thanks,
    srtr4k

    You should check out the Flash panels and Dialogs section of
    the Dreamweaver API reference. Here is a link.
    http://help.adobe.com/en_US/Dreamweaver/10.0_API_Ref/WS4FB61645-9C4E-4667-B6D4-0E5F553BEF4 F.html
    This gives you direct access to Flash panels and dialogs from
    the Dreamweaver Javascript API. Adobe is working on a document for
    how to create CSXS based Flash Extensions. CSXS based extensions
    only work as a floating panel that surface themselves in the
    Windows, Extensions menu.
    -Scott Richards
    Dreamweaver Team

  • ORA-00939: too many arguments for function using Timezones in xquery

    Running on Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    CREATE TABLE "ORT"."SAMPLE"
       ( "THEDATE" DATE,
    "THETIMESTAMP" TIMESTAMP (6),
    "STARTTIMESTAMP" TIMESTAMP (6) WITH LOCAL TIME ZONE,
    "ENDTIMESTAMP" TIMESTAMP (6) WITH LOCAL TIME ZONE
    REM INSERTING into SAMPLE
    SET DEFINE OFF;
    Insert into SAMPLE (THEDATE,THETIMESTAMP,STARTTIMESTAMP,ENDTIMESTAMP) values (to_date('13-06-10 14:07:52','RR-MM-DD HH24:MI:SS'),to_timestamp('13-06-19 14:27:52.000000000','RR-MM-DD HH24:MI:SS.FF'),to_timestamp('13-06-19 10:34:04.586000000','RR-MM-DD HH24:MI:SS.FF'),to_timestamp('13-06-19 15:05:38.805000000','RR-MM-DD HH24:MI:SS.FF'));
    following query raises ora-00939
    SELECT XMLQUERY('for $v in fn:collection("oradb:/ORT/SAMPLE")
    let $date1 := $v/ROW/STARTTIMESTAMP/text()
    let $date2 := $v/ROW/ENDTIMESTAMP/text()
    return if ($date1 < $date2) then (concat($date1," date is less than ", $date2)) else (concat($date1," date is greater than ", $date2)) ' returning content) from dual;
    ORA-00939: too many arguments for function
    00939. 00000 -  "too many arguments for function"
    *Cause: 
    *Action:
    any ideas?

    Hi Odie,
    Not too familiar with XQuery rewrite, but i suspect by providing this hint, Oracle cannot optimize the query whatsoever.... tried this hint in my actual query and basically hangs.... I will attempt at opening an SR with Oracle...
    the other option i'm looking at is checking the date ranges outside of xquery, and using a mix of xmltable, xmlexists and the SQL XML functions to reconstruct my xml.

Maybe you are looking for

  • HTTP XML Data Source authentication error

    Morning All, I have just started playing around with using XML as a data source for my CR4Ev2.0.1 reports. I have managed to create the local inline reports and change their data source loacation with no current issues. I am now trying to create the

  • I must have made some change to my Pages preferences.

    I am working on a book using Pages (iWork 09).  I have had no problem with opening two Pages documents I have created and have then both display on the desktop.  I readjust their sizes and they sit there side by side.  I don't remember making any cha

  • Creating Apps - What do I need?

    I am keen to learn how to creates apps for Iphone/Ipad. Both of the apps I have in mind need to access a database. There's load of different products out there and I would really appreciate some expert guidance. I am computer literate and formally ha

  • Loading external jpegs

    I have a page that loads external jpegs... however it seems totake longer to retireve and display/load the images going through flash than it does if i were to display them as html...why is this... or am I just wrong. thanks J.

  • Song "Title" could not be used because the original file could not be found

    I have been happily running iTunes on my Compaq Pressario 6000 running Windows XP for about 8 months, until I downloaded about 9 new songs from the iTunes store last weekend. The whole library is shown, but anything other than the 9 new downloads ret