Digital Exchange

 View Only
last person joined: 6 days ago 

This community is a place to discuss Blue Prism DX assets and development.

selectContextMenuItem method returning "The method got an invalid argument"

  • 1.  selectContextMenuItem method returning "The method got an invalid argument"

    Posted 09-06-2019 21:01

    I'm trying to sort a table in SAP in Blue Prism. The code previously worked fine but now I'm getting a 'The method got an invalid argument' error when I try to sort the table by context menu item.

    I've tried passing a variety of values to the selectContextMenuItem method: '&SORT_DSC', '&SORT_ASC', '&COL_INV'...all yield the same error.

    Dim SAPGuiAuto as Object
    Dim SAPApp as Object
    Dim SAPCon as Object
    Dim session as Object
    Dim Table as Object
    SAPGuiAuto = Microsoft.VisualBasic.Interaction.GetObject('SAPGUI')
    SAPApp = SAPGuiAuto.GetScriptingEngine
    SAPCon = SAPApp.Children(0)
    session = SAPCon.Children(0)
    Table = session.findById('/app/con[0]/ses[0]/wnd[0]/usr/cntlGRID1/shellcont/shell')
    Table.setCurrentCell('-1', 'LMENGEIST')

    I expect the column I've selected to be sorted in descending order.

    Thanks in advance for any help you can provide.

    Disclaimer: This content was auto-posted from Stackoverflow. The original Stackoverflow question is here Stackoverflow Post, posted by Kevin.

Welcome to the Blue Prism Digital Exchange Community!

The Blue Prism Digital Exchange is a "shop window" for new and emerging technologies—a platform that puts powerful RPA and AI capabilities into the hands of business leaders. Users can find and apply pre-built AI capabilities, in the form of downloadable integrations and Visual Business Objects (VBOs), to automated processes. These assets connect and integrate Digital Workers, existing systems and processes to Blue Prism's technology partners, creating a solid foundation of AI-enabled Intelligent Automation that's scalable and sustainable.

Blue Prism Digital ExchangeDX Asset IdeasContact DX Support


The Blue Prism Digital Exchange (DX) is an online marketplace where businesses can instantly access, apply and share pre-built AI, cognitive and advanced RPA technologies from best-in-class providers. These assets easily connect to existing digital workers, systems and processes to enhance automation capabilities.
The Digital Exchange is free to all users. Most of the content on the DX is free to download but there are some submissions that do have a cost associated. The submissions with a cost are advertised on the asset card and profile. No unwanted costs will be applied to any users.
You can visit and browse the Digital Exchange here. If you would like to consume or download any material it is necessary to create an account on the Blue Prism Portal first.
Everyone can access the Digital Exchange and consume the assets on it. If you would like to contribute to the marketplace it is necessary that you create an account and sign up as a partner.