Data binding for date chooser
Hey Just wondering if its possible to use actionscript variables for a HTTPservice, [not having to use httpservice via actionscript]
eg
<mx:HTTPService id="req" showBusyCursor="true" method="POST" url="http://localhost/flex1/add.php" useProxy="false">
<mx:request xmlns="">
<day>{dates.selectedDate.getDate()}</day> //instead of this have something like <day>{day.value}</day> ??????
<month>{dates.selectedDate.getMonth()}</month>
<year>{dates.selectedDate.getFullYear()}</year>
</mx:request>
</mx:HTTPService>
<mx:Script>
<![CDATA[
[Bindable] private var dateString:String;
public var day:int;
public var month:int;
public var year:int;
public function onClick():void
day = dates.selectedDate.date;
month = dates.selectedDate.month;
year = dates.selectedDate.getFullYear();
]]>
</mx:Script>
<mx:DateChooser id="dates" x="25" y="26" width="221" height="208" allowMultipleSelection="true" showToday="true" change="onClick()"/>
Are you getting an error? Maybe you just need to make the other variables Bindable?
If this post answers your question or helps, please mark it as such.
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
[Bindable] public var day:int;
[Bindable] public var month:int;
[Bindable] public var year:int;
public function onClick():void{
day = dates.selectedDate.date;
month = dates.selectedDate.month;
year = dates.selectedDate.getFullYear()
]]>
</mx:Script>
<mx:DateChooser id="dates" x="25" y="26" width="221" height="208"
allowMultipleSelection="true" showToday="true" change="onClick()"/>
<mx:TextArea id="txt" text="{dates.selectedDate.getDate() + ' ' + dates.selectedDate.getMonth() + ' ' + dates.selectedDate.getFullYear()}"/>
</mx:Application>
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)
-
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. -
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.) -
Reset the calendar view of Date Chooser?
Is there a way to reset the Date Chooser so it goes back to
displaying the current month? For instance, if I advance a year in
date on the date chooser, but want to go back to the current month,
is there an easy way to do this? Or do I really have to arrow
back?In Settings > Notification Center, try turning "on" all the six buttons under "Today View". Also turn "on" the top two buttons under "Access on Lock Screen". Doing that should show you "Tomorrow" at the bottom of Noticiation Center.
-
Change appearance of date chooser
I am working on my first app and had a question.
Is there is a way to change the appearance of the date chooser for my app? I'd like to be able to change the color and take out the time function replacing that with a year chooser so that the user can choose the month, date, and year.
I'd also like to shrink the date chooser as well.
Thank you so much for your help!You can do that like this:
Scene s = ... ;
BranchGroup branchGroup = s.getSceneGroup();
Appearance appearance = ...;
Enumeration branchEnum = branchGroup.getAllChildren();
while(branchEnum.hasMoreElements()){
Object child = branchEnum.nextElement();
if( child instanceof Shape3D){
Shape3D shape = (Shape3D) child;
shape.setAppearance(appearance);
}It is work for the galleon example because all Shape3D objects are
children of main branch group. -
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(...); -
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. -
Err "Couldn't retrieve binding for the given channelId" in receiver SOAP CC
Hello.
We have increase the support package level of our XI 3.0 system from level 17 to 23. After this "upgrade" all interfaces using a receiver SOAP channel communication are getting the next error:
SOAP: response message contains an error XIServer/UNKNOWN/ADAPTER.JAVA_EXCEPTION - com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldnt retrieve binding for the given channelId: Binding:CID=8cb6335a548730ea9ca27aaa78034109; at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBindingByChannelId(AbstractLookupManager.java:361) at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:421) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
We have done the next steps:
- Run SXI_CACHE and start a complete cache refresh,
- http://<Host>:<portNo.>/CPACache/refresh?mode=full
- Restart J2EE server.
The problem isn't solved.
any idea?Probably you need to ask your BASIS team if they have done it or not.
Secondly you can just see if something has been done under SWCV SAP BASIS --- http://sap.com/xi/XI/System --- Adapter Metadata, just by oping any adapter and then by looking at Properties or Hisotry from menu "Adapter Metadata". Here you can see the date under "Changed on", so if this matches with your upgrade date then something has been done. But this check will not help you know about the SP level. So better to ask with BASIS. -
Dynamic binding for table column
Hi,
I am using standard application and in a table (not ALV) i want to chnage the name of a column. Already a OTR is placed in it so am planning to do a dynamic bind for the text in the header. Kindly suggest ways.
Thanks,
KoushikDATA:
l_caption TYPE string,
l_title TYPE string.
data lr_caption type ref to cl_wd_caption.
*---Get OTR Text for Value Description
CALL METHOD cl_wd_utilities=>get_otr_text_by_alias
EXPORTING
alias = 'ZPERF_MGMT_DEV/RATING'
language =
RECEIVING
alias_text = l_title.
lr_caption ?= view->get_element( 'TBL_VAL_HELP_DESCRIPTION_HEADER' ).
lr_caption->set_text( value = l_title ). -
Error in context binding for text property
Hello experts,
I receive this error in my WD4A application:
The following error text was processed in the system XXX : Context binding for property TEXT of "T_MONTHTO"
cannot be resolved: Node MAINVIEW.1.TEMPVAL2 does not contain any elements
The error occurred on the application server sapxxxxx_XXX_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: RAISE_FOR of program CX_WDR_ADAPTER_EXCEPTION======CP
Method: RAISE_BINDING_EXCEPTION of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
TEMPVAL2 has cardinality 0..1, selection 0..1, Inizialization Lead Selection false and the ST22 dump says:
33
34 if l_adapter->m_view_element is bound.
35 l_component ?= l_adapter->m_view_element->view->if_wd_controller~get_component( ).
36 l_view_name = l_adapter->m_view_element->view->name.
37 l_view_element_id = l_adapter->m_view_element->id.
38 l_component_name = l_component->component_name.
39 endif.
40
41 if l_adapter->m_context_element is bound.
42 l_path = l_adapter->m_context_element->get_path( ).
43 endif.
44
>> raise exception type cx_wdr_adapter_exception
46 exporting
47 textid = textid
48 previous = previous
49 component_name = l_component_name
50 view_name = l_view_name
51 view_element_id = l_view_element_id
52 adapter_stack = l_adapter_stack
53 path = l_path
54 p1 = l_p1
55 p2 = l_p2
56 p3 = l_p3
57 p4 = l_p4
58 reason = reason.
59 endmethod.
Could anybody please tell me why exactly this error is occuring?
Many regards,
MartinHi Martin,
I am getting the same error. can you please help me resolve this error.
Error:
Note
The following error text was processed in the system RS2 : Adapter error in &VIEW_ELEMENT_TYPE& "VBELN" of view "Z_MYFIRST_WEBDYNPRO.MAIN": Context binding of property VALUE cannot be resolved: Node MAIN.1.NODE_VBAK does not contain any elements
My Code is in the Method for the action is created for a button on MAIN VIEW
METHOD onactionaction_find .
wd_this->fire_to_alv_table_plg( ).
DATA: node_node_vbak TYPE REF TO if_wd_context_node,
elem_node_vbak TYPE REF TO if_wd_context_element,
stru_node_vbak TYPE if_main=>element_node_vbak .
stru_node_vbak type wd_this->element_node_vbak.
navigate from <CONTEXT> to <NODE_VBAK> via lead selection
break dasarikb.
node_node_vbak = wd_context->get_child_node( name =
wd_this->wdctx_node_vbak ).
get element via lead selection
elem_node_vbak = wd_context->get_element( ).
get all declared attributes
elem_node_vbak->get_attribute(
exporting
name = 'VBELN'
IMPORTING
value = stru_node_vbak ).
DATA: ls_where(72) TYPE c,
lt_where LIKE TABLE OF ls_where,
lt_vbak TYPE STANDARD TABLE OF vbak.
create where condition
IF NOT stru_node_vbak-vbeln EQ ''.
CONCATENATE 'VBELN = ''' stru_node_vbak-vbeln '''' INTO ls_where.
APPEND ls_where TO lt_where.
ENDIF.
IF NOT stru_node_vbak-erdat EQ '00000000'.
CONCATENATE 'ERDAT = ''' stru_node_vbak-erdat '''' INTO ls_where.
IF stru_node_vbak-vbeln NE ''.
CONCATENATE 'AND' ls_where INTO ls_where SEPARATED BY space.
ENDIF.
APPEND ls_where TO lt_where.
ENDIF.
SELECT *
FROM vbak
INTO TABLE lt_vbak
WHERE (lt_where).
DATA: node_node_alv TYPE REF TO if_wd_context_node,
stru_node_alv TYPE if_main=>element_node_alv.
navigate from <CONTEXT> to <NODE_ALV> via lead selection
node_node_alv = wd_context->get_child_node( name =
if_main=>wdctx_node_alv ).
get all declared attributes
node_node_alv->bind_table( lt_vbak ).
ENDMETHOD.
Thanks,
Kiran -
How to set persistent binding for QLA2300 (Sun branded -uses qlc driver)
How to set persistent binding for QLA2300 (Sun branded ) HBA using qlc driver from Sun?
Are there any CLI's for it?
Is it done automatically?
Is there any way by which we can infer that persistent binding is done?
Platform: Solaris 9 on SPARCPersistent binding is effectively provided by STMS (MPxIO) - is there anything in particular you're wanting to do that STMS doesn't provide?
Maybe you are looking for
-
I recently had trouble updating my itunes, when I did do it I kept getting an error message and because of that I had to uninstall everything than reinstall itunes. But since then my iphone, ipad, and ipod are not really syncing correctly. My PC sa
-
Intermitting problems with dial-up connection...
Spec: Powerbook G4 550Mhz, Tiger 10.4.7 I've attempted to dial and I could successfully connected, but I couldn't gain access to any websites not even my homepage (google.com). I created a new user account and attempted to dial under that new account
-
Black border in exported video
When I am in presentation mode I see picture in the correct ratio without border. But exported video with same configuration have black border. (Source images have small size then output video.) I need output video without border as in preview...
-
Hello, Scope: my problem is not how TDD works or which tool to use. I have no problem to test code that does not depend on db content (e.g a custom to_char function) and private functions are public by conditional compilation in development db. It's
-
Proportional valve and following error problem
Hello, I have a problem with using a NI-7344 card and controlling a proportional valve and hydraulic cylinder. Everything is working fine in regards to motion and velocity control. The problem I have is with the following error and halt command. When