Single click to execute automator script

Relatively new to auto.., I created a workflow and saved the file. When I click on it, automator loads and sits there. How do I make the saved file a single click run? Kinda like an EXE in <sorry> Windows.

Save it as an application under Automator > File > Save as
You then treat is as any normal app
Save a copy as a normal Workflow first so you can edit it if need be
chris

Similar Messages

  • ICal doesn't execute Automator Scripts

    Since I upgraded to Leopard my iCal doesn't execute scripts anymore. Normaly every day iCal executed a script to check for birthdays and send them a e-mail. Now I can't get this to work. No settings are changed as far I can see.
    Help!!! (I missed already a few birthdays... people hate me... ;-))

    Does it display any kind of error message? It may be that the location of the script has changed. It seems that iCal saves fixed paths to scripts and not aliases. This means that if the path to a script changes it won't run. Try to rename a script and then select it again in the event. You'll want to rename so that you can distinguish it from the previous script entry. iCal only displays the name of the script, not the path used by the alarm.

  • [JSP] I want execute a script only on click image

    Hello.Is it possible to execute a script JSP, only if I click on a image.
    Particulary i want to fill a field in a form only if I click on an image in the same page .jsp. In this field I should insert a name that I can recover like request.getParameter("name"); only if I click on image!!
    Thanks in advance to anyone for any insight.

    mmm. I can set a javaScript variable using JSP. How can I do?
    I have this scenario in my web site. Page 1 have a form where I can insert an username. On submit Page2.jsp has the script jsp at issue(String usr=request.getParameter("username")). In the same page there is the field to fill with above mentioned username when I click on image.
    So i could use usr to set a javaScript variable and onclick image I can set the field using JavaScript.
    If it is possible, there is another problem:
    All other people that access the page have to see the username of each other in the field(I need only two username).Using javaScript is not possible because JavaScript is client side.
    Is it right? (Sorry if I am boring)

  • Single click folder action script

    Hi
    Long shot question here:
    I am wanting to set up a folder action script that is activated by only single clicking a folder (selecting), very much the same as "Macintosh HD:Library:Scripts:Folder Action Scripts:open - show comments in dialog.scpt", the dialog will display when the folder is selected, not opened.
    Is this possible with applescript, or a combination of AS and "do shell script"? if so can I get some pointers please.
    Cheers
    Budgie

    Hello
    The Standard additions dictionary claims:
    adding folder items to: Called after new items have been added to a folder, but only when the folder’s window is open
    adding folder items to alias -- Folder receiving the new items
    after receiving a list of alias -- a list of the tems the folder received
    closing folder window for: Called after a folder window has been closed
    closing folder window for alias -- the folder that was closed
    moving folder window for: Called after a folder window has been moved or resized
    moving folder window for alias -- the folder whose window was moved or resized
    from bounding rectangle -- the previous coordinates of folder window (you can get the new coordinates from the Finder)
    opening folder: Called after a folder has been opened into a window
    opening folder alias -- the folder that was opened
    removing folder items from: Called after items have been removed from a folder, but only when the folder’s window is open
    removing folder items from alias -- the folder losing the items
    after losing a list of alias -- a list of the items the folder lost. For permanently deleted items, only the names (in strings) are provided.
    Other actions , like single click, are NOT treated.
    Yvan KOENIG (from FRANCE dimanche 29 janvier 2006 19:12:18)

  • Getting an automator script to execute at startup

    Hello everyone,
    How do I get an automator script/app/workflow to execute at startup? Other than by adding the app to the user startup items?
    Thanks a million,
    Cecile

    I'd guess that there is an app out there that would run something at startup...
    You probably want to look at this thread.
    http://discussions.apple.com/thread.jspa?threadID=312721&tstart=15
    I don't understand why you wouldn't just put it in the startup list, but these may take care of it.

  • Is there a single click VNC/screen sharing server for OS X?

    First, if this is posted in the wrong section then please forgive the error and relocate the post to the appropriate section.
    I'm looking for a small distributable single click screen sharing system for tech support purposes. I generally support Windows users but sometimes need to quickly gain access to remote OSX systems from fairly clueless users. Every minute I spend explaining something that the user does not want to know or does not need to know is a waste of our mutual time. Thus I'm looking for something similar to UVNC single click for OSX. That is a distributable VNC server reduced to about 250KB or less that can be configured to automatically connect to a listening viewer on launch.
    Is there a program or perhaps an executable script file that will initiate such a connection?

    Start with Applications -> Automator. You can have it "Record" the setting up of the VPN server of your choice.
    Then there is AppleScript, but for me that generally requires a book and Google searches to find examples close to what I want to do.
    It may be possible to do some stuff via Unix shell scripts (sh, bash, awk, perl, python, ruby, etc...) and then invoke this via an Automator action, an AppleScript command, or just wrap the shell script using Platypus (search Platypus at VersionTracker.com).
    If you need to configure the customer's Mac OS X firewall, that might also be an Automator action, or since the firewall is really the Unix ipfw (man ipfw), that could be a use for shell scripting.
    If you need to fetch stuff from the web as part of your installation, you could use something like /usr/bin/curl in a shell script.
    Setting up automation can be difficult and I'm not making light of the task. What might look like a good approach may find that the last 5 inches just can be done and you have to back track and use something else. And then there are the variables created by the fact that every customer will be different and you will find that some expected situation doesn't exist because the customer has customized something.
    NOTE: The Vine Server (aka OSXvnc) can be setup to make a reverse connection. It may even be possible to use an Automator script to setup that connection for you, specifying the address.of.your.VNC.client and port number you are using.
    Or create an AppleScript (which might be more robust than Automator).
    Or establish an example reverse setup, then using "ps -axlww" see what the actual server command line looks like, then create a shell script wrapped by Platypus to do this for the customer.
    OK, your turn to go chasing down dead-ends and practice backing out. After all you are the one that is going to get paid, I'm just doing this for fun
    However, if you need to configure a customer's router that could be a problem as every darn one of them is different.

  • Closing the browser with a single click from form

    Hi All,
    Will u please help me anyone how to close the browser with a single click pressing exit button or closing the cross buton.
    Arif

    Always start with a search on this forum
    Solution
    Instructions:
    1. Using an html or text editor, create an html file with the following code:
    <html>
    <head>
    <script type="text/javascript">
    // Create a ref to the original method
    var windowClose = window.close;
    // Re-implement window.open
    window.close = function ()
    window.open("","_self");
    windowClose();
    </script>
    </head>
    <body onload="window.close()">
    <!-- The following text added in case users have disabled Java Scripting -->
    <!-- or if browser fails to close for some other reason. -->
    Your browser or system settings have prevented this window from closing.
    In order to ensure the highest level of security,
    please close/exit this browser session immediately.
    </body>
    </html> 2. Save the html file with the following name: close.htm
    3. Store this file on the middle tier, in a directory which has an associated virtual path configured in the HTTP Server. You can use a pre-existing path or create a new one. For example, in version 10.1.2 you could copy the html file to this directory:
    ORACLE_HOME\tools\web\html
    The above virtually maps to the following by default:
    /forms/html/
    For information on creating a virtual path for the HTTP Server, please refer to the HTTP Server Administrator's Guide.
    4. In the Forms application, choose the desired trigger where you would like to execute the closing of the browser. Remember that by executing this code, the application will be ungracefully terminated, therefore it is recommended that the following code only be entered in the Forms POST-FORM trigger.
    web.show_document ('/forms/html/close.htm','_self');
    5. Compile and run the form.
    Upon exiting the form, the web browser will call close.htm resulting in the browser closing.
    This has been successfully tested using IE7 on XP-SP3. Although this code will work with other browsers, for example FireFox 3, a configuration change in FF must be made in order for it to work correctly.
    Manual Steps Required for FireFox:
    1. Open one instance of the FireFox browser.
    2. In the address bar, enter the following and press Enter on the keyboard:
    about:config
    3. In the list presented, locate the following parameter:
    dom.allow_scripts_to_close_windows
    4. Double-click on this parameter to set its value to TRUE
    5. Exit the browser
    Edited by: BaiG on Mar 30, 2010 12:23 PM

  • Is there a way to launch an app and a set of actions on startup? (Like an automator-script for ipad)

    Hi all,
    Is there a way to have the ipad execute a series of tasks at startup? (like an automator-script)
    Thank you!

    Hi all,
    For all you who have been looking for a solution for the problem above, here it is :
    http://www.kioskproapp.com/
    The Kiosk Pro app allows you to run any html-scrip locally stored on the ipad!
    Which is great! Because not only does it allow for an infinite amount of possibilities next to the video-looping, it also keeps on working with one click after a reboot!
    The learning curve of usage is quite simple for the problem above, since they provide extensive information on the website and have great customer service.
    I am very very happy I found this app, and I really hope this post saves a lot of people the headaches I've suffered in the course of finding the solution.
    Enjoy!
    Alex

  • Jquery slider is not consistently loads while running coded ui automation script

    Hello Guys,<o:p></o:p>
    I am doing coded ui automation testing for mvc application. Now there are some features where we are loading Jquery slider from left towards right. Actually those slider loads properly
    when users does it manually but when i ran it using coded ui script, so sometimes slider comes and go back within seconds .This means it is not loading properly but sometime its load fine.so due to that coded ui does not find respective control to click over.<o:p></o:p>
                I have tried to wait with different option of playback , wait , delay but the behavior is still same.
    That means my test fails to load proper slider window  most of the time.<o:p></o:p>
    Can anyone suggests me some inclinations to solve this problem. <o:p></o:p>
    Thanks in advance.<o:p></o:p>

    Actually i have tried to wait in all possible ways provided by coded ui . But issue happens only sometime during following scenario:
    1. I click on "x" button 
    2. Then that slider gets loaded from right towards left. There is again other internal ajax call which brings up data to show on slider. For that i have used webwaitforcontrolready=3 to disable ajax or js engine. 
    3. But sometimes problem occurs when automation scripts clicks on "x" button ,then slider comes and go back within fraction of seconds. I do not know whether it is due to network speed or any other issue. so due to that subsequent action on that slider are
    not getting executed or gets failed.
    could you please suggests me which wait should i use till that slider loads completely and then only move to next action?
    i have tried using wait(), thread sleep(),waitforcontrolready(),waitforcontrolexits(),waitforcontrolenabled(),playback.settings.waitforreadylevel=allthreads.

  • To execute a script in two different instances simultaneously

    Hello All,
    Is it possible to execute a script on different instances simultaneously?
    Like, can we create a user on different instances simultaneously using a script?
    Thanks in advance..!
    Thanks and Regards, Readers please vote for my posts if the questions i asked are helpful.

    Hi,
    Registered Servers meets your requirements.
    The Query Editor window in SQL Server Management Studio can connect to and query multiple instances of SQL Server at the same time. The results that are returned by the query can be merged into a single results pane, or they can be returned
    in separate results panes. As an option, Query Editor can include columns that provide the name of the server that produced each row, and also the login that was used to connect to the server that provided each row. For more information about how to execute
    multiserver queries, see
    Execute Statements Against Multiple Servers Simultaneously (SQL Server Management Studio).
    To execute queries against all the servers in a local server group, right-click the server group, point to click
    Connect, and then click New Query. When queries are executed in the new Query Editor window, they will execute against all servers in the group, using the stored connection information including the user authentication context. Servers
    registered by using SQL Server Authentication but not saving the password will fail to connect.
    More information, see: http://msdn.microsoft.com/en-us/library/ms188231.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Help with simple Automator script

    I have a simple Automator script for updating a specified folder with files from another folder. It consists of only two actions:
    1. Get Folder Contents (from the folder I drop on the Automator executable).
    2. Copy Finder Items.
    I left the option "replace existing files" unchecked because there's no point in replacing a bunch of files that already exist (we're talking about 4000-5000 files in the source folder).  I assumed that meant to ignore any existing files but, on the contrary, I found out that the script is copying duplicates of all the existing files -- making my target folder about 9000 files strong!
    How do I get a command into the middle of this script to restrict the Copy Finder Items command to files that do not already exist in the target folder? (It would be even nicer if it could check for files that are older than the files being copied and actually replace (only) those as well.)
    Any ideas?

    If you need the Terminal window to stay open, then you're looking at scripting Terminal. You can do this with Automator's run applescript action, or you can just use Script Editor (in Applications > AppleScript). Either way you will need to save the workflow/script as an application and drag it to your Login Items (in System Preferences > Accounts).
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "Terminal"
    activate
    set commands to "cd /Users/lenny/ventrilo/ 
    /Users/lenny/ventrilo/ventrilo_srv"
    do script commands in front window
    end tell</pre>
    PowerMac G5 (June 2004) 2x1.8GHz 1.25GB, PowerBook G4 (12-inch DVI) 1x1GHz 768MB   Mac OS X (10.4.3)  

  • Executing powershell script from remote computer using RSAT

    Hi.
    I want to execute powershell script on AD server from remote computer (in the same domain). I installed and tested RSAT - it is working fine. But i cant execute PS from c# code.
    ps.Commands.AddCommand("Import-Module").AddArgument("ActiveDirectory");
    ps.Invoke();
    ps.Commands.AddCommand("Get-ADOrganizationalUnit -Filter 'Name -like \"*\"'");
    var res = ps.Invoke();
     And i get exception:
    An unhandled exception of type 'System.Management.Automation.CommandNotFoundException' occurred in System.Management.Automation.dll
    Additional information: The term 'Get-SBNamespace' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

    Hi
    CapitanPlanet
    For the
    CommandNotFoundException, it means the command cannot be found.
    On the other hand, your issue is about the PowerShell, if you still have the issue, I suggest that you should post it in the
    PowerShell forum for efficient response.
    Here are some useful information, please check
      Powershell
    commands from C# not working (System.Management.Automation.CommandNotFoundException)
    Powershell, Service Bus For Windows Server Programmatically: Command found, module could not be loaded
    https://msdn.microsoft.com/en-us/library/dn282152.aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to execute vb script with out using Remote manager in oim 11g r2

    Hi Currently,
    i have a requirement to execute  vb script (present on a remote machine in which connector server is installed) from oim machine while using Exchange connector (11.1.1.6).
    This can be achieved by using remote manager,but i dont want to use remote manager.
    Hence decided to use Action scripts.
    As per connector configuration,
    i have configured Action scripts in Lookup.Exchange.UM.Configuration lookup definition, by means of three entries
    After Create Action Language      Shell
    After Create Action Target           Resource
    After Create Action File              /home/scripts/Disable.bat
    Disable.bat has the following ,
    Powershell.exe -File C:\scripts\Setup.vbs
    -%Log on Name%
      Exit
    As Setup.vbs is expecting a parameter of log on name, i was providing the same.
    But while creating the user,as this script gets called, getting the following error and hence 'create User' is getting failed.
    Problem while PowerShell execution System.Management.Automation.RemoteException: This task does not support recipients of this type. The specified recipient XXXXXXXXXXX...XXXXX is of type UserMailbox. Please make sure that this recipient matches the required recipient type for this task.
    While provisioning the user to Exchange , i have selected 'Recepient type' as 'User Mail box' explicitly, but still getting the error.
    Please provide any pointers to resolve the issue.
    Thanks in advance
    Kumar

    As far as I know Oracle and MySQL are two different products.
    Why do you clutter an Oracle forum with MySQL questions?
    If MySQL is such a tremendous RDBMS, like many people state (as 'free' means per definition better),
    why don't you visit a MySQL forum where fellow MySQL aficionados can answer you MySQL questions?
    In short, why don't you stop abusing Oracle forums?
    Sybrand Bakker
    Senior Oracle DBA

  • How to Open new screen for single click on ALV icon.

    Hi All,
    Can any body help me regarding the below ALV requirement.
    I need to create a executable program ZPROGRAM with a table having field to store long text.The ALV report should display records according to the selection screen parameters with a icon in each record when clicked should open a new screen with present data in the field and must be able to save the entered long text.
    Can any body give me the idea after displaying the simple ALV in the output,
    How to open new screen(not the Pop-up’s) after single click on the icon,
    in that I should be able to modify & save the long text in my ZTABLE and
    able to retrieve the same text for single clicked icon record.
    which function modules/Classes/Methods can we use for this requirement.
    And how retrieve the same text for this record.
    Thanks in advance.
    Regards,
    Kalam A.

    *& Report  ZTEST_ALV
    REPORT  ZTEST_ALV.
    TYPE-POOLS slis.
    DATA: gt_fieldcat TYPE TABLE OF slis_fieldcat_alv .
    DATA: gs_layout  TYPE slis_layout_alv.
    DATA: gt_list_top_of_page TYPE slis_t_listheader.
    DATA: gt_sortinfo_alv   TYPE  slis_t_sortinfo_alv.
    DATA: gs_print_alv TYPE slis_print_alv.
    DATA: gs_grid TYPE lvc_s_glay.
    DATA: gt_event TYPE slis_t_event.
    DATA: gs_event TYPE slis_alv_event.
    DATA: BEGIN OF GT_DISPLAY OCCURS 100.
       INCLUDE STRUCTURE MARA.
       DATA: BOX.
    DATA: END OF GT_DISPLAY.
    START-OF-SELECTION.
    SELECT * FROM MARA UP TO 50 ROWS
      INTO CORRESPONDING FIELDS OF TABLE GT_DISPLAY.
    End-of-Selection.
      PERFORM build_alv.
      PERFORM display_screen .
    FORM build_alv .
      DATA: ls_fieldcat LIKE LINE OF gt_fieldcat.
      DATA: ls_top TYPE LINE OF slis_t_listheader.
      DATA: ls_sort TYPE slis_sortinfo_alv.
      CLEAR: ls_fieldcat, gt_fieldcat[], ls_top,gt_list_top_of_page[],
             ls_sort,gs_grid,gs_print_alv,gt_sortinfo_alv[].
    *&-----gs_layout definition.
    gs_layout-zebra = 'X'.
    gs_layout-detail_popup = 'X'.          "ÊÇ·ñµ¯³öÏêϸÐÅÏ¢´°¿Ú
    gs_layout-f2code = '&ETA'.             "ÉèÖô¥·¢µ¯³öÏêϸÐÅÏ¢´°¿ÚµÄ¹¦ÄÜÂë,ÕâÀïÊÇË«»÷
      gs_layout-no_vline = ' '.              "ÉèÖÃÁмä¸ôÏß
      gs_layout-colwidth_optimize = 'X'.     "ÓÅ»¯Áпí
      gs_layout-detail_initial_lines = 'X'.
    gs_layout-coltab_fieldname = 'LINE_COLOR'. "Line_colorΪgt_displayµÄÒ»¸ö×Ö¶Î,¾ßÌåÑÕÉ«ÉèÖüûÏÂÃæ˵Ã÷.
      gs_layout-hotspot_fieldname = 'MATNR'.
    gs_layout-detail_titlebar = 'ÏêϸÄÚÈÝ'. "ÉèÖõ¯³ö´°¿ÚµÄ±êÌâÀ¸
    gs_layout-group_change_edit = 'X'.
    *&-----gs_grid definition.
      gs_grid-top_p_only = 'X'.
    *&-----gs_print_alv definition.
      gs_print_alv-prnt_title = 'X'.
      gs_print_alv-prnt_info = 'X'.
    *&-----gt_sortinfo_alv definition. С¼Æ
      ls_sort-fieldname = 'MTART'.
      ls_sort-tabname =  'GT_DISPLAY'.
      ls_sort-subtot = 'X'.
      ls_sort-spos      = 1.
      ls_sort-up        = 'X'.
    ls_sort-group = 'UL'.
      APPEND ls_sort TO gt_sortinfo_alv.
      ls_sort-fieldname = 'AENAM'.
      ls_sort-tabname =  'GT_DISPLAY'.
      ls_sort-subtot = 'X'.
      ls_sort-spos      = 1.
      ls_sort-up        = 'X'.
    ls_sort-group = 'UL'.
      APPEND ls_sort TO gt_sortinfo_alv.
    *&-----slis_t_listheader definition. title.
      CLEAR  ls_top.
      ls_top-key  = 'µ±Ç°ÈÕÆÚ:'.
      ls_top-typ  = 'S'.  " H = Header, S = Selection, A = Action
      CONCATENATE  sy-datum0(4)   '-' sy-datum4(2) '-' sy-datum+6(2) INTO ls_top-info .
      APPEND ls_top TO gt_list_top_of_page.
      CLEAR  ls_top.
      ls_top-key  = 'title'.
      ls_top-typ  = 'S'.  " H = Header, S = Selection, A = Action
      ls_top-info = space.
      APPEND ls_top TO gt_list_top_of_page.
    *&-----gs_print_alv definition.
      gs_print_alv-prnt_title = 'X'.
      gs_print_alv-prnt_info = 'X'.
    *&-----gt_fieldcat definition.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
         i_program_name     = sy-repid
         i_internal_tabname = 'GT_DISPLAY'
          i_structure_name = 'MARA'
          I_CLIENT_NEVER_DISPLAY = 'X'
         i_inclname         = sy-repid
       CHANGING
         ct_fieldcat        = gt_fieldcat[]
       EXCEPTIONS
         inconsistent_interface = 1
         program_error          = 2
         OTHERS                 = 3.
      ls_fieldcat-hotspot = 'X'.
      MODIFY gt_fieldcat FROM ls_fieldcat INDEX 2.
    **-1. definition with macro.
      DEFINE macro.
       col_pos = col_pos + 1.
       ls_fieldcat-tabname   = 'it_typ_data'.
        ls_fieldcat-fieldname = '&1'.
        ls_fieldcat-seltext_l =  &2.
       ls_fieldcat-col_pos   =  col_pos.
        ls_fieldcat-outputlen =  '&3'.
       ls_fieldcat-datatype  =  '&4'.
       ls_fieldcat-do_sum    =  &5.
       ls_fieldcat-edit    =   &6.
       ls_fieldcat-checkbox  =   &7.
       ls_fieldcat-key   =   &9.
       ls_fieldcat-fix_column =  &10.
       ls_fieldcat-no_out =  &11.
        ls_fieldcat-ref_fieldname = &4.    " System F4 Effect.
        ls_fieldcat-ref_tabname   =  &5.   " System F4 Effect.
        ls_fieldcat-hotspot   =   &6.
        append ls_fieldcat to gt_fieldcat.
        clear ls_fieldcat.
      END-OF-DEFINITION.
      macro matnr     'matnr'            18   'MATNR'   'MARA'  'X'.
      macro MTART     'MTART'            18      'MTART' 'MARA'  ''.
      macro  AENAM    'AENAM'            18       'MAENAM'  'MARA'   ''.
    **-2. definition one-by-one.
    CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'MATNR'.
    ls_fieldcat-seltext_s = 'ÎïÁÏ'.
    ls_fieldcat-ref_fieldname = 'ROLLNAME'.
    ls_fieldcat-ref_tabname   =  'DD03L'.
    APPEND ls_fieldcat TO gt_fieldcat.
    ENDFORM.                    "build_alv
    FORM display_screen .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         i_list_type     = 0
       IMPORTING
         et_events       = gt_event
       EXCEPTIONS
         list_type_wrong = 1
         OTHERS          = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE gt_event INTO gs_event WITH KEY name = 'TOP_OF_PAGE'.
    IF sy-subrc EQ 0.
       gs_event-form = 'TOP_OF_PAGE'.
       MODIFY gt_event FROM gs_event INDEX sy-tabix.
    ENDIF.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
         i_callback_program                = sy-repid
        i_callback_pf_status_set          = 'PF_STATUS_SET '
         i_callback_user_command           = 'USER_COMMAND'
        i_callback_top_of_page            = 'TOP_OF_PAGE'
       I_CALLBACK_HTML_TOP_OF_PAGE       = 'HTML_TOP_OF_PAGE'
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = 'ALV_BACKGROUND'    "When top-of-page is initial.
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
         is_layout                         = gs_layout
         it_fieldcat                       = gt_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
        it_sort                           =  gt_sortinfo_alv[]
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
       I_SAVE                            = 'A'
      IS_VARIANT                        =
      IT_EVENTS                         = gt_event
      IT_EVENT_EXIT                     =
       IS_PRINT                          = gs_print_alv
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = gt_display
    EXCEPTIONS
       program_error                     = 1
       OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "display_screen
    FORM user_command          USING ucomm LIKE sy-ucomm
                               selfield TYPE slis_selfield.
    Data ref1 type ref to cl_gui_alv_grid.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' "Check Box need fieldcat-checkbox, input and edit.
         IMPORTING
           E_GRID = ref1.
      CASE ucomm.
        WHEN '&IC1'. " SAP standard code for double-clicking
    READ TABLE gt_display INTO gs_display INDEX  slis_selfield-tabindex.
    CHECK sy-subrc = 0.
         CASE  selfield-fieldname  .
           WHEN 'PLNUM'.
             SET PARAMETER ID 'PAF' FIELD gs_display-plnum.
             CALL TRANSACTION 'MD12' AND SKIP FIRST SCREEN.
           WHEN  'POSNR'.
           SUBMIT  rvscd100 USING SELECTION-SCREEN '1000' WITH vbeln = gs_display-vbeln
                                                          WITH posnr = gs_display-posnr
                                                          WITH zinfo = 'X'
                                                          AND RETURN.
         ENDCASE.
       IF selfield-sel_tab_field = 'OUT_ITAB-PI_SL'. " Line detail.
           READ TABLE i_output INTO pisl_itab INDEX selfield-tabindex.
           IF sy-subrc EQ 0.
       ENDIF.
        WHEN 'CHANGE'.
         CALL METHOD ref1->check_changed_data.
         CALL METHOD ref1->refresh_table_display.
    *5´Ë´¦´úÂë×èÖ¹'REUSE_ALV_GRID_DISPLAY´´½¨ÐµÄÆÁÄ»£¬Ôì³ÉÆÁÄ»¶à²ã
         selfield-refresh = 'X'.
        WHEN 'SWITCH'.
         PERFORM switch_edit_mode.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    "user_command
    Add your code in user_command form.
    WHEN you click matnr ucomm eq '&IC1'.
    Message was edited by:
            Chunhai Hu

  • Single click in file open dialogs in KDE4.1

    Hi,
    In my KDE 4.1, there's something that doesn't seem right:
    If in system settings, mouse&keyboard, I set the option "Double-click to open files and folders", then it doesn't actually  listen to that setting.
    In a file open dialog, it opens a file already with a single click. This makes it very hard to select multiple files in the dialog (e.g. when opening files with kate), because if you press CTRL and click on the file, instead of just making a selection of it, it opens that 1 file and closes the file open dialog.
    Is this really the intention? How can I select multiple files that are not all below each other?
    Is it the intention that it doesn't listen to the double click setting? And is it the intention that the behaviour is inconsistent with any other desktop environment? I mean, they didn't just change something universally accepted, right?

    I mean if I just use the below script, it works.
    getURL("javascript:loadintoIframe('myframe',
    'v_vista_b5.html')");
    but if I want to control 2 iframes in one clicking, it
    doesn't work(it basically load only the second statment, and skips
    the first). I'd like to know is it possible to combine below 2
    javascript into one?
    getURL("javascript:loadintoIframe('myframe',
    'v_vista_b5.html')");
    getURL("javascript:loadintoIframe('topframe',
    'top_v_vista_b5.html')");
    thanks again.

Maybe you are looking for