alias properties for datamodel.source on another page

I have a main.qml page where I get the remote data source xml

now I'm passing the text to another screen and I want to incorporate this text to another page datasource.source

Here is my code

onTriggered: {
                            var page = pageDefinition.createObject();

                            page.newsidValue = dataModel.data(indexPath).newsid         

                            navPane.push(page);

                        }

                        attachedObjects: ComponentDefinition {
                            id: pageDefinition

                            source: "secondpage.qml"
                            }
                    }

on the page I want to put the source of data like this

property variant newsidValue :""

------------------------------------------
on the 2nd page, I want to put datasource.source like that

source_link string property: "http://google.com/" + newsidvalue ".

so that datasource.source becomes http://google.com/xxxxxxxxx

When I check datasource.source in oncreationcompleted

I saw an empty value for newsidvalue

any help

If someone knows the answer, please please let me know

the other side, I did it by using the following solution

http://supportforums.BlackBerry.com/T5/native-development/how-to-change-a-variable-of-an-attached-OB...

Tags: BlackBerry Developers

Similar Questions

  • properties of datamodel.source alias

    Hi there - I'm trying to put a second datamodel.source based on a selectedItem.item (item = html rss link)

    I'm moving the selectedItem.item to page2.qml - I've been able to do this using alias rsslabel material: rsslabel

    However, when I try to put my datamodel.source in {onselected

    Page2.datamodel.source = selectedItem.item

    }

    gives me an error where it says that it cannot access the xml data.

    anyone could do this?

    Thanks in advance

    In the main.qml, they show a listitem with a local datamodel (models / feeds.xml), then after you have selected a
    of them, see the onTriggered event, where:

    onTriggered: {
        var chosenItem = dataModel.data(indexPath);
    
        // Create the content page and push it on top to drill down to it.
        var page = feedPage.createObject();
    
        // Set the title and source of the feed that the user selected.
        page.feedlink = chosenItem.feedlink
        page.title = chosenItem.title  //<-- Check this part
    
        nav.push(page);
    }
    

    While they charge of the feedPage.qml, where there is an another ListView with the datamodel dynamic.

    ListView in this page with id "feedsList" property in feedModel dataModel.
    Then look for the attachedObjects and then there is a GroupDataModel with the id feedModel.
    This dataModel have datasource of RssDataSource.qml

  • How can I request properties for VI refnum control another and which type I know?

    Hello

    I got the refnum of control of a Table running on a separate VI programmatically. I find his name and when the match multibordure I want to use its refnum of control to change som cells values inside through the Invoke node or node property. However even though I know that it is a Table I'm not allowed to wire control refnum to a property node with the "Active cell", "Color of BG" et.c. I'm not being allowed to connect to a node to Invoke with the method "value of the cell value.

    Is there a work around for this?

    You must use the function "to a more specific class' in the application control palette.

    hope this helps,

    Norbert

  • 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

  • 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?

  • I continue to have a new page opens when I click on a button. For example, when I clicked on the "category" to access this page, another page open for Norton.

    For example, try to access this page caused another page opens with an advertisement of Norton. Happens not every time, but every 3 - 4 times. I got Redbox, QuiBids, RxConnection and ensure the car outside Norton. I can't figure out how to stop this.

    Hello OKHiltibrand, this looks like a problem caused by malicious software on your pc. Please go to firefox > addons > extensions and remove any suspicious entries (especially 3 layers Word, things that you have not installed intentionally, does not know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software you have in place and various other tools such as the free version of malwarebytes & adwcleaner.

    Remove a toolbar that has supported your Firefox or the homepage search
    Fix Firefox problems caused by malicious software

  • I have a Mac and I want to remove the feature "Firefox prevented this site automatically redirecting to another page. Show you how do to Windows, but I have not found how to for Mac

    I have a Mac and I want to remove the feature "Firefox prevented this site automatically redirecting to another page. Show you how do to Windows, but I have not found how to for Mac

    This has happened

    Each time Firefox opened

    == I try to go to page to a new page

    Thanks Cor - el.

  • When I type in a search on the web for anything whether it's IE, eBay or Facebook my PC just redirects research and opens another page, how can I rectify this

    Original title: redirection

    When I type in a search on the web for anything whether it's IE, eBay or Facebook my PC just redirects research and opens another page, how can I rectify this

    Hi Mark,
    Your computer is probably infected by a virus. Try following the steps in this virus/malware removal guide: http://www.selectrealsecurity.com/malware-removal-guide
    It contains instructions which will remove most malware infections. If you have any questions, just ask me. I hope this helps you.
    Brian
  • Flash banner for posting a link to another page

    Now with Flash Cs4 could not find a way to link the banner to another page.

    That's what I wrote about Actionscript:

    inv_btn.onRelease = function() {}
    getURL ("http://www.sanpedrofashion.com/contactus.php" "self");
    }

    AND THIS ERROR MESSAGE:

    1084: syntax error: rightparen before self expection.

    THANK YOU FOR READING AND OF LITTLE HELP PLEASE

    You can still code as you did in studio mx, you just set your publication to AS2 settings.

  • to access the variables in a page in another page qml

    Hey gang,

    I've been watching some of the other problems autour to access the variables from one page on another page qml qml, and I can't get this to work.

    I have a page, main.qml with a NavigationPane.  The NavPane has a Page and some containers.

    I have a property defined in the NavigationPane like this:

    NavigationPane {
        id: mainNav
        backButtonsVisible: true
        property int customInt: 2
    
        onCustomInt: {
            console.log("  -------------> App: customInt");
        }
    

    I have a ComponentDefinition for next page, called SettingsPage.qml.  In the settings, I have two drop-down lists and a slider.

    Page {
        actionBarAutoHideBehavior: ActionBarAutoHideBehavior.HideOnScroll
        id: pgSettings
    
        ScrollView {
            id: pageScroller
            scrollViewProperties.initialScalingMethod: ScalingMethod.AspectFit
            Container {
                topPadding: 25
                bottomPadding: 25
                rightPadding: 25
                leftPadding: 25
                Label {
                    text: "Settings"
                    textStyle.fontSize: FontSize.XLarge
                }
            Container {
                id: dropDown1
                topPadding: 25
                bottomPadding: 25
                rightPadding: 25
                leftPadding: 25
                DropDown {
                       id: ddOption1
                       title: "Option 1"
                       verticalAlignment: VerticalAlignment.Center
                       horizontalAlignment: HorizontalAlignment.Center
                      Option {id: o1o1; text: "One"; }
                      Option {id: o1o2; text: "Two"; }
                      Option {id: o1o3; text: "Three"; selected: true; }
                      Option {id: o1o4; text: "Four"; }
    
                    onSelectedIndexChanged: {
    
                        switch (selectedIndex){
                            case 0:
                                //
                                console.log(" -->App: Option 1 Selector, On");
                                customInt = 0;
                                break;
                            case 1:
                                //
                                console.log(" -->App: Option 1 Selector, Off");
                                customInt = 1;;
                                break;
                            case 2:
                                //
                                console.log(" -->App: Option 1 Selector, Top (default)");
                                customInt = 2;
                                break;
                            case 3:
                                //
                                console.log(" -->App: Option 1 Selector, Bottom");
                                customInt = 3;
                                break;
                        }
                    }
                }
            } }
    

    I look forward to the the statement will change the level property NavPane, called customInt, but it doesn't.

    the output of the console shows that the ' App: Option 1 selector "gets selected in the dropdown list selected index changes, but the onCustomInt() funtion slot never gets called.

    I tried "mainNav.customInt = X" too, but the parameters cannot solve the mainNav.  I get "unknown symbol 'mainNav'" error with alittle bulb.

    what I am doing wrong?

    When you call the second page, SettingsPage.qml, set it as an object.

    Don't do the following:

    attachedObjects: [
    
        ComponentDefinition {
            id: settingsPageDefinition
            source: "SettingsPage.qml"
        }
    ]
    

    Follow these steps:

    attachedObjects: [
        // Definition of the second Page, used to dynamically create the Page above.
        ComponentDefinition {
            id: settingsPageDefinition
            Settingspage{
    
            }
        }
    ]
    

    Then the second page main navigation page in the IDE.  I had the same problem with a multi-page application, I created.

  • 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)
    
  • How to make a multiple numeric value to another page

    Dear Experts,

    Apex 4.1

    Oracle 11g

    I would like to pass multiple numeric value to another page, as below:

    P1_ID = (11,22,33) POINT Page1 depend on what users chose

    P2 SQL: SELECT * FROM TABLE WHERE ID IN (11,22,33), ID is numeric fields.

    but the PAGE 2 to show the error invalid number, how to fix, please help me.

    Thanks and greetings

    Yong Huang wrote:

    Dear Experts,

    Apex 4.1

    Oracle 11g

    I would like to pass multiple numeric value to another page, as below:

    P1_ID = (11,22,33) POINT Page1 depend on what users chose

    P2 SQL: SELECT * FROM TABLE WHERE ID IN (11,22,33), ID is numeric fields.

    but the PAGE 2 to show the error invalid number, how to fix, please help me.

    This is the classic problem 'variable IN the list' (I have no idea why this misunderstanding is so widespread. Always seemed obvious to me that it doesn't). In

    select * from table where columnvalue in (7788, 7839, 7876)
    

    (7788, 7839, 7876)is a list of expressions and the predicate is evaluated as a membership condition.

    In

    select * from table where columnvalue in :P1_X
    

    :P1_Xis a scalar string, unable to contain multiple values.

    In a report of type APEX, a source report of the body of the PL/SQL function returning a SQL query with lexical substitution can be used to produce a "variable list:

    return 'select * from table where columnvalue in (' || :P1_X || ')';
    

    where P1_X contains less than 1000 values, has been disinfected to code SQL injectionand string values are properly cited.

    Some people suggest the following approach, that will work also in interactive APEX reports:

    select * from table where instr(':' || :P1_X || ':', ':' || columnvalue || ':') > 0
    

    However, it is underperforming because it eliminates the possibility of using the index optimizer or the size of the partition in the execution plan.

    See various elements in the list to ask Tom and imitating the channel to the table using sql features for effective solutions.

  • I want to do a video opening and to redirect to another page after the end of the video, how do?  No matter what widget or code can do?

    I want to do a video opening and to redirect to another page after the end of the video, how do?  No matter what widget or code can do?

    Can do in muse and I tried to use dreamweaver like the code below:

    <! doctype html >

    < html >

    < head >

    < / head >

    < body >

    < style >

    {#video_background}

    position: fixed;

    Bottom: 0px;

    right: 0px;

    min-width: 100%;

    min-height: 100%;

    Width: auto;

    height: auto;

    z index:-1000;

    overflow: hidden;

    }

    < / style >

    < video id = "video_background" preload = "auto" autoplay no Cup >

    < src = "source opening.webm" type = "video/webm" > "

    < src = "source opening.mp4" type = "video/mp4" > "

    This browser does not support video

    < / video >

    < script type = "text/javascript" >

    {document.getElementById('video_background').addEventListener ('ended', function ()}

    window.location.href = ' http://www.xxxx.com';

    (}, false);

    < /script >

    < / body >

    < / html >

    adeletsang wrote:

    Thanks for your reply.

    I just need to click on "object > insert html ' muse and paste the code there?

    My video ID is video_background which is defined by the widget by default, I should change the code below:

    The site I posted has no video in there and I don't have the widget that Peter sugested however, you can replace the startup code Nacy O made (the black with bit blob going around it) and it should work... understand that a ve\ideo will have to be downloaded by your browser clients before they can see it, so it's another delay for them.

    The code you posted is the code of downtime and that seeks a DIV not called "intro" so no do not change his name...

    A mandatory opening text

    After 5 seconds, this block will disappear.

    Everything between the two div tags is startup code and replace you it with you video and then use the muse "object > insert html" tool to place on your page.

    The demo includes three bits;

    • the body or the div tag is the code shown above and goes into the tool "insert html".
    • a header code that defines styles i.e. the yellow background and text... cela goes in your location of metadata page

    • The final code is the timeout in jQuery you had but do not change the name to the background image unless you also change the name of your div to match... Nacy O put it in its footer code that is correct for DW, but Muse has no footer as such area so I used a master metadata slot to the same effect. The important point is that it descends UNDERNEATH other codes.

    Have a play with it and see how you go...

  • Copy the value of the item to another page of the apex in a field

    I have a main table and adds a new button.

    In my master table, there is a client code.

    If I press this button again, I will be referred to another form on another page where I can create log files.

    For the moment, I have to insert the client code in this form.

    How is it possible to copy the customer ID, if I press the new button in the main table, if this customer code (value) will be copied

    in another article on my other page?

    Hello

    What version of APEX are you using?

    Solution for this should be simple.

    Just edit the button element. Assign it "Action when the button is clicked" "redirect to the page of this application.

    "Then set: Set on these elements ' with the name of the target element and the 'with these values" with the name of the source element.

    The same works also for reports. But instead of the nom_element, you must add the column name as: #COLUMN_NAME # for 'with these values.

    Concerning

    J

  • Apex 4.2 passage value between one point and another page

    I have a page where I accept a start date and date as the end parameter
    its source, which I put it as a preference or point of application

    Now, in the other page, I have referred to jasper...
    so it's the first page... I'm not able to access the start_date tends in another page
    start_date and end_date

    Start_date shows like null
    Am confused on what element of preference and application
    Where will we use preference as a source type.

    Example again
    page 103
    p103_start_issue - preferenec
    p103_end_issue - preference
    A button named other page
    The other page
    When I call report jasper I pass the value of the parameter as: p103_start_issue and: p103_end_issue
    But the real value is zero for fields...
    How can I acess the real value...
    Do I have to use the point of application. ? I tried the point of application as the source type, but always the same question.

    Thank you

    Am confused on what element of preference and application
    Where will we use preference as a source type.

    A Page element is the shortest way duration to store session state variables. Page items are usually (but not always) deleted when entering or exiting a page. They are usually used to store a value that changes most of the time that you enter a page. Page items are also usually mainly by the code on this page. This does not mean that the other pages cannot or will not use, but access from other pages must be controlled so that they are not reference an element of page of a different pages after the page cache has been cleared.

    Application parts are data that are changed or are intended to be viewed by several pages. Application parts are not deleted unless an end of session or a specific call to make them disappear.

    Preferences are data that are intended to be stored and retrieved to specific users for several sessions. Diary of an app and back in and the data is always available.

    That said, from your description of the problem, I suppose that the cache page 103 has been erased and erasing the page element values. I think you should use a part of the application of what you have posted.

Maybe you are looking for

  • HP Pavilion 500-321: graphics driver constantly crashing and recovery

    Hello I've been instances make more frequent accidents of graphics driver. The message I get is: "Display driver stopped responding and recovered." Display driver Intel HD Graphics Drivers for Windows 8 (R) stopped responding and has successfully rec

  • order of sous-schema label z

    Is there a way to put the order of labels sous-schema plan? I realize threads I create will run under them, instead of course, leaving a Visual 'pause' in the thread.

  • HP8610: Copy without touch screen on HP8610

    I think that my touch screen is kaput - insensitive.  Is it possible to make copies without using the touch screen?

  • Automatic Updates does not illuminate

    OK, this can be pretty basic stuff, but my children have not been able to help so this is. I have 2 PC and the other more ancient works on XP Service pack 3. There has been no updates for over a week and whenever I turn on the pc I get the message th

  • Cannot play DVD movies on due to licensing issues.

    My friend built me a computer and installed a Dvd inside player.  Unfortunately, when I put in the DVD videos, I can't view because of licensing issues.  I know that most other DVD readers can read the videos without these problems.  I think that my