DeleteActionItem of ContextMenu problem

I'm stuck trying to delete a record after that I chose, by using a contextmenu.  I've been able to get the deletion of work if I type the string customerID element I want to remove, either by a sheet in the code.

Here is my code:

Container {
                contextActions: [
                    ActionSet {
                        title: ListItemData.name
                        actions: [
                            DeleteActionItem {
                                title: qsTr("Delete")
                                imageSource: "asset:///images/delete.png"
                                attachedObjects: [
                                    SystemToast {
                                        id: deleteToast
                                        body: "Item Deleted"
                                    }
                                ]
                                onTriggered: {
                                    _app.deleteObject(listView.selectedItemID);
                                    console.log("deleteObject")
                                    deleteToast.show()
                                }
                            }
                        ]
                    }
                ]
                ListView {
                    id: listView
                    property string selectedItemID
                    dataModel: _app.dataModel 

                    listItemComponents:[
                     ListItemComponent {
                        type: "item"
                        StandardListItem {
                            title: ListItemData.name
                            description: ListItemData.description
                            status: ListItemData.customerID

                        }
                    }
                 ]
                    onTriggered: {
                        clearSelection()
                        select(indexPath)

                        locationInvoker.locationLatitude = dataModel.data(indexPath).lat
                        locationInvoker.locationLongitude = dataModel.data(indexPath).lon
                        routeInvoker.endLatitude = dataModel.data(indexPath).lat
                        routeInvoker.endLongitude = dataModel.data(indexPath).lon
                        selectedItemID = dataModel.data(indexPath).customerID
                    }
                }
            }

DeleteActionItem if I change _app.deleteObject (listView.selectedItemID) with a number ('10') quotes the record with customerID 10 actually gets deleted.  However, when I change for the variable it tells me the ID of the object was not found, so I'm passing obviously not correct information.  Any suggestions?

In addition, as a context menu, the context menu does not appear the ListeItemData.name is just empty.  I wish that the context menu to display the list item selected in my application that I am about to delete.  I think that these two issues are the same problem.

Thanks in advance.

Please see the code as amended below. It has not been tested and may require a few tweaks. I scored my changes with "/ / 1", "/ / 2", "/ / 3", "/ / 4".»»»

Also, I suggest to pass the statement SystemToast to top-level container, otherwise multiple instances will be created. In this case you will need to reference using a helper function (similar to getApp()), because it will be not visible directly from ListItemComponent. But it should work "like what" too.

Container {
  ListView {
    function getApp() {  // 1
      return _app
    }

    id: listView
    property string selectedItemID
    dataModel: _app.dataModel 

    listItemComponents: [    // 2
      ListItemComponent {
        type: "item"
        StandardListItem {
          id: rootItem      // 3
          title: ListItemData.name
          description: ListItemData.description
          status: ListItemData.customerID

          contextActions: [
            ActionSet {
              title: ListItemData.name
              actions: [
                DeleteActionItem {
                  title: qsTr("Delete")
                  imageSource: "asset:///images/delete.png"
                  attachedObjects: [
                    SystemToast {
                      id: deleteToast
                      body: "Item Deleted"
                    }
                  ]
                  onTriggered: {
                    rootItem.ListItem.view.getApp().deleteObject(rootItem.ListItem.indexPath); // 4
                    console.log("deleteObject")
                    deleteToast.show()
                  }
                }
              ]
            }
          ]
        }
      }
    ]

Tags: BlackBerry Developers

Similar Questions

  • Display ContextMenu problem

    Howdee people,

    I saw this post and wonder if the problem has been closed or resolved.

    http://forums.Adobe.com/thread/501297?TSTART=30

    I'm having a similar problem on a later version of wavy using the latest Flex SDK (4.0). The contextmenu does not display for me when the component is instantiated via the PopupManager.

    I use:

    Squiggly pre version 3

    Flash Builder 4.

    Flex SDK 4.0

    Windows 7.

    I am deploying to:

    Windows 2008 w / IIS 7.

    I have a sample project recreating the question. Some below are a few screenshots of the question.

    Any help would be greatly appreciated.

    Thank you!

    parentapplication.jpg

    popupwindow.jpg

    I also found that it was a problem only spark. So if your pop-up window is based on mx:TitleWindow rather than s:TitleWindow, the problem should disappear. And you can use s:TextArea inside mx:TitleWindow. So if you do not stick to s:TitleWindow, this may be a workaround.

  • problem with contextmenu

    Hi all

    IAM trying to genereate multiple contextmenuitems through loop but iam not getting all the elements, is to show only last... All can help me.

    Here is my code

    package {}

    import flash.display.Sprite;

    flash.ui import. *;

    import flash.ui.ContextMenuBuiltInItems;

    import flash.ui.ContextMenuItem;

    SerializableAttribute public class Main extends Sprite {}

    private var ctxmnu_arr:Array = new Array("copys","pastes","Shows","hides");

    public void Main() {}

    for (var i: Number = 0; i < ctxmnu_arr.length; i ++) {}

    var cm:ContextMenu = new ContextMenu();

    var cmitem:ContextMenuItem = new ContextMenuItem (ctxmnu_arr [i]);

    trace (cmitem. Caption);

    cm.customItems.push (cmitem);

    cm.hideBuiltInItems ();

    contextMenu = cm;

    }

    }

    }

    }

    Of course, it does - this will create new instances in each iteration of the loop - only the last iteration shows.

    Try:

    package
    {
        import flash.display.Sprite;
        import flash.ui.*;
    
        public class Main extends Sprite
        {
    
            private var ctxmnu_arr:Array = new Array("copys", "pastes", "Shows", "hides");
    
            public function Main()
            {
                var cm:ContextMenu = new ContextMenu();
                var cmitem:ContextMenuItem;
                for (var i:int = 0; i < ctxmnu_arr.length; i++)
                {
                    cmitem = new ContextMenuItem(ctxmnu_arr[i]);
                    trace(cmitem.caption);
                    cm.customItems.push(cmitem);
                    cm.hideBuiltInItems();
                }
                contextMenu = cm;
            }
    
        }
    
    }
    
  • Problem of implementation of a lock in Firefox v.26.0 file.

    Found wrescie online orientation, it just doesn't seem to work for me.
    Settings.js - local located D:\Program Files (x 86) \Mozilla Firefox\defaults\pref

    Pref("general.config.obscure_value", 0);
    Pref("general.config.filename", "Mozilla.cfg");
    

    Mozilla.cfg located D:\Program Files (x 86) \Mozilla Firefox

    //
    lockPref("security.enable_ssl3", true);
    lockPref("security.default_personal_cert", "Ask Every Time");
    lockPref("network.protocol-handler.external.shell", false);
    lockPref("plugin.disable_full_page_plugin_for_types", "application/PDF,application/FDF,application/XFDF,application/LSL,application/LSO,application/LSS,application/IQY,application/RQY,application/XLK,application/XLS,application/XLT,application/POT,application/PPS,application/PPT,application/DOS,application/DOT,application/WKS,application/BAT,application/PS,application/EPS,application/WCH,application/WCM,application/WB1,application/WB3,application/RTF,application/DOC,application/MDB,application/MDE,application/WBK,application/WB1,application/WCH,application/WCM,application/AD,application/ADP");
    lockPref("browser.formfill.enable", false);
    lockPref("signon.prefillForms", false);
    lockPref("signon.rememberSignons", false);
    lockPref("privacy.sanitize.sanitizeOnShutdown", true);
    lockPref("privacy.sanitize.promptO   nSanitize", false);
    lockPref("dom.disable_window_open_feature.status", true);
    lockPref("dom.disable_window_move_resize", true);
    lockPref("security.enable_ssl2", false);
    lockPref("security.enable_tls", true);
    lockPref("dom.disable_window_flip", true);
    lockPref("dom.event.contextmenu.enabled", false);
    lockPref("dom.disable_window_status_change", true);
    lockPref("dom.disable_window_open_feature.status", true);
    lockPref("security.warn_leaving_secure", true);
    lockPref("browser.startup.homepage", "about:blank");
    lockPref("app.update.enable", false);
    lockPref("extensions.update.enabled", false);
    lockPref("browser.search.update", false);
    

    I know at this point that some of the setting may be incorrect in my Mozilla.cfg file. However, my problem starts before that. It's as if Firefox is not seen or referring to my local file - settings.js at all.

    You have changed the content (pref and mozilla) lowercase in the local file - setting.js?

    pref("general.config.filename", "mozilla.cfg");
    

    Also make sure that the local - settings.js is a text file and you may need to Unix style line ends (i.e. a newline instead of a CR/LF).

    Both care to name the file to mozilla.cfg with lowercase'm '.

    See also:

    These functions can be used in the mozilla.cfg file:

    defaultPref();  // set new default value
    pref();         // set pref, but allow changes in current session
    lockPref();     // lock pref, disallow changes
    
  • Problem Manager multiple selection with system dialog box

    I currently have a problem with the help of system on a manager of multiple selection dialog as the code below works fine:

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                id: deleteActionItem
                                onTriggered: {
                                    var selectionList = listView1.selectionList();
                                    var selectedItem = dataModel.data(selectionList);
                                    console.log(selectedItem);
    
                                    for (var i = 0; i < selectionList.length; ++ i) {
                                        _sql.deleteClient(dataModel.data(selectionList[i]).clientID)
                                        dataSource.loadData()
                                    }
                                }
                            }
                        ]
                    }
    

    However, when it is changed to use that a dialogue system, the feature does not work and the console record results:

    selected list: undefined

    selected item: undefined

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                id: deleteActionItem
                                onTriggered: {
                                    multiSelectDeleteDialog.show()
                                }
                                attachedObjects: [
                                    SystemDialog {
                                        id: multiSelectDeleteDialog
                                        title: qsTr("Delete Clients") + Retranslate.onLocaleOrLanguageChanged
                                        body: qsTr("Are you sure you want to delete these clients?") + Retranslate.onLocaleOrLanguageChanged
                                        onFinished: {
                                            if (result == 3) {
                                                console.log("Cancelled")
                                            } else {
                                                console.log("Deleted")
                                                var selectionList = listView1.selectionList()
                                                console.log("selected list: " + selectionList)
                                                var selectedItem = dataModel.data(selectionList);
                                                console.log("selected item: " + selectedItem);
    
                                                for (var i = 0; i < selectionList.length; ++ i) {
                                                    _sql.deleteClient(dataModel.data(selectionList[i]).clientID)
                                                    dataSource.loadData()
                                                }
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    }
    

    With the help of Roger Leblanc, it works now

    multiSelectHandler {
                        status: listView1.selectionList().length + qsTr(" Clients Selected") + Retranslate.onLocaleOrLanguageChanged
                        actions: [
                            DeleteActionItem {
                                property variant selectionList
                                property variant selectedItem
                                id: deleteActionItem
                                onTriggered: {
                                    deleteActionItem.selectionList = listView1.selectionList()
                                    deleteActionItem.selectedItem = dataModel.data(selectionList);
                                    multiSelectDeleteDialog.show()
                                }
                                attachedObjects: [
                                    SystemDialog {
                                        id: multiSelectDeleteDialog
                                        title: qsTr("Delete Clients") + Retranslate.onLocaleOrLanguageChanged
                                        body: qsTr("Are you sure you want to delete these clients?") + Retranslate.onLocaleOrLanguageChanged
                                        onFinished: {
                                            if (result == 3) {
                                                console.log("Cancelled")
                                            } else {
                                                console.log("Deleted")
    
                                                for (var i = 0; i < deleteActionItem.selectionList.length; ++ i) {
                                                    _sql.deleteClient(dataModel.data(deleteActionItem.selectionList[i]).clientID)
                                                    dataSource.loadData()
                                                }
                                            }
                                        }
                                    }
                                ]
                            }
                        ]
                    }
    
  • Signature of QML app problem

    Hello

    Hi, I'm signing my application, but the blackberry-signer-check errors in declarations.

    I have read many topics on the forum, but I have not found a solution to my problem.

    This is my files:

    BlackBerry - tablet.xml:

    
    http://www.qnx.com/schemas/application/1.0">
    com.dwart.Study-Cards
    Study-Cards
    Study-Cards
    1.0.0
    Learn language faster
    dwart
    
      none
      false
      false
      landscape
    
    dwart.com
    run_native
    
    access_shared
    
    
    
    
    
    
    
    
        -platform
        blackberry
        dwart
        gYAAgHnFdvHsS830QUqF8qLsMTE
        run_native
    
        icon.png
        splashscreen.png
    
    

    StudyCards.pro:

    TARGET = StudyCards
    # Add more folders to ship with the application, here
    folder_01.source = qml/StudyCards
    folder_01.target = qml
    DEPLOYMENTFOLDERS = folder_01
    
    QMAKE_LFLAGS += '-Wl,-rpath,\'./app/native/lib\' '
    
    package.target = $${TARGET}.bar
    package.depends = $$TARGET
    package.commands = blackberry-nativepackager \
       -package $${TARGET}.bar -arg -platform -arg blackberry \
       -debugToken ./debugToken.bar \
       -arg -platformpluginpath -arg ./app/native/lib/platforms \
       -arg -pluginpath -arg ./app/native/lib/plugins \
       blackberry-tablet.xml $$TARGET \
       -e icon.png icon.png \
       -e splashscreen.png splashscreen.png \
    -e qml qml \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtCore.so.4 lib/libQtCore.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtGui.so.4 lib/libQtGui.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtOpenGL.so.4 lib/libQtOpenGL.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtNetwork.so.4 lib/libQtNetwork.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtDeclarative.so.4 lib/libQtDeclarative.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtSql.so.4 lib/libQtSql.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtSvg.so.4 lib/libQtSvg.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtScript.so.4 lib/libQtScript.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtXmlPatterns.so.4 lib/libQtXmlPatterns.so.4 \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/plugins/sqldrivers/libqsqlite.so lib/plugins/sqldrivers/libqsqlite.so \
       -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/plugins/platforms/libblackberry.so lib/platforms/libblackberry.so
    QMAKE_EXTRA_TARGETS += package
    
    SOURCES += main.cpp
    
    # Please do not modify the following two lines. Required for deployment.
    include(qmlapplicationviewer/qmlapplicationviewer.pri)
    qtcAddDeployment()
    
    OTHER_FILES += blackberry-tablet.xml
    

    I do *.bar file:

    /home/dwart/Desktop/qt-qnx/stage/nto/armle-v7/usr/lib/qt4/bin/qmake
    
    make
    
    make Study-Cards.bar
    

    Results:

    qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../qt-qnx/stage/nto/armle-v7/usr/lib/qt4/mkspecs/unsupported/blackberry-armv7le-qcc -I. -I../qt-qnx/stage/nto/usr/include/qt4/QtCore -I../qt-qnx/stage/nto/usr/include/qt4/QtGui -I../qt-qnx/stage/nto/usr/include/qt4/QtDeclarative -I../qt-qnx/stage/nto/usr/include/qt4 -Iqmlapplicationviewer -I. -I/opt/bbndk2/target/qnx6/usr/include -I/opt/bbndk2/target/qnx6/usr/include/freetype2 -o main.o main.cpp
    qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../qt-qnx/stage/nto/armle-v7/usr/lib/qt4/mkspecs/unsupported/blackberry-armv7le-qcc -I. -I../qt-qnx/stage/nto/usr/include/qt4/QtCore -I../qt-qnx/stage/nto/usr/include/qt4/QtGui -I../qt-qnx/stage/nto/usr/include/qt4/QtDeclarative -I../qt-qnx/stage/nto/usr/include/qt4 -Iqmlapplicationviewer -I. -I/opt/bbndk2/target/qnx6/usr/include -I/opt/bbndk2/target/qnx6/usr/include/freetype2 -o qmlapplicationviewer.o qmlapplicationviewer/qmlapplicationviewer.cpp
    /home/dwart/Desktop/qt-qnx/stage/nto/armle-v7/usr/lib/qt4/bin/moc -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../qt-qnx/stage/nto/armle-v7/usr/lib/qt4/mkspecs/unsupported/blackberry-armv7le-qcc -I. -I../qt-qnx/stage/nto/usr/include/qt4/QtCore -I../qt-qnx/stage/nto/usr/include/qt4/QtGui -I../qt-qnx/stage/nto/usr/include/qt4/QtDeclarative -I../qt-qnx/stage/nto/usr/include/qt4 -Iqmlapplicationviewer -I. -I/opt/bbndk2/target/qnx6/usr/include -I/opt/bbndk2/target/qnx6/usr/include/freetype2 -D__QNXNTO__ qmlapplicationviewer/qmlapplicationviewer.h -o moc_qmlapplicationviewer.cpp
    qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../qt-qnx/stage/nto/armle-v7/usr/lib/qt4/mkspecs/unsupported/blackberry-armv7le-qcc -I. -I../qt-qnx/stage/nto/usr/include/qt4/QtCore -I../qt-qnx/stage/nto/usr/include/qt4/QtGui -I../qt-qnx/stage/nto/usr/include/qt4/QtDeclarative -I../qt-qnx/stage/nto/usr/include/qt4 -Iqmlapplicationviewer -I. -I/opt/bbndk2/target/qnx6/usr/include -I/opt/bbndk2/target/qnx6/usr/include/freetype2 -o moc_qmlapplicationviewer.o moc_qmlapplicationviewer.cpp
    qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,/opt/bbndk2/target/qnx6/armle-v7/lib -Wl,-rpath-link,/opt/bbndk2/target/qnx6/armle-v7/usr/lib -Wl,-rpath,'./app/native/lib' -Wl,-O1 -o Study-Cards main.o qmlapplicationviewer.o moc_qmlapplicationviewer.o    -L/opt/bbndk2/target/qnx6/armle-v7/lib -L/opt/bbndk2/target/qnx6/armle-v7/usr/lib -L/home/dwart/Desktop/qt-qnx/stage/nto/armle-v7/usr/lib/qt4/lib -lQtDeclarative -L/home/dwart/Desktop/qt-qnx/stage/nto/armle-v7/usr/lib/qt4/lib -L/opt/bbndk2/target/qnx6/armle-v7/lib -L/opt/bbndk2/target/qnx6/armle-v7/usr/lib -lQtScript -lQtSvg -lQtSql -lQtXmlPatterns -lQtNetwork -lsocket -lQtGui -lQtCore -lm 
    
    blackberry-nativepackager -package Study-Cards.bar -arg -platform -arg blackberry -debugToken ./debugToken.bar -arg -platformpluginpath -arg ./app/native/lib/platforms -arg -pluginpath -arg ./app/native/lib/plugins blackberry-tablet.xml Study-Cards -e icon.png icon.png -e splashscreen.png splashscreen.png -e qml qml -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtCore.so.4 lib/libQtCore.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtGui.so.4 lib/libQtGui.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtOpenGL.so.4 lib/libQtOpenGL.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtNetwork.so.4 lib/libQtNetwork.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtDeclarative.so.4 lib/libQtDeclarative.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtSql.so.4 lib/libQtSql.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtSvg.so.4 lib/libQtSvg.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtScript.so.4 lib/libQtScript.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/libQtXmlPatterns.so.4 lib/libQtXmlPatterns.so.4 -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/plugins/sqldrivers/libqsqlite.so lib/plugins/sqldrivers/libqsqlite.so -e /home/dwart/.qt-x86-lib/Qt/stage/nto/armle-v7/usr/lib/qt4/plugins/platforms/libblackberry.so lib/platforms/libblackberry.so
    Info: Package created: Study-Cards.bar
    

    In the bar of the file look like this:

    /META-INF
        MANIFEST.MF
    /native
        /lib
            /platforms
                libblackberry.so
            /plugins
                /sqldrivers
                    libqsqlite.so
            libQtCore.so.4
            libQtDe....
            ....
        /qml
            /StudyCards
                card.png
                lisc.png
                main.qml
            /imports
                /Qt
                    ...
                /com
                    ...
        Study-Cards
        blackberry-tablet.xml
        icon.png
        splashscreen.png
    

    I try to sing:

    /opt/bbndk2/host/linux/x86/usr/bin/blackberry-signer -keystore /home/dwart/.rim/author.p12 -storepass myPass ./Study-Cards.bar author
    

    results:

    Info: Bar signed.
    

    It's added to my file for files META_INF bar: AUTHOR. THIS and the AUTHOR. SF

    next step:

    /opt/bbndk2/host/linux/x86/usr/bin/blackberry-signer -verbose -cskpass myCSKpass -keystore /home/dwart/.rim/author.p12 -storepass myStorePass ./Study-Cards.bar RDK
    

    results:

    Developer Certificate TBS =
    30 81 b7 a0 03 02 01 02 02 04 4f 38 2f a6 30 0c
    06 08 2a 86 48 ce 3d 04 03 04 05 00 30 10 31 0e
    30 0c 06 03 55 04 03 13 05 64 77 61 72 74 30 1e
    17 0d 31 32 30 32 31 32 32 31 33 31 31 38 5a 17
    0d 33 32 30 32 30 37 32 31 33 31 31 38 5a 30 10
    31 0e 30 0c 06 03 55 04 03 13 05 64 77 61 72 74
    30 58 30 10 06 07 2a 86 48 ce 3d 02 01 06 05 2b
    81 04 00 23 03 44 00 03 00 6d 4d b3 f4 07 75 ba
    da 3d 5b b4 7c a8 4f 7d 90 01 0f 26 3d e9 e5 54
    07 40 64 b4 0b 11 70 f9 35 ca 5b 1e 9f 68 27 c9
    92 ab d3 a6 ec 4c 2e 20 40 d2 18 88 04 73 82 3d
    c4 84 b8 bb b2 66 e9 ab 37 dd
    Developer Certificate TBS Digest =
    0c 92 56 7d 1f 7d 88 a2 98 7e ea 60 01 e5 93 7d
    22 09 96 7c 68 c4 e8 be 2a d4 38 ee f2 84 06 3c
    a9 00 78 f6 63 6d b7 4c 3e 76 88 a6 ba 79 a6 12
    f0 8a fd 38 50 d9 4d b9 be 2e 6f d0 38 78 64 75
    Developer Certificate TBS Encoded Digest =
    44 4a 4a 57 66 52 39 39 69 4b 4b 59 66 75 70 67
    41 65 57 54 66 53 49 4a 6c 6e 78 6f 78 4f 69 2d
    4b 74 51 34 37 76 4b 45 42 6a 79 70 41 48 6a 32
    59 32 32 33 54 44 35 32 69 4b 61 36 65 61 59 53
    38 49 72 39 4f 46 44 5a 54 62 6d 2d 4c 6d 5f 51
    4f 48 68 6b 64 51
    Requesting signature from server...
    Reading CSK file...
    Properties of CSK file := [
    Version = 2
    Encoded Salt =
    2f 6d 35 46 4e 49 4f 58 55 53 45 3d
    Encoded and Encrypted PrivateKey =
    4f 46 53 49 5a 75 4a 51 73 70 62 6c 62 37 71 5a
    63 4b 78 37 61 48 39 5a 4e 65 45 6f 73 79 61 7a
    33 4c 63 39 4f 58 72 73 35 6b 5a 76 54 67 62 62
    59 33 4b 41 4b 48 74 36 38 73 70 38 70 2f 4d 2b
    70 45 5a 56 75 59 5a 53 6f 6a 76 42 38 49 70 59
    4e 43 6f 6a 6b 64 49 2f
    Salt =
    fe 6e 45 34 83 97 51 21
    Digest =
    3c 1e 47 62 fc ce 0b 13 35 25 70 56 ac d1 1a eb
    77 0e 9a 21 7e 8a 11 52 06 64 d2 79 da 4e 09 88
    97 96 c1 01 ec 53 f2 7a 6a 3e 75 70 6a f3 1f 51
    e2 28 1a 1a e8 c7 85 f7 d7 7a 98 05 b7 f6 bf 75
    Signature =
    30 81 88 02 42 01 06 b1 0c e3 2d fd f3 01 f7 5f
    14 a6 ef b4 4b a0 5c 2b a6 b3 ef aa 1d 25 ed 46
    62 8b 06 fe 35 eb 10 80 e8 b9 0a 8e a0 7b 6a ef
    c9 28 c9 53 85 89 66 26 1e 7f d8 67 0f ef e4 58
    86 6b ca 4e b8 57 6a 02 42 01 27 e4 29 2a 9f ee
    2b ad 59 48 77 ff 39 87 98 5a 9c ae 2d ac 72 93
    d1 33 fc 7f 4e 6a 87 ab 88 46 af 59 22 65 c6 6f
    81 f8 ef 3c da 79 c4 74 36 c1 35 c1 b0 21 d5 1d
    e3 1b 3e 72 24 47 bf c1 1a 19 fc
    Flat Signature =
    01 06 b1 0c e3 2d fd f3 01 f7 5f 14 a6 ef b4 4b
    a0 5c 2b a6 b3 ef aa 1d 25 ed 46 62 8b 06 fe 35
    eb 10 80 e8 b9 0a 8e a0 7b 6a ef c9 28 c9 53 85
    89 66 26 1e 7f d8 67 0f ef e4 58 86 6b ca 4e b8
    57 6a 01 27 e4 29 2a 9f ee 2b ad 59 48 77 ff 39
    87 98 5a 9c ae 2d ac 72 93 d1 33 fc 7f 4e 6a 87
    ab 88 46 af 59 22 65 c6 6f 81 f8 ef 3c da 79 c4
    74 36 c1 35 c1 b0 21 d5 1d e3 1b 3e 72 24 47 bf
    c1 1a 19 fc
    Properties of request := [
    Version = 1
    Command = Signature Request
    SignerID = RDK
    ClientID = 3903770746
    MF =
    51 58 4a 6a 61 47 6c 32 5a 53 31 4e 59 57 35 70
    5a 6d 56 7a 64 43 31 57 5a 58 4a 7a 61 57 39 75
    4f 69 41 78 4c 6a 45 4e 43 6b 46 79 59 32 68 70
    64 6d 55 74 51 33 4a 6c 59 58 52 6c 5a 43 31 43
    65 54 6f 67 51 6d 78 68 59 32 74 43 5a 58 4a 79
    65 53 42 55 59 57 4a 73 5a 58 51 67 54 31 4d 67
    52 57 78 6d 49 45 4a 42 55 69 42 51 59 57 4e 72
    ..........
    4f 52 66 38 75 2f 59 48 69 54 32 38 30 42 54 4d
    76 72 2b 30 50 30 70 61 56 49 54 4b 6d 6a 51 35
    49 6a 41 67 34 32 43 48 33 4d 59 56 44 73 30 7a
    4e 66 47 66 57 75 52 72 4a 70 31 6b 54 43 55 3d
    Connecting to URL http://www.rim.net/Websigner/servlet/RDK-Waterloo
    Sending properties to server...
    Properties of response := [
    Version = 1
    Response = Signature Response
    Confirm = Signing server ID RDK signed code file from client ID 3903770746.
    Error = null
    ]
    Encoded Package-Author-Id =
    67 59 41 41 67 48 6e 46 64 76 48 73 53 38 33 30
    51 55 71 46 38 71 4c 73 4d 54 45
    Encoded Package-Id =
    67 59 41 42 67 47 4a 65 7a 68 55 79 4a 6d 6a 47
    5f 37 76 57 34 48 4a 71 57 32 6b
    Encoded Package-Version-Id =
    67 59 41 43 67 46 6c 63 4b 6e 4e 64 65 46 79 4d
    6a 66 56 31 50 78 4c 32 6e 6e 73
    Encoded Application-Id =
    67 59 41 44 67 43 34 6f 48 63 59 47 78 77 32 6d
    41 50 32 68 4f 75 63 67 46 76 49
    Encoded Application-Version-Id =
    67 59 41 45 67 44 46 55 35 62 57 6a 37 71 5f 49
    67 6f 65 37 55 4e 57 41 35 51 45
    Encoded Signature =
    41 65 4a 71 6c 55 56 68 67 68 46 7a 49 34 46 51
    69 33 73 35 35 59 30 43 38 62 30 43 4e 43 31 38
    39 2f 70 69 49 41 44 34 4a 4d 6c 62 49 46 39 50
    53 4b 32 66 33 79 41 58 6c 5a 75 46 4b 79 58 42
    2f 50 72 39 6b 37 63 49 61 56 45 34 4d 69 42 52
    31 61 55 49 32 33 57 39 41 55 39 72 38 30 6f 47
    56 34 48 6b 55 61 54 76 6e 74 4a 36 67 42 31 33
    72 79 69 55 41 78 67 45 62 6e 35 62 62 71 48 4b
    74 76 34 59 64 58 6a 71 4f 78 55 5a 37 2b 43 33
    48 2b 45 4c 75 62 48 63 49 6b 2b 79 36 45 52 33
    62 69 55 37 35 54 52 68 37 47 72 62 44 6c 65 4a
    Decoded Signature =
    01 e2 6a 95 45 61 82 11 73 23 81 50 8b 7b 39 e5
    8d 02 f1 bd 02 34 2d 7c f7 fa 62 20 00 f8 24 c9
    5b 20 5f 4f 48 ad 9f df 20 17 95 9b 85 2b 25 c1
    fc fa fd 93 b7 08 69 51 38 32 20 51 d5 a5 08 db
    75 bd 01 4f 6b f3 4a 06 57 81 e4 51 a4 ef 9e d2
    7a 80 1d 77 af 28 94 03 18 04 6e 7e 5b 6e a1 ca
    b6 fe 18 75 78 ea 3b 15 19 ef e0 b7 1f e1 0b b9
    b1 dc 22 4f b2 e8 44 77 6e 25 3b e5 34 61 ec 6a
    db 0e 57 89
    ASN.1 Signature =
    30 81 88 02 42 01 e2 6a 95 45 61 82 11 73 23 81
    50 8b 7b 39 e5 8d 02 f1 bd 02 34 2d 7c f7 fa 62
    20 00 f8 24 c9 5b 20 5f 4f 48 ad 9f df 20 17 95
    9b 85 2b 25 c1 fc fa fd 93 b7 08 69 51 38 32 20
    51 d5 a5 08 db 75 bd 02 42 01 4f 6b f3 4a 06 57
    81 e4 51 a4 ef 9e d2 7a 80 1d 77 af 28 94 03 18
    04 6e 7e 5b 6e a1 ca b6 fe 18 75 78 ea 3b 15 19
    ef e0 b7 1f e1 0b b9 b1 dc 22 4f b2 e8 44 77 6e
    25 3b e5 34 61 ec 6a db 0e 57 89
     Updating: META-INF/MANIFEST.MF
       Adding: META-INF/RDK.SF
       Adding: META-INF/RDK.EC
      Signing: native/Study-Cards
      Signing: native/icon.png
      Signing: native/splashscreen.png
      Signing: native/qml/imports/Qt/labs/components.1.1/CheckableGroup.qml
      Signing: native/qml/imports/Qt/labs/components.1.1/Checkable.qml
      Signing: native/qml/imports/Qt/labs/components.1.1/CheckableGroup.js
      Signing: native/qml/imports/Qt/labs/components.1.1/qmldir
      Signing: native/qml/imports/Qt/labs/components.1.1/libqtcomponentsplugin_1_1.so
      Signing: native/qml/imports/Qt/labs/components/native/Dialog.qml
      Signing: native/qml/imports/Qt/labs/components/native/ToolButton.qml
      Signing: native/qml/imports/Qt/labs/components/native/MenuItem.qml
      Signing: native/qml/imports/Qt/labs/components/native/Label.qml
      Signing: native/qml/imports/Qt/labs/components/native/SectionScroller.qml
      Signing: native/qml/imports/Qt/labs/components/native/BusyIndicator.qml
      Signing: native/qml/imports/Qt/labs/components/native/ButtonRow.qml
      Signing: native/qml/imports/Qt/labs/components/native/TextSelectionHandle.qml
      Signing: native/qml/imports/Qt/labs/components/native/QueryDialog.qml
      Signing: native/qml/imports/Qt/labs/components/native/Page.qml
      Signing: native/qml/imports/Qt/labs/components/native/ContextMenu.qml
      Signing: native/qml/imports/Qt/labs/components/native/PageStackWindow.qml
      Signing: native/qml/imports/Qt/labs/components/native/StatusBar.qml
      Signing: native/qml/imports/Qt/labs/components/native/ListItemText.qml
      Signing: native/qml/imports/Qt/labs/components/native/TabBar.qml
      Signing: native/qml/imports/Qt/labs/components/native/RadioButton.qml
      Signing: native/qml/imports/Qt/labs/components/native/Switch.qml
      Signing: native/qml/imports/Qt/labs/components/native/ApplicationWindow.qml
      Signing: native/qml/imports/Qt/labs/components/native/RectUtils.js
      Signing: native/qml/imports/Qt/labs/components/native/ScrollBar.qml
      Signing: native/qml/imports/Qt/labs/components/native/SelectionListItem.qml
      Signing: native/qml/imports/Qt/labs/components/native/libsymbianplugin_1_1.so
      Signing: native/qml/imports/Qt/labs/components/native/PageStack.qml
      Signing: native/qml/imports/Qt/labs/components/native/MenuLayout.qml
      Signing: native/qml/imports/Qt/labs/components/native/ToolBar.qml
      Signing: native/qml/imports/Qt/labs/components/native/Popup.qml
      Signing: native/qml/imports/Qt/labs/components/native/Button.qml
      Signing: native/qml/imports/Qt/labs/components/native/TextField.qml
      Signing: native/qml/imports/Qt/labs/components/native/MenuContent.qml
      Signing: native/qml/imports/Qt/labs/components/native/TextArea.qml
      Signing: native/qml/imports/Qt/labs/components/native/TabGroup.qml
      Signing: native/qml/imports/Qt/labs/components/native/TabButton.qml
      Signing: native/qml/imports/Qt/labs/components/native/ButtonGroup.js
      Signing: native/qml/imports/Qt/labs/components/native/ProgressBar.qml
      Signing: native/qml/imports/Qt/labs/components/native/TextTouchController.qml
      Signing: native/qml/imports/Qt/labs/components/native/TextMagnifier.qml
      Signing: native/qml/imports/Qt/labs/components/native/Slider.qml
      Signing: native/qml/imports/Qt/labs/components/native/PageStack.js
      Signing: native/qml/imports/Qt/labs/components/native/Window.qml
      Signing: native/qml/imports/Qt/labs/components/native/SelectionDialog.qml
      Signing: native/qml/imports/Qt/labs/components/native/Fader.qml
      Signing: native/qml/imports/Qt/labs/components/native/ToolBarLayout.qml
      Signing: native/qml/imports/Qt/labs/components/native/AppManager.js
      Signing: native/qml/imports/Qt/labs/components/native/qmldir
      Signing: native/qml/imports/Qt/labs/components/native/ButtonColumn.qml
      Signing: native/qml/imports/Qt/labs/components/native/CommonDialog.qml
      Signing: native/qml/imports/Qt/labs/components/native/ToolTip.qml
      Signing: native/qml/imports/Qt/labs/components/native/TabBarLayout.qml
      Signing: native/qml/imports/Qt/labs/components/native/CheckBox.qml
      Signing: native/qml/imports/Qt/labs/components/native/ListItem.qml
      Signing: native/qml/imports/Qt/labs/components/native/SectionScroller.js
      Signing: native/qml/imports/Qt/labs/components/native/ScrollDecorator.qml
      Signing: native/qml/imports/Qt/labs/components/native/Menu.qml
      Signing: native/qml/imports/Qt/labs/components/native/TextContextMenu.qml
      Signing: native/qml/imports/Qt/labs/components/native/TabGroup.js
      Signing: native/qml/imports/Qt/labs/components/native/ListHeading.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/libsymbianextrasplugin_1_1.so
      Signing: native/qml/imports/com/nokia/extras.1.1/TimePickerDialog.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/TumblerDialog.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/DatePickerDialog.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/RatingIndicator.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/TumblerColumn.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/TumblerIndexHelper.js
      Signing: native/qml/imports/com/nokia/extras.1.1/qmldir
      Signing: native/qml/imports/com/nokia/extras.1.1/SearchBox.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/Constants.js
      Signing: native/qml/imports/com/nokia/extras.1.1/Tumbler.js
      Signing: native/qml/imports/com/nokia/extras.1.1/InfoBanner.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/Tumbler.qml
      Signing: native/qml/imports/com/nokia/extras.1.1/TumblerTemplate.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Dialog.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ToolButton.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/MenuItem.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Label.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/SectionScroller.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/BusyIndicator.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ButtonRow.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TextSelectionHandle.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/QueryDialog.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Page.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ContextMenu.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/PageStackWindow.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/StatusBar.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ListItemText.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TabBar.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/RadioButton.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Switch.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ApplicationWindow.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/RectUtils.js
      Signing: native/qml/imports/com/nokia/symbian.1.1/ScrollBar.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/SelectionListItem.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/libsymbianplugin_1_1.so
      Signing: native/qml/imports/com/nokia/symbian.1.1/PageStack.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/MenuLayout.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ToolBar.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Popup.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Button.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TextField.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/MenuContent.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TextArea.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TabGroup.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TabButton.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ButtonGroup.js
      Signing: native/qml/imports/com/nokia/symbian.1.1/ProgressBar.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TextTouchController.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TextMagnifier.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Slider.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/PageStack.js
      Signing: native/qml/imports/com/nokia/symbian.1.1/Window.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/SelectionDialog.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Fader.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ToolBarLayout.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/AppManager.js
      Signing: native/qml/imports/com/nokia/symbian.1.1/qmldir
      Signing: native/qml/imports/com/nokia/symbian.1.1/ButtonColumn.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/CommonDialog.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ToolTip.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TabBarLayout.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/CheckBox.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/ListItem.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/SectionScroller.js
      Signing: native/qml/imports/com/nokia/symbian.1.1/ScrollDecorator.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/Menu.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TextContextMenu.qml
      Signing: native/qml/imports/com/nokia/symbian.1.1/TabGroup.js
      Signing: native/qml/imports/com/nokia/symbian.1.1/ListHeading.qml
      Signing: native/qml/StudyCards/card.png
      Signing: native/qml/StudyCards/main.qml
      Signing: native/qml/StudyCards/lisc.png
      Signing: native/lib/libQtCore.so.4
      Signing: native/lib/libQtGui.so.4
      Signing: native/lib/libQtOpenGL.so.4
      Signing: native/lib/libQtNetwork.so.4
      Signing: native/lib/libQtDeclarative.so.4
      Signing: native/lib/libQtSql.so.4
      Signing: native/lib/libQtSvg.so.4
      Signing: native/lib/libQtScript.so.4
      Signing: native/lib/libQtXmlPatterns.so.4
      Signing: native/lib/plugins/sqldrivers/libqsqlite.so
      Signing: native/lib/platforms/libblackberry.so
      Signing: native/blackberry-tablet.xml
    Info: Bar signed.
    

    I think that everything is OK, but:

    /opt/bbndk2/host/linux/x86/usr/bin/blackberry-signer -verbose -verify Study-Cards.bar
    

    results:

    Error: Invalid signature file digest for Manifest main attributes
    

    Someone knows how to solve?

    PS Sorry for the long post and my English

    OK, I change the order of:

    /opt/bbndk2/host/linux/x86/usr/bin/blackberry-signer -verbose -cskpass myCSKpass -keystore /home/dwart/.rim/author.p12 -storepass myStorePass ./Study-Cards.bar RDK
    
    /opt/bbndk2/host/linux/x86/usr/bin/blackberry-signer -keystore /home/dwart/.rim/author.p12 -storepass myPass ./Study-Cards.bar author
    

    Now it's work

    Info: Bar verified.
    

    Thank you much for the help

  • How can I disable default ContextMenu?

    Hello

    I learned development BlackBerry and am in the middle of writing my first important application. On the main menu of my application (or any extended screen screen, actually) when I click on a part of the screen that does not contain a control, a menu appears with the options Application Switch, keyboard Show, closed and full Menu.

    I don't want to remove these in the regular menu that appears when you press the BB button, I just want to stop that contextmenu of popping up when you click on the screen. I tried to set NO_SYSTEM_MENU_ITEMS in the constructor of the screen, but who does two things, I don't want: default menu items are removed from the BBKey menu, and context menu always opens with only the item of Menu "complete."

    Is there a way I can just disable the contextmenu to appear? I tried to replace makeContextMenu but this does not seem to have any effect.

    Thank you

    Oh just to clarify a few things, because I fear that we are not understand your problem correctly.

    When we say contextmenu, I usually do this to mean the menu that is associated with the context, i.e. the thing in short.  Thus, for example, when a field Edit is to the point, a contextmenu will include "clear field".

    However in this case, it is not what you seem to mean.  The context menu that you speak here looks the the menu that is called when you press the trackball.  This isn't a specific context of the field menu.

    I think you can remove this menu in two ways:

    (1) override navigationClick, but I don't really know where you want to do.

    (2) ask your makeMenu check the instance (the second parameter).  The invocation of lick trackball has a different value, sorry don't remember what it is.  But the invocation of menu keys has a 0.  If instance properties not 0, calling super.makeMenu and this will remove the default menu items.

    I suspect you want to use navigationClick, but I don't really know how to implement this and do not have time to test.  But stick one of these on your screen and see when it is called and what is removed if you return the value true (which means that you have used the click).

    Hope this helps, or clarifies a bit.

  • ContextMenu working on 8120 but not on the 8900

    I have this application running on the OS 8120 v4.3.0.115 and 8900 OS v4.6.1.231 and get a strange problem with the context menu not appearing is not on the 8900 but for 8120 his job very well.

    This is my code:

        /*Override this to add custom menu items.*/
        protected void makeMenu( Menu menu )
            {
                Field focus = UiApplication.getUiApplication().getActiveScreen().getLeafFieldWithFocus();
                if(focus != null)
                    {
                    ContextMenu contextMenu = focus.getContextMenu();
                    if (contextMenu !=null)
                        {
                            menu.add(contextMenu);
                            menu.addSeparator();
                        }
                    }
                menu.addSeparator();
                menu.add(_closeItem);
            }
    

    Any who have similar problems with the context menu for ObjectChoiceField does not not on the 8900?

    figured it out. I have replace him-> public boolean trackwheelClick (int status, int time)
    and this for a reason any did not work with the 8900. Still strange that he worked on the 8100.

    But somehow rewrote this code and now its work on both devices.

  • Problem with the shortcut menu custom BB10

    Hi all

    I am currently trying to implement a context menu that is customized with my webworks app. So far I'm not creating a normal webworks / bbUI app, but I'm trying to add some features of bbUI. So to speak, I have a few different elements in my application, each of them triggers the context menu, as expected. So far so good. But now I have some problems to detect which element / div has triggered the call from context menu. How can I get this information?

    I add the context menu like this:

    var contexts = [blackberry.ui.contextmenu.CONTEXT_ALL];
    var itemRead = {
        actionId: 'actionRead',
        label: 'Read Article',
        icon:'../assets/images/new/add.png'
    };
    
    blackberry.ui.contextmenu.addItem(contexts, itemShare, function(arg1) {
        console.log("itemShare: " + arg1);
    });
    

    But as I have already described arg1 is null, and I have no idea on how to detect the appellant.

    Can someone help me, please?

    I thank very you much in advance!

    See you soon,.

    Sven

    You need the feature called custom context. This will give you that you the information on that DIV has been pressed. When you set your DIV, add a tag called:data-webworks-context

    Thus your div would look something like this:

    1
    2
    3
    blackberry.ui.contextmenu.addItem(contexts, itemShare, function(id) {
        console.log("itemShare: " + id);
    });
    

    You are passing a JSON for the CCM object and asking him to come back to you, the ID of the item that called the context menu, so you can do a job. Let me know if that helps

  • ContextMenu event in af:panelTabbed

    Hi all

    I use JDev 12.1.3.

    I create an af:panelTabbed with af:showDetailItem as elements.

    I have to implement the contextMenu to enhance the functionality of close tab (close this tab, close other tabs, close all tabs).

    So I added a method af:clientListener = "showMenu" type = "contextMenu" / > inside the af: showDetailItem.

    But is not called the showMenu method?

    Anyone experienced that?

    Thanks in advance,
    View

    Hello

    I tried, but I got an error message says that the client listener is not a valid child of panelTabbed.

    Is there a problem with that?

    Kind regards

    View

  • How to not show a ListView ContextMenu when right to null

    I want only the context menu to be shown if the user is clicking on an actual ListView, not if they click anywhere elsewhere in the listview. I know that this is possible and I found answers to similar problems, but in the end, they did not provide enough information for me to solve my problem. I found this example of how to do it with a list of String objects containing view, but what happens if my list view contains another object, in my case a wrapper class? I have a wrapper class to keep track of the key, but I displays only the variable value in the listview, by the toString method. If the cells still contain a wrapper.

    class Wrapper(int key, String value) {
         ..
    }
    
    public String getValue() { return value; }
    public SimpleStringProperty getValueAsProperty() { return new SimpleStringProperty(value); }
    public String toString() { return value; }
    

    I tried binding the context menu for the specific cells like this:

    listView.setCellFactory(lv -> {
    
         ListCell<Wrapper> cell = new ListCell<>();
    
         cell.textProperty().bind(cell.itemProperty().getValue().getValueAsProperty());
    
         cell.emptyProperty().addListener((obs, wasEmpty, isNowEmpty) -> {
              if (isNowEmpty) {
                   cell.setContextMenu(null);
              } else {
                   cell.setContextMenu(contextMenu);
              }
           });
           return cell;
      });
    

    But the line 05 gives me a NullPointerException, why? I do after I defined the elements of the list view by listView.setItems (.).

    Link is not really necessary here... or at least not in the way you do.

    This should be better:

    public class Main extends Application {
    
        public class Wrapper {
    
            private final int key;
            private String value;
    
            public Wrapper(int key, String value) {
                this.key = key;
                this.value = value;
                valueAsProperty.set(value);
            }
    
            public String getValue() {
                return value;
            }
    
            private final StringProperty valueAsProperty = new SimpleStringProperty();
    
            public final StringProperty getValueAsProperty() {
                return valueAsProperty;
            }
    
            public final String toString() {
                return value;
            }
        }
    
        public static void main(String... args) {
            Application.launch(args);
        }
    
        @Override
        public void start(Stage primaryStage) throws Exception {
            final ContextMenu contextMenu = new ContextMenu(new MenuItem("Test"));
            final ListView listView = new ListView();
            listView.getItems().add(new Wrapper(0, "foo"));
            listView.getItems().add(new Wrapper(1, "fuu"));
            listView.getItems().add(new Wrapper(2, "faaa"));
            listView.getItems().add(null);
            listView.getItems().add(new Wrapper(4, "fyy"));
            listView.setCellFactory(lv -> {
    
                ListCell cell = new ListCell() {
    
                    @Override
                    protected void updateItem(Wrapper item, boolean empty) {
                        super.updateItem(item, empty);
                        textProperty().unbind();
                        setContextMenu(null);
                        if (!empty && item != null) {
                            textProperty().bind(item.getValueAsProperty());
                            setContextMenu(contextMenu);
                        }
                    }
                };
                return cell;
            });
            final StackPane root = new StackPane(listView);
            final Scene scene = new Scene(root, 200, 400);
            primaryStage.setTitle("Test");
            primaryStage.setScene(scene);
            primaryStage.show();
        }
    }
    
  • Bad position ChoiceBox ContextMenu

    Hello

    I am relatively new to Java, so patient with me

    I build a small program using JavaFX 8.0.0 - b132 and JavaSE 8...

    The program has a graphic interface and the GUI has a ChoiceBox. The architecture of this part of the page layout is: AnchorPane - VBox - TitledPane - GridPane - HBox - ChoiceBox

    I modified the ChoiceBox extensively using CSS.

    Everything works as it should, except for one problem:

    When I start the program and open the ChoiceBox (by click of the mouse or with show()) for the first time, it will display the ContextMenu that is on the lower edge as it should; However, when I close and reopen (with the mouse or programmatically) it displays the ContextMenu on top of the open key ChoiceBox (wrong position there), such as the background of the currently selected cell coincides with the bottom of the open key (which means it will change position after I select another cell and open it again).

    How can I avoid this and do the ContextMenu will always appear at the bottom, as it does at first? An excerpt from the GUI part of the program with the affected control ready to compile and run with Java 8:

    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.scene.input.MouseEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.*;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.scene.text.*;
    import javafx.scene.layout.GridPane;
    import javafx.scene.layout.AnchorPane;
    import javafx.stage.Stage;
    import javafx.geometry.Insets;
    import javafx.collections.*;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.geometry.Side;

    public class bugdemo extends Application {

      // Elements needed in both threads

      RadioButton radioBoxersOne = new RadioButton("One");
      RadioButton radioBoxersTwo = new RadioButton("Two");

      TextField warmupText = new TextField("skip warm up");
      TextField noCyclesText = new TextField("3");
      TextField cycleTimeText = new TextField("45");
      TextField restingTimeText = new TextField("30");

      String[] warmupTFtext = {"skip warm up", "\u00FCberspringen"};

      public static void main(String... args) {
      launch(args);
      }

      @Override
      public void start(Stage primaryStage) {

      // root container
      AnchorPane anchor = new AnchorPane();

      // Options TitledPane
      GridPane trainingOptions = new GridPane();
      ToggleGroup toggleGroup = new ToggleGroup();
      radioBoxersOne.setToggleGroup(toggleGroup);
      radioBoxersTwo.setToggleGroup(toggleGroup);
      radioBoxersOne.setSelected(true);
      HBox hbToggle = new HBox(15, radioBoxersOne, radioBoxersTwo);
      hbToggle.setPadding(new Insets(5,0,0,0));

      ObservableList<String> langList = FXCollections.observableArrayList("English", "Deutsch");
      ChoiceBox<String> langBox = new ChoiceBox<String>(langList);
      langBox.setValue("English");
      HBox hbLangBox = new HBox(0, langBox);
      hbLangBox.setPadding(new Insets(5,0,0,0));

      Label warmupOptionsLabel = new Label("Warm up time (min): ");
      Label noCyclesOptionsLabel = new Label("Number of cycles: ");
      Label cycleOptionsLabel = new Label("Cycle time (sec): ");
      Label restingOptionsLabel = new Label("Resting time (sec): ");
      Label noBoxersOptionsLabel = new Label("Number of boxers: ");
      Label langOptionsLabel = new Label("Language: ");

      trainingOptions.add(warmupOptionsLabel, 0, 0);
      trainingOptions.add(noCyclesOptionsLabel, 0, 1);
      trainingOptions.add(cycleOptionsLabel, 0, 2);
      trainingOptions.add(restingOptionsLabel, 0, 3);
      trainingOptions.add(noBoxersOptionsLabel, 0, 4);
      trainingOptions.add(langOptionsLabel, 0, 5);
      trainingOptions.add(warmupText, 1, 0);
      trainingOptions.add(noCyclesText, 1, 1);
      trainingOptions.add(cycleTimeText, 1, 2);
      trainingOptions.add(restingTimeText, 1, 3);
      trainingOptions.add(hbToggle, 1, 4);
      trainingOptions.add(hbLangBox, 1, 5);

      TitledPane TPane_in = new TitledPane("Options", trainingOptions);

      // Options TPane and Buttons together as UI (input)
      VBox UI = new VBox(10, /* hbButtons ,*/ TPane_in);
      anchor.getChildren().add(UI);
      AnchorPane.setLeftAnchor(UI, 25.0);
      AnchorPane.setTopAnchor(UI, 100.0);

      // EventHandlers for the radio-buttons
      radioBoxersOne.setOnAction(new EventHandler<ActionEvent>() {

      @Override
      public void handle(ActionEvent e) {
    /* if (!singleBoxer){
      trainingProgress.getChildren().remove(boxerLabel);
      trainingProgress.getChildren().remove(boxerText);
      }
      changeTextFlow();
      singleBoxer = true; */
      }
      });

      radioBoxersTwo.setOnAction(new EventHandler<ActionEvent>() {

      @Override
      public void handle(ActionEvent e) {
    /* singleBoxer = false;
      trainingProgress.add(boxerLabel, 0, 3);
      trainingProgress.add(boxerText, 1, 3);
      changeTextFlow(); */
      }
      });

      // "EventHandler" for the language ChoiceBox
      langBox.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() {
      public void changed(ObservableValue ov, Number value, Number new_value) {
    /* language = (int)new_value;
      changeLanguage(); */
      }
      });

      // initialize scene and show stage
      Scene scene = new Scene(anchor, 800, 650);
      primaryStage.setScene(scene);
      primaryStage.setResizable(false); // resizeable on/off
      // import CSS file
      // scene.getStylesheets().add(Letsbox.class.getResource("Training.css").toExternalForm());
      primaryStage.show();
      langBox.show();
      langBox.hide();

      langBox.show();
      }
    }


    Is this a bug or I do something wrong?

    This is the intended behavior of the selection box. It became very clear, once you pass more data in ChoiceBox. The popup will see erratic on top or below the choicebox, but if you observe that enough is by lining up the item in the context menu (which is identical to that in the ChoiceBox) to be the same situation as ChoiceBox, where the popup will move accordingly based upon the position of the element.

    Let's say that

    choiceBox-> Apple

    and the popup has the elements in the order->

    Apple

    Bird

    CAT

    Donkey

    If popup you choice, the popup will appear at the bottom, and if the ChoiceBox shows Donkey, the popup will show on the top, and all the while, by aligning the word in the popup in the same position as the ChoiceBox.

    I do not recommend to change the behavior of the choicebox if control is designed to operate (for css, or hack etc.) in this way, rather you might want to try to replace with another combobox control.

  • Drop + Drag and ADF tree ContextMenu

    Hello

    I have a tree that acts as a listener of the drop (and the source of a drag too). This tree needs to have a context menu activated on option to perform various options such as deleting/adding nodes etc.
    All context menu options work as fine, until it is time to drag and drop operation is not performed. Time, any DND operation is performed on the tree menu popup does not appear.

    If I do not add a context menu in the < f: facet = 'contextMenu' name / >, even then the default context menu appears after DnD, but having a code to have the custom in this facet context, makes the context shuts after action by DND.

    I tried to make the option of PPR to refresh the tree as in the post.

    Context menu on right click of the af:tree node

    But also, this did not help. If I open the same URL in a new window once again, he has the available context menu, but once again until no DND is done. All this makes me feel, which probably the drop operation is somehow altering the State of the tree which is the origin of the context menu not to run again. Tried all combinations possible, but nothing has worked so far.

    Would be grateful and help/suggestions.

    I use JDeveloper 11.1.1.6.

    Thank you
    Sachin

    Hello

    the problem is because you change the key of the current row programmatically. To resolve the problem, you do the following

       //memorize current row key
       Object currentRowKey = tree.getRowKey();
    
       .... do your stuff here
       //set current row key back
    
       tree.setRowKey(currentRowKey);
    

    Frank

  • The interactive report update and problem of Plugin JQuery

    Hello


    I have interactive report in my page. So I use the plugin jQuery context menu when user right click on a column he get an option to add, delete, update and another option.
    javascript pseude code for context menu
    $(function(){
         context_menu();
    });
    
    function context_menu(){
    
      $('.Col1').contextMenu();
    }
    Suppose the user selects Delete option. In this case jQuery popup appears and users enter data that are saved in the table by using the application process. After you use gReport.search ('SEARCH'), I refresh the page...

    Now the question - now when I right click on the column of my jQuery context menu does not work...


    Used workaround solution - I've added onmouseover = context_menu () function for the column... link and it works fine...


    Now my question is... whenever the user moves the mouse over the column, it will run function context_menu()... There will be no unwanted problem... or memory leak problem...

    Please advice...


    Thank you
    shijesh

    Hello

    Okay, that's good.
    But if you take this plugin to use to select the option group you also code of loan that trigger events on IR Ajax calls.

    Kind regards
    Jari

  • Context menu with video player problem

    Hello

    I don't think I'm doing something stupid... It seems that having a MediaContainer onstage prevents somehow the ContextMenu send a click event, someone else knows it? I created a very simple example below to illustrate the problem. If you click anywhere on the stage, you will get the ContextMenu correct (with the custom "click me"), but only if you click outside the MediaContainer will be distributed ContextMenuEvent. If anyone has any ideas of what I could do wrong, or could confirm that maybe it's a bug, I'd be very happy.

    package
    {
    import flash.display.Sprite;
    Import org.osmf.containers.MediaContainer;
    Import org.osmf.elements.VideoElement;
    Import org.osmf.media.MediaPlayer;
    Import org.osmf.net.DynamicStreamingResource;
    Import org.osmf.net.DynamicStreamingItem;
    import flash.ui.ContextMenu;
    import flash.ui.ContextMenuItem;
    import flash.events.ContextMenuEvent;

    [SWF (width = "1024" height = "600", backgroundColor = "#000000", frameRate = "30")]
    SerializableAttribute public class OSMFPlayerTest extends Sprite
    {
    public void OSMFPlayerTest()
    {
    var dynamicStreamingResource:DynamicStreamingResource = new DynamicStreamingResource ('rtmp://myhost/');
    dynamicStreamingResource.urlIncludesFMSApplicationInstance = true;
    var stream1:DynamicStreamingItem = new DynamicStreamingItem ('mp4:mystream.f4v', 190);
    dynamicStreamingResource.streamItems.push (stream1);

    var videoElement:VideoElement = new VideoElement (dynamicStreamingResource);
    Player: var = new MediaPlayer MediaPlayer (videoElement);
    Display: Var MediaContainer = new MediaContainer();
    display.addMediaElement (videoElement);
    addChild (display);

    menu: ContextMenu var = new ContextMenu();
    menu.hideBuiltInItems ();
    var point: ContextMenuItem = new ContextMenuItem ("click me '");
    item.addEventListener (ContextMenuEvent.MENU_ITEM_SELECT, onMenuItemClick);
    menu.customItems.push (item);
    menu = this.contextMenu;
    }

    private void onMenuItemClick(e:ContextMenuEvent):void
    {
    trace ('click');
    }
    }
    }

    Thank you very much

    Simon

    Hi Simon,.

    You stumbled upon a known issue of Flash Player and its impact on the event of shipping on the video object context menu.

    There are two possible solutions:

    1 Add a transparent sprite on top of the video and add event listeners.

    2 use something like a sprite "control bar" as a target for event listener context menu.

    Hope this helps,

    ANDRIAN

Maybe you are looking for

  • repeated sync account

    in my netbook, I installed firefox and sync. Then later for some reason, I have reinstall the windows and firefox sync (with the different computer name).

  • Satellite A660 - Touchpad does not

    I have a Satellite A660-16Z and touchpad work not at all even if it is enabled with F9.I have to use a mouse external usb. I tried several times to uninstall and reinstall the touchpad driver from toshiba site without success.Initially, after the pur

  • Always connected

    Hey guys!In the last two months I constantly connected Skype. IM connected to 100% of the time, even though I'm not logged on any mobile device (I made a point of closure of session) or on any computer. Despite this I'm online 100% of the time withou

  • Tecra A8: Impossible to reinstall Vista OS since the recovery CD

    I had problem - os could not start (error kernell)So I formatted the HDD (with XP)but I can not install new OS with recovery dvd boot from the cd (F12)loading files of Windows and the Windows Boot Manager Said Win Boot Manager: could not start window

  • I have a SONY Handycam video camera recorder (2005). I have Windows Vista and I am not able to download videos to my PC. What can I do to fix this?

    I have Windows Vista on my PC at home.  I have a 2005-Sony DIgital Handycam video camera recorder.  I have video saved my son and I would download on my PC.  DVD software is not compatible with Windows Vista.  How can I fix?  Any helpful ideas?