Several views of web with a set of action items

I am currently working on an app that has three different webviews and there is a drop down to switch between the three different webviews. Each webview is located in a different container and the list drop-down leather / reveal containers but my action points are: back, Forward and Refresh

I managed to get the update to work with the three webviews action item:

onTriggered: {
                    if (container1.visible == true) {
                        webView1.reload()
                    } else if (container2.visible == true) {
                        webView2.reload()
                    } else if (container3.visible == true) {
                        webView3.reload()
                    }
                }

However, I can't seem to replicate the same functionality with the back and the points of action forward

enabled: webView1.canGoBack || webView2.canGoBack || webView3.canGoBack
                onTriggered: {
                    if (container1.visible == true) {
                        webView1.goBack()
                    } else if (container2.visible == true) {
                        webView2.goBack()
                    } else if (container3.visible == true) {
                        webView3.goBack()
                    }
                }

Pressing the follow-up activity will backward for the first webview and will not work for the other two.

The three webviews are all on one page so if anyone knows a way to get the action element back working with the views of three web, then that would be great

I assume that you have 3 WebView side-by-side and that they can be visible or not, so at some point, you have all 3 on the same screen and hitting return should make all go them back, right?

If so, in the onTriggered section, remove any occurrence of "else".

It should look like this (sorry for the formatting, I'm on mobile):
If {(container1.visible)
webView1.goBack)
}
If {(container2.visible)
webView2.goBack)
}
If {(container3.visible)
webView3.goBack)
}

If I was mistaken in my understanding of your application and you have 3 single WebView appears at once, then your code looks good to me, but you can change your formula activated as long as the rear action can be activated, even if the visible WebView can not go back.

Tags: BlackBerry Developers

Similar Questions

  • Point for the action Menu spacing: set an action item to appear in the menu of the action at the bottom?

    How do you define an action item to appear in the menu of the action at the bottom? As the point to delete shown here:

    https://developer.BlackBerry.com/Cascades/documentation/Getting_started/porting/mapping.html

    You would most likely want to start with https://developer.blackberry.com/cascades/reference/bb__cascades__deleteactionitem.html and discover the parent class.

    The text suggests that the title and icon appear in the standard only if you do not specify your own when you add the element, so there is hope, you can fake it.

  • I've updated my Muse app to the latest version of July and since then my Muse forms do not work with several of my web hosting providers. Is this a case of the site not having host is not the latest version of PHP?

    I've updated my Muse app to the latest version of July and since then my Muse forms do not work with several of my web hosting providers. Is this a case of the site not having host is not the latest version of PHP?

    Please consult this document:

    Troubleshooting Muse form used on the servers of third party Widgets

    Thank you

    Sanjit

  • Friends of Hy. I want to ask that I am looking to get a pdf split software to split a pdf file into several PDF files with my set of pages specified. As if a document is 22 pages then I will specify the number of pages that must be cut in half to separate

    Friends of Hy. I want to ask that I am looking to get a pdf split software to split a pdf file into several PDF files with my set of pages specified. As if a document is 22 pages then I will specify the number of pages that must be cut in half in separate PDF files. for example I entered that do three pdfs of 1-5, 5-7, 8-10 pages and it will result in me

    first pdf = 1-5 pages

    second pdf = 5-7 pages

    Third pdf = 8 to 10 pages.

    Y at - there no way to do it with adobe acrobat or any other software? I tried many software including adobe with extract and split option, but I did not get the results you are looking for. so please:

    I would like to know if any of you have any knowledge about it. I have

    Thnanks in advance!

    Hi minixain,

    Yes, you can do it using Adobe Acrobat application (Adobe Acrobat free trial downloadversion |) Acrobat Pro DC), please refer to this document for help KB split a PDF | Adobe Acrobat DC tutorials.

    Kind regards

    Nicos

  • DW CS4 - Design/Live view not available with PHP

    I work with documents PHP but Live View and Design view are grey and not available with PHP documants open. I use MAMP and have set up local news and the test in the site server in place dialogue several times myself and with the help of some research on the web without any difference. Any thoughts on what may be things to check would be greatly appreciated.

    Have you changed your preferences to open the PHP pages in Code view?

    In the category of Types of files/editors preferences, if you add .php to the list of file name extensions in "Open in code view", it disables the Design view and Live View for that file type.

  • Not able to successfully install SP3 for Asian languages to view certain Web pages.

    Original title: Asian languages.

    Tried upgrading my current XP Pro with service pack 3 by the center of update of windows that I need to install Asian languages in order to view certain web pages. However, after the upgrade I'm still not able to do so and was quick to insert the service pack 3 CD to D:\i386\languages. Can anyone help?

    Hello

    Have you tried to insert the Windows XP installation CD when prompted?

    If you do not have the Windows XP CD, you can follow this link.

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot view some Web Sites I am a member of and need to logon.

    I can't view some web sites (e.g., Facebook, permanent Contact and a few others that require a 'log-in'.)  However, I am able to see and connect to a large number of other sites that require me to log-in.  Also, when I stopped mobile phone I have to reinstall my readers to the USB ports.  I did restore my system to April 2013 (started to experience problems 9) - I am at a total loss.  More information:

    1. what browser do you use to access this Web site?  Internet Explorer 10.0.04

    2. what site you're talking about?  Constant Contact, FaceBook, (or more)

    3. What is the full error message do you get?  No error message, just empty page with hourglass running.

    4. are you able to access other Web sites?  Yes, about 95%

    5. have there been recent changes to the computer before the show?  Yes, I have installed a different Antivirus Program (Maestro?) by mistake, then uninstalled and then made the system recovery to a date prior to this installation.

    I hope this helps.

    1. If you use Windows 7 or Windows Vista, click the Start button. Type inetcpl.cpl in the Start Search box and press enter.

      The Internet Options dialog box appears.

    2. Click the Advanced tab.
    3. Under settings reset Internet Explorer, click reset. Then click reset again.

      Click to select the Remove personal settings check box if you also want to delete the browsing history, search providers, accelerators, home pages, the Tracking and ActiveX filtering of data protection.

    4. When Internet Explorer finishes resetting settings, click close in the Reset Internet Explorer settingsdialog.
    5. Start Internet Explorer again.
  • Several views Vs multiple Analyses

    Hello

    I design dashboard 21 boards that share the same columns (columns 22). Each dashboard contains Analyses of 5-10 (each analysis using 2-4 columns), which are from the same columns.

    Currently, they created the only analysis and derived from multiple views, each view, we used only 2-4 columns and excluding the remaining columns.

    We use the line charts, Bar charts, selector display and table views.

    Is that a better performance to use only single analysis and several views? or by using individual analysis?

    Our database has less amount of data, support of size for the full load, it will take 2 hours.

    Raineau

    An analysis with multiple views is a better approach that the query only a single keystroke data.

    Please check if correct/useful.

  • How to 'save for web' with information from a dataset

    I created psd to design web page set up with a master image.  The main image is defined as a pixel replacement variable and uses a dataset to load in images of a local folder.  I have more than 100 images in this folder and I need to resize the image to 250 pixels wide and "save for web".   Resizing and registration is easy with an action, but the thing, it's that I need to use a different column in my DataSet as the name of the saved files.

    Is it possible to create an action that will loop through each row in my dataset, do the replacement of pixel on the image, enter the name of the file in the next column, flatten & resize the image and then save it as the file name?  Of course, would cancel the flattening and resizing to start on the next line.

    I guess I could break in two actions.  One who reads the dataset, to replace the pixels and export for the web with the new file name.  Then I could set up a second action to run in batch on the folder that contains the images recently exported and just resize all the.

    I don't know how (if it is even possible) is to loop through the dataset by using the action, get the variable of the object dataset for file name and export for the web with that name.  Any ideas?  Thank you.

    Here's a function I use. With this function, you can import a CSV dataset to your document. Get names of groups of data csv form. Then in a loop applies a set of data by name, and then save as in any format you like. The loop repeats until all sets of data are processed.

    fileImportDataSets = function( file ) {
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putClass( stringIDToTypeID( "dataSetClass" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
        desc.putPath( charIDToTypeID( "Usng" ), new File( file ) );
        desc.putEnumerated( charIDToTypeID( "Encd" ), stringIDToTypeID( "dataSetEncoding" ), stringIDToTypeID( "dataSetEncodingAuto" ) );
        desc.putBoolean( stringIDToTypeID( "eraseAll" ), true );
        desc.putBoolean( stringIDToTypeID( "useFirstColumn" ), true );
    executeAction( stringIDToTypeID( "importDataSets" ), desc, DialogModes.NO );
    };
    function applyDataSet(setName);{
        var desc = new ActionDescriptor();
            var setRef = new ActionReference();
            setRef.putName( stringIDToTypeID( "dataSetClass" ), setName );
        desc.putReference( charIDToTypeID( "null" ), setRef );
    executeAction( charIDToTypeID( "Aply" ), desc, DialogModes.NO );
    };
    function getDataSetNames(csvFileRef) {
        _ftn = function(string){
        var csvItems = string.split(",");
        datasetName = csvItems[0]
        return datasetName;
    };
    csvFileRef.open();
    var datasetArray = new Array();
    var i = 0;// assumes the dataSet name is the first field
    while (csvString = csvFileRef.readln()) {
       if (csvString.length < 2) continue; // Skip empty lines
      datasetArray[i] = _ftn(csvString);
      i++;
    }
    csvFileRef.close();
    return datasetArray;
    } 
    
    //sample usage
    var csvFileRef = File.openDialog("Please select CSV file");
    var datasetNames = getDataSetNames(csvFileRef);
    alert(datasetNames.length-1);//number of data sets
    alert(datasetNames[1]);// first data set name
    
  • Discoverer Viewer using URLS with parameters

    Hello

    I'm calling discoverer viewer by using a URL that has the date setting by using the document in oracle, I've found.

    http://download.Oracle.com/docs/PDF/B13918_03.PDF

    You can check in the chapter 13.5.2

    I followed the doc and built the URL with date setting and on a certain date. When I open the URL, it always asks me to enter the date.

    Can someone help me?




    Thank you
    Gran

    The format is correct, you probably forgot something...
    Here is an example of a link:

    http://:> / discoverer/Viewer? cn = cf_a156 & wbk = URL_TEST_PARAM & wsk = 1 & qp_Creation_date = 1 April 09 '

    the parameter name must be prefixed with "gp_" and the name of the parameter.

  • I want to view two web pages side by side or at the same time

    I want to view two web pages at the same time so that I can add information from one to the other.

    Is there a way to do this?

    Try one of these:

  • How can I cerate a table with a set of numbers saying 1 to 12 random order but no recurrence.

    How can I cerate a table with a set of numbers saying 1 to 12 random order but no recurrence.

    I know it should be easy, but my brain doesn't work right now


  • When I try to open e-mail files a small box opens with the setting or the input string was not good format

    original title: windows live suit

    When I try to open e-mail files a small box opens with the setting or the input string was not good format

    Windows Live Solution Center
    http://windowslivehelp.com/

  • Want to get an overview with the photo viewer and open with Photoshop

    Hello.  In all previous versions of Windows, I was able to do.  Right-click on an image and the 'Preview' option would open the image in the Windows Photo Viewer, and the option 'Open' it would open in Photoshop (or whatever the editor, I had chosen).  I just installed Windows 7 and I seem to be unable to get to do this.  If I select "Photo Viewer" as the default program for jpg files, I have TWO options 'Preview' in the right click menu.  Both will open it in Photo Viewer.  If I select Photoshop as the default program for jpg files, I get a 'Preview' and 'Open' option, but both open the image in Photoshop.

    How can I configure "Preview" with Photo Viewer, and 'open' with Photoshop?

    Thanks for the tips of registry.  I managed to find and fix the problem.  I tried to fix paint.net as the program open by default, and it has open in paint.net and presented in preview in Photo Viewer.  So I thought it was something to go astray with Photoshop.  Under HKEY_Classes_Root\Photoshop.JPEGFile.9\shell, there is a key-file for 'Preview '.  I deleted who, and now it opens in photoshop and previews in Photo Viewer.

  • net view \\addressIPserver fails with error 53

    Computer, net view \\addressIPserver fails with error 53, while it works from b
    If I restart the server, then it works.
    -online what command can I enter to make it work again, without having to restart the server?

    Server, computer, b are all seven windows

    ipconfig/all shows that Netbios over tcp/ip is enabled

    Hello

    Find computers on a domain network?
    If the computers are on a domain network, the question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

Maybe you are looking for

  • Qosmio F60 - 11F - drivers for Windows 7 32 bit

    Hello. I have a Qosmio F60 - 11F and I install windows 7 ultimate 32 bit, and I am facing a problem with all the drivers.I am looking for in the section of the driver support in the Toshiba site, but I found only bluetooth, also I need for Windows 7

  • Error messages appear during the priming by Satellite A100

    I tried to start my laptop and this error message appears: hidden, system bios video BIOS with a shadow,bus controllers USB PCI-card resource conflict mother Bus: 07, device: 06, 01 functionresource conflict-PCI mass storage controller on card mother

  • can I disable having to connect to windows 7 and hotmail

    How do I change my settings to auto, connect to windows 7 and my hotmail account

  • How can I get the shortcuts pen and touch the back feature?

    I have a laptop of Timeline X 5820 T running Win 7 Ultimate. I recently had a problem with the software refused to install so I tried a clean boot. The software is now installed, but the touchpad on the laptop now moves the pointer instead of being a

  • : C Shrink catastrophic error of volumes

    I am currently trying to partition my hard drive before I format it but I have some difficulty. When I right click on the folder (C :) and click on reduce the Volume, I simply the "Catastrophic failure" message.) There are 331,61 GB of free space on