Set "today" on DateChooser control

Hi,
I am wondering if there is a way to set the "today" date in DateChooser component. From looking at the source of DateChooser and CalendarLayout controls, "today" is always set to the current date in machine's timezone and it does not seem like I would have any control over setting today's date. I need to be able to set today to a date in a timezone specified in a user-profile, for instance,.
thanks in advance
Tejas

Hi ,
You can set selected any Date in DateChooser control using the selectedDate property of the DateChooser control...
As you said its true that "today" is always set to the current date in machine's timezone and you does have a way to control over setting today's date.
Check out the code below ...you can see that in the setSelectedDate() function I am setting the DateChooser control to date 2nd December 2009...
You can give any values to the date you want the DateChooser to select...by using the selectedDate property...
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="setSelectedDate();">
    <mx:Script>
        <![CDATA[
            private function setSelectedDate():void {
                dateChooser.selectedDate = new Date(2009,11,02);
        ]]>
    </mx:Script>
    <mx:DateFormatter id="df"/>
    <mx:Panel title="Set Selected Date..." height="75%" width="75%"
        paddingTop="10" paddingLeft="10" paddingRight="10">
          <mx:VBox>
              <mx:Label text="Simple DateChooser control."/>
              <mx:DateChooser id="dateChooser" yearNavigationEnabled="true"/>
          </mx:VBox>       
    </mx:Panel>   
</mx:Application>
Hope this is what you required..
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari

Similar Messages

  • How do I set up timed access control for a time past midnight

    I would like to set up timed access control for a number of my devices that would stretch past midnight...   An open network from 6AM to 2AM - effectively only blocking access from 2AM tp 6AM in the morning....
    Any notion on how to do this?  the timed factily does not like the setting to enable 6A to 2A, says the times are invalid. 
    Setting up timed access from 6AM to 11:59P, then doing another from 12A to 2A causes a service "hiccup" of 1 Minute.

    Set up each device as follows:
    Everyday........Between.......6:00 AM and 11:59 PM
    Add a second rule for each device that will state....
    Everyday.....Between.......12:00 AM and 2:00 AM
    You might think that there would be a one minute break between 11:59 PM and 12:00 AM, but that will not be the case, at least on every AirPort that I have ever programmed..  Reason.....11:59 is really 11:59:59:59 turning off at 12:00 AM.  But, you have a second rule to allow access at 12:00 AM, so the AirPort will be "on" at the same time the first rule ends, so there will be no break.
    If you really want the second rule to turn the AirPort "off" at 2:00 AM.......then set that time for 1:59 AM. If you set the rule for 2:00 AM, then AirPort will really turn off at 2:01 AM.

  • How to change a setting in the Java Control Panel with command line

    Hi,
    I am trying to figure out how to change a setting in the Java Control Panel with command line or with a script. I want to enable "Use SSL 2.0 compatible ClientHello format"
    I can't seem to find any documentation on how to change settings in the Java Control Panel via the command line
    Edited by: 897133 on Nov 14, 2011 7:15 AM

    OK figured it out. This is for the next person seeking the same solution.
    When you click on the Java Control Panel (found in the Control panel) in any version of Windows, it first looks for a System Wide Java Configuration (found here: C:\Windows\Sun\Java\Deployment). At this point you must be wondering why you don't have this folder (C:\Windows\Sun\Java\Deployment) or why its empty. Well, for an enterprise environment, you have to create it and place something in it - it doesn't exist by default. So you'll need a script (I used Autoit) to create the directory structure and place the the two files into it. The two files are "deployment.properties" and "deployment.config".
    Example: When you click on the Java Control Panel it first checks to see if this directory exists (C:\Windows\Sun\Java\Deployment) and then checks if there is a "deployment.config". If there is one it opens it and reads it. If it doesn't exist, Java creates user settings found here C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7.
    __deployment.config__
    It should look like this inside:
    *#deployment.config*
    *#Mon Nov 14 13:06:38 AST 2011*
    *# The First line below specifies if this config is mandatory which is simple enough*
    *# The second line just tells Java where to the properties of your Java Configuration*
    *# NOTE: These java settings will be applied to each user file and will overwrite existing ones*
    deployment.system.config.mandatory=True
    deployment.system.config=file\:C\:/WINDOWS/Sun/Java/Deployment/deployment.properties
    If you look in C:\Users\USERNAME\AppData\LocalLow\Sun\Java\Deployment on Windows 7 for example you will find "deployment.properties". You can use this as your default example and add your settings to it.
    How?
    Easy. If you want to add *"Use SSL 2.0 compatible ClientHello format"*
    Add this line:
    deployment.security.SSLv2Hello=true
    Maybe you want to disable Java update (which is a big problem for enterprises)
    Add these lines:
    deployment.javaws.autodownload=NEVER
    deployment.javaws.autodownload.locked=
    Below is a basic AutoIt script you could use (It compiles the files into the executable. When you compile the script the two Java files must be in the directory you specify in the FileInstall line, which can be anything you choose. It will also create your directory structure):
    #NoTrayIcon
    #RequireAdmin
    #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
    #AutoIt3Wrapper_UseX64=n
    #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
    Func _JavaConfig()
         $ConfigFile_1 = @TempDir & "\deployment.properties"
         $ConfigFile_2 = @TempDir & "\deployment.config"
         FileInstall ("D:\My Documents\Autoit\Java config\deployment.properties", $ConfigFile_1)
    FileInstall ("D:\My Documents\Autoit\Java config\deployment.config", $ConfigFile_2)
         FileCopy($ConfigFile_1, @WindowsDir & "\Sun\Java\Deployment\", 9)
         FileCopy($ConfigFile_2, @WindowsDir & "\Sun\Java\Deployment\", 9)
         Sleep(10000)
         FileDelete(@TempDir & "\deployment.properties")
         FileDelete(@TempDir & "\deployment.config")
    EndFunc
    _JavaConfig()
    Now if you have SCUP and have setup Self Cert for your organization, you just need to create a SCUP update for JRE.
    Edited by: 897133 on Nov 16, 2011 4:53 AM

  • ADF Faces: How do I set values for input controls in an af:table

    Use case: user enters master/detail information into an input form using an af:table for the desired number of detail rows.
    I have an ADF Faces input form with master level input controls, and an af:table (bound to a backing bean CoreTable) for the detail data set.
    The input controls are value bound to updateable view objects built from entity objects, with the appropriate view links providing master/detail iterators.
    Once the user has entered the master keys (via inputTexts, and selectOneChoices), I create a row in the detail VO, thus creating a visible blank row in the af:table.
    The user then completes the key for the detail row (in the af:table) by selecting a value in a selectOneChoice (in a af:column) with autoSubmit on and a valueChangeListener that sets the VO row attribute with the new value.
    The user then continues to enter into the remaining inputTexts and selectOneChoices in the af:columns until all values have been entered.
    I do not have autoSubmit on for any input controls in the af:columns other than the key, for performance improvement.
    The user can then use a command button (which has an action method) to create another row in the af:table.
    But, (in the action method) I need to set the values for the 1st detail VO row attributes, from the input controls, before creating another row.
    The input controls are bound to backing bean CoreInputText and CoreSelectOneChoice objects, and they have not set their values at this point, even though I have partialSubmit on for the "New Row" command button.
    I do not value bind the input controls in the af:columns to the backing bean objects, because we need to display data for all rows entered into the af:table.
    Any advice on the best way to perform this operation would be very appreciated!!!!

    Thanks for the reply Steve!!
    Yes, I followed the techniques in Screencast#7, and it works great in my edit page.
    But I am having problems with my input form.
    I actually have master/detail/detail relationship for which I am creating an input form.
    I created the input form as a copy of the edit form, and am making revisions as necessary.
    I created new view objects for the input form (from my three entity objects), which have the "Tuning" set to retrieve "No Rows (i.e. used only for inserting new rows)"
    I added an invokeAction that binds the "CreateInsert" action on the master iterator, so when the page is first displayed, the master level controls are available for data entry (as in 13.6.2 in the Developers Guide): but the first level detail controls are not rendered, and the af:table (for the second level detail) is rendered but with no rows.
    Once the user enters key values for the master (a three part key), I manually create a first level detail row by executing the "CreateInsert" action binding for the first level detail iterator.
    Continuing on, the user then enters a key value for the first level detail I manually create a second level detail row using it's "CreateInsert" action binding.
    Now the user has a form with all master and first level detail controls completed and one empty row in the af:table for it's first entry.
    The key column in the af:table has autoSubmit on, and an value change listener. That listener uses it's getNewValue() to set the key value ("locationCode" in this case) using
    setLocationCode from the ViewRowImpl. Here is that value change listener:
    public void locationChanged(ValueChangeEvent event) {
    if (null != event.getNewValue()) {
    LocObsCreateViewRowImpl locCreateRow = (LocObsCreateViewRowImpl)appMod.findViewObject("LocObsCreateView").getCurrentRow();
    if (null == locCreateRow.getLocationCode()) {
    locCreateRow.setLocationCode(event.getNewValue().toString());
    Now comes my problem: once they have entered the values in the remaining columns, they can use a command button to create another row in the 2nd detail iterator, thus creating another visible empty row in the af:table. But the values from the first row (other than the key column) are not assigned to the row in the collection and I can't figure out how to set values in the collection's row.
    I imagine I'm missing something using bindings and the Request Processing Lifecycle, and after reading this I can see how much manual work is going on.
    The users have specified the need to have all information available on one page, so I've designed it so they can insert and iterate through the first level detail collection.
    They have also asked to not use the mouse; they are looking for a "heads-down-data-entry" system.
    Again, I really appreciate any advice you could give.
    Jeffrey

  • When I set up the cloud control panel on my pc it will not allow me to ck the option for callandor and contacts to use that feature. Therefor  my ipad callendar will not sync with the cloud

    When i set up the cloud controll panal on my pc it will not allow me to ck the box for contacts, callandor etc. There for my Ipad will not sync my callendos or contacts with the cloud

    I think you are mistaken, your ipad has no problem to sync with the cloud. Your pc however does, since you can't check the check box. So why do not you try to concentrate on that part of problem and find out why. For starters, check what happens if you disable your antivirus/firewall on your computer/network and check box again. Describe what you see and messages you get. Good luck.

  • Showing 2 months in a DateChooser control?

    I am working on an e-reservation application and need to be
    able to span 2 months with a selection. The industry standard way
    of being able to do this is to make 2 months at a time visible to
    the user. See
    https://reservations.ihotelier.com/istay.cfm?hotelid=6921 for an
    example of how other developers have done it.
    My question is , is there any possible way to do this with
    the DateChooser control or do i need to write something from
    scratch in as3?
    Thanks!

    The DateChooser does not allow showing more than one month.
    Your example was custom-coded.

  • How to set value for Dropdown control using Querystring filter wepart

    Hi,
    I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
    I am able to set value for textbox control using Query String Filer web part.
    But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
    How to load the values in dropdown control on form load and set a value using Query String filter webpart?
    Thanks,
    dhijit

    Hi,
    According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
    To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
    Now it would be filter by the value you have set.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How do I set up different hardware controls for different patches in mainstage?

    I'm using Mainstage 3.0.4 and a Novation Impulse.
    I created a concert, with the drawbar organ as my first and most important patch. I assigned the hardware controls on the Novation exactly how I wanted them, with the sliders controlling the drawbars, and the rotary controls changing the distortion, reverb, etc. It was perfect. I was happy.
    Then I added a new instrument (a new patch, not a new channel or anything like that), a Wurlitzer. Once again I assigned my hardware controllers as I wanted them, and was happy with that.
    When I saved the concert, and went back to my organ patch, my settings didn't stay the same, but they still work for the Wurli.
    My question is this - do I have to have a new concert for each instrument patch I want to use, if I need to assign different controllers for each patch? This would be stupid! If not, what I am doing wrong, that I can only set up one set of hardware controls per concert, instead of per patch?
    Thank you in advance for the help!!!

    Hi
    matthewabennett wrote:
    CCTM, thank you! I have a small idea what you mean, but I still can't implement it :-)
    You have some fundamental choices:
    A) If you want to see Drawbar Controls for organ Patches, and then have other types ( knobs/sliders etc) for other Patches, you could simply make all the screen controls you need, then assign and map them as required.
    B) you could simply use drawbar screen controls only and remap them to other parameters for non-organ patches
    C) You could use Smart Controls ( which will update their appearance in a 'smart' way
    D) You could make your own Drawbar type controls using standard faders
    The basic process in a 2 part thing:
    Assign incoming MIDI messages from your controller to Screen Controls in Layout mode. This is global for concert. Per patch ( or Set or globally for the Concert) you then map the Screen Controls to parameters for each patch as needed.
    Smart Control MIDI assignment is done in the Assignments and Mappings pane
    CCT

  • How to set cursor in table control?

    I have a table control (Screen 300) to display invoice number and amount. For some checks we have around 200 invoices to be displayed.  When user enters the invoice number in invoice text box and click on OK, it should highlight the invoice number and amount row or set the cursor position.
    I have another problem.
    Screen 300 is being called from Screen 200. When the user clicks on OK in 300, 300 is getting closed. Acutally it should be displayed with Cusor position or highlighted row.
    I appreaciate your help ... Thanks

    I believe that you can use the SET CURSOR statement to do the first part of your requirement.  Something like this should work:
    SET CURSOR FIELD w_field LINE w_line.
    Here's the info from SAP help:
    Effect
    : The cursor is positioned on the screen element whose name is contained in upper case in field. The data object field must be character-type and flat. The screen layout or a table control is scrolled in the display so that the screen element on which the cursor is positioned is visible. If the specified screen element is not found, the statement is ignored.
    If the specified screen element is part of a table control or a step loop, the line of the table control or group of the step loop in which the cursor is positioned on the specified screen element must be specified using the addition LINE. For the data object line, the type i is expected. If there is no line or group for the value of line, or the addition LINE is not specified, the statement is ignored. The statement is also ignored if the addition LINE is specified and the screen element is not part of a table control or step loop.
    I hope this helps.
    - April King

  • How to set up validations in controlling

    Hi All,
    I have an issue.
    I have set up planning for all cost elements and internal orders. While posting actual amounts greater than planned amount. The system should pop up an error messgae.
    How to set up validation for this issue.
    Regards
    Arun

    Hi Arun,
    As far as the internal order goes, you can set up Budgets and activate 'availability control' which would trigger an 'eeror message' when it exceeds the budget amount. Path: SPRO-Controlling-Internal Order-Budger and Availability Control
    The same facility is not available in Cost center budget.
    You may have to write an exit or validations.
    Regards,
    Suraj

  • Script to set today's date in title of a Mail new message

    I have a script to send a mail to people. I want the subject to state today’s date, like +Monday 1 September 2009+
    I used different variations but can not get it to display it.
    I have
    set theSubject to ((do shell script "date 'string of (current date)'") & (" – abcdef"))
    How do I do this?

    This will give you today's date in the format you specified:
    set myDateString to (weekday of (current date) as text) & " " & ((day of (current date)) as text) & " " & ((month of (current date)) as text) & " " & ((year of (current date)) as text)

  • Setting focus outside a control when no other control can get the focus

    Hello
    I'd like to know if there is a way to setfocus outside of a control even if there is no other control to receive the focus.
    I have an editbox that has the focus (active) and I want to set visible to false to this control., but I cannot since it has the focus and there is no other controls that can get the focus.
    As a temporary measure I've added another editbox that I moved outside of the visible interface to which I've moved the focus. But I would like to know the proper way to do this.
    Thank you for your help.

    I think you are asking how to bring a windows form to the front.
    If not I apologize...
    The way I have done this:
    1. I created a new thread.
    2. I maxmized the window
    I set the following properties:
    ShowInTaskbar = False
    TopMost = True
    Focus()
    BringToFront()
    In all my testing I needed the window to be maximized, if it wasn't B1 stayed on top.

  • Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL

    Hi, I have a problem with C_TEXTEDIT_CONTROL interface.
    I have to maintain a Function Module that displays a TEXT EDIT CONTROL in a popup. One parameter of this FM is MAX_NUMBER_CHARS that is passed to the control in the constructor method.
    This parameter pretends to lock the maximum quantity of characters written in the popup. It’s set to 255 characters.
    At first, when user writes his commentary with 255 ch (yeah, he writes till the end) everything works ok; but after that, when he tries to visualize his commentary, nothing appears in the control, although the commentary is passed correctly to the control via set_text_as_r3table method.
    I have done some tests, and sawn in Debugger Time that if I change the parameter MAX_NUMBER_CHARS to 265 when the commentary length is 255, the control displays the text.
    Does anyone know what happens or what I’m doing wrong?

    Yeah, that's it.
    Here is the code:
    EDITOR is declared as follows
    data: editor           type ref to c_textedit_control .
    Here I'm trying to create the Obj. and gv_length is set to 255.
        create object editor
          exporting
             repid            = repid
             dynnr            = '0100'
             dynpro_container = 'TEXTEDITOR1'
             max_number_chars = gv_length
          exceptions
              others = 1.
    In the next code, I pretend to pass the TEXT written by user.
        call method editor->set_text_as_r3table
          exporting
            table           = mytable
          exceptions
            error_dp        = 1
            error_dp_create = 2
            others          = 3
    There are more lines of code, but they are not relevant to this problem.
    At first, the user can write a comment with 255 characters, but I'm not able to show this same comment although mytable is fulfilled.
    Thx

  • Set cursor on table control not working

    Hi,
      I have a screen with delivery number field on top with Get Data Button next to it. Once I click on Get Data, I want to get all the handling units and show them in a table control below and show the first line of that table control selected by default.
      I m able to get the data but the cursor always goes back to the delivery number field.
    I have the following code in PBO
    Status & title for the screen
      MODULE status_0100.
    And in the module, the last lines are as follows
      if sy-ucomm = 'GET'.
        s_vepo-sel = c_x.
        set cursor field 'TABLE1' line 1. "TABLE1 is name of the table control in screen
                                                      "painter
      endif.
    I debugged and saw that the line " set cursor field 'TABLE1' line 1." is indeed the last line which gets executed but still the cursor goes back to delivery number field and table row doesnt get selected.
    Thanks for reading.

    Try maintaining the "Cursor position" in the screen layout in Attributes tab with the field name that you want the default cursor position to be present.
    Regards,
    Shri Hari.

  • Reg a user set up in grid control who can view properties of one target

    Hi,
    I am trying to set up a user for grid control who can view only properties of one target. I have tried some options which were suggested but didnt help.when we login i should be able to view only one target to which i am giving view access. but whenever i create a administrator it can view all targets though i give permission to view only one target.does any one have any input on this???
    Thanks and regards,
    Hema

    Hallo Hema,
    I've just quickly tried myself and have no issues creating such a limited user. Do you have any roles granted on the user? Is the "PUBLIC" role modified in your company to have some permissions granted?
    Can you give a quick overview of what information is displayed on the page when you click "View" for the selected user on the Setup -> Administrators page?
    Best regards,
    Robert

Maybe you are looking for

  • Issue with downloading podcast

    I have subscribed to podcast and it downloaded all but 10 episodes. so when i go to get the latest podcast it downloads them but when it is done download it acts as if it has not downloaded and tells me to download agian. Has anyone else seen this is

  • How can I find the printed page number in an ibook app?

    I want to go to printed page 129, I do not know what the corresponds to in my ibook.

  • Where can I get map updates for my NV-u44?

    My friend gave me a NV-U44 gps. Where can I get map updates for it?

  • Ibatis like api to generate dynamic sql query

    I use hibernate for persistance.Most of my queries are hibernate criteria queries , but some of them are sql queries, I have to generate dynamic queries which are very long , I have been using java to generate queries using lot of if else blocks , th

  • Configration changes

    Hi I have done configration for OBYC in that Tkey PRD in this Valuatin class 1120 GL 40011200 after that i change the GL from 40011200 to 40011300 how i can find out chages i made in configration OBYC PRD Key Regards