Date Chooser in Flex
I am trying to set colors for individual days within the
DateChooser control.
I need to set different colors for different days. for
example 1st 3rd and 10th to be green date box and 2nd 8th, 31st to
be blue etc... etc...
What my question is is there a way to programmatically set
either the box background by either date or the grid location. Just
a simple yes or no will suffice, I do not know much about
actionscript, and I dont want to spend time to learn it if we
cannot modify the properties of the control to that degree.
Any ideas would be helpfull.
Liam Coffey.
What type of "fancy" AS? :D My idea is just you put in a
date/dateRange and a styleName to adjust the "highlight" for that
specific date. I've been looking at the DateChooser.as file but I
don't see anywhere where it actually does the day highlighting (if
you choose to showToday for instance). If anyone out there is able
to show me what does the highlighting... I'll develop the
component! :D
Similar Messages
-
Hi Friends,
I am working on a flex application in which it has a calander
(Date chooser) control
in database I have a status for each week, as A, B or C. when
it comes to the flex part I have to highlight a week on date
chooser control in Red Color if the status A and blue if the status
is B and green color if the status is C.
Is it possible to do in flex, if so please suggest me in
doing that
Thanks in advance
RajeevHaving same problem on two different iPods with two different computers here since last update. Am having to manually change date and time after each sync (very annoying) am hoping it will be fixed soon.Both computers are set with correct date and time and iPods are both reverting back to a date in October (I think)
-
I want to make a file chooser that can allow me to choose
(Browse) where's the file that i want to upload. Anyone know how to
create a file chooser with flex builder 2 ? I'm very appreciate for
any answer.Here is an example that will make a file browser to choose
either an image or mp3 file:
private var upload_ref:FileReference;
private function upload_media():void {
var media_filter:FileFilter;
var filter_array:Array = new Array();
media_filter = new FileFilter("Images (*.jpg, *.jpeg, *.gif,
*.png)", "*.jpg; *.jpeg; *.gif; *.png");
filter_array.push(media_filter);
media_filter = new FileFilter("Audio (*.mp3)", "*.mp3");
filter_array.push(media_filter);
upload_ref = new FileReference();
upload_ref.browse(filter_array);
upload_ref.addEventListener(Event.SELECT, file_selected);
private function file_selected(evt:Event):void {
if (upload_ref.name != null &&
upload_ref.name.search(" ") == -1 &&
upload_ref.name.search("'") == -1) {
var sendVars:URLVariables = new URLVariables();
sendVars.file_path = "/path_on_server_to_upload_to";
var request:URLRequest = new URLRequest();
request.url = "
http://yourserver.com/upload_php_script.php";
request.data = sendVars;
request.method = URLRequestMethod.POST;
upload_ref.addEventListener(Event.COMPLETE, completeUpload);
upload_ref.upload(request);
} else {
Alert.show("File name can only include letters, numbers or
underbars. No spaces.");
Vygo -
How to show double byte data in a Flex application
Hi
I am looking for a way to show UTF-8 formatted data in a Flex
application. I have a Java app in the backend that generates an xml
file. Some attributes in the file are encoded in UTF-8 (when data
is Japanese or Chinese...). My Flex app is showing box characters.
I have XSLT app that generates html based off this xml file. The
browser i showing the Japanese characters fine.
I am wondering what the trick is to get Flex app show this
data.
Thanks
VideoguyIt turned out to be my XP that didn't have the the right lang
sets installed. I have two PCs. On one everything showed up fine. I
was able to view arabic, chinese data from xml just fine. On the
other one, same swf didn't show them. There is MS knowledgebase
article on how to enable east asian languages etc. I didn't give it
a try. I am using other pc for my dev now. -
Date chooser day and date not selectable
Hello,
Anyone knows how to make the day and date not selectable in
the datefield or date chooser component???
It is possible to make any one day not available, but what i
need is only a single day not selectable..
For example, i can make every tuesdays of a month not
selectable But, i need to make for example the Tuesday 3rd only Not
selectable
Any help will be greatly appreciated.
Cordially.
Gerard.Welcome to Apple Discussions
I believe the problem is that you have US formats for dates. Select the cells/columns that you want your date format to apply to then click the cell format inspector (the 42 in a box icon) & choose Custom… from the cell format drop-down. You will be presented with a box that allows you to make your own format. Click & hold on any of the little "lozenges" in the input bar & move them around. You may need to add a space to get the proper result. -
I have a couple of questions about this component.
First ...is it possible to style different days on the date
chooser. For instance I would like to have days before today's date
as disabled but I also want to do something like
disabledRanges="{[new Date(2007,11,11),new
Date(2007,11,12)]} " disabledColor="#FF0000"
but I don't want all all the days before today colored red
just those in the disabledRange. Also on this topic I am presuming
that I can load the disabledRanges array using Ajax??
Secondly..I am trying to use the
allowMultipleSelection="true". Does this only work if you hold down
the shift key on the keyboard as I would like users to be able to
just click on a number of dates to select them all. And further on
this topic..how do I get the selected values when using
allowMultipleSelection="true". I have tried using the following
change="displayDate(DateChooser(event.target).selectedDate)"
and the function
private function displayDate(date:Date):void {
var alldates:Array=new Array();
if (date == null)
selection.text = "Date selected: ";
else
var thedates:String = date.getFullYear().toString() +
'/' + (date.getMonth()+1).toString() + '/' + date.getDate();
alldates.push( thedates );
trace(alldates);
but get nothing?
What is the best way to get the multiple values?Hi,
Read this thread as it will give you some ideas about handling dates
http://forums.adobe.com/thread/508729
David. -
How do I move focus from date chooser bean to JTable?
Here's the scenario:
I have a panel containing a date chooser bean which is in the north of my main frame.
I have a JTable (inside a scroll pane) which is in the center of my main frame.
The table (through it's table model) is a registered listener of the date chooser so that when the date is changed, the table gets refreshed.
Problem I have is that AFTER the table gets refreshed, I want focus to go to the table and, specifically, have the first row high-lighted. I haven't been able to figure out how to do this.The table (through it's table model) is a registered listener of the date chooser so that when the date is changed, the table gets refreshed.I don't really understand this. A table can have many rows and many columns, so how do you know which cell of the table is updated?
I want focus to go to the table and, specifically, table.requestFocusInWindow();
have the first row high-lightedtable.changeSelection(...); -
Hi
I am working on data push in flex!
I am using consumer component in flex to subscribe to server to receive the data push by it!
Data push is happening for sometime and when I switch to other browsers and come back consumer is not listening to the data sent by server but I can see the logs in the server. let me know any poitnters regarding this?
Find the piece of code below...
<mx:Consumer
id="cameraControlConsumer" destination="deviceDataFeeder" message="messageHandlerForCameraControl(event)" fault="faultHandler(event)"
/>
private
function faultHandler(event:MessageFaultEvent):void{
Alert.show(event.message.faultString);
private function messageHandlerForCameraControl(event:MessageEvent):void {
var msgSender:String = event.message.headers["USR_LOGIN_ID"].toString();
if (msgSender == myModel.loginUserId.toString()) { tempObj =
new ObjectMap(event.message.body as Object);tempMap = tempObj.getHashMap();
if (null != tempMap) {
var tempVar:String = tempMap.getValue("vmsDeviceId");
if(tempVar != null) {selectedCameraId = tempVar;
else {selectedCameraId =
null;}
if (1 != getStatus(selectedCameraId)&& selectedCameraId != null)
{disableCameraControl(
false); tempVar = tempMap.getValue(
"MdviZoomMax");
if(tempVar != null){
maximumZoom = int(tempVar);
tempVar = tempMap.getValue(
"MdviZoomMin");
if(tempVar != null){
minimumZoom = int(tempVar);
else {disableCameraControl(
true);}
Thanks and Regards
Aruna.S.N.Hi
Yes the the most bugging problem, took lot of time to debug this.
check web.xml file in your server, need to set session time out property as below
<!-- Set timeout to 120 minutes -->
<session-config>
<session-timeout>120</session-timeout>
</session-config>
Set '-1' for session to be continuous...
Thanks and Regards
Aruna.S.N -
Date chooser won't show - _dfs undefined error
My date chooser that comes with a adf core ChooseDate component doesn't display it's popup calendar when a user clicks on the little button. This happens when I make all ChooseDate components on my page use my custom converter. The error message that I get (with some digging) is that '_dfs is not defined'.
From my own digging, I see that the error is a JSF error and that the _dfs should have been defined in javascript. In my case the javascript is being created by ADF as part of the page building process.
Why does that variable not get defined when I use a custom date converter?
What do I have to do to make sure that my date choosing popup calendar appears?
I'm working with JDeveloper 10.1.3.3 on Windows.Satya,
JDeveloper 10.1.3.4.0 is not available yet, so the fix is certainly not available in ATG rup 5
If you still require more information about this fix in OAF, please ask it at the right place, in the OAF Forum (OA Framework
Regards,
Didier. -
Hi...
Can you recommend a date choosing component for swing please?.
I need a free Swing component that let the user select easily a date, and optionally a time.
When you search for a specialized component, often there are a bunch of them, but only one or two are the top preferred or the most popular.
Do you know which is the most popular free date chooser for swing?
Thank you.hi JoseLuis,
please go thru the following links and select one most suited for you.
[JCalendar from Toedter.com|http://www.toedter.com/en/jcalendar/]
[JCalendar from dev.java.net|https://jcalendar.dev.java.net/]
[JCalendar from FLIB|http://flib.sourceforge.net/JCalendar/doc/index.html]
[JCalendar 1.5 from zfqjava.com|http://www.zfqjava.com/docs-calendar.html]
let me know the result
sunil -
Date chooser. Anyone know of one?
I am looking for a date chooser. I saw a component
for C/C++ that looks like a calendar and the user can
choose a date from the calendar. Has anyone seen
such a critter for Java?I tried. It's good
http://www.singleton-labs.com/mdate.html -
Where i can fine a date chooser dialog.
i know of file choser and color but no date.
is it a third party?if so where there is a source or package for it
yoavtry http://www.lavantech.com/datetimepicker
Abuse reported. -
I am attempting to make a calander/organiser that can have
notes added to dates and displays them in a textbox when each date
is selected. I am using the date chooser ui and have found no
tutorials that can help. It will be used on one machine with one
username so i can use local storage and be compiled as a
standalone. If anyone can help or has a tutorial that they know of
it would be much appreciated.thanks, i am surprised that i could not find any tutorials on
this, thank goodness for forums. Also i am not sure what you mean
by "loop through my_so and populate a list with the dates" I am
assuming it means link the two components (date chooser and list) I
am not sure how to do this either. Is there anything that can help
me learn about local storage etc. as i am also trying to add an
address book function into the same flash file ( i have already
tried the colin mook tutorial but it has not been updated for newer
releases and does not help.) -
"advanced data grid" with flex builder 3.0
I'm getting watermark as "Flex Data Visualization
Trial" when tried to use advances data grid with flex builder 3.0. There are some links floating on the internet where it's suggested that the license key should be provided in the flex-config.xml to avoid this issue. I would like to know if this componenet is stable with flex builder 3.0 and is it ok to use this in production environment?Someone from Adobe might be able to answer more definitely
but it's probably just not considered compatible with a modified
Eclipse (at least, the installer). It may just be the installer
blowing up when it shouldn't. I think Adobe doesn't want to support
install configurations that they don't have setup and tested. I had
a similar issue once and solved it by doing the following... not
sure if it'll work, and it's more of a last resort:
Setup a regular eclipse install - install the plugin there.
Somehow, you'll have to keep track of all the files it adds, either
using timestamps or some compare software. It should be a bunch of
files and/or folders in the '/plugins' directory, and possibly a
few others in '/configuration', maybe '/features'. Take all the new
folders and any jar files etc, and drop them into the same folders
in your special Eclipse version. Hopefully when you start it up
you'll get the Flex functions...
Of course, you could end up hosing your entire "NWDS"
(whatever this is) install. So you probably want to test it out
first! -
Has anyone done any Flex Apps that work with the Automatic
Identification System (AIS) used in the maritime industry to track
ships?
I'm looking for data feeds, databases etc. either in the NMEA
format or ideally something like XML, I'm interested in both pay
and open sources.
Anyone here know of any available sources?
D.Thanks for the reply. Yes, I did compile all the Java and it
works OK with a simple Java program. It just will not work in a
Flex application.
The java classes are:
RRA:
package blah.myPackage;
import java.util.List;
import java.util.Collection;
import flex.data.DataSyncException;
import flex.data.assemblers.AbstractAssembler;
class RRA extends AbstractAssembler
public Collection fill( List fillParameters )
RRS service = new RRS();
return service.getSome();
RRS:
package blah.myPackage;
import java.util.ArrayList;
import java.util.List;
import java.sql.*;
import flex.EORS.*;
class RRS
public List getSome()
ArrayList list = new ArrayList();
String str = "bob";
RR rr = new RR(str);
list.add(rr);
return list;
RR:
package blah.myPackage;
class RR
private String name;
public RR() { }
public RR(String name)
this.name = name;
public String getName()
return this.name;
public void setName(String name)
this.name = name;
I started with something that retrieved data from a database
but watered it down just to try and get some kind of communication
between Flex and Java.
Maybe you are looking for
-
Financial statement by business area
hi, Has anyone encountered implementation of running balance sheet by business area and it only balances at company level but not at business area level? What are the likely causes and rectifications? I noticed we cannot post a reclassifcation entry
-
Volume controls of my A305-S6858 causes crashes
I have a Satellite A305-S6858. Recently, it seems like almost every time I try to change the volume, explorer decides to crash repeatedly until I reboot the machine. It doesn't matter if I use the volume wheel on the front of the notebook or the slid
-
Complex human task route management in Oracle SOA Suite
Hello. I am struggling to implement a complex role/route model for a human task. Maybe somebody will give me some advice? I need to: Assign a task to least busy user (this is easily done in Assigment UI for Human Tasks) If user rejects the task it sh
-
Adding weeknumbers in sales orders & purchase order in orderlines
User functionality Add weeknumbers on row level in order to communicate to customers in documents especially for external documents ie delivery week in stead of delivery date
-
Photo Organizing/Album management
How can I create albums of photos on the phone itself. I know the stock answer is : "Organize the photos on your computer/iPhoto and sync" but I'm not really in a position to do that: 1) I rarely (once or twice a month?) sync my phone/laptop - everyt