Sharing values between pages in NavigationPane

Hello

I'm trying the NavigationPane as well as 2 pages. In the first page, I collect certain values (via text fields, slider, etc.). After that the user fills all the values and click the 'calculate', the second page will be pushed on the screen to display results based on what the user has entered before.

The way I do now is to store the values of the 'first' page in a few global variables in a javascript file. The second page will then read from these variables and perform the necessary calculation.

First page:

import bb.cascades 1.0
import "ExtJS.js" as MortgageCal

NavigationPane {
    id: navPane
    Page {
        content: Container {
            id: mortgagePaymentSettingPage
            Container {
                TextField {
                    inputMode: TextFieldInputMode.PhoneNumber
                    id: valueTxt
                    onTextChanged: {
                        ExtJS.Value = Math.round(text)
                    }
                }
            }
        }
        actions: [
            ActionItem {
                title: "Calculate"
                ActionBar.placement: ActionBarPlacement.OnBar
                onTriggered: {
                    navPane.deprecatedPushQmlByString("resultPage.qml");
                }
            }
        ]
    }
}

Second page:

import bb.cascades 1.0
import "ExtJS.js" as MortgageCal

Page {
    content: Container {
        id: ResultPage
        Container {
            Label {
                text: "User Entered: " + ExtJS.Value
            }

        }
    }
}

I wonder if there is a better alternative to make the values of the first page "visiable" on the second page?

Thank you

Hello

the solution is very simple. You can access the valueTxt.text property in resultPage.qml as same qml.

When you write valueTxt on the second page and put a point, he won't give a suggestion, you must write manually.

When you compile it will work completely.

You can access first qml varibale when the second page is pushed by the navigation pane.

Try this,

hand. QML

import bb.cascades 1.0

NavigationPane {
    id: navPane
    Page {
        content: Container {
            id: mortgagePaymentSettingPage
            Container {
                TextField {
                    inputMode: TextFieldInputMode.PhoneNumber
                    id: valueTxt
                }
            }
        }
        actions: [
            ActionItem {
                title: "Calculate"
                ActionBar.placement: ActionBarPlacement.OnBar
                onTriggered: {
                    navPane.deprecatedPushQmlByString("resultPage.qml");
                }
            }
        ]
    }
}

 

resultPage.qml

 

import bb.cascades 1.0

Page {
    content: Container {
        Label {
            text: " I am First page Text : " + valueTxt.text
        }
    }
}

Tags: BlackBerry Developers

Similar Questions

  • OBIEE11g - by passing the quick values between pages of dashboard

    Hello

    I'm working on OBIEE 11.1.1.3 and need help on the question of the value of guests passing between the dashboard pages.

    Scenario:
    -J' built 2 reports of the separate fact tables. Customers and products are the common dimensions between these fact tables. Temporal dimension is different for each of them.
    -J' have a dashboard and 2 pages it contains - Page1 and Page2.

    Page1:
    -J' have a dashboard guest with filters product, customer and year.
    -J' have a relationship with the product, customer, year and income of the columns.
    -J' have an Action - "Click here" link, which directs the user to page 2.

    Page2:
    -J' have a dashboard guest with filters product, customer and week.
    -J' have a relationship with the customer, product, week and Total Volume of the columns.

    I select some values in Page1 guests and generate a report. Then I click on the "Click here" action link, which will take me to page 2.

    Now, on page 2, I want the common guests (product and customer) have default selected as the values that were selected in the common guests on Page1. And, as a result, the report on page 2 must be generated.

    Tried solutions:
    1. added the below javascript in page 1, but the link that is clicked, does nothing.

    < script >
    function navigateToPage2()
    {
    DashboardChangePage ('path to Page2');
    }
    < /script >
    Click here

    2. I put a Variable presentation when you select a value in a prompt on Page1. But I am unable to set this as the default valie variable in the corresponding prompt on Page2.

    Ask what the experts kindly suggest how I can get this to work.

    Thank you and best regards,
    Rahul

    Published by: Rahul December 1st, 2011 05:10

    Hello Rahul,

    This is a bug in 11.1.1.3, application of patch 10381088 solve this problem.

    Bug 10381088: dash PROMPT VALS NOT KEPT WHEN you NAVIGATE TO OTHER PAGES IN the dashboard

    Rgds,
    DpKa

  • Passing a value between pages for navigation

    Hi all

    To the point: selecting an option on the first page passes the value of query string, in this case, 11, to the next page.

    The next page has several bits of data, in this case short prargraphs. There are only three paragraphs illustrated per page and a navigation system is in place to allow the user to go back and forth between these groups of paragraphs.

    Everything works perfectly.

    I want to ADD is the ability to pass the original value the long query (11) string each time the user moves forward or backward by using the navigation links.

    The navigation system is PHP and reloads the same page with the appropriate data.

    I just want to have a value of... How?

    Thanks in advance!

    Sincerely,

    wordman

    At any time, man.

  • Hide/show the area, keep the value between pages?

    Hello

    I use APEX 3.2.1 with Oracle 10 g on Windows XP Pro SP3.

    I have 2 menus (regions) that can be hidden or shown by clicking on an image (as in some IDE). The following javascript code is called on the event 'onClick ':
    function visibilite(region,image) {
         if (region.style.display == "none")
              region.style.display = "" ;
         else
              region.style.display = "none" ;
         if (image.src.indexOf('gauche.png',1) == -1)
              image.src = image.src.replace('droite.png','gauche.png');
         else
              image.src = image.src.replace('gauche.png','droite.png');
    }
    It works perfectly, but when I navigate to another page, the menus are obviously displayed by default...
    So, I just want to keep the value of the previous page to show or hide my menus in the current page.

    I can add the page element in all pages and assign the value using the url, but it is not optimized as I will have a lot of pages (> 100).
    I can use a request element too, but I tried and I can't assign a javascript value, and I don't know if this is a good solution because it will force I call the javascript function, just after that the menu will be displayed, to hide quickly.

    anyone think of another solution?

    Thank you.

    Yann.

    I can add the page element in all pages and assign the value using the url, but it is not optimized as I will have a lot of pages (> 100).

    Create a Page 0 item which will be available on all pages.

    OR

    I can use a request element too, but I tried and I can't assign a javascript value

    Enforcement point values can be set from JavaScript using AJAX and an application process.

  • passing parameters between pages

    Hello

    I have 2 custom pages, navigate from one page to another. I want to perform certain conditions on the other page-based features. For this I need to pass Boolean parameters between pages, but don't know how.

    I checked the putsession, putparameter, but somehow, they don't work.

    Thank you

    You can use pageContext.putTransactionTransientValue () and pageContext.getTransactionTransientValue () to pass values between pages.

    Prasanna-

  • How to transfer the text value of the element with the character of new line between pages?

    Hello

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    Cardel wrote:

    I use the Application Express 4.2.2.00.11 on the 11g XE database. In my application, I use the transfer of certain values deposited between pages on a lot of places in my application. But now I have a specific problem with a textarea element.

    I have the page with the textarea element and I transfer element value to another page using the link button. I use "Set these elements" "with these values" mechanism.

    Everything works fine until I try to add the new line character in the area of the text box to be transferred to another page. I get this error message when I try

    Contact your administrator for the application. The checksum calculated on the basis of the application, clear the cache, names of arguments and argument values (711P711_TEXTabc CRC [A55D4D4B325E23CB83EF28FB7671E8F0]) does not match the checksum passed to the procedure of show (23CC724ADDA630B6F3BDFD2FEE1498E0). Note: users receive a different error message.

    Transfer of value to another implementation of page when I 'abc cde' in the text box.

    Transfer of value to another page do not work when I 'abc [line break] cde' in the text box.

    Value of transfer with the new line character point works when I change "Arguments must have checksum" "Unrestricted" on the landing page. But I want to use the shared services provider and do not want to disable checksum calculation.

    It seems that there is a bug in the function of calculation of sum of internal control...

    You have some tips?

    This is one of the many reasons why it is inappropriate pass strings of characters between the pages through the URL. Instead of using a redirect button, change the button to send the page, then use the conditional calculations to set the values on the landing page and finally access the page using a conditional on submit: before Validation: (after calculation and before Validation and treatment) branch. When you press button terms of use on the calculations and the direction.

  • Pass values between different areas on the same page.

    Hi guys!

    I'm developing a simple application where we have the list of students. I'm displaying information on a separate page for each student. Do you have any idea how and if I can pass parameters between regions, on the same page? I have a view showing, student card name information etc, and I want to create another view on the same page, which will be the student and will return a list of its subscribed courses.

    Part of my database is something like this:

    -------------

    Students

    ------------

    ID (PK)

    ------------

    -----------------------

    Student_course

    -----------------------

    ID (PK)

    Student_id (FK)

    Course_id (FK)

    ----------------------

    ----------------

    Course

    ----------------

    ID (PK)

    You have no idea how this can be done? I found information how to pass parameters between pages, but not on the same page.

    Thanks in advance!

    P.S. I am using the Application Express (declarative programming via a web browser), the use of the Application Builder.

    I discovered that I really had to. I just had to replace the "1" in my sql query with: P9_STUDENT_ID

    Thanks for your help anyway!

  • Navigation between Pages

    Hi all

    I am developing an app for z10, I have 4 pages with a lot of custom inside each other UI controls.

    But I don't have a navigation page, if anyone can help me to know what is the best way of navigating between pages?

    Kind regards

    Neo

    usually, you have a navigationPane, that is not a visible element, but is used to control the navigation (using push/pop, etc.).

    If you do not want to use one (or another like tabbedpane) you will need to control the user interface of c ++

  • PDF with portrait and Landscape Orientation act differently between pages

    Hello

    I have problem when I try to have an orientation landscape in a PDF document with another page in portrait.

    All I want to do is have a small page that shows the instructions on the form because it is a generator of form, once the form is created by the user, the landscape page becomes hidden.

    My problem here is that when I put a masterpage in landscape mode it makes it different to switch between pages.

    I see more than 1 page at a time, just as it cannot show a landscape and portrait together on the screen.

    I have another form of landscape and portrait together and it works fine, but this form is not normal... There must be something that I am missing...

    It's annoying that I can't have more than one page on the screen, once I hit the bottom or top of the page it will automatically switch to the other page.

    Please help me on this, I'm trying to figure out what is the cause of this bug...

    Hello

    I didn't use the form builder, but you still have a view state, try adding the following line in the form docReady event

    event.target.viewState = {pageViewLayoutMode:2};

    This has the same effect as setting to activate the scrollbars on the view... Menu page display.

    A value of 1 would give you unique page view.

    Concerning

    Bruce

  • Sharing data between views

    Hello

    I have a simple display object that I use to connect, he questions just the user name and password in the users table.

    I have an another display object that uses a query much more complex that retrieves detailed information about this user in different tables.

    I have a simple taskflow, a view of the opening of session and a current view, if you log in successfully, you go to the main page.



    Now if I use the first view (simple) object to display the username etc then it correctly displays the name of the user who is logged.

    If use the other more complicated view opposing it just show the first returned row.

    In short, my question is this, if I connect with the object from a point of view, how can I tell the view which line to select another object? I.e. the details of the logged-on user?

    I tried to create a link between the objects in view, but which only sort of worked. After that I logged it didn't show the correct line, but after I went to another page that uses the original view object, then he did display the line concerned.

    I bet that it would make no sense, but I don't know how else to explain it.

    I connect with the view object X.
    View object there may not know what line in X, I'm interested.
    If I connect X to Y then I have to go to another page in the application X is used in front go understand what line X is on.

    Help, please!

    Looks like your 'Complex' view must have a binding parameter to filter the query of a specific user and your speed of connection must pass this id on the container page.
    Discover models of sharing data between regions here:
    http://www.Oracle.com/technetwork/TestContent/adfregioninteraction-155145.html

  • Stopping printer between pages.

    I have an HP Laserjet 1012, running under Vista 64-bit, I have the driver for my printer.  The printer is paused between pages. It will print one, take a break, then print another.  Can anyone help?

    http://h20000.www2.HP.com/bizsupport/TechSupport/home.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesId=377934&submit.y=8&submit.x=12&lang=en&cc=us

    Link above is to know how to use and troubleshoot it.

    http://h20000.www2.HP.com/bizsupport/TechSupport/ContactHP.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesId=377934

    Above is a contact link to HP support for their products.

    See you soon.

    Mick Murphy - Microsoft partner

  • HP LaserJet P1102W long delay between pages with narrow (4 "wide) paper stock

    I use Adobe Acrobat Reader X (on Windows XP) to print a page 100 PDF on HP P1102W, with 4 "wide x 11" long paper in the main tray.  There is a delay of approximately 15 seconds between pages.  As soon as I share the narrow paper for regular 8.5 "x 11", the printer takes the job at normal speed.  The PDF itself has a page PDF 4 "x 11" size.

    I tried implementing a custom 4 "x 11" paper size in the print preferences and setting the paper type to envelope, but nothing done.

    I tested with 5.5 "wide and 7.5" wide paper stock, and they have the same 15 second delay.  As soon as I put 8.5 "wide stock in the status bar, the printer goes back to full speed.

    Note that even with the thin paper stock, the first page of the job prints immediately.  The delay occurs between page 1 and 2, 2 and 3, etc.  So it seems strange that the printer does not have the 'calibration' delay before printing the first page, it delays only on the following pages.

  • How to bind the text blocks between pages?

    Hello

    I searched all autour for this, and I'm guessing that the answer could be so simple that no tutorial it doesn't even mention:

    How can I link the blocks of text between pages? I made a block of text in each master page and then connected one left with the one on the right. Indeed, all of the text in the document is linked from the page on the left of the right-hand page. But how do I link the page on the right with the following two pages 'below' in the document?

    If I'm not clear, here is another attempt to explain: I'm going to insert a lot of text in a document, and I already know the size and the type of text block, I want the text inserted. When I put the text in the left side, it connects (goes on) the block of text on the right side. But it stops there. So I have to manaully through both pages, which connects the right page "at the top" with the left 'below', page by clicking on the image by clicking on the small arrow in the lower right corner, and clicking on the next page below. There must be a way to organize it in master pages or in some other way?

    Thanks in advance for helping me with this problem of small size, but huge!

    Best

    Kim

    Two things...

    For "automatic formatting" to work with Captain linked frames page, you must NOT release the Master frame before placing the text, and you must click inside the image area, not any sort of guide.

  • vMotion (without shared storage) between two hosts with different vSwitches standard s VM

    I can VM vMotion (without shared storage) between two hosts with different vSwitches standard? The vSwitches on these two hosts have different names and number of NIC, but have the same name of portgroup.


    Thank you.

    Yes, you can in a Storage VMotion to one Esxi to another with no shared storage...

    It is important the portgroup bears the same name... This is the reference for the VM...

  • How can I get rid of the gap between pages?

    I have already disabled the show gaps between pages and it's still there. Very frustrated. Can someone help me with this problem? Any help is appreciated, thanks in advance.

    Hi Mike,.

    Open Acrobat Reader

    Uncheck view > Page display > show variation between Pages

    This will just see the line between dotted only and not apart.

    Thank you

    Abhishek

Maybe you are looking for

  • Is there a way to make firefox to open hypertext links to local files?

    My company has a system of custom Office and of course its developed for IE, but none of the engineers like IE. We all use and wish to continue using Firefox. The sections in the ticket system a a place for links to local files on a shared drive. I c

  • How will I know if new loops for 10.1.1 has uploaded?

    So I downloaded the new update, but I can't say the old the new loops loops.  Download it and install it or I have to click on the option 'Download the sounds available' in the menu? OR Can someone give me the name of loop for one of the loops again

  • Equium A60-173 stops without reason

    My laptop turns off suddenly, it comes to a complete stop, I thought it was the battery had blown or something so I bought a new. I put it on and it started working. Everything suddenly after an hour or two use it turns off again. Same thing happens

  • Grid Infra configuration failed when running root.sh on the second node

    Hello world.I am new guy on RAC environment. When you try to install Oracle RAC on the local environment, I had this problem:-J' have run root.sh successfully on a local first node-After that, the first node, there are 3 cards of virtual network crea

  • My Inspiron is OWNED

    For the last two weeks that my laptop (Dell Inspiron N5010) was on certain occasions only randomly urged the same key number one after the other nonstop. Sometimes it's the sign button more, sometimes it's the space bar, sometimes it's the comma, etc