Multiple mark()/reset() calls

i am currently converting a c program into java, and the original program uses several getpos and setpos commands to jump around in a file stream. is there any way to use mark and reset in a similar way?

kdgregory is correct, you can't do this with the built in java io stream classes.
However you could build your own MultimarkableInputStream and support it, but it would probably be more work than you'd want.

Similar Messages

  • Multiple transactions in Call Transactions

    Hi All,
      Can i use the below code to do multiple transactions in call transaction using the Below code.
    Call Transction for XK01 using BDCDATA1
    Call Transction for MM01 using BDCDATA2
    Call Transction for VA01 using BDCDATA3
    Please advise.
    Regards
    Krishna

    Hi
    Try the following code....
    LOOP AT ITAB1.
    < your statements here to append the rows to internal table BDCDATA1>.
    Call Transction 'XK01' using BDCDATA1.
    ENDLOOP.
    LOOP AT ITAB2.
    < your statements here to append the rows to internal table BDCDATA2>.
    Call Transction 'MM01' using BDCDATA2.
    ENDLOOP.
    LOOP AT ITAB3.
    < your statements here to append the rows to internal table BDCDATA3>.
    Call Transction 'VA01' using BDCDATA3.
    ENDLOOP.
    Hope this would help you.
    Murthy
    Edited by: Kalyanam Seetha Rama Murthy on Jul 28, 2008 6:16 AM

  • Capturing log files from multiple .ps1 scripts called from within a .bat file

    I am trying to invoke multiple instances of a powershell script and capture individual log files from each of them. I can start the multiple instances by calling 'start powershell' several times, but am unable to capture logging. If I use 'call powershell'
    I can capture the log files, but the batch file won't continue until that current 'call powershell' has completed.
    ie.  within Test.bat
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > a.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > b.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > c.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > d.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > e.log 2>&1
    timeout /t 60
    start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > f.log 2>&1
    the log files get created but are empty.  If I invoke 'call' instead of start I get the log data, but I need them to run in parallel, not sequentially.
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > a.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > b.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > c.log 2>&1
    timeout /t 60
    call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > d.log 2>&1
    timeout /t 60call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > e.log 2>&1
    Any suggestions of how to get this to work?

    Batch files are sequential by design (batch up a bunch of statements and execute them). Call doesn't run in a different process, so when you use it the batch file waits for it to exit. From CALL:
    Calls one batch program from another without stopping the parent batch program
    I was hoping for the documentation to say the batch file waits for CALL to return, but this is as close as it gets.
    Start(.exe), "Starts a separate window to run a specified program or command". The reason it runs in parallel is once it starts the target application start.exe ends and the batch file continues. It has no idea about the powershell.exe process
    that you kicked off. Because of this reason, you can't pipe the output.
    Update: I was wrong, you can totally redirect the output of what you run with start.exe.
    How about instead of running a batch file you run a PowerShell script? You can run script blocks or call individual scripts in parallel with the
    Start-Job cmdlet.
    You can monitor the jobs and when they complete, pipe them to
    Receive-Job to see their output. 
    For example:
    $sb = {
    Write-Output "Hello"
    Sleep -seconds 10
    Write-Output "Goodbye"
    Start-Job -Scriptblock $sb
    Start-Job -Scriptblock $sb
    Here's a script that runs the scriptblock $sb. The script block outputs the text "Hello", waits for 10 seconds, and then outputs the text "Goodbye"
    Then it starts two jobs (in this case I'm running the same script block)
    When you run this you receive this for output:
    PS> $sb = {
    >> Write-Output "Hello"
    >> Sleep -Seconds 10
    >> Write-Output "Goodbye"
    >> }
    >>
    PS> Start-Job -Scriptblock $sb
    Id Name State HasMoreData Location Command
    1 Job1 Running True localhost ...
    PS> Start-Job -Scriptblock $sb
    Id Name State HasMoreData Location Command
    3 Job3 Running True localhost ...
    PS>
    When you run Start-Job it will execute your script or scriptblock in a new process and continue to the next line in the script.
    You can see the jobs with
    Get-Job:
    PS> Get-Job
    Id Name State HasMoreData Location Command
    1 Job1 Running True localhost ...
    3 Job3 Running True localhost ...
    OK, that's great. But we need to know when the job's done. The Job's Status property will tell us this (we're looking for a status of "Completed"), we can build a loop and check:
    $Completed = $false
    while (!$Completed) {
    # get all the jobs that haven't yet completed
    $jobs = Get-Job | where {$_.State.ToString() -ne "Completed"} # if Get-Job doesn't return any jobs (i.e. they are all completed)
    if ($jobs -eq $null) {
    $Completed=$true
    } # otherwise update the screen
    else {
    Write-Output "Waiting for $($jobs.Count) jobs"
    sleep -s 1
    This will output something like this:
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    Waiting for 2 jobs
    When it's done, we can see the jobs have completed:
    PS> Get-Job
    Id Name State HasMoreData Location Command
    1 Job1 Completed True localhost ...
    3 Job3 Completed True localhost ...
    PS>
    Now at this point we could pipe the jobs to Receive-Job:
    PS> Get-Job | Receive-Job
    Hello
    Goodbye
    Hello
    Goodbye
    PS>
    But as you can see it's not obvious which script is which. In your real scripts you could include some identifiers to distinguish them.
    Another way would be to grab the output of each job one at a time:
    foreach ($job in $jobs) {
    $job | Receive-Job
    If you store the output in a variable or save to a log file with Out-File. The trick is matching up the jobs to the output. Something like this may work:
    $a_sb = {
    Write-Output "Hello A"
    Sleep -Seconds 10
    Write-Output "Goodbye A"
    $b_sb = {
    Write-Output "Hello B"
    Sleep -Seconds 5
    Write-Output "Goodbye B"
    $job = Start-Job -Scriptblock $a_sb
    $a_log = $job.Name
    $job = Start-Job -Scriptblock $b_sb
    $b_log = $job.Name
    $Completed = $false
    while (!$Completed) {
    $jobs = Get-Job | where {$_.State.ToString() -ne "Completed"}
    if ($jobs -eq $null) {
    $Completed=$true
    else {
    Write-Output "Waiting for $($jobs.Count) jobs"
    sleep -s 1
    Get-Job | where {$_.Name -eq $a_log} | Receive-Job | Out-File .\a.log
    Get-Job | where {$_.Name -eq $b_log} | Receive-Job | Out-File .\b.log
    If you check out the folder you'll see the log files, and they contain the script contents:
    PS> dir *.log
    Directory: C:\Users\jwarren
    Mode LastWriteTime Length Name
    -a--- 1/15/2014 7:53 PM 42 a.log
    -a--- 1/15/2014 7:53 PM 42 b.log
    PS> Get-Content .\a.log
    Hello A
    Goodbye A
    PS> Get-Content .\b.log
    Hello B
    Goodbye B
    PS>
    The trouble though is you won't get a log file until the job has completed. If you use your log files to monitor progress this may not be suitable.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Mark/reset IO exception

    Hi everyone,
    What I'm trying to do here is get an audio file from the jar file as an input stream and convert this to an audioInputStream. Obtaining it from the jar file works fine. The problem is that I get an io exception at the following line:
    audioInputStream = AudioSystem.getAudioInputStream(is);This code all worked fine before when I created an audioInputStream using a File object. Is there any work around that would solve this?
    public void beginAudio()
    jarFile = new JarFile("z.jar");
    soundFile = jarFile.getJarEntry("Multimedia/DMathews.wav");
          if(soundFile!=null)System.err.println("sound file is not NULL here");
          loadAudio(soundFile);
    public void loadAudio(JarEntry entry)
        try
            is = jarFile.getInputStream(entry);
            if(is!=null)System.err.println("is is NOT NULL");
            if (is.markSupported()==false)System.err.println("mark is NOT supported by IS");
            audioInputStream = AudioSystem.getAudioInputStream(is);
            if (audioInputStream.markSupported()==false)
    System.err.println("mark is NOT supported by audioInputStream");
          catch(Exception ex)
            ex.printStackTrace();
          audioFormat =audioInputStream.getFormat();
    }This is the exception:
    is is NOT NULL
    mark is NOT supported by IS
    java.io.IOException: mark/reset not supported
    at java.io.InputStream.reset(InputStream.java:329)
    at java.io.FilterInputStream.reset(FilterInputStream.java:204)
    at java.io.FilterInputStream.reset(FilterInputStream.java:204)
    at com.sun.media.sound.WaveFileReader.getAudioFileFormat(WaveFileReader.
    java:128)
    at com.sun.media.sound.WaveFileReader.getAudioInputStream(WaveFileReader
    .java:237)
    at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:
    680)
    at Multimedia.testSound.loadAudio(testSound.java:413)
    at Multimedia.testSound.beginAudio(testSound.java:214)

    I tried the following code but got the exception below:
    soundFile = jarFile.getJarEntry(audioFiles[lsClips.getSelectedIndex()] );
          is = (InputStream)jarFile.getInputStream(entry);
          if(is!=null)System.err.println("is is NOT NULL");
          ObjectInputStream in = new ObjectInputStream(is);is is NOT NULL
    java.io.StreamCorruptedException: invalid stream header
    Does anyone have any suggestions?

  • Multiple times constructors calling in Myfaces

    Hi
    i m fasing multiple times constructor calling for myfaces programs
    i have created a small web appl. with one text box and one submit button, to test this behaviour.
    i have used this sample to
    get web page
    enter some text value
    submit the page
    and atlast page get returned to me
    i don't understand the multiple times consturctor calling and exact sequence of Getter/Setter calling?
    Following are details -
    faces-config.xml
    <managed-bean>
    <managed-bean-name>fileUploadBean</managed-bean-name>
    <managed-bean-class>com.dbschenker.dts.model.backingbean.FileUpload</managed-bean-class>
    <manged-bean-scope>request</manged-bean-scope>
    </managed-bean>
    jsp file
    <h:inputText id="txtSample" value="#{fileUploadBean.txtName}"/>
    <h:commandButton action="#{fileUploadBean.uploadFile}"
    image="../../images/upload_0.png"
    onmouseover="this.src='../../images/upload_0.png'"
    onmouseout="this.src='../../images/upload_1.png'"
    onclick="return true;"/>
    Backing bean
    public class FileUpload {
    private String txtName;
    public void setTxtName(String txtName) {
    System.out.println("Calling Setter... ");
    this.txtName= txtName;
    public String getTxtName() {
    System.out.println("Calling Getter... ");
    return txtName==null?"":this.txtName;
    public FileUpload() {
    System.out.println("Calling Constructor... ");
    public String uploadFile() {
    System.out.println("Upload Form Submitted... ");
    return "";
    Output to Console
    Calling Constructor...
    Calling Getter...
    Calling Constructor...
    Calling Constructor...
    Calling Getter...
    Calling Constructor...
    Calling Setter...
    Calling Constructor...
    Upload Form Submitted...
    Calling Constructor...
    Calling Getter...

    Hi
    that blog was really good and in depth...
    but i have one real time problem with multiple time constructor calling
    if you replace text box with file upload tag in my earlier sample program and then following is out put ...
    Calling Constructor...
    getUploadedFile()...
    Calling Constructor...
    getUploadedFile()...
    Calling Constructor...
    setUploadedFile()...
    Uploaded File Name - D:\AsnUploadTemplate02.XLS
    Calling Constructor... ------------------(.1
    Upload Form Submitted...
    java.lang.NullPointerException
         at com.dbschenker.dts.model.backingbean.FileUpload.uploadFile(FileUpload.java:40)
    ----------- trailing exception stack trace...
    Calling Constructor...
    getUploadedFile()...
    form this output u can find that my UploadedFile backing bean object gets null just before form submit method...
    whereas its has been properly instantiated in setter method,
    if constructor (1 wasn't call then object (uploadedFile) can be found in method (FileUpload.uploadFile)
    i have also tried to make scope of backing bean Session , but constructor, getter & setter calling sequence doesn't different even after.
    i have also considered both of your blog as ---
    http://balusc.blogspot.com/2006/09/debug-jsf-lifecycle.html
    http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html
    but my problem stands as it is
    kindly help

  • Open Transaction MM01/MM02 with multiple views using  CALL TRANSACTION

    Hi All,
    I want to open MM01/MM02 with multiple views using call transaction but in the parameter ID for Views (MMX) I can pass status of only one View.
      SET PARAMETER ID 'MAT' FIELD v_mat.
      SET PARAMETER ID 'VKO' FIELD ' '.
      SET PARAMETER ID 'MTA' FIELD IT_MOFF-MTART.
      SET PARAMETER ID 'MTP' FIELD IT_MOFF-MBRSH.
      SET PARAMETER ID 'VTW' FIELD ' '.
      SET PARAMETER ID 'BWT' FIELD ' '.
      SET PARAMETER ID 'LGT' FIELD ' '.
      SET PARAMETER ID 'MXX' FIELD 'K'.     "Sales View
      SET PARAMETER ID 'MM5' FIELD ' '.
      CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN
    Please suggest.
    Regards,
    Divya

    I do not exactly understand what you mean, but what i already did:
    - I checked that the fields are from the same type.
    - KUNNR is initialized! I already had a look to the debugger, that's why i'm posting this in this forum.
    any more comments on this ?
    maybe i have to change anything in the z-transaction. Btw, this is what the parameter looks like in the transaction:
    SELECTION-SCREEN BEGIN OF BLOCK Debitoren WITH FRAME TITLE text-001.
      PARAMETERS pkunnr type kna1-kunnr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK Debitoren.
    Edited by: Sven Delangle on Sep 3, 2010 2:42 PM

  • How to mark a call as unhandled, manually sending a call Result

    Hello,
    I will appreciate if someone could help me with this issue. In ucce campaign file, several phone numbers are defined for an account number(BAAccountNumber). Now, if the first phone number is reached (CallResult = 10), following phones for that account numbers are not dialed. This is a very important for us as a company, we have to find a way to mark the call as unhandled and to "tell" the Dialer to dial following phones for that account number.
    Thank you, i will be very grateful if someone could give me a hint

    Well, the customer may not be at home at that moment, or simply the number is wrong. It's very strange that cisco offers many many options and features, but it was hard to find the right answer about this issue. Anyway, we found a way to enable Callback and Skip-Next buttons in the CAD for Predictive dialing, but sadly, still there is no jtapi implementation for these two options, so agent will have to use both CAD and our custom desktop call center software.

  • Mark/reset not supported

    Hello,
    i've setup an application building pdfs and xml files from print files. This application works with some input files, not with all.
    The exception that comes up is:
    <code>
    java.io.IOException: mark/reset not supported
         at java.io.InputStream.reset(Unknown Source)
         at com.compcomp.hhsued.bl.export.PdfTemplateImpl.parseEscapeString(PdfTemplateImpl.java:160)
         at com.compcomp.hhsued.bl.export.PdfTemplateImpl.parseIt(PdfTemplateImpl.java:65)
         at com.compcomp.hhsued.bl.export.templates.PdfTemplateSUDU.render(PdfTemplateSUDU.java:130)
         at com.compcomp.hhsued.bl.input.ConverterProcessor.writePdfFile(ConverterProcessor.java:323)
         at com.compcomp.hhsued.bl.input.ConverterProcessor.init(ConverterProcessor.java:147)
         at com.compcomp.hhsued.bl.input.ConverterProcessor.<init>(ConverterProcessor.java:69)
         at com.compcomp.hhsued.bl.main.BlConverter.main(BlConverter.java:67)
    </code>
    What means this: mark/reset not supported?
    And why doesn't it happen always?
    Thank you,
    Nico

    Input streams represent a input source. The type of the source can vary, for example it could be a socket or it could be a file.
    In a random acces file you can 'mark' a position in the file. One can then return to that position by 'reset'.
    One of the source types you are using does not support that.

  • Handle multiple application by call tran. method ?

    it is possible to handle multiple application by call transaction method ?

    Hi,
    Yes. A simple scenario is upload of Material and its relevant stock information. SO upload of material is one process and upload of stock for those material is another process. You can use the sessions method or Batch Input method to upoload data in multiple transactions as explained above.
    Regards,
    KK

  • Multiple Users for Call Assistant

    Does any know how multiple users can sign onto the Verizon Call Assistant desktop client?  Right now, when one user signs on, the other gets logged out.

    hkgnyc,
                 Im sorry to hear about the problem that your having. There is a specialized team who handles problems with the Verizon Call Assistant. They can be reached at 888-483-5156.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • File mark() reset() doubt...

    Hi,
    I have a doubt regarding the concept of reset() and mark() methods of BufferedInputStream class. Here is the code
    class FileDemo
      public static void main(String[] args)throws IOException
              String st = "123456789";
              int c;
              byte[] buf = st.getBytes();
              ByteArrayInputStream in = new ByteArrayInputStream(buf);
              BufferedInputStream f = new BufferedInputStream(in);
              for(int i=0;i<8;++i)
              c = f.read();
              System.out.print((char)c);
              System.out.println();     
              f.mark(5);
              f.reset();
              c = f.read();
              System.out.print((char)c);
    Output
    12345678
    9In above code when i execute f.mark(5), the file pointer should make a mark at 5th byte i.e character 5, and when i execute reset the file pointer must point back to this 5th byte and must print 5 when i print for the next time. But instead the output i get is 9 after reset is executed. Please clarify.....

    In above code when i execute f.mark(5), the file
    pointer should make a mark at 5th byte i.e character 5No, it shouldn't.
    and when i execute reset the file pointer must
    point back to this 5th byte and must print 5 when i
    print for the next time. But instead the output i get
    is 9 after reset is executed. Please clarify.....The API documentation is pretty clear, I think, especially if you follow the links to the description of what mark() is supposed to do:
    "Marks the current position in this input stream. A subsequent call to the reset method repositions this stream at the last marked position so that subsequent reads re-read the same bytes.
    The readlimit argument tells this input stream to allow that many bytes to be read before the mark position gets invalidated."

  • I had a folder that was a part of firefox in the book marks are called Recently Bookmarked. It has now disappeared and i would like to know how to get it back?

    This folder was not one I created, but it appeared to be a part of the bookmark area. It save all recently saved book marks and was called "Recently Bookmarked". I used this feature last night and this morning when I went to use fire fox, it is gone.
    I tried restarting Firefox and it still has not fixed the problem. My question is, How do I get this feature back or how do I create a folder where everything I book mark goes into the folder until I can sort the book marks into the proper folders? thank you for your help

    See:
    *https://support.mozilla.org/kb/Restore+the+default+Smart+Bookmarks+Folders
    * "Recently Bookmarked" is a so called [[Smart Bookmarks folders|Smart Bookmark]] that shows the result of a place query in a list.
    * "Most Visited" and "Recently Bookmarked" and "Recent Tags" are examples of so called [[Smart Bookmarks folders|Smart Bookmarks folders]] and are not real existing folders.
    * Smart folders show a list created by a query of the places.sqlite database that stores bookmarks and history in Firefox.
    * Smart folder lists show a maximum of 10 entries by default.
    * Bookmarks and history items that show up in a smart folder list are stored elsewhere in another folder and any changes made are applied to the real bookmark or history item.

  • Multiple IPs in Call Manager

    Hi,
    We need to configure multiple  IP addresses in a Call Manager version 8. Our customer has three diferent IP networks: One for management, one for signaling and one for media. Call Manager is connected to those networks using three NICs with different IP Addresses a should separate traffic.
    Is it possible in CCM? I guess no, but is there any work around to get this functionality?
    Thanks and best regards.
    Raul

    Not possible in CallManager, but you can achieve this with "VRF select" on IOS routers
    http://www.cisco.com/en/US/docs/ios/12_2sr/12_2srb/feature/guide/srb2mvrf.html

  • FILE to multiple BAPI/RFC calls

    Hi,
    I have one input source (CSV with about 100 rows) and I wish to call a custom rfc for each row in my spreadsheet. (The custom RFC has a single flat import structure as opposed to a table or anything complex).
    I am struggling to do this in XI.
    I assumed I needed to assign one source to multiple targets in the Message interfaces, but this errors on activation due to the RFC occurrence being set to 1.
    Do I need to do the same trick as with IDOCS or am I missing the point somewhere?
    I have read several threads and one in particular seems to indicate it is possible, but so far this has evaded me.
    Re: BOM CREATION
    Please could you point me in the right direction.
    Thanks
    Andrew

    Andrew,
    You could read the CSV file into an Integration Process
    Save the message in a multiline container (in your case 100 rows)
    Create a block
    Create another container to hold the single row defined within this block
    Set the following for the block
    <b>Step Name</b>          eg SplitForRFC
    <b>Mode</b>               ParForEach
    <b>Multiline Element</b>     Multiline container defined above
    <b>Current Line</b>          Single line container defined above
    The <b>Mode</b> 'ParForEach' acts like a loop
    Then within the block create a synchronous Send step which calls your RFC
    <b>Design</b>
    I would question having to make 100 RFC calls
    If possible change the design so that the RFC interface can accept multiple messages and the RFC logic to loop through them and process the messages one at a time
    Regards,
    Mike

  • EventListeners for multiple remote object calls

    Hi all,
    I have a Flex component that is displaying content from multiple (specifically two) remote object calls. I can call both remote methods, get the results back, pass them off to their respective ItemRenderers, etc. with no trouble. What I need, though, is a way to determine if I get no results back from either function call, to dispatch an event to trigger the next view state, and I don't know how to do that. Something like:
    protected function ticketConfigurationStateChangeHandler(event:Event):void
                   if(getPackagePromptsResult.lastResult.length == 0 && getTicketPromptsResult.lastResult.length == 0)
                         this.dispatchEvent(new Event("ticketConfigurationStateChange"));
                protected function ticketPrompts_creationCompleteHandler(event:FlexEvent):void
                    getTicketPromptsResult.token = registrationAPI.getTicketPrompts();
                    getTicketPromptsResult.addEventListener(ResultEvent.RESULT, showTicketConfiguration);
                protected function packagePrompts_creationCompleteHandler(event:FlexEvent):void
                    getPackagePromptsResult.token = registrationAPI.getPackageCPrompts();
                    getPackagePromptsResult.addEventListener(ResultEvent.RESULT, showPackageConfiguration);
    Any suggestions would be greatly appreciated...I know I need the event listeners to be able to get lastResult.length (and have it not be null) but I don't know how to set them up so I can automatically pass the user through the component and onto the next one if there are no results returned without having the user click a button or something similar on an otherwise blank component.
    Thanks in advance!
    ~ Amanda

    Hi all,
    I have a Flex component that is displaying content from multiple (specifically two) remote object calls. I can call both remote methods, get the results back, pass them off to their respective ItemRenderers, etc. with no trouble. What I need, though, is a way to determine if I get no results back from either function call, to dispatch an event to trigger the next view state, and I don't know how to do that. Something like:
    protected function ticketConfigurationStateChangeHandler(event:Event):void
                   if(getPackagePromptsResult.lastResult.length == 0 && getTicketPromptsResult.lastResult.length == 0)
                         this.dispatchEvent(new Event("ticketConfigurationStateChange"));
                protected function ticketPrompts_creationCompleteHandler(event:FlexEvent):void
                    getTicketPromptsResult.token = registrationAPI.getTicketPrompts();
                    getTicketPromptsResult.addEventListener(ResultEvent.RESULT, showTicketConfiguration);
                protected function packagePrompts_creationCompleteHandler(event:FlexEvent):void
                    getPackagePromptsResult.token = registrationAPI.getPackageCPrompts();
                    getPackagePromptsResult.addEventListener(ResultEvent.RESULT, showPackageConfiguration);
    Any suggestions would be greatly appreciated...I know I need the event listeners to be able to get lastResult.length (and have it not be null) but I don't know how to set them up so I can automatically pass the user through the component and onto the next one if there are no results returned without having the user click a button or something similar on an otherwise blank component.
    Thanks in advance!
    ~ Amanda

Maybe you are looking for