LoadVarsdoes not read array from ASP

Hi,
my ASP writes out this variables:
i1_seatno0=EXZ8420&i1_seatno1=FYA9531&i1_seatno2=ZB0642&i1_seatno3=HAB5188&i1_seatno4=IBC6 299&
now I want these vars pushed into an Array and added to my
Tno_list.
I have a button, which onPress sends me to Frame 4.
On Frame 4
I have this code:
//load new pass no in
var send_lvConfirm:LoadVars = new LoadVars();
var result_lvConfirm:LoadVars = new LoadVars();
result_lvConfirm.onLoad = function(success) {
if (success) {
if (result_lvConfirm.getBytesLoaded() ==
result_lvConfirm.getBytesTotal() &&
result_lvConfirm.getBytesTotal()>0) {
for(var c:Number = 0;c<5;c++){
_parent.myno_array.push(result_lvConfirm["i1_seatno"+c]);
Tno_list.addItem({label:result_lvConfirm["i1_seatno"+c]});
//end for
//end bytes
//end success
end load
send_lvConfirm.sendAndLoad("loadSeatno.asp",result_lvConfirm,"POST");
It always adds only o n e - the first item to the Array, as
well as to the list - only the first item.
The other 4 items( in the Array and in the List) are always
"undefined" .
What I am doing wrong?
Please help
best regards
Luciewong

Hi kglad,
Thank you for your Help, I just want to inform you what the
problem was.
In my ASP I had the following code above all:
If Request("noTotal") = "" Then
intPage = 1
Else
intPage = Request("noTotal")
End If
So... after 3 days I found out, that he could'nt just read my
request coming from Flash.
So If my request is "nothing" he will write out always only 1
seat number.
But when I tested the ASP in the Browser by writing "
http://retrieve_seatno.asp?noTotal=5"
he always write me out
the correct 5 seat numbers.
The problem was:
sendlv_Confirm.noTotal = noTotal;<<where
<noTotal> was a number/ASP request must be a String
so I changed:
sendlv_Confirm.noTotal = noTotal.toString(); <<this
made it working/then my ASP could read the request
I know, that you don't work with ASP usually, so I just want
to tell you, that the following code is correct:
Response.write "i1_seatno" & myno & "="
&(rs("i1_seatno"))& "&"
If I replace the ampersand the ASP doesn't work anymore.
- the ampersand adds 'myno' to the String "i1_seatno" and
writes out <i1_seatno1=....>, so I could iterate through many
records by calling their id number.
Very much appreciate your help.
Best regards
Luciewong

Similar Messages

  • When I was talking on phone, suddenly the phone was switched off. i tried to switch it on but it gave the message....connect to itunes for set up.  when I connected it to itunes...it gave the message, itunes can not read data from this iphone, restore it

    when I was talking on phone, suddenly the phone was switched off.
    i tried to switch it on but it gave the message....connect to itunes for set up.
    when I connected it to itunes...it gave the message, itunes can not read data from this iphone, restore it to factory settings. It also said while restoring ypu will lose all media data but you can restore the contacts.
    I restored the factory settings....the phone was on recovery mode...it was verified by itunes and all that..but in the end it again said that iphone has some problem and can not function right now.
    after that when ever i connect it with itunes, it gives the message, it can not activate the iphone further, try again later or contact customer service.
    What to do now?????? Customer service people say..it is hardware problem

    If it's a hardware problem, then the phone will need to be replaced.
    There is no magic that can fix a hardware problem.

  • Error: Could not read Metadata from Portal Database !

    Hi All!
    My problem is when i am trying to open the portal page (Oracle 10G)
    http://domain/portal/page?_pageid=6,1,6_13&_dad=portal&_schema=PORTAL
    then i have an Error: Could not read Metadata from Portal Database.
    And i do not know why because everything is up and running. I can connect and browse my database schema with portal user. I can connect to pls/orasso and where ever i want.
    [07/Feb/2006:00:57:23 +0100] "GET /pls/portal/htp.p?cbuf=Test HTTP/1.1" 200 5
    plz help i am trying to fix this in the last 2 weeks :)
    thx kEndE

    Hi Andreas,
    I've changed the permissions to 775 and changed the ownership of /sapcd (volume name) to orasid:dba (including all files within the staging area /sapcd/ora-patch).
    So the permissions and ownership seems to be fine.
    I've also ran your suggested commands but the issue still exists.
    I'm now liasing with our UNIX guy to check if there is any underlying permission issues on the volume (sapcd) that may be causing this problem.
    In the mean time, let me know if you have any further thoughts.
    Thanks,
    Chris

  • GUI_UPLOAD NOT READING DATA FROM PRESENTATION SERVER

    H HI IN   MY APPLICATION I HAVE USED GUI _UPLOAD        TO READ DATA FROM   PRESENTATION SERVER   IT WAS WORKING FINE BUT NOW I HAVE SCHEDULED IT IN BACK BACKGROUND WHEN I   DEBUGGED IT GUI _UPLOADI NOT READING DATA FROM PRESENTATION SERVER
    Edited by: ravikumar1006 on Mar 10, 2012 1:18 PM
    Moderator message: FAQ, please search before posting, do not write in all upper case.
    Edited by: Thomas Zloch on Mar 10, 2012 3:17 PM

    The issue is that, when you schedule a program as background job runs on application server not on local pc for that program use the application server resurces  and its not possible to read files from pc. You can find a lot of answers in forum for this

  • Apostroph and euro sign not read corectly from txt file

    apostroph and euro sign not read corectly from txt file.
    my code is like this:
    FileInputStream fis= new FileInputStream(x+".html");
    BufferedReader br=new BufferedReader(new InputStreamReader(fis,"UTF-8"));
    String Line="";
    while ((Line = br.readLine()) != null) result+=Line;
    br.close();
    fis.close();
    I use UTF-8 because the file contains also French characters.
    What's the problem?
    THANK YOU!

    apostroph and euro sign not read corectly from txt
    file.
    my code is like this:
    FileInputStream fis= new FileInputStream(x+".html");
    BufferedReader br=new BufferedReader(new
    InputStreamReader(fis,"UTF-8"));
    String Line="";
    while ((Line = br.readLine()) != null) result+=Line;
    br.close();
    fis.close();
    I use UTF-8 because the file contains also French
    characters.
    What's the problem?
    THANK YOU!
    This is from the FileInputStream API documentation:
    FileInputStream is meant for reading streams of raw bytes such as image data. For reading streams of characters, consider using FileReader.

  • Can not read data from URL!

    Hello,
    I want to read data from URL (http://84.100.130.82:8000/;stream.nsv). But can not do it. Because when try to call function openDataInputStream() shows this error: java.io.IOException: response does not start with HTTP it starts with: ICY. How I can fix this bug?
    HttpConnection c = null;
    InputStream is = null;
    OutputStream os = null;
    StringBuffer b = new StringBuffer();
    String           response,
    responseLitle;
    c = (HttpConnection)Connector.open(&#8220;http://84.100.130.82:8000/;stream.nsv&#8221;);
    os = c.openOutputStream();
    os.flush();
    is = c.openDataInputStream();     // ERROR CODE HERE
    int ch;
    // receive output
    while ((ch = is.read()) != -1)
    b.append((char) ch);
    response = b.toString();Regards, Ramunas

    Hi, I�m trying to do the same as above, get MP3 from a Shoutcast server.
    I got the same fault ("response does not start with HTTP it starts with: ICY") when I tried to open an HttpConnection as bellow:
    ============================================
    HttpConnection conn = (HttpConnection) Connector.open("http://64.236.34.196/stream/1074");
    Then I tried to open a socket connection as bellow:
    ======================================
    SocketConnection conn = (SocketConnection) Connector.open("socket://64.236.34.196:80");
    String get = "GET /stream/1074 HTTP/1.1";
    DataOutputStream os = conn.openDataOutputStream();
    os.writeUTF(get);
    InputStream is = conn.openInputStream();
    But then I got the following error:
    =========================
    java.lang.SecurityException: Target port denied to untrusted applications
    Could someone help me to find out what is going on?
    Thanks a lot!

  • PI sender communication channel not reading files from NFS directory

    Hello,
    I have a sender communication channel configured to read file from NFS directory which is on ECC server. A program in ECC generates the file and puts it on the ECC server in the output directory. PI sender communication channel is supposed to pickup this file and process it. If I give the NFS path as the source directory, I am getting error: Configured source directory '//Server/DIR/OUT' does not exist. I tried putting '
    Server\DIR\OUT' too but same error. Do I have to add the NFS path of ECC into PI as logical path?
    Any suggestions?
    Thanks,
    Sangita

    Hello Sangita,
    Your ECC server is an external system, therefore you need to activate FTP service in that system and use the transport protocol FTP:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    You can use NFS protocol when you have a local directory in XI server.
    Best Regards,
    .Luis Bernal.

  • My desktop (hp Pavilion) is not reading anything from my cd/dvd drive

    I was having problem with my desktop (no hardware issue. So I decided to wipe it clean by re-installing the Windows vista. I had my DVD' s so I went ahead and redid the installing, At the end of the installation I got an error message saying there was an error during the installation and I should restart computer and re-install the Windows Vista.
    Now the problem is the Cd/DVD drive is not reading the DVD. No I have a computer with no OS and I tried to boot from CD I still get the same error message. I F 10 and went into BIOS and that does not help. Can someone please help me?
    I am wondering if my CD/ DVD is dead, but how can that be when I was able to use it to install the DVD.
    I used the same DVD on another computer and it worked fine,

    I suspect you have the wrong disks. My 1.67GHz G4 came with OS10.4 in June 2005. Unlikely yours would have come with 10.1.2. You can't boot from an OS version lower than what it originally came with, or a disk from another model.

  • Cs5 not reading raw from canon t5i

    CS5 is not reading my raw files from a new camera Canon T5i.  I read in a forum or somewhere to download camera raw 7.4 update.  I did and installed, but it's still not reading my raw files.  I also have lightroom 4, so I updated lightroom 4 and that does read them.  My CS5 appears up to date saying updated and no new updates available and again, downloaded camera raw 7.4 with no success.  But I prefer to do much of my processing in CS5.  Can anyone please help.  Thanks so much~Jennifer

    Thanks so much. I purchased and installed the upgrade to CS6 via download, but it still doesn't seem to read the raw.  I have not yet unistalled CS5, I thought the one would override the other, but I must have to manually unistall CS5.  Do I need to do that before CS6 works correctly?  I also did a manual update for Camera Raw and it apparently didn't find any updates.  I also extrcted that update 7.4 update DNG converter, but perhaps I don't quite understand the digital negative files, but when I asked it to search my image folders, it also said files not found. Any additonal help would be much appreciated.  Thanks again!~Jennifer

  • ESB not reading message from AQ

    I have a simple ESB process which reads the data from an AQ and based on the routing rule invokes recpective end points. I have the AQ database details in the ESB wsdl. But the ESB when deployed is not reading the message from the AQ.
    Has anyone else faced this issue before? The ESB env has MLR#2 patch.
    Thanks in advance
    Rakesh

    We are using JMSAdapter to read the message from the AQ
    We modified the code and made the ESB wsdl look like
    <jca:operation
    DestinationName="java:comp/resource/TEST/Queues/ADMIN.TEST_QUEUE"
    UseMessageListener="false"
    PayloadType="TextMessage"
    ActivationSpec="oracle.tip.adapter.jms.inbound.JmsConsumeActivationSpec"
    OpaqueSchema="true" >
    </jca:operation>
    <jca:address location="eis/Jms/DBAQ" />
    and in J2EE_HOME/config/application.xml
    <resource-provider class="oracle.jms.OjmsContext" name="TEST">
    <description>Resource provider for the OEMS database</description>
    <property name="datasource" value="aqDS" />
    </resource-provider>
    and have defined the aqDS in the data-sources.xml to point to the AQ database.
    We are using JMSAdapter to read the message from the AQ and we have defined the connection factory in the oc4j-ra.xml of the JMSAdapter
    <connector-factory location="eis/Jms/DBAQ" connector-name="Jms Adapter">
    <config-property name="connectionFactoryLocation" value="java:comp/resource/TEST/QueueConnectionFactories/QCF"/>
    <config-property name="factoryProperties" value=""/>
    <config-property name="acknowledgeMode" value="AUTO_ACKNOWLEDGE"/>
    <config-property name="isTopic" value="false"/>
    <config-property name="isTransacted" value="false"/>
    <config-property name="username" value="ADMIN"/>
    <config-property name="password" value="password"/>
    <connection-pooling use="none">
    </connection-pooling>
    <security-config use="none">
    </security-config>
    </connector-factory>
    and the connection factory QCF is deployed on the OAS.
    Still the JMS Adapter on the ESB is not picking up the date.
    Thanks
    Rakesh

  • Mat****a UJ841S CD/DVD drive does not read movies from blockbuster

    My dvd mat****a drive UJ841S will read /write everything ok.
    BUT it does not recognize Movies from Blockbuster. I cannot play a movie.
    Can anyone help?
    David

    Hi
    Seems this certain kind of DVD is not fully compatible with this CD/DVD drive
    Sorry but such issues are not uncommon you will always meet some disks which are not fully compatible and that the drives laser lens cannot handle such disk
    But just one question; are these movies created for the European region?
    I mean there are different DVD regions
    As far as I know the movies for European needs region 2
    The United States need region 1 settings and South & Middle America need region 4
    So if you would like to watch DVD designed for USA then you will have to change the region settings to 1.
    But note; you can change the region settings only 4 times then this settings would be locked and it would be not possible to change it again

  • Custom Values not read back from Active area

    Hello All,
    Need help/ directions.
    We have custom fields in UI, which are saved in Custom tables in ECC for reporting purpose. On activation of CR we could save these
    values in Ztables, but when use open the Material for Mark for Deletion we are getting SMT Mapping error (Data could not read back to CR).
    Don’t see any errors while activating CR , SMT in mapping and also API code program
    Best Regards, Srihari Mandapati

    Are these custom fields specific to Material or to the Change Request? If for the Change Request, then you don't need any SMT mapping. Please refer to this document for how you can enhance the MDG header: Enhancement of the User Interface Building Block for Change Requests.

  • Can not read file from URL

    I have this code for loadbitmap() function:
    String s = getCodeBase()+sdir+sfile;
    System.out.println("codeBase is=" + s);
    URL url = new URL(s);
    InputStream fs = url.openStream();
    BufferedInputStream bs = new BufferedInputStream(fs);
    And the file is a .bmp file, so I go on decoding this etc. It works fine within VisualCafe.
    When I created a virtual directory in IIS and run this applet from
    http://localhost/ImageApplet/ImageApplet.html address:
    I get in 1.3.1 Plug-in this error:
    codeBase is=http://localhost/ImageApplet/duke/some1.BMP
    Caught exception in loadbitmap!java.io.FileNotFoundException: http://localhost/ImageApplet/duke/some1.BMP
    If a type this as address in browser, it shows the image.
    Could any one tell me what I am doing wrong here?

    You can try this, even though it is not supposed to be different from your original code:
    URL url = new URL(getCodeBase(), sdir+sfile);
    System.out.println("getting image from " + url);
    InputStream fs = url.openStream();
    BufferedInputStream bs = new BufferedInputStream(fs);
    I could understand a SecurityException but a FileNotFoundException... A FileNotFoundException... You are reading from a stream originating from a URL, not a file!!!
    Which line causes the exception?

  • Cl_gui_frontend_services= file_exist is not reading files from C drive

    Hi experts ,
    I am using the method 'cl_gui_frontend_services=>file_exist' to check whether a file exists in frontend machine or not. This method works fine and gives corerct result when i keep the file on desktop and provide the path of the files as parameter to the program but it is unable to check the existance of the same file if kept in C drive under folder program files e.g.(C:/Program files/Documware/Barcode.exe). Is this a limitation of the method or is due to some restriction/access permitions at system level that files could not be read from program files in C drive . kinldy provide your useful inputs if any one faced same issue and what is the  solution for this problem .
    Regards
    Priyank

    ALL FUNCTION 'DX_FILE_EXISTENCE_CHECK'
        EXPORTING
          filename             = file
          pc                       = 'X'
    *   SERVER              =
        IMPORTING
          file_exists           = file_exist
    IF NOT ( sy-subrc = 0 and file_exist = 'X' )
      MESSAGE  'the input file does not exist.' TYPE 'E'.
    ENDIF.

  • How to read arrays from a file

    hi i was curious if i have a data file something like this
    34 12 10 5 4 3
    23 12 11 19 18
    42 32 23 12 11
    how can i read this data file and lines into three different arrays
    for example myArray1 should contain the first line which is 34 12 10 5 4 3 i am having alot of hard time.
         public static void main(String[] args) throws IOException
              int[] myArray = new int[10];
              //int[] myArray1 = new int[10];
              Scanner s = null;
              Tester2 test = new Tester2();
              try
                   s = new Scanner(
                        new BufferedReader (new FileReader("numbers.txt")));
                        while(s.hasNext())
                             if(s.hasNextInt())
                                  for(int i=0; i<myArray.length; i++)
                                  myArray[i] = s.nextInt();
                                  System.out.print(" "+myArray);
              finally
              { s.close();
    this things prints me the whole array

    lol you stupid fookks.
       try{
            BufferedReader bf=new BufferedReader(new FileReader("program1.txt"));
            String s=bf.readLine();
                String s1[]=s.split("\\s");
                int[] array1=new int[s1.length];
                for(int i=0;i<s1.length;i++)
                  array1=Integer.parseInt(s1[i]);
    s=bf.readLine();
    String s2[]=s.split("\\s");
    int[] array2=new int[s2.length];
    for(int i=0;i<s2.length;i++)
    array2[i]=Integer.parseInt(s2[i]);
    s=bf.readLine();
    String s3[]=s.split("\\s");
    int[] array3=new int[s3.length];
    for(int i=0;i<s3.length;i++)
    array3[i]=Integer.parseInt(s3[i]);
    kiss my asian a$$ you all think i am a dumb fok well you know what you have freakin attitude problems. i can do it on my own also you all dumb senior foks. i asked for help warnerja not for your stupid a$$ comments fok yuou.... i am not a freakin newbie just new to this file. stuff. thats all all i was doing was asking for help

Maybe you are looking for