Fill out a DropDwon in another page

Hi, I have a navigationPane with two pages. In the home page, I have an ActionItem defined as:

 ActionItem {
    title: "SecondPage"
    onTriggered: {
        var page = getSecondPage();
        navigationPane.push(page);
    }
    property Page secondPage
    function getSecondPage() {
        if (! secondPage) {
            secondPage = idSecondPage.createObject();
        }
        return secondPage;
    }
}

In the page, I got the definition for second_page.qml

attachedObjects: [
    ComponentDefinition {
        id: idSecondPage
        source: "second_page.qml"
    }
]

I also spend my app instance as property of context and within this class, I have a method that
populate a drop-down list

void MyApp::fillDropDown(QObject* pObject) {
    DropDown* pDropDown = qobject_cast(pObject);

    // Lines to add options to dropdown taken from a database
}

My problem is where to make the call to populate the drop-down list. In the case of sails for ActionItem or is there some kind of event 'OnLoad' to the second page? If so, can I access the context property app?

TIA

Yamil

You can add JS on SecondPage function, for example:

SecondPage.qml

Page
{
  function resetFields()
  {
    app.fillDropDown(idDropDown)
  }
  ...
}

Add call like this:

onTriggered: {
  var page = getSecondPage()
  page.resetFields()
  navigationPane.push(page)
}

Or set a higher level for the drop down menu on SecondPage property:

Page
{
  property alias dropDown: idDropDown  ...
}

Then reference it through this property on the first page:

var page = getSecondPage()
app.fillDropDown(page.dropDown)
navigationPane.push(page)

Tags: BlackBerry Developers

Similar Questions

  • I filled out a form on the page 8 and he saved several times along the way, and now when I open this file, the form is empty?  How can I save my work so I can open the form later and it contains all my data?

    I filled out a form on the page 8 and he saved several times along the way, and now when I open this file, the form is empty?  How can I save my work so I can open the form later and it contains all my data?

    Hi Eileen97933052,

    The PDF form must be extended drive in order to have this feature to save & print the form data.

    Please confirm by the PDF Creator is the PDF reader or not extended.

    Otherwise, if you have Acrobat installed on your system, you can reader extend PDF form yourself.

    Kind regards

    Nicos

  • Creating a page of my Web site that allows users to fill out text fields, with basic formulation tools (text sizes, formatting, etc.).

    Hey, I would like to create a page on my Web site that allows users to fill out text fields, with basic formulation tools (text sizes, formatting, etc.).

    Another thing I need to allow users must be able to upload their own graphics to the pre-assigned fields. Thank you please advise me on how I would go to this topic.

    Nothing to do with the Muse. You need a system dynamic as Joomla, Wordpress, Drupal and so on. Otherwise, there is no way to store your information.

    Mylenium

  • How to fill a hidden form field with a value passed in another page

    I use PHP/MySQL and DW CS4.

    I'm trying to get the foreign key to a table and include it in a hidden field in a form to another table.

    The user selects a 'need' to a list and is taken to a new page that displays the need selected in the previous page and a form that the user can fill out with details of its offer, there is also a hidden field in the form that contains the index to the table needs, this hidden field retains the external key. Most of the code works, except to fill the hidden field with the external key. I proved (by printing it on the screen) that I got the external key and stored in a variable ($saveNeedId). I am unable to do so, what affect this variable in the hidden field in the form, I'm about to be stored in a table. Sometimes, I have zero and sometimes I get the index of the first necessity in the table. It should be simple but I can't make it work, I must be missing something obvious - still very new to PHP.

    The following code sets the variable and display for test purposes

    $saveNeedId = "-1";
    If (isset($_GET['needId'])) {}
    $saveNeedId = $_GET ['needId"];
    print $saveNeedId;
    }

    Here is the code that implements the fields hidden in the form, where I'm putting in place is the first one, needId

    < input type = "hidden" name = "needId" value = "<?" PHP echo $row_rsNeedsUnmet ["needId'];? ">" / >
    < input type = "hidden" name = "offerId" value = "" / > "
    < input type = "hidden" name = "MM_insert" value = "form1" / >

    The page where the user sees the list of needs is here www.hollisterairshow.com/weneed.php

    I would really appreciate sone help with this, I tried all combinations of double quote, percent sign and nothing works... sigh.

    Tony

    The following code sets the variable and display for test purposes

    $saveNeedId = "-1";
    If (isset($_GET['needId'])) {}
    $saveNeedId = $_GET ['needId"];
    print $saveNeedId;
    }

    Here is the code that implements the fields hidden in the form, where I'm putting in place is the first one, needId


        
        

    I looked at your page. It seems that you have thought about it.

  • I'm filling out a form to transfer license for Adobe Acrobat Pro XI who is transferred to another employee in our company for me. The instructions are the form indicate to attach to a file number. How can I get a case number?

    I'm filling out a form to transfer license for Adobe Acrobat Pro XI who is transferred to another employee in our company for me. The instructions are the form indicate to attach to a file number. How can I get a case number?

    Use a browser that allows cookies and pop-up windows, please contact adobe for hourly pst support by clicking here and, when it is available, click "still need help," https://helpx.adobe.com/contact.html

  • FRS: Lines pouring out to another page in PDF format

    I have a FRS (Financial Reporting Studio, v.11.1.2.3.917; EN Server 11.1.2.3.503.) a report that has accounts in its ranks. Problem I faced is that when I run the report to the spill of lines for PDF format to another page without a certain logic. For example, if the report contains 200 lines, the first page would be complete (say 30 rows), then the second page would have only 5 lines, the third might be new, some fortha gain number of lines (not the same as the #2 page) and so on...

    I tried the grid size, change switch Autosize, nothing helps. From FRS has a number of lines that he wants to fill in his logical page size, and because the physical page is shorter, he spills these additional lines to another page.

    Anyone with the same problem and a solution?

    Thank you
    Mr. Sladic

    Hi River.

    We installed the patch 508, and it solves the problem of paging lines.

    The problem is, there's another bug now - when I put my POV (in Premiere POV) guests for alias, the app does not recognize members, says that they do not exist in the database. I tried to use the "pipette" select POV member in a preview area and still the same. Only when I click on "Enter the value" check box, and my mebers change of name, the report opens.

    I tried this in our previous installation (patch 503) and report open regardles of preview POV being the name or alias. did not check if the same thing happens in the prompt box regularly.

    Think I'll open another SR for this

    Kind regards

    Milos

  • How to send data from the Page with a form to fill out?

    How can I automatically include the page title or any text in my Web page when my client click on the Submit button in a form to fill out?

    This may seem obvious, but if you want to receive data from a form, and then place it in the form. A hidden form field with the title page and the text of your Web page will send these data on the form submission.

    best,

    Shocker

  • When you have pdf pages combined into one document and change of filling out form content, how it stop edit fields in other pages?

    I am working on always .pdf documents that have fields to fill in form like this http://www.acuitybrandslighting.com/library/ll/documents/specsheets/edg-edgr.pdf document


    I fill out the form and then to combine several different files in 'organise pages', if I make changes to fill the form fields it passes over each similar document. How it stop doing that? Sometimes I need to use the same sheet in the same statement combined with different options in this regard.

    Once you combine a single PDF forms, you need to be able to edit the field values or access data? If this isn't the case, you can flatten each form before you collect in a single PDF file.

  • Hello everyone, I want to be able to create forms to fill out that can be signed online and then sent to another Department, what product would you recommend?

    Hello everyone, I want to be able to create forms to fill out that can be signed online and then sent to another Department, what product would you recommend?

    Hi Don,.

    Please see:

    Plans and prices: compare the versions. Adobe Acrobat DC

    FREQUENTLY ASKED QUESTIONS | Adobe Acrobat DC

    To subscribe: https://acrobat.adobe.com/us/en/pricing/pricing.html?promoid=KSMON

    I hope this helps.

    Concerning

    Megha Rawat

  • I want to create a form with a Manager to fill out a section and a member of the staff another. The two sections protected by different password.

    I want to create a form with a Manager to fill out a section and a member of the staff another. Should be able to change the other. Different sections is password protected with different passwords? I think it might be a function of "official use only."

    You can use 2 forms in a portfolio.

  • How can I reach a Web page request to my Windows email? I filled out an online application, save, and now I can't send to human contact.

    I filled out a job application online, saved on my computer, press send (letter of support attached, & resume in the email from Windows), but it does not show as being sent. What I am doing wrong?

    There are many formats of webfile - what is the file extension (the letters/digits after the in the name of the file)?

    With regard to the attachment:

    In Yahoo Mail:

    Click on new message
    Click on attach files
    Click Browse
    Select the file (by clicking left on it once)
    Click Open (lower-right)
    Click on "Attach files" (in the blue bar above the attachment - it's the one that cheated on me!)
    Check that the attachment is attached
    complete the email and send it.

  • Need to fill data from another page to a new page creation

    I have A page to create an entity (for example), but before sending the form, the user may need to select a value (which can be created in another page B).

    The problem is that when the user does not find the value you want in the list, it should be redirected to a page (shortcut to page B) and create value that is needed in the page.

    Any idea on how I will be able to do this?... when it does not send the page, we do not have a key to refer to... .and etc.

    Thank you

    Mehr

    Hi Mehr,

    What Apex version do you use? If it's a recent version, you can create a modal page for your page B.

    You may need to do a refresh of your selection list item when closing modal page to see your changes take effect.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • Sending data to a form to fill out to another?

    Tonight...

    I was canvassing all the recesses of the internet for the last few days in search of ways to do this...

    I just want to create a simple form to fill out my clients to my catering company can fill about the specific needs for their events. You will find information General, I need, like name, address, size, location, special requests, etc...

    I would like to create a form that they can fill in the necessary information and then submit my receptionist. I would like the information in this form automatically migrate to a form to fill my receptionist add internal information to fill out, and send it to me. It sounds quite complicated, but if you can see the form of a sequence, it would look like this:

    1.

    {To form initially filled by potential Client, then submitted to my Secretary Lynne}

    2.

    {Information in data fields are then automatically filled in his corresponding field on the form to fill with Lynne. Then she fills and submits the form, which will more details, because it contains information about the places, internal actions/process etc..}

    3.

    {I get form of Lynne, containing both the first customer information + its information in a fillable format on the screen just in case I need to modify anything.}

    If anyone can understand it, then you have him alone has changed my life! Help, please


    If your receptionist has Acrobat (Standard is enough), it can export the data from the form that the customer submits and import it in the second form. As long as the similar fields share the same name, they will be filled when the data is imported into the form. She can then fill in all the fields and submit. If she will not have access to Acrobat and comes in place of drive (11), there are other options, but they are a little more complicated to implement.

  • Click on a button to fill out the form on the same page of the report

    Hello

    I have a report that contains a name I want to move to a field in a form on a different region on the same page.
    My button on the report was her own column called ADD_LINK. This is the button. "< id button ="apexir_btn_ADD"class =" button apexir "type ="button"value ="Add"onclick =" "> < span > </span > Add < / button >.

    Once you click on this button, I have the form region fade. The region is called add the tag to the employee, which has P4_ROWID, P4_EMPLOYEE_ID and P4_TAG_ID.
    Once the area is displayed, I want #NAME # to show in the P4_EMPLOYEE_ID.

    I copy this form in another page, where I had it before. It made more sense to move it to this page for purposes of interface, then perhaps this tidbit will help as well.

    If someone has an answer to it, great. I'm new so thanks for the help.

    Thank you.
    Jeremy

    Its market not now and I did in the region never delete because you use the same area for the two remove hide/show the corresponding keys.

  • When I open a web page any using firefox, its ok for a few minutes, then he opens another page saying it is redirected for no reason at all

    When I open a web page any using firefox, its ok for a few minutes, then he opens another page saying it is redirected for no reason at all, the homepage remains open, but the other page start for no reason at all in another tab

    It's very consistent, he arrives a few minutes? In this case, I suggest this test:

    To find out if one of your extensions is the culprit, could you test mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    Not all add-ons are disabled: Flash and other plugins still works

    After stops in Firefox, a small dialog box should appear. Click on 'Start mode safe' (not reset).

    Any difference?

Maybe you are looking for

  • Is it possible to rearrage passwords saved in alphabetical order?

    I have a lot of saved passwords I want to sort alphabetically. At present, for example, at the top of the list are yourhealthportal.com.au , b2c.csair.com and singpet.com.n the bookmarks menu, it is possible to drag and drop items to another location

  • error code: 80244021, I can't update

    I saw the problem in my computer dell laptop, start very slow upward into my laptop

  • Envy 15-j051sa mSata SSD Cache TS

    Envy TS 15-j051sa mSata SSD Cache for the 1 TB 5400 HGST HTS541010A9E680. The manual States "Support for the SSD drive 24-GB mSATA (not available on computer models equipped with system - 16834 memory or 12288-Mo)". As I have all the conditions, Inte

  • No Down__ closed

    Windows Vista does not stop after that I'll start button in the lower left corner, and then select stop. It disconnects and displays a closing encircling the icon that will last for hours. It will turn off durng a reboot. It stops properly in Mode wi

  • BlackBerry Smartphones Facebook application warns not only me for the 8900

    I had the blackberry pearl before the 8900 and the facebook app installed and it worked fine. I would like to be notified (via the application) new messages, requests of friend, etc. But I got the new 8900 and downloaded the application, I am not bee