Convert displayed datetime in Flex app to database's

I currently use Flex web services to request data from an sql
server database (via a .net app) and bind the result set .net
datatable to a flex datagrid. The datagrid has a datetime column
that displays the local time at which the client created the record
instead of the sql server datetime value. How can I change my
datagrid records to show the database's datetime? Here's an
articles related to this issue... but wasn't able to get it to work
in my context:
http://blog.shrefler.net/?p=13.
Any help would be appreciated!

"justneed2know" <[email protected]> wrote in
message
news:g980h7$m5f$[email protected]..
>I currently use Flex web services to request data from an
sql server
>database
> (via a .net app) and bind the result set .net datatable
to a flex
> datagrid.
> The datagrid has a datetime column that displays the
local time at which
> the
> client created the record instead of the sql server
datetime value. How
> can I
> change my datagrid records to show the database's
datetime? Here's an
> articles
> related to this issue... but wasn't able to get it to
work in my context:
>
http://blog.shrefler.net/?p=13.
>
> Any help would be appreciated!
Why not just send the request to create the record to the
server _before_
you do anything with it in Flex, then bring it back and
display it in Flex?

Similar Messages

  • How to display ads in Flex APP

    Hi All,
    How i can place a ads in the flex application.
    Any work around.
    Please send the sample link or tutorials
    Thanks & Regards,
    chaitanya

    An ad would be an image or Flash movie, both of which can be displayed quite easily and given hyperlink behavior. It all depends on what kind of logic you need to support rotation. You will want to keep the ad content resources external of the swf. Maybe have an XML properties file to load in specifying resources, their links, and whatever else you need.

  • How to display bitmap in Flex App

    Hi,
    I want to alter pixel data in an image and then display the
    altered version alongside original image. I am manipulating the
    bitmapData from the original image and then creating a new Bitmap
    from the altered bitmapData.
    How can I add the new Bitmap to the display list? I am
    getting a "not UIComponent" error message when I try to add it.
    Casting it as a UIComponent also fails.
    Or am I taking the wrong approach?
    TIA

    Hi,
    Please try as show in the code below.
    Hope this helps.

  • An AS component doesn't appear in a flex app

    The following AS draws a line and works in its own right,
    package components {
    import flash.display.Sprite;
    import flash.display.Shape;
    public class DrawTest1 extends Sprite {
    public function DrawTest1() {
    var shape:Shape = new Shape();
    shape.graphics.lineStyle(0,0x0000FF, 1);
    shape.graphics.lineTo(100,100);
    addChild(shape);
    It was then included in a flex app as
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:custom="components.*"
    layout="horizontal">
    <custom:DrawTest1 />
    </mx:Application>
    but only a blank screen (i.e. without the line) was displayed
    when the flex app was executed (no error message was given during
    compilation). Please help.

    Flex containers (incluing Application) can contain only
    components which are derived from UIComponent or implement
    IUIComponent interface.
    To get your component to display in the application create a
    UIComponent as child and add the DrawTest1 component as a child to
    it.
    <mx:UIComponent id="p1"
    creationComplete="p1.addChild(t1)"/>
    <custom:DrawTest1 id="t1"/>

  • Display image in flex from database

    I am using flex and java and mysql,
    I upload image file into database from flex application.Now i want to display image in my flex
    RIA application from database.
    How can i do that??
    Thanks in advance!!!

    "B.O.H.R." <[email protected]> wrote in
    message
    news:g91dr3$b0f$[email protected]..
    >
    quote:
    > Ordinary Flex can't do this. You could probably do it in
    AIR. There's a
    > separate forum just for AIR applications.
    >
    >
    > Could you precise which things flex CAN'T ?:
    >
    > 1. load image file from local disk and represent it as
    an object in Flex
    > app?
    > 2. display image represented as object(created as above)
    in Flex app?
    > 3. transfer that object back and forth to database using
    BlazeDS ?
    >
    > Maybe there are posibilitie to make workaround of some
    inconviniences?
    > I am asking becaouse I realy would like to create such
    app in Flex.
    Flex can create an AIR application.
    But a swf file can't read from the local drive.
    HTH;
    Amy

  • Displaying Ads on a Flex App ?

    Hi,
    I have a flex based application that resides on 100% of the browser page.Now i want to display some Ads on the flex based App. Google Adsense is not supported i think.I read some blogs using an iframe we can display some Ads.I don't want to do that, it might slow the app.Is there a better way.
    There are some Ads that i see made in flash, we should be able to display them directly right.Can you suggest some ad networks that provide such ads.
    Thanks
    Rajat

    I would suggest a proxy located on the server.  It would connect to adSense, then communicate with your FLEX app.  BLAZE could be used for both the proxy and the "PUSH" to you app to display the text in the ads.  We are building this for ourselves right now, if you'd like to know more you can contact me at curtis dot fisher at procontent dot net.
    cheers,
    Curtis

  • Flex app doesn't work when moved from original location

    I'm trying to make an image gallery in flex. It works when I run it in Flex Builder perfectly fine. The html and swf files from the bin-debug folder work perfectly fine when opened in any browser also, but ONLY when those files and all related files are opened from the default location that the application was built in. When I export a build to a different folder, the swf loads but none of the information from the xml file displays. I tried setting all of the paths of the reference files (namely the xml) in the flex app to the exact absolute location on the server, and it still didn't work when I uploaded it to the server.
    I've tried several approaches starting from scratch and they have all come up with the same issue. I'm working with an educational license for Flex Builder, I'm not sure if they jip you on those and ruin the compiled swf.
    Please help! I'm losing my mind over this.I think it has to do with something else besides the code since it works fine when I hit "Run", but if anyone thinks it will help to post the code let me know.

    when you build an application using one of the wizards (like coldfusion flex application wizard) it hard codes
    paths to cold fusion CFC's, and sometimes gets it wrong.
    If your application references cfc's (or other remote objects) then it may be necessary to adjust the flex code
    when moving the code into a different base folder.
    For example in my own application, the url is http://localhost/crm_dev_flex and the built application gets put into
    c:\inetpub\wwwroot\crm_dev_flex\bin-debug
    References in the code to components found in c:\inetpub\wwwroot\crm_dev_flex\bin-debug\components\cfgenerated
    (in the flex code these looks like crm_dev_flex.bin-debug.components.cfgenerated.<mycomponent> )
    These need to change when you move the code to somewhere else.
    Also, if you are using wizard generated cfc's then these also contain similar references that need to be changed.
    IHTH.
    Cheers

  • Deployment of Flex app to web and app server

    Hi
    I'm working on putting a Flex front-end on an existing J2EE
    app which gets deployed as an ear file. The architecture consists
    of web server, app server and database server. Is the following
    approach to deployment possible / recommended?
    My Flex app will be deployed to the web server. The J2EE ear
    file will be deployed to the app server (Weblogic). BlazeDS will be
    bundled within the ear file as a war file. Remote Objects will be
    configured in my BlazeDS configuration files to enable me to access
    the code in my J2EE app. In the compiler options of my Flex app,
    I'll be setting the server root folder and server root URL to point
    to the BlazeDS war file on my app server.
    At present I'm at the stage where I can run my Flex app
    directly from Flex builder on my development PC and it's able to
    connect tto the J2EE app, which is running on the app server
    (Weblogic) also on my development PC. I can't find documentation
    explaining how to extend this to work on a multi-tier architecture.
    Thanks
    David

    Hi,
    I replied to your post in FDS forum. Please visit the URL
    below for the response.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=583&threadid=1373523
    Hope this helps.

  • Loading purchased swf into Flash Builder 4 Flex app

    I have purchased a Flash "fundraising thermometer" from an online Flash components site. It takes input from an xml file and displays a thermometer with the goal at the top and the current amount raised indicated. It came with the following files:
    thermometer.swf
    thermometer01.fla
    thermometer01.html (A sample that works.)
    xml/thermometer.xml (The source file: goal amount, current amount, mark interval, etc.)
    caurina/transitions (Mostly .as files.)
    Since the test html (thermometer01.html) works fine, I thought this would be a no-brainer.
    I first unzipped the files into a "thermometer" folder in my current project. I then went into Flash Builder and created a SWFLoader object as follows:
    <mx:SWFLoader 
    id="myLoader" source="../thermometer/thermometer.swf" complete="initThermometer();" autoLoad="true" scaleContent="false"/>\
     private function initThermometer():void { 
         Alert.show('Thermometer loaded');
    The Design view looks fine. I can see the thermometer default image (see below).
    When I run the app, I get no errors, just a broken image link in a box (see below). The alert box also never shows up.
    I'm new to Flex, so I may be doing something stupid that keeps this from working. I contacted the author of the thermometer widget but he doesn't know anything about Flex.
    Any help figuring out how to get this to work in a flex app would be appreciated.

    You should probably add more event handlers to see what's going on.  Especially "ioError". The complete list is below.  For coverage, add a handler for each event. You can also use in MXML
         complete="initThermometer(event)
    and add an argument to your Actionscript method, to find out details about the event.
    private function initThermometer(event:Event):void { 
         Alert.show('Thermometer loaded ' + event.type);}
    Events
        complete="No default"
        httpStatus="No default"
        init="No default"
        ioError="No default"
        open="No default"
        progress="No default"
        securityError="No default"
        unload="No default
    General info here:
         http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html
    I did not test my code suggestions, but it's probably close.

  • How to display datetime like below

    How to display datetime like below
    13-oct-2014 10:11:00
    2014-10-13 10:11:00
    (I always must display seconds as 00)
    format is
    dd-mmm-yyyy hh:mm:00
    yyyy-mm-dd hh:mm:00

    if I use 
    SELECT FORMAT(getdate(),'dd-MMM-yyyy hh:mm:00')
    I'm getting the following error
    'FORMAT' is not a recognized built-in function name.
    Thats because your version is below 2012
    then use the other suggestion which is
    SELECT REPLACE(CONVERT(varchar(12),datefield,106),' ','-') + ' ' + CONVERT(varchar(5),datefield,108) + ':00'
    FROM Table
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Why would I need to use LiveCycle Data Services in a Flex app?

    I cannot figure out what additional functionality is provided by using LiveCycle Data Services in my Flex apps.  I cannot get a clear understanding of how using LiveCycle Data Services would benefit my applications.  Does someone out there use LiveCycle Data Services?  If so, what do you do with it in Flex?
    Thanks!

    - data push for publish/subscribe implementations
    User has to do nothing to get updated information. You push it to their machine when new data is available, like Yahoo finance updated quotes.
    - data paging
    You don't want to display one million rows in your datagrid at once. Get a batch of data, if the user scrolls down, get the next batch, etc.
    - server side clustering
    One server does not get overloaded. High traffic sites have their large number of concurrent connections managed more efficiently.
    - JMS services
    JMS is a powerful technology for messaging throughout an application, and LCDS makes it much easier.
    - RTMP tunneling
    Allows the use of the RTMP protocol in LiveCycle Data Services applications. Makes it easier to traverse firewalls and proxies appropriately that currently prevent direct RTMP client connections to the server.
    If this post answered your question or helped, please mark it as such.

  • How to have HTML tags in Flex app wrapper.

    If I put this just below the <body> tag in my Flex app
    HTML wrapper, it displays:
    <h2>Greg Lafrance</h2>
    But if I put that tag just above the ending </body>, it
    does not show up.
    I'm sure it is something simple, but can someone please
    enlighten me?

    Hi,
    overflow property will tell the browser to hide the content
    if it is overflowing the available space. Please find more details
    at the URL below.
    http://www.w3schools.com/Css/pr_pos_overflow.asp
    IE is ignoring this style property and so we have scroll
    property for the BODY tag also. As Tracy mentioned, these are set
    to make sure Flex application occupies the browser.
    Hope this helps.

  • Flex app can't connect to the internet / server when uploaded?

    I made a simple app that submits a data via POST using the HTTPService. My problem is, when I Run the application from the Flash Builder IDE, and it opens in the browser as a local file, it interacts with my server (remote server) without any problem and does its job well. However, when I upload it to my website, it fails to interact. It displays on the status bar of Firefox that it's connecting to the server that requires interaction but after some time the status reverts to "Done" with my Flex app not showing any Alert boxes if it either succeeded or failed.
    It's really making me frustrated not knowing what's wrong..
    Also if it would be an added help, I decided to use the Flex 3.5 SDK to make it more compatible with commonly installed Flash Players on people's computers since the features that I used doesn't really need those of 4.0.

    Contact the app developer and ask... That's an XML error on the host.

  • Signed flex apps

    Hello,
    I am new to Flex and am looking at developing some neat web
    based instrumentation apps.
    My apps will need to access serial ports, local files and be
    able to connect to servers other than the one from which the app
    originated. I am looking into doing all this from a flex app
    launched from the internet (not Adobe AIR).
    Is it possible to accomplish this in some way, such as
    digital signatures, configuration files etc???
    I have previously developed such apps using signed java
    applets, and am wondering is something similar exists for flex.
    your feedback will be much appreciated
    LK

    While a web-app can't access local resources, a web app can
    communicate with an AIR application, which might act a a proxy for
    local interaction.
    As an example, Parleys
    http://www.parleys.com/display/PARLEYS/Parleys.com+V2+BETA+Program
    stadnalone version
    http://www.parleys.com/download/attachments/3440646/Pandora.air
    communicates with the browser based version
    http://www.parleys.com/display/V21Beta/Home#page=Home.

  • HTTP request logger/simulator for flex app

    I have a server that provides input xml data to a flex app in a browser be displayed on the screen for editing over http. Can someone suggest a way to cache and simulate this server's response? I need the flex app in the browser to work even when the server is down (for testing and UI dev). Any tools or ideas that I may be able to use?
    Thx

    just point your HTTPService tag to any local xml file having static data snapshot using url attribute
    If you feel this message answers your question or helps, please mark it respectively

Maybe you are looking for

  • Po design for MM. (MEDRUCK MODIFICATION)

    Hi ,   I have modified standard 'MEDRUCK' script form. let it be script1. Now i have to do another script say script2 , where in if any body tries to print from me23n transaction, they should be blocked. they should be able to only print preview ( no

  • Pal/NTSC - double trouble?

    I'm creating a DVD for use both in the UK (Pal) and in Canada (NTSC). Do I need two different video files - one in Pal, the other NTSC - or can the DVD play if it's set to multi-region?

  • Manage photos on iphone without computer

    How do I manage photos on my iphone without a computer?

  • Canoscan Lide 600 - Canonscan Toolbox crashes on launch...

    I have just purchased a Canonscan Lide 600... When I launch the Canonscan Toolbox (version 5.0) the program crashes... Can anyone suggest a fix? I have been able to get Image Capture to work. I would also like to get Photoshop to work too but when I

  • Problems packaging epub file

    Hello, i hava a problem when i am packaging a epub file. it pass epubcheck with " no errors" When i try to package the file i put: java -Xmx1024M -jar uploadtest-1_2.jar [URL] file.epub -pass X -xml -jpg I don´t know what it is happened...