Using HTTPService to fill Combobox from DB SQL

I'm having a little problem with the filling of a combobox after I call a httpservice. Showing data, however, it's all appear on a single line over several items to combobox. For example, I get a single line in the drop-down menu that looks like this:

DATE1, DATE2, DATE3

instead of get:

DATE1
DATE2
DATE3

I found this article, but it does not really my problem and I already seem to wear all recommended in this article ( http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60 & catid = 585 & threadid = 1220768 & highlight_key = y & keyword1 = combobox).

Part of my PHP script:
-----------------------------------------------
$return = '< horodateurs > ';
While ($Row = mysql_fetch_array ($result))
{
$qrtrdisp is $row ["quarter"];.
$return. = "< date >." $qrtrdisp. "< / date > ';
}
$return. = ' < / timestamps > ';
Print ($Return);
-----------------------------------------------

Part of my MXML file:
-----------------------------------------------
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" creationComplete = "getDates.send ()" >

<!-set call to enter the dates for the shape->
< mx:HTTPService id = "getDates" url = "https://url/file.php" useProxy = "false" method = "GET" showBusyCursor = "true" >
< / mx:HTTPService >

< mx:ComboBox id = "dates" x = "201" y = "6" dataProvider = "{getDates.lastResult.timestamps}" labelField = 'date' > < / mx:ComboBox > ""
-----------------------------------------------

Any help would be greatly appreciated.

Thank you
Chris

You may need to structure xml youre differently. You set the dataprovider for the timestamps down, try each date in its own node parent and dot up to getDates.LastResult.timestamps of packaging. (the new node)

Tags: Flex

Similar Questions

  • Can we use &amp; in the commented code from PL/SQL?

    I used & in the commented block of PL/SQL when I compile it Toad, it was compiled, but it had not when I compile SQL * why?


    SQL > declare
    2 v_number number;
    3. start
    4 / * this called abc and xyz procedure * /.
    5 zero;
    6 end;
    6 N
    Enter the value for xyz:

    in SQL * more type:

    SQL> set define off
    

    to stop prompting substitution variables.

  • SQL (body of function from PL/SQL returning the SQL) query when you use to_char

    We are trying to build a page of Type SQL Query report (body of function from PL/SQL returning SQL query).
    our request is simple, to extract the month of the column recording_date.

    declare
    l_query varchar2 (1000);
    Start
    l_query: = 'select to_char (recording_date, 'MM') of re_productive;
    Return l_query;
    end;

    but we would like the following for this query problem

    Function returning SQL query: query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the box of generic columns below the source of the region without analysis.
    (ORA-06550: line 4, column 42: PLS-00103: encountered the symbol "MY" what awaits one of the following values:.) (* @ % & = - +; <>/ at is mod remains not rem <>or! = or ~ = > = < = <>and or as between | multiset Member SUBMULTISET_ the symbol ".") was inserted before 'MY' to continue.)

    Notes:
    1 - the request is correct and it has been tested under sqlplus and toad.
    2. we tried option use generic name (analysis of query runtime only) column, but we get the same problem.


    any quick help please.

    Hello

    You have not escaped your quote in the string. Try this...

    DECLARE
    l_query VARCHAR2(32767);
    
    BEGIN
    
    l_query:= 'select to_char(recording_date,''MM'') from re_productive';
    
    RETURN l_query;
    
    END;
    

    See you soon

    Ben

  • Help! Problems with unique elements in dedicated... each loop using HTTPService

    I'm starting out with Flex 2/ActionScript 3, and I'm having a real
    problem trying to navigate through the results returned by a HTTPService (in
    XML format) when there is only one line of data. Here's what I have:

    ------------------------------------------------------------------------------------------ ------------------------------------
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml '
    layout = "absolute" creationComplete = "Results.send ()" >
    "" < mx:HTTPService url = " http://mysqlserver/test?sql=EXECUTE+usp_Test"
    ID = "Results" showBusyCursor = "true" result = "ShowData ()" / >

    < mx:Script >
    <! [CDATA]
    private void ShowData (): void {}
    for each {(var: objet row dans Results.lastResult.items.item)}
    DataItemList.text += row.id + "\n";
    }
    }

    []] > < / mx:Script >
    < mx:Text x = "10" y = "10" width = "100%" height = "100%".
    ID = "DataItemList" / >

    < / mx:Application >
    ------------------------------------------------------------------------------------------ ------------------------------------

    Now, I have exactly what I expected when the http service returns more
    only a single line, like this:

    elements <>
    < item id = "Something" / >
    < item id = "Point Two" / >
    < / object >

    But if there is only one line, like this...
    elements <>
    < item id = "Something" / >
    < / object >

    ... I get a "ReferenceError: Error #1069: id of property not found on '.
    String and there is no default value. »

    It seems that the/foreach loop is broken? I looked around and
    seen the references explaining that one line is returned as another
    data type (object) as several lines (collection ArrayCollection). Is this true?

    I want a method that returns the same type of data regardless of the
    the number of lines. Any help would be greatly appreciated.

    Ah, I don't recommend that. On the other hand, specify resultFormat = "e4x".

    "In addition, rather than use lastResult, pass 'event' to the Manager.
    ShowData (event)

    And in the function:
    private void ShowData(oEvent:ResultEvent):void {}
    var xmlResult:XML = XML (oEvent.result)
    trace (xmlResult.ToXmlString ())

    See if you get the correct xml with a single line in this way.

    We'll go from there.
    Tracy

  • Fill ComboBox with XML data

    I would like to fill a ComboBox with data in a simple xml file like this. It's probably quite newbie question, but I couldn't find the answer to the search in this forum and the documentation up to date.


    < root >
    option 1 < item > < / item >
    option2 < item > < / item >
    Option3 < item > < / item >
    < / root >


    I would be very grateful if someone tell me how the ComboBox control to retrieve data from XML file. Thank you!

    I found a way to do it. Here is the code I use to populate a ComboBox control with dynamically loaded XML data (the XML content is in the first post).
    I'm sorry that I have opened a topic for this fundamental question. In any case I hope that the thread is useful for someone. If you think that there is something wrong with the code below, please post a reply.



    http://www.Adobe.com/2006/mxml"creationComplete ="parseXML (); » >


    public var myXML:XML
    public var myLoader:URLLoader

    function parseXML (): void {}
    myXML = new XML();
    var XML_URL:String = 'content.xml ';
    var myXMLURL:URLRequest = new URLRequest (XML_URL);
    myLoader = new URLLoader (myXMLURL);
    myLoader.addEventListener ("complete", xmlLoaded);
    }

    function xmlLoaded(evtObj:Event):void {}
    myXML = XML (myLoader.data);
    combo.dataProvider = myXML.children ();
    }

    ]]>




  • How can I call ttOptUpdateStats from PL/SQL

    I would like to: call ttOptUpdateStats from within a PL/SQL block.

    An example of one: run immediately using the input arguments in the PL/SQL Developer's Guide.

    The examples cover only builtin procedures returning data.

    Thanks for the help!  Here's my working version:

    Create procedure UPDATE_STATS as

    type of TblList is the table sys. TBL_STATS. TYPE % TBLID;

    tblids TblList;

    TBL VARCHAR2 (255);

    flag for number: = 1;

    plsql_block VARCHAR2 (255);

    LASTDATE SYS. TBL_STATS. TYPE % LASTSTATSUPDATE;

    Start

    plsql_block: = "call ttOptUpdateStats(:tbl,:flag)";

    Select TBLID bulk collect into SYS tblids. TABLES where the TBLOWNER not in ('SYS', 'TTREP', 'GRID');

    because me in tblids. FIRST... tblids. LAST

    loop

    Select trim (TBLOWNER): '. ' || Trim (TBLNAME) tbl of SYS. TABLES where SYS. TABLES. TBLID = tblids (i);

    execute immediate plsql_block using tbl, flag;

    Select LASTSTATSUPDATE from SYS lastdate. TBL_STATS where SYS. TBL_STATS. TBLID = tblids (i);

    dbms_output.put_line ('< '="" ||="" rpad(tbl,45)="" ||="" '="" '="" ||="" lastdate="" ||="" '="">');

    end loop;

    exception

    while others

    then

    Rollback;

    end UPDATE_STATS;

    /

    Ed...

  • Export as .xls. Classic report type: SQL (body of function from PL/SQL returning the SQL) query

    Hey guys,.

    I'm using version 4.2.6 apex. The theme is 26.

    IM also using Listener Oracle APEX.

    I can print my classic report in PDF or CSV format.

    But I need to export it as a .xls extension.

    Report type: SQL (body of function from PL/SQL returning the SQL) query

    I need is like this cause my 'where' clause type is dynamic.

    Look at using this method: Tom's Blog: a non-standard export excel 2010 (.xlsx)

    I do something similar for downloads to excel in my projects...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • confusion on the stats from v$ sql

    I'm trying to increase the performance of a quarter of the exadata machine rack and uses the table v$ sql to see what questions the front-end application is generating (done automatically) and sending it to oracle. I question the table v$ sql like this:

    select       sql_id,
             io_cell_offload_eligible_bytes qualifying,
            io_cell_offload_returned_bytes actual,
             round(((io_cell_offload_eligible_bytes - io_cell_offload_returned_bytes)/nullif(io_cell_offload_eligible_bytes,0))*100, 2) io_saved_pct,
             elapsed_time/1000000,
             first_load_time,
             application_wait_time/1000000,
             concurrency_wait_time/1000000,
             user_io_wait_time/1000000,
             plsql_exec_time/1000000,
             java_exec_time/1000000,
             cpu_time/1000000,
             rows_processed,
             sql_fulltext,
            sql_text
    from v$sql
    where io_cell_offload_returned_bytes > 0
    and instr(sql_text, 'D1') > 0
    and parsing_schema_name = 'DMSN'
    order by 
     --(round(((io_cell_offload_eligible_bytes - io_cell_offload_returned_bytes)/nullif(io_cell_offload_eligible_bytes,0))*100, 2)) asc
    elapsed_time/1000000 DESC
    

    Whats confusing for me, is that I see a row of the table like this:

    SQL_IDQUALIFYING STAGEREALIO_SAVED_PCTELAPSED_TIME/1000000FIRST_LOAD_TIMEAPPLICATION_WAIT_TIME/1000000CONCURRENCY_WAIT_TIME/1000000USER_IO_WAIT_TIME/1000000PLSQL_EXEC_TIME/1000000JAVA_EXEC_TIME/1000000CPU_TIME/1000000ROWS_PROCESSEDSQL_FULLTEXT
    bvmtg9n1bss3r18148517478412078877497633.445168.2056812013-07-26/11: 42:535.4811320.1131123773.585818001429.028102401297(HUGECLOB)
    44y4dvhb12zc033035648204811081740899.973472.1109582013-07-29/10: 11:352.3594060.1283883447.0861740021.973275(HUGECLOB)
    fssqzqq0tsffq428624363520720511668898,323099.0869972013-07-20: 20: 51:280.0585730.0730642686.07765300361.08140107806(HUGECLOB)
    gyy3tk70t5h69830125015047048165344015.13050.0214792013-08-01/10: 49:442.6619730.000609279.596557002942.20743649621(HUGECLOB)
    fxazp767kzcan36453253126389645208-75.281477.2321612013-08-05-09: 17:140.0800020.0002681374.6492410083.69754293(HUGECLOB)
    0229k7cwq33aq51346874368306226255294.04804.3517662013-08-02/16: 01:341.8800490,0019693.15681400108.6252005797(HUGECLOB)

    the elapsed times are very long and my understanding is that it is the operating time from end to end for queries, is that correct.

    But when I run these queries into a toad, the results come back in about a minute or two.

    I have also noticed that most of the time is divided between USER_IO_WAIT_TIME and CPU_TIME, I think I understand what is CPU_TIME, but I wasn't quite able to understand what USER_IO_WAIT_TIME is the online documentation.

    My question is, the elapsed time is really the end of the query execution time? If so, why do I see CBI? genetically different times when run the queries in Toad manually?

    SELECT ELAPSED_TIME/EXECUTIONS AVG IN V$ SQL;

    because elapsed_time is a cumulative value

  • Failed to 150 000 lines extracted from "xlsx" SQL query results

    Environment:

    SQL * Developer 3.1.07.42 on Windows XP SP3
    Oracle 11.2.0.3 EE on Solaris 10.5

    I ran a query in a spreadsheet window and the first page of results came back in 10 seconds, whoo hooo!

    I right click on the first column of the first row and selected 'Rows Count' and back 527 563 after thinking a bit.

    I clicked 'Export', selected a box for "Query worksheet name" "xlsx", uncontrolled size and traveled to specify the output file directory (my local C: drive) and the name of the file. I clicked on "Next" and then on "Finish".

    I watch the meter of the line at the bottom right of the window and it went very quickly until he hit about 150 000 lines and then it started to slow down. It got slower and slower and slower and slower, and you get the picture, and finally, I killed the process when it took more than 15 seconds from 156 to 156 250 245.

    Why would it be?

    Additional information:

    I have the same exact query is represented and exported the same lines 527 563 using the "xls" instead of "xlsx" format and the process has proceeded all the way to the end very quickly and successfully completed in just a few minutes. The worksheet resulting contained 8 eight worksheets since it could only put 65536 lines on each worksheet. This was acceptable to the user who just merged the data manually.

    There are some issues with the help of "xlsx" format of output as opposed to simply use it as input format?

    Is SQL * Developer trying to create a spreadsheet with the same number of rows as the data up to the max in Excel 2010 (over 527 563)?

    Thanks a lot for all shed light on this issue. If I omitted no details important please let me know and I'll try to include them.

    -gary

    Hi gary,.

    You may have seen one or more threads as follows on the question of fees increased memory overhead for the formats of Excel:
    Re: Developer Sql 3.1 - export a set of results in xls generates and empty the file

    Basically, Developer SQL uses a third-party provider API to read and write these Excel formats. There are separate readers and trainers for each of the forms xls and xlsx.

    There is a new version of the API that supports streaming of xlsx workbooks. Basically, he made a much lower footprint bearing in mind that the lines which are in a sliding window, while that older, without flow version gives access to all lines in the document. The programmer can define the size of this window. In my view, that the most recent version of the API was not available or is not stable during our cycle 3.1 development. Perhaps a future version of SQL Developer can use it.

    Kind regards
    Gary
    SQL development team

  • Is it possible to scan a part od the fabric and use it as fill color?

    Hello

    I'm new to illustrator, and I hope that someone could help me.  I scanned a piece of cloth in photoshop and now I want to use to create an Illustrator swatch for I can use as a fill color.  Any ideas? Thank you.

    Given that you are unable to make a pattern from the bitmap objects:

    • Put your digitized form on top of your fabric place
    • Select both
    • Object > clipping mask > make

    Or tracing allows you to make your vector of scanned object, but this model of repetition without seams between tiles of would be very difficult. Much more easily, you could do something repetitive bitmap in photoshop.

  • Metadata from MS SQL to Oracle table

    Hi gurus!

    Is it possible using ODI create a table target on Oracle using metadata from MS SQL?
    I can reverse-engineer for MS SQL table and put it as a source in the interface and ODI will use this information and create the table on Oracle workflow.

    Create the target table as an array of streams to 1:1 with the Oracle data types?

    Thanks in advance!

    You mean that target tables are also Oracle.
    Yes, this can be done. In integration KM (IKM), there is a CREATE_TARG_TABLE option. You can set this Yes. And your target table will be created from the data model if it does not exist.

    Following steps should be useful:
    1.) reverse schema SQL Server in a model.
    2.) duplicate this model and changes in Oracle technology. (This will map the data types of MSSQL to Oracle)
    3.) use the Oracle based model/data store like target and use any IKM who has the CREATE_TARG_TABLE option.

  • Can I use a variable of environment inside a *.sql file?

    Hello

    I want to create an external table.
    Then I use the command
    create or replace directory abc as "C:\folder"... within a sql file.

    Now, I want "C:\folder" way to be dynamic I use this path in many other places also inside the sql file. So I thought to create an environment variable and set this value. I tried using like %Path% but it gives error... where % PATH%=C:\folder.
    Can I use a variable of environment inside a *.sql file?
    But how to do it or is there another way.


    Thank you
    Olivier

    Published by: user11018268 on February 19, 2010 01:03

    You can use a variable substitution:

    SQL> accept basedir prompt "input the base dir:  "
    input the base dir:  c:\exp
    SQL> create or replace directory exp as '&basedir';
    old   1: create or replace directory exp as '&basedir'
    new   1: create or replace directory exp as 'c:\exp'
    
    Directory created.
    
    SQL> create or replace directory exp_data as '&basedir\data';
    old   1: create or replace directory exp_data as '&basedir\data'
    new   1: create or replace directory exp_data as 'c:\exp\data'
    
    Directory created.
    
    SQL> create or replace directory exp_log as '&basedir\log';
    old   1: create or replace directory exp_log as '&basedir\log'
    new   1: create or replace directory exp_log as 'c:\exp\log'
    
    Directory created.
    
    SQL> select DIRECTORY_NAME, DIRECTORY_PATH
      2  from dba_directories;
    
    DIRECTORY_NAME                 DIRECTORY_PATH
    ------------------------------ ------------------------------
    EXP_LOG                        c:\exp\log
    EXP                            c:\exp
    EXP_DATA                       c:\exp\data
    

    Max
    http://oracleitalia.WordPress.com

  • Formatting excel generated from PL/SQL

    Hello

    My requirement is to generate an excel from PL/SQL, which I was able to do in the code next Sanjeev. I was able to generate an excel, but the data in the cells were all in the format 'general' I want to date formatted as currency as "currency" and "date".

    I have looked further and landed on the piece of code following
    < cell > < data ss:Type = "DateTime" > 1928-06-25 T 00: 00:00.000 < / Data > < / cell >
    But even this was not useful.

    Can someone help me with this? Can this be achieved?

    Thank you
    Murali

    Hello Murali,

    I don't know if the Sanjeevs package allows a custom cell formatting, but you can use others like
    https://XML-spreadsheet.SampleCode.Oracle.com/ or
    https://exceldocumenttype.SampleCode.Oracle.com/

    Concerning
    Marcus

  • Calling web services from PL/SQL

    Hello

    We have a requirement where we need to call a WebService from PL/SQL.
    I believe that we have an API of PL/SQL, which allows you to use external web services.

    I was looking for other possible options as to consume the web Service of PL/SQL.

    The one you suggest other options, and what option is best to consume the web service.


    Thank you
    AB

    Hello

    I used the http of the utl package.
    Apart from this you can also use java stored procedure. I haven't used this approach, but I found a blog for the same:

    http://technology.AMIS.nl/Blog/348/consuming-Web-services-from-PLSQL-part-i-using-Java-stored-procedures

    Kind regards

    Ketan

  • Can I use Airdrop to transfer images from my old to my new iphone6 iphone5?

    Can I use Airdrop to transfer images from my old to my new iphone6 iphone5?

    Yes,

    How to use AirDrop with your iPhone, iPad or iPod touch - Apple Support

    Why not just backup the iPhone 5 and the iPhone 6 to restore this backup. In this way, everything is transferred only once.

Maybe you are looking for

  • My MacBook (retina, 12 inches, beginning 2016) very hot

    I was wondering if anyone else experienced this. MacBook on all day at work plugged is working properly, attached to the iPhone 5. I do not turn off because as usual it is on after an hour at home. Just opened the cover and nothing happened – dead, v

  • Satellite L30-113 does not recognize the two modules DIMM RAM

    Hello I have a Toshiba laptop Satellite L30 113.It has 512 MB of RAM and therefore struggled to run Windows Vista, so I bought another 1 GB of RAM.It's DDR2 553 MHZ (PC4200. The problem I have is that the laptop does not recognize both DIMMs, i.e. th

  • Does anyone know how to get data from a web service of Labview with ajax or JSON?

    Hello I try to use ajax and json to service Web restful which I build with the labview. However I get errors For example. I create a web service from a labview vi (z = x / y http://localhost: 8080/math/divide/5/20 will give {Z: "4,000,000"}) I get er

  • Multi-camera Labview IMAQ-A6822

    We organize several cameras in the A6822 IMAQ, which is then connected to a PCI-1410. We are able to specify the device (PCI-1410) in Labview as an IMAQ - Int.vi, but aren't able to see the first camera. How do we register/describe each of the camera

  • Cannot start with using F8 safe mode. Of alternatives please?

    The PC will not start in Safe Mode; When you use F8, the only option available in the Boot menu is 'select the first boot device. I have the hard drive and click on "enter", but the PC then starts as usual. Can I run Safe Mode otherwise?