How can I return the data again to Flex my cfc

I use a cfc by default CRUD built in Flex Builder 3 using activeRecord. I changed my cfc to return the query and access remotely, but I always event.result = null.

What I am doing wrong? I just want to return the folder after I save it.

I know I could create a new method in my manager to call a query that will get the record based on my values of form, but I want to return that same value without having to suddenly. Is this possible?

Flex MXML

< mx:RemoteObject

ID = "roMyObject" destination = "ColdFusion" source = "CFCs. MyGateway"showBusyCursor ="true">

< name mx:method = 'save' result = "MyHandler (event); "/ >

< / mx:RemoteObject >

Gateway CFC

< cffunction = 'save' output name = "false" access = "remote" >

< name cfargument = "obj" required = "true" / >

< cfreturn obj.save () / >

< / cffunction >

CFC

< cffunction = 'save' output name = "false" access = "public" returntype = "Cancel" >

< cfscript >

If (this.getClassifiedID (eq) 0)

{

Create();

} else {}

Update();

}

< / cfscript >

< / cffunction >

< name cffunction "crΘer" output = "false" returntype = access = "remote" = "query" >

< cfargument name = "obj" required = "true" >

< cfset var qCreate = "" >

< cfset var qread read = "" >

< cftransaction isolation = "read_committed" >

< cfquery name = "qCreate" >

Create folder

< / cfquery >

< cfquery name = "qGetID" >

Select last_insert_id() as new_id;

< / cfquery >

< / cftransaction >

< cfreturn qGetID >

< / cffunction >

Hello

You gave the return type of function as zero economy. Try the following code.

If (this.getClassifiedID (eq) 0)

{

result = create();

} else {}

result = update();

}

Hope this helped you

concerning

Tags: Flex

Similar Questions

  • How can I return the path of a test step VI in LabVIEW?

    I would create a VI that will return all of the VI paths that are associated with the test steps in a TestStand sequence.  How can I return the path of the VI associated with a test step?  Here is a starting point that will return the first step of the sequence.

    You must convert the Module to a LabVIEWModule (use the variant to the data node), then you can use LabVIEWModule.VIPath.  If you use TestStand 2010, you can call LabVIEWModule.GetVIAbsolutePath to find the VI in the case you are calling with a project.

  • How can I erase the data on my laptop before I give it away?

    How can I erase the data on my laptop before I give it away?

    See this document.

    https://support.Apple.com/en-us/HT201065

  • How can I restart the date and time?

    The date and time on my task bar have become desensitized. How can I restart the date and time?

    I can't access the same system for the date and time preferences.

    Have you tried restarting your Mac?

    See you soon,.

    GB

  • How can I get the data view to display the same amount of time I save?

    I use the Sound and Vibration Measurement Suite.  In the data view, I display a graph of time, the power spectrum, the Color Map and the waterfall.  I am also showing strength in numbers group for several bands and doing cutting-edge research.  I record 100 ms of the transient wave.  In the data view, why the temporal plots show several seconds of data?  What determines how much time will appear in the data view?  More important, the power spectrum reflects the power for the entire of several seconds of data displayed?  Same question for power in the values of band and cutting-edge research.  I want to just this data displayed for 100 ms of the wave that I record.  So, how can I get the data displayed (waveforms) and power numbers come only 100 ms of the recorded wave?

    Finally, what is the best way to make account concisely the recorded data?  By slide numbers on the Documentation tab is not concise, because it comes with graphics, etc..  I tried save as ASCII/LVM, but I get a bunch of stuff intermiated I don't care.  Help?

    Hi TimRsandiego,

    SignalExpress is programmed to display graphs with default scales based on the type of action, it's reading. These scales and settings can be changed by right-clicking on the graph, and then select Properties.

    If you are interested to learn more about how to use SignalExpress, I would recommend checking out some demonstrations/tutorials on NI.com. You can find some of these demos at the following location:

    Let me know if you have any other questions.

    Kind regards

  • How can I change the date on photos with the Photosmart A646?

    How can I change the date on my photos when using the Photosmart A646 with Windows 7?

    It says 01/01/70. I explored all the options on the touch screen of the printer as well as the print on the computer properties screen and can't seem to find a way to change the date.

    If you took a picture with the turn date stamp feature then you can not change the stamp.

  • How can I change the date and time on my HP officejet pro

    How can I change the date and time on my HP Officejet pro?

    I'll be gald to help you in this situation.

    What officejet do you have?

    You can go to the settings on the printer screen.

    1. click on Setup

    2. click on Preferences

    3. choose the Date and time

  • How can I return the audio for my lap top.

    Original title: audio sound

    I inadvertently deleted something that gives me sound on my lap top. I think it is silverlight. How can I return the audio for my lap top. THX

    Hello

    1 have had any changes made on the computer before the show?

    2. what operating system is installed on the computer?

    3. when exactly do you face the question?

    I suggest to return the item and try to run the fix it:

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

    Please provide more information to help you best.

  • How can I identify the date when the last system restore was used to roll back the pc?

    Original title: how System Restore last used

    As the title suggests, how can I identify the date when the last system restore was used to roll back the pc?

    I can remove all restore points. I've used twice now the beta off Defender & he assures me
    the pc is clean Virgin.

    I have just got rid of a Trojan dropper & a Win 32/AmmyyAdmin. -(whatever it was!)

    I now seem to have acquired Windows Powershell along the way, gawd knows where!

    He was not here a few days ago and I don't have any idea where it is!

    What is it and should I be worried?

    Thank you

    Hello

    You can check this link:

    How to restore Windows XP to a previous state

    http://support.Microsoft.com/kb/306084

  • How can I know the date of my current windows installation?

    How can I know the date of my current windows installation?

    Start - All Programs - Accessories - right on command prompt and choose run as administrator. Type (or copy and paste by clicking in the command prompt window and choose Paste).
     
    SystemInfo | more
     
    It is up.
  • I accidentally deleted a volume in Windows 7! How can I recover the data?

    I accidentally deleted a volume in Windows 7! How can I recover the data?

    I created a retractable partion on "D" Drive and later to try to remove it and accidentally I clicked on "D" drive instead of the new partition! "."
    Any ideas to recover data?
    Thank you
    Amal

    Hello

    You can try this free program; no warranty if.

    http://www.Piriform.com/Recuva

    See you soon.

  • How can we get the bootloader again closed?

    Hello

    I unlocked the bootloader on my Xperia thumb with "fastboot.exe-i 0x0fce oem unlock 0 x."course. "

    Since then refused SUS or PCCompanion update to a newer version of Android.

    It appears the error code "2003".

    How can we get the bootloader again closed?

    And 2003 error code what does it mean?

    Good bye

    Franz

    You must be knowing how Flash, Yes?

    Download the linked file here http://forum.xda-developers.com/showthread.php?t=1799005 and flash using flashtool

  • Vista initilalize usb disk... How can I backup the data?

    My usb cable was disconnected during moving the files from a [URL = http://www.seagate.com/www/en-gb/products/external/expansion/expansion_desktop/] external expansion of 3 TB Seagate USB Drive. [Url] to my drive is internal. Now Vista sees is no longer the USB in the Explorer. I went in the Adim tools/disk management & demand if I want to 'initialze disc' which gives two options "use the following disk partition style" MBR or GPT. At this point, I chose to leave the application I have I'm not sure what the difference is. Either option would allow me to access the data on the disk? If this is not the case, how can I retrieve the data already stored on the disk?

    Hello

    Refer to this link and run the troubleshooter and check:

    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-solving-problems-with-USB-devices

  • How can I change the date on my Officejet 6500E709N

    How can I change the date on my Officejet 6500e 709n

    Hi IKH,.

    Follow the instructions below

    1. press the Setup button on printer

    2. go to 6. Tools and then press ok

    3. press OK on Date & time and then enter date

    4 close ok to enter in time

  • How can I add the date of my taskbar notification area?

    I have the time but not the date in my notification area of the taskbar, how can I add the date?

    Right-click in an empty area of the taskbar, click Properties and then on the tab of the properties task bar, clear the check mark next to "Small icons"  This, of course, also means that the taskbar will be slightly higher, and you won't have the small icons.

Maybe you are looking for