Amfphp and datefield
hello,
i've got some issues using amfphp with a datefield
there is a timestamp field in the database and i retrieve it
as a string
i'd want to use a datefield to change and select a new date
to make an insert or update in the database
i suppose i had to convert the string into date but this is
not working (i've tried with datefield.stringToDate)
and to convert the date again in string to do the insert,
update but i don't know how
any help or piece of advice is more than welcome
thanks for reading
More details on the error:
code:
Client.Error.MessageSend
Message:
Send failed
Detail:
Channel.Connect.Failed error NetConnection.Call.BadVersion: :
url: '
http://localhost/amfphp/gateway.php'
Similar Messages
-
[svn:fx-4.x] 15044: Mirroring Window Gripper and DateField bug fixes
Revision: 15044
Revision: 15044
Author: [email protected]
Date: 2010-03-25 17:15:30 -0700 (Thu, 25 Mar 2010)
Log Message:
Mirroring Window Gripper and DateField bug fixes
http://bugs.adobe.com/jira/browse/SDK-25719 - The gripper does not show up in an MX Window that is mirrored and using flex chrome
Added an mx_internal property to Button to track if the Button should modify the layoutDirection of its skins. MX Window and MX WindowedApplication both set this property to undefined. This is the only skin/icon in the halo and spark framework that inherits its layoutDirection from its parent. All others have layoutDirection of LTR.
http://bugs.adobe.com/jira/browse/SDK-25995 - DateField opens drop down on wrong side when layoutDirection = rtl
Added check if left edge of the dropDown exceeds the left screen bounds.
QE notes: n/a
Doc notes: n/a
Bugs: SDK-25719, SDK-25995
Reviewer: Kevin
Tests run: checkintests, DateField
Is noteworthy for integration: no
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-25719
http://bugs.adobe.com/jira/browse/SDK-25995
http://bugs.adobe.com/jira/browse/SDK-25719
http://bugs.adobe.com/jira/browse/SDK-25995
Modified Paths:
flex/sdk/branches/4.x/frameworks/projects/airframework/src/mx/core/Window.as
flex/sdk/branches/4.x/frameworks/projects/airframework/src/mx/core/WindowedApplication.as
flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/Button.as
flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/controls/DateField.asOriginally posted by: hansm.science.uva.nlDELETE
In article <f7fd6k$kq5$[email protected]>,
"Igor Vinnykov" <[email protected]> wrote:
> We are pleased to announce a new release in the 1.1.x stream: version 1.1.3.
> Main target of 1.1.3 version is compatibility with Eclipse 3.3 and Mylyn.
> Starting from this version JavaHL becomes the default SVN client. This change
> caused by licensing topics and future project transfer to the eclipse.org:
> previous default client JavaSVN/SVNKit doesn't have a license, which allows
> defining it as default client, distributed from the eclipse.org.
>
> Important: Subversive is prepackaged only by JavaHL binaries for Windows. If
> you work under Linux, MacOS or other operation systems you should
> build/install required JavaHL binaries by yourself. JavaHL is a part of
> official Subversion source distribution available at
> http://subversion.tigris.org/project_packages.html.
I am sorry but this leaves me in the dark. On the site mentioned above I cannot
find something like a download for javaHL (on MacOSX especially).
Although I did install subversion 1.4.4 from the source distribution I do not
seem to have a javaHL binary. How further?
Hans van der Meer -
AMFPHP and AS3FLEXDB - how to disable 'busy indicator' during query execution ?
I'm doing some experiments with Flex and SQL with use of as3flexdb and AMFPHP.
I've written some application which is pushing some data to SQL base...
problem is, that durring query execution, there is some 'busy indicator' on the screen
- some circle, and word 'loading'.
Have you any idea how to disable this ?
Everything what I'm doing is based on this tutorial below, but there is no idea in it how to
disable the indicator.
http://ghalex.com/blog/tag/as3flexdb
I'm not sure if this indicator comes from as3flexdb libraries or AMFPHP itself ?
Has anyone of you had such problem before ??
Thanks for all ideas
Rymas,Unfortunatelly my cheers was to early
I've successfully decompiled the library swc file, found Query.as class and corrected things mentioned in this
post : http://itutorials.ro/viewtopic.php?f=9&t=22&p=59&hilit=loading#p59
... but I cannot compile the library.fla back to swf ... it's generating some errors
Could anyone help me with that, maybe you've got more expirience with decompiling and compiling.
Orginal .swc file is here : http://www.rymasek.iq.pl/swc/as3flexdb_1.3.0.swc
Thanks for help !! -
I'm trying to do the AMFPHP tutorial in the Labs wiki and am
running into errors. Any ideas what is happening?
Here's the tutorial
Link
to Wiki
I'm getting an error on this line:
public var gateway : RemotingConnection;
And the error is: Type was not found or was not a
compile-time constant: RemotingConnection.
Anyone done this in Beta 3 and had success? How?I'm trying to do the AMFPHP tutorial in the Labs wiki and am
running into errors. Any ideas what is happening?
Here's the tutorial
Link
to Wiki
I'm getting an error on this line:
public var gateway : RemotingConnection;
And the error is: Type was not found or was not a
compile-time constant: RemotingConnection.
Anyone done this in Beta 3 and had success? How? -
Way of knowing if this site www.carmotors.com.br uses AMFPHP?
Hey Sky,
I am personally using AMFPHP. It is a little outdated but for small to medium sized project I found out that it works very well. Also AMF is a little smaller and is faster in some cases.
Now Zend is much more robust and also updated and current. I have it installed as well and I think I might migrate my stuff eventually.
So I would go with Zend if you have to start from scratch. I you are already using AMF then I don't think it's worth the effort on migrating unless you're working on some large scale project.
But then that's just my personal opinion. -
Hello all,
Firstly is it possible to use AMFPHP to send emails ?
At the moment i am using the following PHP script to send emails
<?php
$to = $_POST['senderemail'];
$fname = $_POST['firstname'];
$sname = $_POST['secondname'];
$pass = $_POST['password'];
$recipient = "$to";
$headers = "From: [email protected] ";
$subject = "Elizabeth Norman International Video Recruiter";
$body = "Dear $fname $sname, \n You have now been registered in the Elizabeth Norman International Video Recruiter system. \n Your username is: $to \n Your password is: $pass \n A consultant will be in touch soon. \n \n";
mail($recipient, $subject, $body, $headers)
?>
This is a standalone php file on my server. I would like to intergrate this into my AMFPHP services script file (the file that contains about 15 functions)
Is it at all possible ? If so could someone help ?Thanks for the reply. Although i dont think i explained myself clearly.
I have a AMFPHP service file, that is as follows
<?php
class jobs
var $db_host = '';
var $db_name = '';
var $db_user = '';
var $db_pwd = '';
function jobs()
$this->methodTable = array(
"getJobs" => array(
"description" => "Info Database",
"access" => "remote"
function getAllJobs()
$mysql = mysql_connect($this->db_host, $this->db_user, $this->db_pwd);
mysql_select_db( $this->db_name);
$Query = "SELECT * from usernames WHERE level = 'clientuser'";
$Result = mysql_query( $Query );
return( $Result );
function getLinks()
$mysql = mysql_connect($this->db_host, $this->db_user, $this->db_pwd);
mysql_select_db( $this->db_name);
$Query = "SELECT * from link";
$Result = mysql_query( $Query );
return( $Result );
?>
How would i go about adding this script to that set of functions
<?php
$to = $_POST['senderemail'];
$fname = $_POST['firstname'];
$sname = $_POST['secondname'];
$pass = $_POST['password'];
$recipient = "$to";
$headers = "From: [email protected] ";
$subject = "Elizabeth Norman International Video Recruiter";
$body = "Dear $fname $sname, \n You have now been registered in the Elizabeth Norman International Video Recruiter system. \n Your username is: $to \n Your password is: $pass \n A consultant will be in touch soon. \n \n";
mail($recipient, $subject, $body, $headers)
?>
I have tried a few different things, but when i then upload the changed version, it corrupts the file so to speak and none of the functions work.
Do you know how i could implement it ?
Thanks -
Hi,
I'd like to generate a pdf from within my amfphp service. Anyone know how to do this?
simplified code:
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf->output('doc.pdf', 'I');
This last line of code should open a new browser window and display the pdf
Any idea?
DanyMore details on the error:
code:
Client.Error.MessageSend
Message:
Send failed
Detail:
Channel.Connect.Failed error NetConnection.Call.BadVersion: :
url: '
http://localhost/amfphp/gateway.php' -
When I have tested the movie it works but when i simulate
download i won't work. I have a preloader that loads first as the
classes are loaded in the second frame of the .swf file. In the
simulation i have the download settings to dial up speed (56K). The
preloader comes in but starts at 13% which is annoying as i want it
to start at 0% then it finishes and goes straight to the message
box whixh uses the amfphp. It just says "please wait..." And
nothing happens. What is suppose to happen is the messages stored
on the server is then loaded up. I used netDebugger and showed in
the flash side that it was calling the php but not connection and
the php is not responding.
I am wooried by this and only discovered it when i was
surfing the internet on my psp and that the flash file loaded but
it just stopped at "please wait..." just like in the simulation. I
believe they are connected. And if anyone is wondering my psp
version is 2.80. Which at the time of writing this is up to date
and is flash enabled.We do our development using a local apache server, and
everything works fine in the IDE unless we do the simulated
download. For whatever reason, it just doesn't work, so I wouldn't
worry too much about it. If you really want to see what everything
looks like put together, go look at it on a slow connection. As for
your 0% problem, my guess is that your preloader and any
classes/library items exported on the first frame represent 13% of
your total file size, so there's not a lot you can do about that
other than faking it.
As for your PSP issue, I can't help you there. -
Amfphp and flex - parsing a struct
I am using an amfphp service, which I call from Flex. The
service is embedded in a drupal site, and it calls a function named
getTree() which returns a php "struct"
I can pull out vars from the struct and show them in a
DataGrid (in columns), but since I don't know how deep the struct's
hierarchy is, what I really need is a way to iterate through it and
load all the items into something I can deal with (an
ArrayCollection???)
1. what should I use to store the data (ArrayCollection,
Array, etc.) and why?
2. what code will repeatedly iterate through a tree hierarchy
until it finds all items?
much thx,
-p"LuigiL" <[email protected]> wrote in
message
news:[email protected]...
> That would depend an the struct that is returned. I'm
getting arrays
> returned
> containing objects, see attached dump from
> trace(ObjectUtil.toString(event.result)); in a result
handler on the
> RemoteObject.
>
> I'm parsing the result into an Array and somewhere else
in the program I
> use
> this array to create an ArrayCollection to serve as a
dataprovider for a
> list.
>
>
> private function
onCategoriesResult(event:ResultEvent):void
> {
> trace(ObjectUtil.toString(event.result));
>
> if(event.result.length > 0) {
> for(var i:uint = 0; i < event.result.length; i++) {
> var category:Category = new Category(event.result
.product_category_id,
> event.result.name);
> _categories.push(category);
> }
> broadcastCategoriesLoaded();
> }
> }
>
> private function broadcastCategoriesLoaded():void
> {
> dispatchEvent(new
Event(RemotingCall.CATEGORY_DATA_LOADED));
> }
That's not really recursive. I didn't have time to go into my
code and look
anything up earlier this morning, but here's some code that
recurses XML and
parses it into custom VO's, MenuContainers. Each
MenuContainer has a
children collection that can contain Task VO's (technically
TaskUID's which
are Task VO's decorated with IUID) or other MenuContainers:
private function parseTaskXML(taskXML:XML):void{
//recursively loads a menu container with task VO's
//this also loads the singleton TaskManager for use
//across the app
_allTasks=getChildrenFromXML(taskXML.children());
private function
getChildrenFromXML(childXML:XMLList):ArrayCollection{
var childObj:*;
var dateStr:String;
var theDate:Date;
var splitDateStr:Array;
var tmpID:int;
var tmpDesc:String;
var tmpRunMode:String
var resultAC:ArrayCollection = new ArrayCollection();
for each (var child:XML in childXML){
switch (child.name().toString()){
case 'task':
//parse date info into a true date
if (child.child('taskDate').length()>0){
//temporary string with the date in it in the
//format mm/dd/yyyy
dateStr=child.child('taskDate')[0].text();
splitDateStr=dateStr.split('/');
theDate = new Date(splitDateStr[2], int(splitDateStr[0]) -
1,
splitDateStr[1]);
} else {
theDate = null;
/* If the task has its own runmode, use that.
Otherwise, use the container run mode */
if (child.child('runMode').length()>0){
tmpRunMode=child.child('runMode')[0].text();
} else {
tmpRunMode = child.parent().attribute('runMode');
//Alert.show(child.toXMLString(),
int(child.levelID[0]).toString());
childObj = new Task(int(child.@id), child.idString,
int(child.levelID[0]),
child.desc,
Task.isCompleteStringToConst(child.isComplete),
child.isActive == 'true' ? true : false, theDate,
child.isBookmarked == 'true' ? true : false,
tmpRunMode);
taskManager.tasks.addItem(childObj);
//decorate with IUID to allow easier indexing in
HierarchicalData
childObj = new TaskUID(childObj);
break;
case 'container':
childObj = new MenuContainer(int(child.@id), child.@desc,
child.@runMode);
//continue recursing until all container children have been
accounted
for
if (child.children().length()>0){
childObj.children=getChildrenFromXML(child.children());
break;
default:
//default object
tmpID=0;
if (child.attribute('id').length()>0){
tmpID = int(child.@id)
} else if (child.child('id')){
tmpID = int(child.id);
if (child.attribute('desc').length()>0){
tmpDesc = child.@desc
} else if (child.child('desc')){
tmpDesc = child.desc;
childObj = new Object();
childObj.id=tmpID;
childObj.desc = tmpDesc;
break;
resultAC.addItem(childObj);
return resultAC;
I can't write recursive code off the top of my head--I find
it takes me a
while to get me into the mental state where it makes any
sense at all.
That's why I had to look it up :-).
HTH;
Amy -
AMFPHP and remoting components
I am attempting to get AMFPHP going and have just installed
the latest remoting components.I get these errors when running any
samples I have found.
**Error** NetServices.as: Line 24: Error opening include file
RemotingComponentVersion.as: File not found.
#include "RemotingComponentVersion.as"
**Error** NetServices.as: Line 24: Error opening include file
RemotingComponentVersion.as: File not found.
#include "RemotingComponentVersion.as"
Anybody experience this and or can offer a solution?did you drag and drop the remoting component classes from
"Window ->
Common Libraries -> Remoting" into your library?
perry -
Hope someone can help. I have tried to find the best way to do this and can't seem to make sense of anything. I'm using an Access 2013 Database and I have a report that is based on a query. I've created a Report Criteria Form. I
need the user to be able to select multiple items in a list box and also to enter a Begin Date and End Date. I then need my report to return only the records that meet all selected criteria. It works fine with a ComboBox and 1 selection but can't
get it to work with a List Box so they can select multiple items. Any help is greatly appreciated while I still have hair left.The query should return all records.
Let's say you have the following controls on your report criteria form:
txtStart: text box, formatted as a date.
txtEnd: text box, formatted as a date.
lbxMulti: multi-select list box.
cmdOpenReport: command button used to open the report.
The text boxes are used to filter the date/time field DateField, and the list box to filter the number field SomeField.
The report to be opened is rptReport.
The On Click event procedure for the command button could look like this:
Private Sub cmdOpenReport_Click()
Dim strWhere As String
Dim strIn As String
Dim varItm As Variant
On Error GoTo ErrHandler
If Not IsNull(Me.txtStart) Then
strWhere = strWhere & " AND [DateField]>=#" & Format(Me.txtStart, "yyyy-mm-dd") & "#"
End If
If Not IsNull(Me.txtEnd) Then
strWhere = strWhere & " AND [DateField]<=#" & Format(Me.txtEnd, "yyyy-mm-dd") & "#"
End If
For Each varItm In Me.lbxMulti.ItemsSelected
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
Next varItm
If strIn <> "" Then
' Remove initial comma
strIn = Mid(strIn, 2)
strWhere = strWhere & " AND [SomeField] In (" & strWhere & ")"
End If
If strWhere <> "" Then
' Remove initial " AND "
strWhere = Mid(strWhere, 6)
End If
DoCmd.OpenReport ReportName:="rptMyReport", View:=acViewPreview, WhereCondition:=strWhere
Exit Sub
ErrHandler:
If Err = 2501 Then
' Report cancelled - ignore
Else
MsgBox Err.Description, vbExclamation
End If
End Sub
If SomeField is a text field instead of a number field, change the line
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
to
strIn = strIn & "," & Chr(34) & Me.lbxMulti.ItemData(varItm) & Chr(34)
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
XMPComboBox and XMPDateField probems in File Info Panel
Hi,
I have used Flash Builder 4 with the XMP FileInfo 4.4.2 SDK to build the example Custom File Info Panels.
None of the examples worked using the Flex 3.5 or 4.0 SDKs (blank panels in photoshop).
The example panels build and show in CS4 when I configure Flash Builder to use the Flex 3.0.2 SDK(last stable build of 3.0) .
The panels create and show usable XMP metadata but dropdowns combo boxes don't work and neither does the popup calendar on the date field.
The panel I have to build will require functioning Comboboxes and Popup calendars.
Can you let me know if there is anything I can do to resolve this issue?
I would switch to using CS5 but my company is using over 2000 CS4 licenses.
Thanks,
Paul.Hi Stephan,
1. I'm on Windows 7.
2. I installed the precompiled examples like this:
copy \XMP-FileInfo-SDK-4.4.2\samples\panels\BasicControlSamplePanel directory to :
C:\Program Files (x86)\Common Files\Adobe\XMP\Custom File Info Panels\2.0\panels\BasicControlSamplePanel
The ComboBox dropdown and DateField calendar pop-up works fine in the CS4 photoshop fileinfo panel.
Here's the problem:
I also built the panel in Flash Builder 4 by importing this directory
\XMP-FileInfo-SDK-4.4.2\samples\panels-src\BasicControlSamplePanel
I downloaded 3.0.2 Flex SDK , configured FB4 to use it and chose "Use a specific SDK:" 3.0.2 in the Flex Compiler section.
I changed the runnable Flex applications to use src\examples\BasicControlSamplePanel.mxml
I left the rest of the project properties at default.
I ran an Export release build.
I copied the \target directory to :
C:\Program Files (x86)\Common Files\Adobe\XMP\Custom File Info Panels\2.0\panels\BasicControlSamplePanel
I copied the \bin-release\BasicControlSamplePanel.swf file to :
C:\Program Files (x86)\Common Files\Adobe\XMP\Custom File Info Panels\2.0\panels\BasicControlSamplePanel\bin
In this case ComboBox dropdown and DateField calendar pop-up DON'T work in the CS4 photoshop fileinfo panel.
I have built all the other samples similarly in the SDK and their dropdowns and comboboxes don't work either!
I couldn't find a FileInfoFoundation.swf file but I did find a FileInfoFoundation.swc file - where would i get a FileInfoFoundation.swf file?
I wasn't sure what you meant , so I copied FileInfoFoundation.swc to :
C:\Program Files (x86)\Common Files\Adobe\XMP\Custom File Info Panels\2.0\panels\BasicControlSamplePanel\bin
It didn't make a difference!
Is there something I'm missing or something else I need to do?
Thanks for your help on this.
Paul. -
i have checked google and found horrible incomplete examples
in using send and load XML with php. I have spent an hours on this
and nothing. Unless i can get ha;f decent example with this i think
I might confine XML to the dustbin. This has been horrible
understanding this stuff.
I can use loadvars ut i here XML is better for larger data.
I have got this with load and send and send and load.
I just want to send xml data and then use php script to look
at it (load to mysql)and then send it all back. That doesnt sound
hard but it is by the look of it IS.Hi there,
I use AMFPHP and it works fine for me to retrieve data from a
database with php and send it to flash and vice versa.
The sad thing is that i just began doing this so i don't know
much about it yet.
Maybe it helps you to.
Greetz jacob
ps. if you intend to use amfphp pleas post all links to
tutorials about this here so we all can learn more about
amfphp. -
Amfphp - flex remote object error event handler
I'm using amfphp and I want it to return an error that the flex remote object error event handler will pick up. At the moment I can get only the result handler to do anything in flex.
Hi,
Try throwing an exception in the remote method. For example,
function inverse($x) {
if (!$x) {
throw new Exception('Division by zero.');
else return 1/$x; -
when i do it using mxml, the list populates but when i try
doing it using actionscript 3 it is not working.
//DOESNT WORK...
var catList:List = new List;
catList.dataProvider = multiDArr;
catList.labelField = 'label';
this.addChild(catList);
//WORKS...
var catList:List = new List;
catList.dataProvider = singleDArr;
catList.labelField = 'label';
this.addChild(catList);
//WORKS...
<mx:List dataProvider="{multiDArr}" />
// here is the array i am passing from amfphp and putting
into multiDArr ...
$arr[$i]['label'] = mysql_result($result,$i,'feature_name');
$arr[$i]['_type'] = mysql_result($result,$i,'feature_type');
$arr[$i]['_value'] =
mysql_result($result,$i,'feature_value');well i got a solution to my problem...for now!
Maybe you are looking for
-
I just want my music. I need customer support.
I put $30 in gift cards into my account and still can't purchase the two songs I want.... <Edited by Host>
-
10g stopped working after 11g installed. Getting ORA-12514: error
I had Oracle 10g installed in win2000 sp2. with port 1521. I have installed Oracle 11g on the same system. with port 1522. I am able to start both the instances and tnslistener but I am not able to connect to Oracle10g database. Getting following err
-
Unlocked iPhone Support and being able to move from carrier to carrier.
I am currently stationed in Okinawa, Japan. I want to purchase an iPhone and be able to use and change carriers from Softbank to AT&T and any other carrier that I may be stationed at. How do I get a phone that I can keep and move from country to coun
-
A Continuous running function in webdynpro
hi all, I wanted to know if a continoussly running function in the background can be run in webdynpro. For eg in my view if i enter in the morning a label should say "good morning" and afterwards a function should be running in the background which w
-
Lock Screen not working since upgrade to 4.2
Hi People. My lock screen switch doesn't lock the screen anymore. Instead it mutes the audio. Any ideas?