Synchronous User Interaction in Method

Sorry: Wrong forum!
Edited by: Wolfgang Dörner on Nov 4, 2011 2:03 PM

Sorry: Wrong forum!
Edited by: Wolfgang Dörner on Nov 4, 2011 2:03 PM

Similar Messages

  • Synchronous User Interaction in Instance-Method

    Hey Guys!
    I got a problem getting information by user synchronous.
    To make it understandable I abstracted the problem a little:
    I have a class 'player'. It has an attribute 'name' and a method 'get_name'.
    In get_name i want to ask the actual user for his/her name. A dialogue should open with a text-field and an ok-button.
    (Solvable with DD_Documents -> no Problem as far).
    But then I want to save the given value in text-field in the 'name'-variable.
    This is a problem: Not because of getting the  data out of the input field but because of the flow-control!
    I know I could write a method in the same class to react to the interaction and save the variable. But if I want to use one or more players in a program, it does not wait until the variable is set to go on.
    I do not want to go on with the code in the method as long as the user didn't press ok.
    Can I wait for an event in a method?
    Hope you get my problem!
    Thank you for your help!

    Hi Wolfgang,
    I would try this kind of approach and see if it will solve your problem (I'm assuming your EVENTS are raised in the method display_document):
    First, I would cut the following lines from the method ask_for_name:
      set handler dbox_close for all instances.
      set handler dd_btn_clicked for all instances.
      set handler dd_ie_entered for all instances.
    Second, I would add this DEFINITION of a local class & object declaration (I guessed on parameter & class names):
    ** Local class definition for event receiver
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
        handle_dbox_close
          FOR EVENT dbox_close OF zcl_player_class
            IMPORTING e_name,
        handle_dd_btn_clicked
          FOR EVENT dd_btn_clicked OF zcl_player_class
            IMPORTING e_name,
        handle_dd_ie_entered
          FOR EVENT dd_ie_entered OF zcl_player_class
            IMPORTING e_name.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    DATA: g_event_receiver TYPE REF TO lcl_event_receiver.
    Third, I would make the following changes in your main method:
    method main.
      CREATE OBJECT g_event_receiver
      create object s1.
      create object s2.
      create object s3.
      SET HANDLER g_event_receiver->handle_dbox_close FOR ALL INSTANCES.
      SET HANDLER g_event_receiver->handle_dd_btn_clicked FOR ALL INSTANCES.
      SET HANDLER g_event_receiver->handle_dd_ie_entered FOR ALL INSTANCES.
      s1->ask_for_name( ).
      s2->ask_for_name( ).
      s3->ask_for_name( ).
    write:/ s1->name.
    write:/ s2->name.
    write:/ s3->name.
    endmethod.
    And lastly, insert the implementation for each of the handler methods:
    *&       Class (Implementation)  lcl_event_receiver
    *        Event receiver for player class
    *       CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_dbox_close.
      ENDMETHOD.
      METHOD handle_dd_btn_clicked.
      ENDMETHOD.
      METHOD handle_dd_ie_entered.
      ENDMETHOD.
    ENDCLASS.               "lcl_event_receiver
    Regards,
    Ryan Crosby
    Edited by: Ryan Crosby on Nov 8, 2011 9:50 AM

  • File Download Without User Interaction

    Hello,
    basically i want to transfer a file from one server to the
    other. I have a fixed source URL and a ready file handler .jsp at
    the destination server.
    In the past I did a lot with FileReference and their Browse()
    and Download() methods. Now i want to replace those points of user
    interaction and more or less stream the download file into the
    upload handler. Any ideas how i could achieve that?
    Thanks and GzG
    Nerun

    http://forum.java.sun.com/thread.jspa?messageID=3578246&#3578246
    Common sence would have told you that a <input type=file ... cannot be set with script.
    Since this input can be set to hidden you might unwantingly submit files on every page
    you visit.

  • Any way to Upload a File Automatically without user interaction in BSP.

    Hi,
    Any way to Upload a File Automatically without user interaction in BSP.
    Problem is;
    We have an terminal pc connected to an Production Machine and has a PLC for reading Machine Actual Datas. This terminal has Windows CE.NET OS. There is one program which Appending PLC Data to Text file (STORAGE CARD\PLC\SAMPLE.TXT).
    Users can access to WAS system in this Terminal (Has network).
    I have to access to SAMPLE.TXT file using BSP when user antered a page in WAS.
    Have you got any solution. I have tried so much methods to do this. But i have not found any solution.

    Yes SAMPLE.txt stored in "STORAGE CARD\PLC" folder in terminal.
    But i am trying in my computer to test with "C:
    GPS.txt"
    I have tried before this method. But I think this is a security exception. Because when i use
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    extName = fso.GetExtensionName("C:\GPS.txt");
    alert(extName)
    -->
    </SCRIPT>
    i am getting an alert with message "txt". there is no problem.
    But when i try to access file using this code
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    fileObj = fso.GetFile("C:\GPS.txt");
    -->
    </SCRIPT>
    i am getting "Automation server can't create object".
    Message was edited by:
            Ibrahim UGUR

  • (sqr 2515) input required user interaction but user interaction was disabled by the -XI command line

    hi ,
    i'm getting below while running sqr in 3-tier mode using process scheduler.
    (sqr 2515) input required user interaction but user interaction was disabled by the -XI command line
    can any one suggest me to resolve this problem

    You should be able to get some more precise information from your Xorg logs, but I would bet it is related to the evdev driver. Some of the options in your xorg.conf no longer work with the latest version. For now you should be able to either map your mouse directly to the appropriate /dev/event* entry or change to the standard mouse driver, both of those methods should be in the wiki.
    You are supposed to be able to use the evdev driver without the input section of your xorg.conf by using dbus/hal autodetection, but AFAIK at the moment the xorg-server package still isn't compiled with hal support, so you would have to patch and rebuild the package.

  • Error in Installation of Aqualogic User Interaction 6.5

    Hi,
    I have installed Aqualogic User Interaction 6.5, with Weblogic 9.2, Apache 2.0.63, Oracle 10g.
    Portal Diagnostic is running successfully.
    But while i am trying to start the weblogic server it is throwing me the following error-
    Task 'InitPortalObjects' failed on startup
    Task #1 <InitPortalObjects) Step#3
    OpenKernal Initialization Failure(Java)
    Recommendation:Review the detailed exception listed below for specific analysis. Check that pthome.xml is in the correct place,check that the PT_HOME environment variables points to it, and check that your database settings by runing ptconfig. Check that your database settings by running ptconfig. check that the portalconfig.xml file is accessible by the web application server.
    My pthome is in the correct place, also the PT_HOME is pointing at the correct place.
    Also the weblogic is pointing to the other machine. Is this the reason for the above error?
    Thanks in Advance!

    Hi Patel,
                         Thanks for your update.
    Regards,
    Hari.

  • How to print a pdf without user interaction (With C#)

    My boss assigned me a task that to get the ImagePreview of 1st page of PDF.
    My thought is to print the 1st page of PDF to file(virtual print to file), and get the image source, but there comes the problem:
    How can print a pdf without user interaction(With C#),question are these:
    1. I can use the ShellExcute but cannot assign the destination of output file.
    2. User interface is unwanted, I don't want show anyone the Acrobat Reader interface who click the file just want to get a preview.
    3. No place to put those parameters in.
    This problem confused me a lot of days, I wish someone can give some hints.
    Thank you very much!
    (Maybe you will tell me to use Acrobat SDK, please don't, I'm afraid we cannot afford that)

    >I have not read the document yet
    This is the first step. There are many documents, but start with the
    introductory/getting started material.
    > with a index.pdx
    A PDX is a search database to allow you to do fast searching in
    Acrobat.
    >
    >About the relationship between Adobe Reader and Acrobat, as far as I know is that, the previous one is just the reading tool for PDF document, instead, Acrobat can modify and resave the PDF doc. Is it right?
    Effectively, yes. But the Acrobat SDK is mainly for working with
    Acrobat. It's very important to keep this clear, since you have said
    you only have the free Reader, so 95% of what is in the SDK cannot
    work for you.
    >
    >Simply my questions,
    >1. I don't know which dll to refer in the .Net project to print with. Is the ActiveX folder in product folder?
    Simply, there is no point asking these questions, yet, because you
    have not started on the documentation.
    But let's continue in the SDK forum, where I have posed what seems to
    be a very important question about why print to file at all.
    Aandi Inston

  • How to get the User Id from the user interactive task?

    If I need to get the user id or whoever process the user interactive task and save this information to the database, how can I get the user identity who process the interactive task? I tried the owner, creator on the execdata, but it doesn't work.
    Thank you

    try using
    Participant.id or Participant.name
    in the interactivity and update this value in the database.
    HTH
    Narasimha
    Edited by: Narasimha on Mar 6, 2011 9:42 PM

  • Is user interaction possible??

    Hi...
    just like passing parameters to the report... can we have user interaction possible with xml publisher??
    I mean can I specify something like this on the report...
    if(user clicked at some point)
    {   show table if table not shown
    hide table if table already shown }
    Want to know if this kind of interaction is possible....if yes, how?

    Brett
    Thanks for your reply.
    Actually my requirement is that I need to have a drill down of data like when I click on something, its details must be shown...
    So from your reply, I understood that it could'nt be done.
    And as you said , i tried embedding java script . but I am getting an exception saying-element script is not supported yet.
    So my doubt is ,is the syntax same as <script>my js code</script> or do we have any different syntax to follow?
    Thanks again!!

  • Re-image computer with no user interaction at all - SCCM 2012

    I have searched many posts and havent found a clear solution for my question.
    Basically, I have OSD task sequence ready to go on my SCCM 2012 R2. It is fine to run it as "Available".
    If I deploy the OSD through Software Center as "Required" and "ASAP", then I login the client, the client will run OSD task sequence sometime after about 30Min-1 hour later, not sure. And there will be no user interaction needed. However
    this means I need remotely log into each computer to let OSD happen.
    If I deploy the same TASK Sequence as "Required" and "ASAP" through "PXE", it will first ask PXE Password(Which I set in DP->PXE Panel), then I need hit "Next" again to start the assigned OSD, which means I need
    physically go to each computer to do this. (EDIT: If needed, I can remove PXE password and add VB scripts in other Task Sequence, however I want to know if I still need press NEXT to start the OSD).
    The clients are not AMT enabled but Lan Wake up enabled and also can be set to LAN WAKE UP Enabled with boot from LAN. I can wake up/shutdown the whole collection with command if needed. 
    Is there a way that I can Re-image one collection of Computers without any interaction on client side?  
    The other question is how long to wait for OSD when it is set to "ASAP"?
    RockyOZ

    Guess I just answered question myself. With PXE Password removed, the OSD runs without user interaction. Thanks. I will add the password in task sequences instead.
    RockyOZ

  • [svn:fx-trunk] 11532: ComboBox user interactions

    Revision: 11532
    Author:   [email protected]
    Date:     2009-11-06 13:32:37 -0800 (Fri, 06 Nov 2009)
    Log Message:
    ComboBox user interactions
    Added support for an improved user interaction. When the user starts typing in the textInput, ComboBox will now update the textInput with the rest of the matching item. It will then select the non-typed text. When using the navigation keys, the textInput will change to the new highlighted item.
    QE notes: Tests need updating to account for new user interaction
    Doc notes: We should update the docs to describe the user interaction
    Bugs: N/A
    Reviewer: Glenn
    Tests run: DropDownList, ComboBox
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ComboBox.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as

  • Hi i want to execute 3 reports  at one click without user interaction

    hi Friends,
    Hi i want to execute 3 reports with one click ie  by putting radio button when we click on this this wants to execute all 3 reports with out user interaction pls try to understand and provide the solution pls
    Thanks & Regards
    Mohan  Reddy

    Hello,
    To achieve this you can use the SUBMIT command after an user action.
    Example
    The program report1 has a stand-alone selection screen with the screen number 1100. In the program report2, an internal table with row type RSPARAMS and a ranges table are filled for this selection screen. These are transferred at SUBMIT together with a single condition.
    Program accessed
    REPORT report1.
    DATA text TYPE c LENGTH 10.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
    DATA: text       TYPE c LENGTH 10,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Regards.

  • Is it possible to remove user interaction in a eventListener ?

    Hi,
    I am working on two scripts that both need to deal with the user interaction.
    This following script works just fine. The only matter is that Indesign alerts me that the script prevented the UI dialog from opening.
    What if I don't want any alert ?
    #targetengine "newdialog"
    Application.prototype.main = function(){
         //app.addEventListener ("beforeNew", preventMe, false);
         var myMenuAction = app.menuActions.item("$ID/Document...");
         myMenuAction.addEventListener ("beforeInvoke", preventMe, false)
    function preventMe(myEvent){
         //alert(myEvent.cancelable);
         myEvent.stopPropagation();
         myEvent.preventDefault();
    app.main();
    I thought about userInteractionLevel but I tried to use it recently and I couldn't get it working. My intention was to get an automated update of my modified links when opening a file.
    It's like
    app.scriptPreferences.userInteractionLevel
    couldn't be set once the script has been launched.
    #targetengine "autolinkupdate"
    main();
    function main(){
         var myMenuAction = app.menuActions.item("$ID/kPMOpenDocTextKey");
         myMenuAction.addEventListener("beforeInvoke",removeInteraction,false);
         //app.addEventListener("beforeOpen",removeInteraction, false);
         app.addEventListener("afterOpen",updatelinks, false);
    function updatelinks(myEvent){
         var doc=myEvent.parent;
         var lk = doc.links;
         for(var i=0; i<lk.length; i++){
              try{
                   lk[i].update();
              catch(e){}
         app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    function removeInteraction(myEvent){
         app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    So my question is : Is it possible to remove user interaction in a eventListener ?
    Thanks,
    Loic

    Assuiming NHTEST is a database link to the remote database connecting with SCOTT, use user_Tab_cols@NHTESTNicolas.

  • How to run eCATT in dialog mode(foreground) without user interaction(Enter)

    Hi,
        As part of performance testing using eCATT we want to execute a test script in dialog mode(foreground) without user interaction like pressing enter at end of each screen. The reason behind this is we want to run a test script 1000 times in dialog mode to analyze the performance of that particular transaction code. Hence its not practical to keep pressing enter at end of each screen. We do not want to execute this in background as that does not simulate the real time transaction processing and give the exact performance analysis.
    We have a test script with VA01 recording and are able to execute it perfectly in background as well as foreground (by pressing enter at end of each screen).
    I would like to know if there are any settings to be made to execute the test script in dialog mode without pressing enter. I have referred the below link which has not solved my purpose.
    ECATT - Running in Foreground (Enter Key)
    Thank You.

    Gopi,
    I never used this transaction before, but my approach would be as below. You may want to try and let me know how it works.
    Before running this script from ST30, first try to run from SECATT for one iteration to make sure the script and target system RFCs are working. Then try again in ST30. Still if you have the issue, ask your basis to take a look when you kick off from ST30 in the target system whether ST30 were able to successfully make the RFC call to that system.
    thanks
    Venkat

  • Web view / Allow User Interaction always brings up Menu Bar

    Hi,
    I have recognized that a web view on the page which allows user interaction (for example animations with buttons) always causes the menu/navigation bar to pop up which is quite a pain. All other interactive elements don't do it so why would the web view need to cause this.
    mulitstates on top of it or fake buttons obviously don't work since the are needs to be touch sensitive.
    Any suggestions?
    Cheers,
    Alex

    It depends on how the event listeners in the web view are written. for example simple <a href="link.html"></a> elements don't activate the DPS menu. The same is true for touchstart and click elements.
    Try to implement your click/touch events differently. I haven't found the pattern which caused the menu to open, yet. But if you test around a little with different ways of aproch, I'm sure you can find a solutio (e.g. in one case I could solve it by not using event.preventDefault() in another case the touch event was bound within a javascript variable, which also caused the menu to show. etc. pp.)
    Good Luck!

Maybe you are looking for

  • How to specify class name in environment or system property

    Hi, Iam learning ejb. I was practicing the stateless session bean. I wrote a sample hello world application. While executing the client am getting the following error. {color:#ff0000}Exception in thread "main" javax.naming.NoInitialContextException:

  • Web Start Examples Help

    Hi, I am slowly learning Java and would like to play with some of the examples that are in the Java Web Start. When I try and compile the code however I get a lot of error messages (Cannot resolve symbol). Am I missing some other file that I need to

  • User preferences resetting to default...

    After a log out or a restart my wife's macbook pro (not the new model) all user visual prefs are lost. Goes back to deafult desktop, dock deafult, etc.not what I have just set. FYI: User folder is on a 2nd internal hard drive (disk player removed). C

  • IPC (Inter Portlet Communication) and DesktopBackingContext

    I have two portlets: portlet A and portlet B that communicatie using IPC, and I experience problems when accessing the DesktopBackingContext in the portlet that listens to the event. - Portlet A fires a custom event - This event triggers an action in

  • ECC to ECC integration

    Hi All, I have requirement to integrate our ECC system via PI to the another ECC system which lies outside our landscape through ABAP proxy.. How can we achieve this? Do we need to register external ECC system as technical system in our SLD? Thanks,