Slider and date

I have a slider like so:
<mx:HSlider id="myslider" width="245"
allowThumbOverlap="true" thumbCount="1" snapInterval="1"
tickInterval="1"
values="[11]" labels="['Jan', 'Dec']" minimum="1"
maximum="12" change="sliderChangeTwo(event)"
dataTipFormatFunction="getSliderLabel" themeColor="#73B9B9"/>
every month I go in and change the values to the current
month like November is 11. How can I have it shoe this month
automatically. I have been looking at the date stuff but there is
an error because dates are strings and the slider acceps numbers.
Any thoughts?
Thanks
George

..and here's another way to do it...
View source at:
http://www.anaheimwib.com/_comps/slider/
Main difference is I'm using arithmetic on the current date
to get you a date one month out, and using the formatted result as
a bindable in the slider labels property. Since the "futureDate"
var contains today's date + one month, you could also use this var
anywhere else in your code where you need the entire future date.
This is useful at the end of the current year, where you might want
to add two months to today's date, and get a date in 2009, for
instance.
I included the use of the Date formatter class to get you
started on returning just a portion of a date, formatted as you
wish (M="1", MM="01", MMM= "Jan", MMMM= "January"). Simply change
the formatter's format string and the slider's labels will also be
updated.
On more thing...if you are planning on using the slider's
retun value to get a month's number, remember that in actionscript
the month numbering starts at 0 (you are specifying 1-12; AS uses
0-11).
Complete code:

Similar Messages

  • Show username and date on results slide

    Hi,
    Is it possible in captivate that a user can enter the user name and date in the beginning of the project which later can be displayed on results slide

    Hi there,
    Welcome to Adobe Community.
    Yes it can be done with the help of variables.
    You can have the text entry boxes to keep the values which will be stored in variables and then show the variable values on the result slide.
    To do that enter $$variablename$$ in a text caption on the results slide.
    Thanks!

  • Horizontal Slider with dates

    Hi All,
         I wanted a horizontal slider with dates .
    Can anybody help please.
    Thanks

    Hello,
      Thanks, now I am getting some where. I have found the "ActSlider" and the "KeyFocus" property. I have discovered how the "Key Focus" property works, if you use the tab key to cycle thru all of the stuff on your front panel, it will eventually come into focus and the "Key Focus" property will go true. Unfortunately the operation of the horizontal slider control if done with the mouse, so using that property will not help me.
    The help for the "Active Slider" says that it shows which slider/needle is active, well that does not help me.
       I am using a horizontal slider control to for 2 functions on the front panel, they are:
    Indicate the current test step ( a number from 1 to 1000, poistion gets updated after each step is completed)
    Allow the user to select the desired test step
     I would like to have the user drag the slider to where they want to go and when they release the right mouse key I can go directly to where they want to be at. How if they want to jump 20 steps forward or backs I get 20 changes. If I just click on the slider bar (not the slider itself) I can go directly to where I want to be. So how can I make this work by having the user drag the slider and go directly to where they want to be?
    Regards,
    Kaspar

  • Completion certificate that autofills name and date?

    I need to make a certificate for the end of the class that will put in the current date and student name automatically.  I've been round and round trying to figure something out.
    The certificate widget is almost useless.  It won't let me change anything and just doesn't fit our needs at all.
    The student needs to print a hard copy when done.
    Any ideas?
    thanks

    Hi there
    And this is why Learning Management Systems are popular. Think it through. If they can navigate back a slide and you manage to stop that, what's to stop them from simply reloading the lesson and working their way back to the slide again? I suppose some randomization of slides and question pools might help that case.
    To prevent returning to the "gather the name" slide, you might use a variable to track the number of times the page has been presented. If greater than one, hide the Text Entry Box and present a hidden caption with the existing name. (using the variable)
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • [svn:fx-trunk] 12078: Fix for change events in Slider and ScrollBar.

    Revision: 12078
    Revision: 12078
    Author:   [email protected]
    Date:     2009-11-21 00:14:46 -0800 (Sat, 21 Nov 2009)
    Log Message:
    Fix for change events in Slider and ScrollBar. They now dispatch change events as before, whenever the user alters the value. In addition, changeStart and changeEnd events will be dispatched at the start and end of a user interaction or animation.
    TrackBase.as - Added metadata for changeStart/End events. Dispatch change, changeStart/End events when appropriate.
    Slider.as - Dispatch change, changeStart/End events when appropriate.
    ScrollBar.as - Dispatch the appropriate events. Note that changeStart/End will not dispatch when shift-clicking on a non-animating ScrollBar. Renamed animatingSinglePage to animatingOnce to better reflect its function. Refactored some method calls to the new private stopAnimation(), which is more consistent with Slider. Refactored the button handlers to make stepping more readable. Added a setValue call in animationEndHandler where we were ending up off the snapInterval when shift-clicking.
    Updated FlexEvent, ScrollBarTestScript and VideoPlayer to handle the new events.
    QE notes: Update Slider and ScrollBar tests
    Doc notes: No
    Bugs: SDK-24264
    Reviewer: Ryan
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24264
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/events/FlexEvent.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/VideoPlayer.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ScrollBar.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TrackBase.as
        flex/sdk/trunk/frameworks/tests/basicTests/spark/scripts/ScrollBarTestScript.mxml

  • [svn:fx-trunk] 8530: Change Slider and NumericStepper default value

    Revision: 8530
    Author:   [email protected]
    Date:     2009-07-13 11:17:46 -0700 (Mon, 13 Jul 2009)
    Log Message:
    Change Slider and NumericStepper default value
    http://bugs.adobe.com/jira/browse/SDK-18380 - FxHSlider and FxVSlider have default max of 100, should be 10
    Changed the default value for Slider by setting the value to 10 in the constructor. I changed NumericStepper?\226?\128?\153s implementation to match Slider. The problem with NumericStepper?\226?\128?\153s previous implementation was that it wasn?\226?\128?\153t calling Range?\226?\128?\153s maximum setter. Thus there was some important logic in Range.commitProperties that wasn?\226?\128?\153t called. 
    QE Notes: Update tests with new default
    Doc Notes: Update docs with new default
    Bugs: SDK-18380
    Reviewer: Hans
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-18380
        http://bugs.adobe.com/jira/browse/SDK-18380
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as

  • Can I display both time and date on iPhone 4s home screen?

    The time and date is diplayed when I 'slide to open' but can I have the day / date and time displayed when the screen shows all the apps? Currently it just shows the time at the very top and considering I'm this is my first iPhone, I've become used to having the date and time constnatly displayed. Any help would be greatly appreciated.

    A pity it can't be displayed elsewhere.
    Thanks for your prompt help.

  • Need an App To Turn Wifi, Bluetooth, Location and Data On & Off

    Though there appears to be none yet, a very useful app would be one that permits us to turn one or all four of the following on and off with the flick of a single switch:  wifi, Bluetooth, location and data.  It would be a very simple app with four check boxes and one on/off slide button, but would be super handy to permit us to quickly get info when we wanted it and save battery power otherwise.
    When those four are off, the phone lasts 5 to 6 days on a single charge with low voice and text usage.  With all of them on, it needs a charge in a matter of hours.
    App developers, the concept and profit are yours for the taking.  I'm sure many iPhone users would be happy to pay a couple bucks to reduce charge cycles, particularly since the iPhone 5 no longer fits all the charge ports the travel industry installed around the world. 

    Thanks, wjosten.
    I think the programming steps are simply a matter of knowing the iOS menus.  On the other hand, Apple would definitely have to authorize the app.  For that reason, obtaining advanced willingness to approve it would be a good idea.

  • DSO - What key fields and data fields in dso

    Hi experts,
    I need to create a dso in between the cube and 2 data sources(2lis_11_vaitm, 2lis_12_vcscl) to stage the data. My question is: what key fields and data fields to choose for the dso? is there a standard dso to copy? please explain in detail the model to set up, whether to connect both the ds's to dso and then to cube or one ds to dso and the other to the cube. more details will help.

    Check this for standard DSO:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/fcdc387f34384f94c3227baf3837a8/content.htm
    Thanks...
    Shambhu

  • Reading MS Project column names and data on the fly from a selected View

    Hi guys,
    I have several views on my project file (MSPROJECT 2010) and I want to build a macro so that;
    1. User can select any view ( Views can have diffrent columns and the user may add new columns as well)
    2. User runs the Macro and all the coulmns along with the tasks displayed in the view will be written to a excel file. ( I don't want to build several macro's for each view, I'm thinking of a common method which would work for any selected view)
    The problem I'm facing is that how will i read the column names and data for a particular view on the fly without hard coding them inside the vba code ?
    The solution needs to work on a master schedule as well.
    Appreciate your feedback.

    Just to get you started the following code writes the field name and data for the active task to the Immediate window.
    Sub CopyData()
    Dim fld As TableField
    For Each fld In ActiveProject.TaskTables(ActiveProject.CurrentTable).TableFields
    If fld.Field >= 0 Then
    Debug.Print Application.FieldConstantToFieldName(fld.Field), ActiveCell.Task.GetField(fld.Field)
    End If
    Next fld
    End Sub
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Pdf portfolio source file name and date in file details

    Is it possible to import the source file name and extension as well as the source file created date in the portfolio file details?  Need to document source to portfolio in working with 3rd parties that will only have the original source.  Need to document what was converted into pdf as not all files in a directory will successfully convert to pdf.  Sometimes need to convert 100's of files.  Manual entry is inefficient.  the file names and modified dates are displayed on the Combine Files dialog.  is there a way to capture the detail on that page?

    I don't need the detail of when the pdf was added to the portfolio.  I
    need know which dwg or jpg or word file was converted and the original
    created date of that file for control of information.
    That is impossible; sorry. For some *very specific* types of conversion to PDF the pdfx:SourceModified XMP tag will be set to show the last-modification date of the source file (for example DOCX files converted using MS Word), but there will never be a human-readable record of the source filename or its creation date unless you have manually added them as document XMP properties after conversion (this is what the "Custom Properties" dialog is for). To embed source data automatically would raise no end of privacy and security problems for customers, who most certainly do NOT want their recipients seeing details of internal documents.
    Without writing a plugin there's no access to the internal workflow of the Combine Files dialog, so you cannot use a script to read the names and dates of the files *before* conversion and store them automatically in the new PDF Portfolio's Fields array.

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • How can we get Dynamic columns and data with RTF Templates in BI Publisher

    How can we get Dynamic columns and data with RTf Templates.
    My requirement is :
    create table xxinv_item_pei_taginfo(item_id number,
    Organization_id number,
    item varchar2(4000),
    record_type varchar2(4000),
    record_value CLOB,
    State varchar2(4000));
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'USES','fever','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'HOW TO USE','one tablet daily','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'SIDE EFFECTS','XYZ','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'DRUG INTERACTION','ABC','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'OVERDOSE','Go and see doctor','TX');
    insert into xxinv_item_pei_taginfo values( 493991 ,224, '1265-D30', 'NOTES','Take after meal','TX');
    select * from xxinv_item_pei_taginfo;
    Item id Org Id Item Record_type Record_value State
    493991     224     1265-D30     USES     fever     TX
    493991     224     1265-D30     HOW TO USE     one tablet daily     TX
    493991     224     1265-D30     SIDE EFFECTS     XYZ     TX
    493991     224     1265-D30     DRUG INTERACTION     ABC     TX
    493991     224     1265-D30     OVERDOSE      Go and see doctor     TX
    493991     224     1265-D30     NOTES     Take after meal     TX
    Above is my data
    I have to fetch the record_type from a lookup where I can have any of the record type, sometime USES, HOW TO USE, SIDE EFFECTS and sometimes some other set of record types
    In my report I have to get these record typpes as field name dynamically whichever is available in that lookup and record values against them.
    its a BI Publisher report.
    please suggest

    if you have data in db then you can create xml with needed structure
    and so you can create bip report
    do you have errors or .... ?

  • Diff B/w ABAP Dictionary and Data Dictionary

    What is the difference between ABAP Dictionary and Data Dictionary........

    Hi,
    Both are the same.
    Please check this online document perhaps it may help.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBDIC/BCDWBDIC.pdf
    Regards,
    Ferry Lianto

  • ICloud sync and data usage

    After upgrading my ATT iPhone 4 to iOS5, I thought I would try out iCloud. I read somewhere, that it only syncs when it is connected to a powersource, and maybe I read that wrong, but I interpret it to mean when I am connected to either a power outlet or my computer using the cable. In otherwords, it wouldn't sync while I was out and about, away from my wireless home network, using the 3G network.
    Is this not correct?
    Because 2 days ago I racked up 80 MB of my data plan (not iCloud storage) while I slept at home, where I have a wireless network. I found this out by getting a text warning from ATT the next day, that I was close to using up my alloted 200MB data usage. I checked out my account online, and sure enough the 80MB transferred in the middle of the night. I didn't notice the "documents and data" setting was turned on so it looks like my apps updated while my phone was in sleep mode. Is there anything else it could be? I have everything iCloud turned off now and wondering if there is something I should know about to avoid wasting my data usage?

    elko wrote:
    After upgrading my ATT iPhone 4 to iOS5, I thought I would try out iCloud. I read somewhere, that it only syncs when it is connected to a powersource, and maybe I read that wrong, but I interpret it to mean when I am connected to either a power outlet or my computer using the cable. In otherwords, it wouldn't sync while I was out and about, away from my wireless home network, using the 3G network.
    Is this not correct?
    Because 2 days ago I racked up 80 MB of my data plan (not iCloud storage) while I slept at home, where I have a wireless network. I found this out by getting a text warning from ATT the next day, that I was close to using up my alloted 200MB data usage. I checked out my account online, and sure enough the 80MB transferred in the middle of the night. I didn't notice the "documents and data" setting was turned on so it looks like my apps updated while my phone was in sleep mode. Is there anything else it could be? I have everything iCloud turned off now and wondering if there is something I should know about to avoid wasting my data usage?
    I think possibly you are thinking about wireless sync of iTunes. That can be set to happen when you connect to a charger etc, but that is not the same thing as you are descrbing with iCloud.

Maybe you are looking for

  • How do i replace my ipad with a new model in itunes?

    I'm replacing an iPad with an iPad 3rd generation and will be gifting the iPad to a friend. What steps do I need to take in iTunes for this to run smoothly? I want to end up with: 1) The new iPad working but with all of my data, screen layouts and se

  • Wifi on ipad 2

    Is there something that will extend the reach of my wifi on ipad 2?  I didn't get it with 3G.

  • Custom page size

    <p>Hi,</p><p> </p><p>I get this exception when try to switch report's paper size to "Custom":</p><p>Could not Modify Paper Size.<br />  Caused by: <br />  Caused by: <br />  Caused by: <br />  Plug-in Vendor: Business Objects<br />  Plug-in Name: Cry

  • Can't launch Illustrator CC 2014.1 on Mac

    I have a MacBook Pro Retina and have been unable to launch or open files in illustrator since I installed the latest version two days ago (Oct. 6). I need this program for work and really need to get it working ASAP. I have installed a previous versi

  • Anyone notice a factory protective overlay on their 3G screen

    Hi I was using my iPhone 3G today and noticed something I have not noticed before. Has anyone noticed that there seems to be some short of protective shield on the touch screen? I noticed this because when i looked at the speaker area and the home bu