Element QML reload on re-entry

Hello

I have a Page in a NavigationPage which has an element of the camera on it. After using the camera to scan a QR code, I push a new Page on top of the NavigationPane and display the value of the QR code. When the user leaves this results page using the back button, I would restart the element of the camera.

I realized that I could keep the camera, but it turns out it will scan all the time even if it is not the main page. As a result the QR even being analysed continuously.

What I'm looking for is a way to detect when the page with the element of the camera on it is on top of the stack. If this is the case, turn on the camera, otherwise, turn off the camera.

I tried looking for methods in the classes the TabbedPane and NaivigationPane, but have not seen exactly what I think I'm looking.

Any ideas as to would be how do I fix this?

Thank you

I have no experience with this workflow, as well as a few shots in the dark:
you call close() on the object camera properly?

or the sneaky way:
Maybe you could reject the page in the background, then re-create it (and use navigationpane.insert to smuggle it below your current page)

Tags: BlackBerry Developers

Similar Questions

  • What is the syntax to add a form element to a Web App entry form?

    What is the syntax to add a form element to a Web App entry form?  (Web Apps > > Layout > > Edit Template)

    for example: If you need a form text element should look like this: < input type = "text" value = "{tag_some-name}" / >?

    Which would look like if assuming a {} tag_image-upload tag or a group of radio buttons to boolean a type of entry in 'file '?

    Confused seriously, but he could learn quickly w / a link or an example!

    TIA

    You can not simply add any random field here, it doesn't work like that. This form is based on the fields that the web application has. If you just go through and add the form of entry web application and it has all the fields you need to send an item of web application.

  • RH10 HTML &gt; Webhelp &gt; elements of Index with multiple entries are not displayed in IE9

    When I click on an element of Webhelp Index with entries multile, nothing happens. I had this problem with HTML RH8 too.  I tried to disable the Popup blocker, but that does not solve it.

    Can someone suggest a solution to this problem?

    Hi Karen,.

    Thanks for the workaround. Unfortunately, it has not worked for IE9 browser.

    Best regards

    Paul

  • Choose the elements of an array of entry

    Hi all

    I know it's a simple question, but I got stuck at one point, the entry for my Vi is an array of clusters. I chose each element of the array on two criteria. I wish my VI to choose items and write only the items that are located at the exit and ignore the others (out of range ones). But the problem is that for the current version of the program, the program is written, elements of zero for the out-of-range ones.

    Best,

    Serkut.

    Close enough

    Try this

  • PS elements of reloading

    I have PS elements on a machine, but I would like to opt-out and put on another machine, but do not have disks - what should I do?

    Thank you

    You can download the trial version of the software from the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important article Instructions on the pages to download to this site or the download may not work properly.

    Photoshop/Premiere Elements 8: http://prodesigntools.com/direct-download-links-for-lightroom-3-and-photoshop-elements-8.h tml

    Photoshop/Premiere Elements 9: http://prodesigntools.com/photoshop-elements-9-premiere-elements-9-direct-download-links.h tml

    Photoshop/Premiere Elements 10: l http://prodesigntools.com/photoshop-elements-10-direct-download-links-pse-premiere-pre.htm

    Photoshop/Premiere Elements 11: l http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm

  • Photoshop Elements 10 reloading

    I upgraded my Photoshop métadata 9 to 10 July version. Since then, I had a bug in my PC that requires a procedure Windows refresh setting. Accordingly, I "lost" my Elelements 10 and I need a way to re-loading the program without re-purchase. Thank you.

    patrickpoole

    Direct download links for Adobe software

    Mylenium

  • Policy QML camera question

    Hello

    When you use element QML camera in my application, I was faced with the following problem - Z10 camera he always does photo in landscape orientation, even if the device is in portrait mode. AFAIK, QML camera should deal with orientation of the unit by itself, and it doesn't have even the methods or properties to combat it. All other screen elements (such as the navigation pane) to have proper placement for the current orientation of the device (as for the navigation pane, it is always on the bottom of the screen). The code example looks like this:

    import bb.cascades 1.0
    import bb.cascades.multimedia 1.0
    import bb.multimedia 1.0
    
    Page {
        id:         cameraPage
        objectName: "cameraPage"
    
        onCreationCompleted: {
            OrientationSupport.supportedDisplayOrientation = SupportedDisplayOrientation.CurrentLocked;
        }
    
        paneProperties: NavigationPaneProperties {
            backButton: ActionItem {
                onTriggered: {
                    navigationPane.pop();
                }
            }
        }
    
        Container {
            background: Color.Black
    
            Camera {
                id: camera
    
                onCreationCompleted: {
                    if (allCamerasAccessible) {
                        open(CameraUnit.Rear);
                    }
                }
    
                onCameraOpened: {
                    getSettings(cameraSettings);
    
                    cameraSettings.flashMode = CameraFlashMode.Off;
                    cameraSettings.focusMode = CameraFocusMode.ContinuousAuto;
    
                    applySettings(cameraSettings);
    
                    startViewfinder();
                }
    
                onTouch: {
                    if (event.touchType === TouchType.Down) {
                        capturePhoto();
                    }
                }
    
                onPhotoCaptured: {
                    shutterSound.play();
                }
    
                attachedObjects: [
                    CameraSettings {
                        id: cameraSettings
                    },
                    SystemSound {
                        id:    shutterSound
                        sound: SystemSound.CameraShutterEvent
                    }
                ]
            }
        }
    }
    

    I looked for similar problems in the browser of the question and found the following problem:

    https://www.BlackBerry.com/jira/browse/BBTEN-249

    It is somewhat similar to mine, but it is marked as fixed in Dev Alpha OS 10.0.09, while this problem occurs in 10.1.0.273 on Z10.

    What could cause, with the exception of the firmware issue? Should I change something orientation of the camera by hand? How can I do this for element QML camera?

    Thanks in advance for your help.

    The different flavors of the Z10 (as well as future systems) can manage rotation in different ways. Some will be actually rotate the image for you, some will just tag the jpeg resulting with EXIF data that indicates the orientation of the image desired. Not all image viewers supports EXIF rotation.

    In addition, currently on the Z10 rotation of the image is locked for the orientation of the device. So if the user locks the application in portrait mode, all their photos will be marked as if the device is held upright in portrait mode, unless you do a follow-up work with the gyroscope/accelerometer and then rotate the image yourself. You will notice that even in the built in camera app. This is currently a known limit.

  • The element of Interaction of the user does not correct my Boolean attribute value

    Hello

    I'm just starting using the element of User Interaction. In my workflow, I set several attributes - some string and a Boolean value. I have a script task that makes treatment and eventually set these attributes. I then a piece of User Interaction that has these characteristics than external contributions. The Interaction of the user unit shows the correct values to strings, but the Boolean value is always shown as wrong - regardless of what I put the attribute in the script task immediately preceding.

    I'm confused. I plugged everything in the binding in the same way, but it does not seem to reflect the State of the attribute. I can switch the Boolean value in the Interaction of the user and the attribute is replaced as expected.

    Thank you

    Edit: I have reproduced this issue with a very simple affair. Make a new workflow and put only a part of the Interaction of the user in it. In the UI element, create an external of entry as a Boolean attribute of the workflow. Default font to True/Yes. When you run the workflow, the user interface element shows the value as a no.?

    Hello

    Looks like a bug in the client Java vRO (but works in vSphere client to Web). I am able to reproduce it in my environment, on the two vRO 6.x and 7.0.

    I'll open a PR in order to track and remedy in the future vRO releases.

    BTW, I vaguely remember there is a reported similar problem long time for vCO 4.x. It seems that the problem has reappeared again in silence

  • Bug when dealing with multiple file input elements?

    I use Apex 4.2 and I have a strange problem.

    Back story:

    I created a page on a standard web server (Apache) that allows a user to select multiple images in there local machine. The form reads a file both a preview of the image and read the exif data for the file.  We enter additional data about each image in a form.  So the flow of the page is: user selects images-> first image appears and the user enters data-> submit data via ajax-> user hits button and following image happens.  The user repeats until all images are made.  I did not the ajax part, but all the other parts work fine on the Apache server.

    The problem:

    I need to recreate this kind of form at the Apex.   If I create an element of the queue multiple entry on a page all the tabs stop working.  They take you to an error page 404 with the message "the requested URL /apex/wwv_flow.accept is not found on this server."  I followed it to whatever this either by calling the apex.submit () javascript function.

    Literally if I do a region of html and the place '< id of entry = "uploadInput" type = "file" name = 'myFiles' multiple >' in the source of the region, the apex.submit () function doesn't work.

    Any thoughts?

    EPIC Fail says:

    I normally make apex generate all the elements of form on a page.  If I understand correctly you're saying I can't submit an article for the treatment that was not generated by the apex.

    In fact, Yes.

    In this case, however, apex does not have a multiple file select option and I don't actually submit the file to the apex for any treatment. The element to browse file apex also appears to force you to store the file which I don't want.

    Control creation (however do you) inside the form element generated by APEX and submit the page (however do you) submit the result of APEX session state changes and page if you plan to do after submit treatment or not.

    In addition, if the use of javascript to generate the element for me after the page load I have no problem. So, how is implemented""in a different part of html to let the js to be placed in the same region?

    Where in the DOM to create control with JavaScript? If it is created within the form element generated by the APEX while happen the 404 error on submit. Is it is created outside the shape, then there is no error. In most cases an HTML region and its content will be inside the APEX form element.

    Either way, I'm also curious why the tabs are calling the apex.submit () function and not using a standard binding as the objects of the navigation and navigation bar.

    Pick me up. This (and the inconsistencies in the standard tabs, calling apex.submit () while level 2 tabs are links) is one of several reasons why I gave up years ago tabs and recommend lists or other options for navigation.

  • Execution of a declarative elements AJAX requests

    HI guys,.

    We are building an ADF based portal application and design involves the creation of a declarative component which will be 'built' in the jspx parent page. This declarative component, during rendering, you must call an AJAX JavaScript application, based on the attributes that have been passed into the constructor of declarative components highlighted below. Essentially, we need to take the value of the ss_Email field and use it in a custom js function (defined in the declarative component) to call an AJAX request to an external resource and view the results online in the component. The reason why this component must call the AJAX code is our end point expects a connection token that is generated from the browser. The call of the declarative component is defined as follows:

    < af:form id = "f1" >
    < af:panelGroupLayout id = "pgl1" layout = "vertical" >
    < ss:ssConsumer id = "sc1" ss_Email = "[email protected]" ss_LastName = "Pradhan" / >
    < / af:panelGroupLayout >
    < / af:form >

    What I did in my component declarative is to set the value of the attributes of elements in a field of entry as follows:

    < af:inputText label = "email" id = "inputEmail" value = "#{ss_Email}. uploading" columns = "40" clientComponent = "true" >

    It works and I can see the correct value passed into the component. I have a problem with is hang what component text input, such that I can call a method of Javascript that I can read my af:inputText value in a method and begin my AJAX call. I tried to attach an af:ClientListener but it does not help because there is no interaction of the user within that component, that is why none of the types of events (mouseover, blur, click, etc.) are useful. I need actually an event 'onload' for the declarative component, but of course, this does not exist. To solve this problem, I used a block of standard script to force the component to call my js method that is

    < script language = "javascript" reporter = 'reporter' >
    getTextValue();
    < /script >

    The problem I am facing now, is that I'm not sure that ADF JS API will give me the value of my input text. I tried the methods AdfPage.PAGE and tried to retrieve the correct value, but have so far failed.

    var label = AdfPage.PAGE.findComponent('dc_pgl1:dc_pfl2:inputEmail').getValue();)
    var Label2 = AdfPage.PAGE.findComponentById('dc_pgl1:dc_pfl2:inputEmail').getValue();)
    var Label3 = document.getElementById('dc_pgl1:dc_pfl2:inputEmail').value;

    I guess because it is a declarative component and not in the Page, I can't use these methods. Are there alternatives that should I try or pointers to other ADF JS method calls that I should try to get the value of my javascript input text.

    Many thanks in advance,

    Sanjay

    Hello

    as far as I know, all Trinidada component trh:script did the same thing as

  • specification of IIR filter

    Hi all

    I'll have a go at making my own filter without having to use the Express filter screw I ran into trouble when using IIR filter VI and specifying the features of filtering. The entry node 'IIR filtering Specification' requires a set of data, and so I created a series of constants which ENUM and type Double; then I wired the constants to a 'package by name VI' which connects the IIR filter. It doesn't work and I get the error message:

    "You have connected two clusters with different contents. Cluster, a group of items of 0, is in conflict with the characteristics of filter cluster IIF, a group of 7 elements.

    The cluster entry I, I created, is 7 elements with the right of the right type constants so I don't know why it gives me this error. Is there a method to automatically create a cluster with the necessary variables for some such function that provide the specifications for filtering. It seems rather inefficient to have to create some everysingle among the variablesby han and put you labels.

    Any suggestion will be appreciated.

    Thank you

    Bundle by name requires a wire of the same data type of cluster to be wired in the middle of the terminal.

    Lynn

  • IBM ThinkPad Lenovo T60 (8744 5BU) sound driver problem

    Hello

    I have problems with my Lenovo T60, I ran all the updates and installed all the drivers that I am able to install, with the exception of 1 pilot that I can't find anywhere. It is the sound driver, I checked everywhere on the internet for days and still not able to find the right driver that works. I called the help line IBM Lenovo and all they can do is tell me the Web site to go because there is no guarantee that more than a dozen times already visited. If there is anyone here who has a Lenovo T60 (8744 5BU) laptop, please help me here, or if someone is able to help that would be great. Questions please ask, I can give more information. Thank you.

    You need more that just run the downloaded exe file.  Run this file (77a224ww.exe) just to extract the necessary files and puts them in a directory on your hard drive.  It does really settle anything.

    Did you read the Readme, particularly the "installation instructions"?  Have you noticed that you need to uninstall any previous drivers before installing the new?

    • Start the Device Manager (start > run > devmgmt.msc > OK)
    • Click on the + sign next to "audio, video and game controllers".
    • Is there an entry in Audio device to 'SoundMax Digital Integrated' Manager?
    • y at - it a caution icon beside the SoundMax element or any of the entries in "audio, video and game controllers"?
    • If there is a warning in the Device Manager, (a) what is the name of the device and (b) double click on the device and report, which is in 'State of the device' and 'use of the device.
    • What has happened just before that your sound has disappeared?
  • Compressed_zipped_Folder in missing Sendto

    I deleted by mistake the "Compressed (zipped) folder" option from the options Directory and therefore I can no longer zip files. Can anyone help me to do it as soon as I use this feature widely. I reloaded the registry entries for this option and I also ran the rundll32 command, RegisterSendTo zipfldr.dll, the two nothing helps. I can still expand files zipped without any problem. When I run the zipfldr.dll rundll32, RegisterSendTo I get the message "error in zipfldr.dll missing entry: registersendto. Any suggestions would be appreciated.

    Hi Doug,.

    1. download my of here FileExtInfo tool
    2 unzip the utility, and then extract the files to the desktop.
    3. double-click on "FileExtInfo.exe" to run it.
    4. Select the file type [.] ZFSendToTarget] drop down list
    5. click on "view the file association report.
    6 copy the content of the report and include it in your response.

    Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • apparent loss of keyboard mouse & and features after reset to factory settings

    Hi people,

    I'm at a total loss on the way to the same approach to this situation. After spending about 10-14 days with various iterations of "The Answer Desk", (hereinafter referred to as the T.A.D.) which include planning a recall, which are often late - sometimes by hours. or sitting on hold and wait until you have increased in the province of Quebec, or the chat option - I'd become fond of cat when I had a keyboard, I could use, but quickly learned to hate using my cell phone to push my words, rather type them. In any case, after having crossed more level 1 and level 2, including many supervisors at two levels, I took notice of the last tech level 2 Guy I talked to and called the store of Microsoft (weapon with a case of referral number, or whatever the correct language is for this). I found 2 Microsoft Stores in Los Angeles, CA - 12,000.000 people and 2 stores with nearby competent technical support staff. I scheduled a visit and was told to put my HP 500-281, i3 processor running at 3.4 GHz, 4 GB of Washington. and a 1 TB hard drive (what they & I called my C drive (although, technically, it's more like C: / / or?).)

    Level 2-ADP technology (which had prevailed of my variously attributed, by the countless service customer and/or technical support agents, both case # s and codes authorization) told me thatto take it to a Microsoft Store, I would be able seized technicians who pourraient & would send me home the same day with a machine works, based on my various numbers of cases assigned to me in T.A. I took the tour (by taxi Lyft in all situations which follows) at The Microsoft Store in Century City, CA.

    For those who ignore it the physical dimensions involved here - each trip using a provider of low cost me less than $25.00 each way (from Pasadena to the West away from Los Angeles). I don't drive, and with the weight and the vulnerability of my HP Tower resulting, it was the only way available to me which has not yet put the computer at risk. I arrived and spent about 45 minutes before I got help. The young woman, Cassi, asked the help of another agent, while trying to start my machine. Long story short - I was told that I have to leave the computer for the more experienced technicians analyze. I was so exhausted at that moment that I took another taxi home, although my practice since 2000 has been to use public transport, walk or BIKE only for my needs.

    I was, naturally, concerned about their progress. I work as a shipper of health and building helps entrepreneurs foresight of the restoration and had been lagging dangerously in the accomplishment of these tasks. Some clients have become so angry that a legal action has been mentioned. During the 4 days that my ride was in the Microsoft store, I spoke with 2 technicians that they worked on my machine. They told me that I would get their notes on the way in which the diagnosis was made. I have even voluntarily undertook the task of installation of 'hundreds' of updates because I was afraid that if I left it until the they could move to install updates a lot, a lot, I couldn't hear the store several days more.

    Everyone dealing with these attempts at assistance seems almost unconsciously act as if time is not of the essence, but rather that your computer isn't the central role and critical that do a lot of our computers. They are almost jaded when suggesting that I have simply bring the machine on L.A. 20 miles so that I can place again blind trust in their attempts already several times to resolve the problems, but also their inability to follow through with notes promised to deliver or demonstrations more rudimentary to convince a customer that he or she is winning a functional computer.

    When I got the computer home, I found that, I could just get insofar as the standard desktop Windows 7, but my mouse and my keyboard seems to be recognized by the Windows 7 operating system. The mouse don't not move the cursor that was sitting just in the center of the screen and the keyboard would make only the main directional functions if I had entered the Boot Manager (F9) or the parameters B.I.O.S. (F10) to start-up before the BONE begins to start. I tried 4 mouse 3 wireless and wired with receptors resets attempts plugged into the USB ports on 1. I also tried a cable and 2 wireless keyboards, spent an hour 1/2 with Logitech technical support without result.

    I'm teetering at the edge of financial ruin while monitoring the female for the insurance company above that now all services purchases made prior to the date of the merger, cunning claimed that, even if she had understood what I said pretty much everything the my time invested far more time and money I had to contribute to the effort, she could not or would not allow any level of cash so that I can return to save what's left of my ability to earn a living. I also started songwriting as he is more naturally evolved with my love of the guitar for 47 years, my hundreds of sets of words which are located in personal folders on the computer I can't access.

    One of you truly talented I.T. people who contribute to these forums you will suggest in any way that I could have the computer to respond to my mouse and my keyboard. You people are the best and I look forward to hearing your thoughts. D. Lyle

    : Marielle case - I would like to express my sincere and heartfelt gratitude for your response to my call for help. It is your interest to my fate who told me going in this awful circumstances. I got 2 notice of permanent failure to broadcast my answers you Google, and so I'm not at all sure of you knowing that I received your thoughts and that he continued to try to save me by using your ideas as a springboard to areas not only loomed in my limited vision of the possible parameters of the problem at hand. Specifically, your mention of the ports currently assigned to a device with a USB connection led by reminder of something I read said that the port used for the 1st time, we use a device that is new to the computer, can get a relatively permanent status as the only port that this device can then use unless you actively change this assignment. Made me continue at any position on a Windows 7/loss of any theme of functionality of the research material. As I was delighted to learn from the past, the forums came in BIG TIME! A post spoke after losing both mouse and keyboard functionality after you successfully reset to the factory settings. The person added that he would have found that devices plugged in USB 3.0 entries on his relatively new machine did not work at all when they had recently performed very well. He tried to connect the elements in one of the entries USB 2.0 at the back of his tour and it was the key - they immediately resumed their functionality. I have imitated this difficulty and was immediately very glad I did. I am currently undertaking the somewhat daunting task to accomplish the many updates to the OS 7. I almost forgot the comforting, veiled darkening I did experience the Office of MS, MS, HP store response, and finally, Assurion response, the insurance company who subscribed the Office Depot warranty protection programs that refused to consider even an answer to my dilemma except to the insist that they send me a box and a label for the shipping of my livelihood who knows where. It has been 7 days and counting and I have yet to even see a UPS truck, let alone one with the element which, once received, starts a ticking of the clock to keep their response time of within 5 days. With no packing material, there will be no reception of any element that would measure their response completely lacking in-same-, a heartbeat at my struggle to keep my livelihood. The lesson I'll take it away from this experience is that he is not a corporate entity multinational US who notices even if all life disappeared - as long as our devices robotic that remained would accept conscientiously their "droppings of concern" as evidenced by their cyclical billing continuous and/or automated calls to solicit 'our' biz repeat. I am convinced that our only chance, as a species, to confuse our way to a better future for all that follow is to cooperate with everything that surrounds us - be all of flora and wildlife or the air we breathe, or H2O which maintains the life here in this sweet spot him all that we call Earth. Thanks for your help and your efforts to maintain these wonderful forums.

    Sincerely,

    David Lyle

  • Make a Qt/Cascades library

    I tend to make libraries instead of real-world applications (to work on it...). I want to do a library for 10 of BlackBerry that uses some of the stunts/Qt classes and has possibly elements QML Cascades. The only option that seems to me within Momentics is to apply. Is it possible to make a library, not a request, who said support?

    I tried a static library that makes use of the classes in Qt I tried the 'Creating library' Assistant in Momentics IDE 10.0.4 release. The library built very well, but when you try to use the library of my application, I myself link error on all classes that inherit from QObject. It's probably because moc.exe has not been run on the library during the generation.

    As a solution, I created the library with the steps below. I don't know if they are recommended, but it seems to work.

    1. Create a new C++ Cascdes BlackBerry project
    2. Manually, edit the .pro file, change the PATTERN of the app to lib and add staticlib to the CONFIG, if you want a static library.
    3. Above changes are enough for the tool chain generate a library instead of an app. Unfortunately, you cannot use Eclipse to include this library in your application, .project of your application, you will need to locate and add your library as libraryname in there.
    4. Then in the .pro to your application file
      1. Add a LIBS +=-llibraryname
      2. Add the relative path to the headers of your library using INCLUDEPATH +=
      3. in the relevant CONFIG (release, debug | release) sections, add LIBS +=-Lrealtivepathtobinary
    5. (If you add a shared library, you must add it to the BAR file as well)

Maybe you are looking for