How to activate programatically inserted standard menu items in zScale context menu?

Hi,
I want to have a different context menu for an intensity graph and its Z scale. This work fine if the standard menu is keept but problems appears as soon as the context menu is customized.
If the context menu of an intensity graph is customized, this menu is taken also for its Z scale. I work around this feature, and programmatically modifiy the context menu when user click on Z scale. So far so good. BUT I introduce for this programmatically customized context menu some standard items such as APP_SC_ADD_MARKER, and when user select those standard items, nothing appends. I mean, that the item is readed, but in that example no marker is added on the Z scale from the run time engine. Where is my error?
Please find the test VI enclosed.
Thank you for tips!
Attachments:
Intensitaetsgraph.vi ‏46 KB

Hi aleveque,
once you modify the run-time menu, you have to handle the events in your program:
From the LabVIEW Help:
"After you customize a run-time shortcut menu statically or programmatically, you must configure an Event structure to handle each menu item in the custom menu."
 Regards,
Andreas S
Systems Engineer

Similar Messages

  • Context menu oddity: 2 "QuickTime Player" items on OSX context menu?

    Hi,
    This pertains to QuickTime Pro 7.0.4. I never noticed this before I upgraded to QuickTime Pro 7--when I right-click on a file that can be opened in QuickTime, I see two QuickTime Player items on the context menu. Either one opens the movie.
    More specifically--when QuickTime is specified as the default application for a file, QuickTime Player appears at the top of the context menu as well as in the list of other applications that can open the file. When QuickTime is not the default application, two QuickTime Player items appear in the list of other application that can open the file when right-clicked.
    I looked through the Contextual Menu Items folders, but couldn't find any duplicate files. This affects both my G5 desktop system and my PB G4; both are runnning the latest version of Tiger (10.4.6) as well as the latest version of DivX. On my G5, I have Final Cut Studio installed; but not on the PB.
    Anyone else experience this oddity? Any idea how to get rid of the duplicate item on the context menu?
    TIA
    M

    The contextual menu "Open With..." command uses data from the Launch Services app (part of the system software).
    Having duplicates in the menu is a very old issue and there are dozens of reasons why multiple apps show up. It could be reading a "backed up" duplicate app or multiple copies (I have 4 versions of the QuickTime Player app installed) of the software.
    Cleaning out the Launch Service list can be done with some third party software (I don't know the names) or with some Terminal commands (don't know them, either).
    Maybe a Google search or a search at http://www.versiontracker.com/macosx can help you out.

  • How to insert sharepoint list item attachment to sql server db programatically

    Hi,
    I need to insert sharepoint list item attachments to sql server db programatically. Could some one suggest some approach and if any one work on it please provide the code. Thanks in advance

    hi,
    you can do it using powershell. Use the below script to loop through all the items attachments inside list.
    $web = $site.RootWeb<br />
    $Lists = $Web.Lists[$ListName]
    $Library = $web.Lists[$LibName]
    foreach($listItem in $Lists.Items)
    if($listItem.Attachments.Count -gt 0)
    Write-Host "**************************************************"
    Write-Host $listItem.Attachments.Count"Attachment(s) available in the ListItem:" $listItem.Title
    Write-Host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
    $i=0
    foreach($attachment in $listItem.Attachments)<br />
    $i++
    Write-Host $i".Attachment Name:" $listItem.Attachments.UrlPrefix$attachment
    $file = $web.GetFile($listItem.Attachments.UrlPrefix+$attachment)
    Write-Host "Adding Files to Library:"$Library.Title
    $bytes = $file.OpenBinary()
    Write-Host "Successfully Added"<br /> Write-Host "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
    Write-Host "**************************************************"
    And use the below script to insert into SQL.
    #Connect to DB
    $DB = “server=MyInstanceName;integrated security=sspi;database=Bob”
    $conn = new-object System.Data.SqlClient.SqlConnection($DB)
    #Build the command and parameters
    $cmd = New-Object System.Data.SQLClient.SQLCommand
    $cmd.CommandType = [System.Data.CommandType]‘StoredProcedure‘
    $cmd.Parameters.Add(“@Col1″, [System.Data.SqlDbType]‘VarBinary‘)
    $cmd.Parameters[“@Col1″].Size = -1
    $cmd.Parameters[“@Col1″].Value = $bytes
    $sql = "INSERT INTO <table> (Col1) VALUES " + $cmd.Parameters[“@Col1″]
    #Execute the command
    $conn.Open()
    $cmd.ExecuteNonQuery()
    P.S. There may be some syntax error you have to make it work but the concept is right.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Bug report: Photoshop can't record an action where you insert the menu item "Tile all horizontally".

    I am running CS6 beta on Mac OS 10.7.3
    Photoshop can't record an action where you insert the menu item "Tile all horizontally".
    Expected behavior: add the tile all horizontally action to your actions.
    Behavior: nothing happens.
    This does work for Tile all vertically.

    Have I mentioned how much i love my playbook now Great job on os 2.0

  • How to remove the the standard button APPEND/INSERT/DELETE in webdynpro alv

    Hello,
    how to remove the the standard button APPEND/INSERT/DELETE in webdynpro-abap  alv
    Thanks
    Rakshar

    Use  this.
        data lo_cmp_usage type ref to if_wd_component_usage.
        lo_cmp_usage =   wd_this->wd_cpuse_alv1( ).
        if lo_cmp_usage->has_active_component( ) is initial.
          lo_cmp_usage->create_component( ).
        endif.
        data lo_interfacecontroller type ref to iwci_salv_wd_table .
        lo_interfacecontroller =   wd_this->wd_cpifc_alv1( ).
        data lo_value type ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
        data: lr_std type ref to if_salv_wd_std_functions.
        lr_std ?= lo_value.
        lr_std->set_export_allowed( abap_false ).
    NOte: ALV1 is alv component name
    Regards
    Srinivas
    Edited by: sanasrinivas on Dec 1, 2011 6:11 AM

  • How to get the standard Menu of Query Designer into Web Template

    Hi Experts,
    is there a way on how to put the standard menu within Bex Query Designer (after executing a Query with the Query Designer you get into ad-hoc reporting with a menu including several functions like print, show as..., properties, etc) into an individual Bex Web Template?
    Copy & Paste source code will not work I guess because of several javascript functions I don't have access to.
    Thanks & Best regards
    Tobias

    BEx queries are displayed on the web using standard web template 0ANALYSIS_PATTERN or some customized version base don your implementation.
    You can either include the 0ANALYSIS_Pattern web template in your custom template or use Save as to create a new template with 0ANALYSIS_Pattern  AS THE STARTING POINT.

  • How to insert multiple list item as separate records

    I have a form with a list field in which user can select
    multiple item <select multiple="multiple"><option
    value></option></select>. My problem is that I don't
    know how to do an insert sql operation that puts every selected
    item on the list field into a separate record in a database table.
    I think that first I should get it to know how many item was
    selected from the list, than write the insert into statement
    between loop tags which loops the operation until every item has
    inserted. I'm not sure about it and even if I'm right, I don't know
    how to code it. Could someone show me a sample code for such a
    "problem"?

    quote:
    Originally posted by:
    Newsgroup User
    The ScareCrow wrote:
    uh, depending on the db (say it's sql server) you might want
    to swap the loop &
    cfquery to make that one big insert rather than a bunch of
    cfqueries.
    The following approach will work with just about any db and
    only uses once connection
    <cfquery>
    insert into sometable
    (field1, field2, etc)
    <cfloop list = "#somelist#" item = "thisitem">
    select distinct #thisitem#, 'something else', etc
    from some_small_table
    <cfif listfind(somelist, thisitem) lt
    listlen(somelist)>
    union
    </cfif>
    </cfloop>
    </cfquery>

  • How to un-checked the sub-menu items in the active document?

    Can anybody let me know, how to make the "checked" sub-menu items in "Window" menu to "un-checked" through scripting. More clearly, i need to open a document alone without showing the tools bars, Document info, etc. Kindly help me the possiblities via scripting(vbscript / javascript). I am using illustrator cs3.
    Thanks...

    With vb you could call an action that changes the workspace. I do this with AppleScript but its only any use for in-house stuff where I know the actions and workspaces are saved.

  • How to insert multiple line items in fv60 using bdc.

    Hi all,
          How to insert multiple line items in fv60 using bdcs

    hi
    chk this
    DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    DATA : IT_MESSAGES LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    DATA : V_EBELP(30) , V_MENGE(30) , V_WERKS(30), V_EMATN(30) ,
    V_PEINH(30).
    DATA : FILE TYPE STRING, V_MSG(100) , V_IND(2) TYPE N , FLAG VALUE 'X'.
    PARAMETERS: P_FILE(50) TYPE C DEFAULT 'C:\ME21_TEST'.
    DATA : BEGIN OF ITAB OCCURS 0,
            IND(02),
            LIFNR_001(010),
    data element: BSART
            BSART_002(004),
    data element: BEDAT
    data element: EKORG
            EKORG_004(004),
            EKGRP_006(003),
    data element: LPEIN
            LPEIN_005(001),
    data element: EMATNR
            EMATN_01_007(018),
    data element: EWERK
            WERKS_01_008(004),
    data element: EPEIN
            PEINH_01_009(006),
    data element: EWERK
           MENGE_01_013(017),
    data element: AUFEP
            EBELP_014(005),
    data element: AUFEP
         END OF ITAB.
    START-OF-SELECTION.
    FILE = P_FILE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = FILE
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        DATA_TAB                      = ITAB
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SORT ITAB BY IND.
    START-OF-SELECTION.
    LOOP AT ITAB.
    REFRESH IT_MESSAGES.
    <b>V_IND = V_IND + 1.</b>
    <b>AT NEW IND.</b>
    <b>READ TABLE ITAB INDEX SY-TABIX.</b>
    PERFORM BDC_DYNPRO      USING 'SAPMM06E' '0100'.
    PERFORM BDC_FIELD       USING 'EKKO-LIFNR'
                                  ITAB-LIFNR_001.
    PERFORM BDC_FIELD       USING 'RM06E-BSART'
                                  ITAB-BSART_002.
    *perform bdc_field       using 'RM06E-BEDAT'
                                 ITAB-BEDAT_003.
    PERFORM BDC_FIELD       USING 'EKKO-EKORG'
                                  ITAB-EKORG_004.
    PERFORM BDC_FIELD       USING 'RM06E-LPEIN'
                                  ITAB-LPEIN_005.
    PERFORM BDC_FIELD       USING 'EKKO-EKGRP'
                                  ITAB-EKGRP_006.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    ENDAT.
    <b>PERFORM BDC_DYNPRO      USING 'SAPMM06E' '0120'.
    CONCATENATE 'EKPO-EMATN(' V_IND ')' INTO V_EMATN.
    PERFORM BDC_FIELD       USING  V_EMATN
                                   ITAB-EMATN_01_007.
    CONCATENATE 'EKPO-WERKS(' V_IND ')' INTO V_WERKS.
    PERFORM BDC_FIELD       USING  V_WERKS
                                   ITAB-WERKS_01_008.
    CONCATENATE 'EKPO-PEINH(' V_IND ')' INTO V_PEINH.
    PERFORM BDC_DYNPRO      USING 'SAPMM06E' '0120'.
    PERFORM BDC_FIELD       USING  V_PEINH
                                   ITAB-PEINH_01_009.
    *CONCATENATE 'EKPO-MENGE(' V_IND ')' INTO V_MENGE.
    *perform bdc_dynpro      using 'SAPMM06E' '0120'.
    *perform bdc_field       using  V_MENGE
                                  ITAB-MENGE_01_013.
    *CONCATENATE 'EKPO-EBELP(' V_IND ')' INTO V_EBELP.
    PERFORM BDC_DYNPRO      USING 'SAPMM06E' '0120'.
    PERFORM BDC_FIELD       USING  'RM06E-EBELP'
                                   ITAB-EBELP_014.</b>PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '/00'.
    AT END OF IND.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                  '=BU'.
    ENDAT.
    CALL TRANSACTION 'ME21' USING IT_BDCDATA MODE 'A'
                                             UPDATE 'S'
                                        MESSAGES INTO IT_MESSAGES.
       LOOP AT IT_MESSAGES WHERE MSGTYP = 'E' OR MSGTYP = 'A'.
         IF FLAG = 'X'.
         CALL FUNCTION 'BDC_OPEN_GROUP'
         EXPORTING
            CLIENT                    = SY-MANDT
           DEST                      = FILLER8
            GROUP                     = 'GAMY_FAILURE'
           HOLDDATE                  = FILLER8
            KEEP                      = 'X'
            USER                      = SY-UNAME
           RECORD                    = FILLER1
           PROG                      = SY-CPROG
         IMPORTING
           QID                       =
          EXCEPTIONS
            CLIENT_INVALID            = 1
            DESTINATION_INVALID       = 2
            GROUP_INVALID             = 3
            GROUP_IS_LOCKED           = 4
            HOLDDATE_INVALID          = 5
            INTERNAL_ERROR            = 6
            QUEUE_ERROR               = 7
            RUNNING                   = 8
            SYSTEM_LOCK_ERROR         = 9
            USER_INVALID              = 10
            OTHERS                    = 11
         IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
         CLEAR FLAG.
         ENDIF.
         CALL FUNCTION 'BDC_INSERT'
          EXPORTING
            TCODE                  = 'ME21'
           POST_LOCAL             = NOVBLOCAL
           PRINTING               = NOPRINT
           SIMUBATCH              = ' '
           CTUPARAMS              = ' '
           TABLES
             DYNPROTAB              = IT_BDCDATA
          EXCEPTIONS
            INTERNAL_ERROR         = 1
            NOT_OPEN               = 2
            QUEUE_ERROR            = 3
            TCODE_INVALID          = 4
            PRINTING_INVALID       = 5
            POSTING_INVALID        = 6
            OTHERS                 = 7
         IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
        ENDIF.
    CALL FUNCTION 'FORMAT_MESSAGE'
      EXPORTING
        ID              = IT_MESSAGES-MSGID
        LANG            = 'EN'
        NO              = IT_MESSAGES-MSGNR
        V1              = IT_MESSAGES-MSGV1
        V2              = IT_MESSAGES-MSGV2
        V3              = IT_MESSAGES-MSGV3
        V4              = IT_MESSAGES-MSGV4
      IMPORTING
        MSG             = V_MSG
      EXCEPTIONS
        NOT_FOUND       = 1
        OTHERS          = 2
       WRITE : / V_MSG.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
       ENDLOOP.
    IF FLAG NE 'X'.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
       EXCEPTIONS
         NOT_OPEN          = 1
         QUEUE_ERROR       = 2
         OTHERS            = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDIF.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-PROGRAM  = PROGRAM.
      IT_BDCDATA-DYNPRO   = DYNPRO.
      IT_BDCDATA-DYNBEGIN = 'X'.
      APPEND IT_BDCDATA.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
        CLEAR IT_BDCDATA.
        IT_BDCDATA-FNAM = FNAM.
        IT_BDCDATA-FVAL = FVAL.
        APPEND IT_BDCDATA.

  • How to create a cursor in menu item???

    Hi,
    How to create a cursor in menu item??? and process data inside the SQL Editor of Menu Item>????
    Regards,

    ok, you mean: When the form is starting you want to disable some menues.
    create a WHEN-NEW-FORM-INSTANCE-trigger in your form and then do the loop over the menu-item
    what is ENTITIES? The name of a table ?

  • How I can insert a menu in my portuguese version of Dreamweaver?

    How I can insert a menu in my portuguese version os Dreamweaver? In the "Inserir" mode there is not a "Spry" way!

    Use a jQuery menu like Superfish, or you can purchase an extension like the ones offered by Project VII
    http://plugins.jquery.com/superfish/
    http://www.projectseven.com/products/index.htm

  • How to modify the list item drop down context menu in SharePoint 2010

    Hi All,
    I have a requirement to add my name in the list item drop down context menu, already "Assigned ticket" option is available in the context menu and some names are available in the assigned ticket option. but i can't able to add my name in this options.
    Attached screenshot for reference. Thanks in advance for your assistance!
    Thanks
    Arun Prakash

    Do you know how the currently listed values got there in the first place? Some sort of custom code or action? Some background information would help. There is obviously a source feeding it from somewhere, but it's impossible for us to tell you exactly
    what just by looking at your scribbled-over screenshot
    Check WSPs that are deployed to the farm. Check for any non-OOTB site features that are turned on...

  • What happened to the Insert Date menu item?

    In the Numbers 3.0 upgrade the Insert Date menu item is gone.  Where can I now find it?  Or is there now  shortcut?
    David

    David,
    Wait a minute... I'm adding that one to my list.
    My workaround:
    Type =Today() Return, Return, Up-Arrow,  Command-C, Shift-Command-V
    This enters the date from a function then copies the cell and pastes the value back into the cell.
    Some shortcut, eh?
    Jerry

  • How to disable and hide the menu items of 'copy From' button of Goods Recei

    hi expert,
    I am new in SAP B1. so please help me.
    Q:How to disable and hide the menu items of 'copy From' button of Goods Receipt PO form?
    Regards
    sanoj

    Hi Sanoj,
    Try This.....
    If pVal.FormType = "143" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And pVal.BeforeAction = False Then
                oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, "1")
                Dim oitem As SAPbouiCOM.Item
                oitem = oform.Items.Item("10000330")
                'To Disable the button
                oitem.Enabled = False
                'To hide the button
                'oitem.Visible = False
            End If
    Thanks
    Shafi
    Edited by: shafi_sunshine on Sep 15, 2011 7:35 AM

  • How to activate a function module programatically?

    How to activate a function module programatically?

    Hi,
    You can try the following function module:
    RS_FUNCTION_ACTIVATE
    Thanks and regards,
    S. Chandra Mouli.

Maybe you are looking for

  • HP Photosmart D5460 does not print in Windows 7 32-bit

    I installed Windows 7, installed the driver suggested from HP (PS_SF_03_D5400_NonNet_Full_Win_WW_130_140.exe), with no problems but when I try to print (e.g. with notepad) the document is self-deleted from the printer-queue.

  • How to Add Active Directory user to Admin Role

    Hi All, I am trying to figure out how to add a AD user to the Admin Role.. I am connected to AD and can see the user (myself), however, when I try to add myself to the admin role, it says user not found. I go to Security Realms > myreals > Roles and

  • Disable Delete/Edit from Browse form?

    Hi, How could i remove or disable Delete/Edit/New from Wizard created jsp Browse form? Thanks

  • Port forwarding settings don't last

    Hi I have a synology NAS I set up the port forwarding and all worked fine, confirmed open port 80, all OK All settings within home hub 2 have not been changed but now the NAS does not respond, and port 80 can no longer be seen  any ideas please

  • Contact Sheets/Sort - group horizontal shots together and vertical shots together

    I've never liked having a mix of horizontal and vertical shots when I print contact sheets. It just doesn't look very clean. I'd love to see a new feature whereby you can sort your photos based on orientation so that they're arranged more neatly when