Issue#2256: Blackberry - How to acces Textfield text property on another qml page

  • Hi,

    I started BB 10 development recently and need some help. I searched this forum but couldn't find some information that exactly is related to my problem (the opposite way only), or I missing something basically. From my main.qml I want to access the textfield's text property from the InputControl.qml to use as a parameter in my SQLQuery (attached object). I tried to use the property alias fieldname method, but it doesn't work. I can't feature it out. Here is my code:



    import bb.cascades 1.4
    import bb.cascades.datamanager 1.2
    import bb.system 1.0
    import 1.0
    Page {
     id: root 
     titleBar: UIControls { 
     //! [0]
     content: Container {
     leftPadding: ui.du(2)
     rightPadding: ui.du(2)
     topPadding: ui.du(2)
     bottomPadding: ui.du(2)
     InputControl { 
     // The ListView that's used to display the artist data
     //! [1]
     ListView {
     id: myListView
     //property variant dq: defaultDataQuery
     // Associate the list view with the data model that's defined in the
     // attachedObjects list
     layout: StackListLayout {
     headerMode: ListHeaderMode.Sticky
     layoutProperties: StackLayoutProperties {
     spaceQuota: 1.0
     horizontalAlignment: HorizontalAlignment.Fill
     verticalAlignment: VerticalAlignment.Fill
     listItemComponents: [
     ListItemComponent {
     type: "item"
     Container {
     Label {
     text: ListItemData.Japanisch
     layoutProperties: StackLayoutProperties {
     topMargin: 5.0
     textStyle {
     base: SystemDefaults.TextStyles.TitleText
     fontWeight: FontWeight.Bold
     color: Color.create("#7a184a")
     Label {
     text: ListItemData.Lesung
     textFit.maxFontSizeValue: 9.0
     textStyle {
     base: SystemDefaults.TextStyles.TitleText
     fontWeight: FontWeight.Normal
     color: Color.create("#ff1818e9")
     Label {
     text: ListItemData.Deutsch
     textStyle {
     base: SystemDefaults.TextStyles.TitleText
     fontWeight: FontWeight.Normal
     multiline: true
     textFit.maxFontSizeValue: 8.0
     Divider {} 
     }// Container 
     // Use a standard list item to display the data in the model
     } // end of ListView
     attachedObjects: [
     //! [2]
     // One of the default provided DataModel's
     GroupDataModel {
     id: dataModel
     grouping: ItemGrouping.None
     DataSource {
     id: dataSource
     // Load the data from an SQL database, based on a specific query
     source: "WadokuJT.db"
     //query: "select Japanisch, Deutsch, Lesung from WadokuJT where Deutsch like '%Wasser%'"
     query: "select Japanisch, Deutsch, Lesung from WadokuJT where Deutsch like '%" + stext + "%'";
     onDataLoaded: {
     // After the data is loaded, insert it into the data model
     type: DataSourceType.Sql
     } // end of DataSource 
     ]//! [2] 
     actions: [
     //! [8]
     ActionItem {
     title: qsTr("Search")
     imageSource: "asset:///images/ic_search.png"
     ActionBar.placement: ActionBarPlacement.Signature
     onTriggered: {
     myListView.dataModel = null
     //myListView.dq = defaultDataQuery
     myListView.dataModel = dataModel 
     ActionItem {
     title: qsTr("Settings")
     imageSource: "asset:///images/ic_settings.png"
     onTriggered: {
     ActionItem {
     title: qsTr("Help")
     imageSource: "asset:///images/ic_help.png"
     onTriggered: {
    } // end of Page

    And here is my InputControl.qml


    import bb.cascades 1.4
     Container {
     property alias stext: txtSearchText.text
     Label {
     id: lblSearchText
     text: "Searchtext\r\n"
     TextField {
     id: txtSearchText
     layoutProperties: FlowListLayoutProperties {
     hintText: "Enter Searchtext" 

    Any help is greatly appreciated. Thanks.


    0 Answers

    Sorry, your answer is too short !

  • Issue#707722: Blackberry - Group Text Message issue (duplicate to myself) with Passport Silver

    I upgraded from a blackberry torch 1.5 months ago.  Torch worked great.  When I am in a group conversation with people, everytime I respond back, I get my message back as a new text message within the group. I am with AT&T and they had me on the phone for over 1 hour and couldn't figure out.  My IMEI is correct with them but the picture of the phone itself does not show up on my profile.  Everytime I change it to a Passport, it goes back to a generic phone.  However, when I called them, they do have my correct IMEI so this could not be the issue. I did several google searches but didn't find anything. My routing preference is:  Circuit SwitchSend Text only messages as:  AUTOMATICRETRIES = 3 The problem is that when I am in an active group chat, I get a duplicate of my own message. For example, I reply to someone's message and it shows up as sent. Just a few seconds later, I receive my own message with my phone number in place o

  • Issue#1170548: BlackBerry z10 text issue

    Hello sir, I have BlackBerry z10 and i'm facing a problem with one number... when he send me text I received but BlackBerry can't notify me, no bell, no light blinking etc, when I open inbox and go to his number the i'll see tha text

  • Issue#7463: Blackberry ID issue

    I have attempted to sort this too many times and support on Twitter... which I do use, keeps saying they do not understand. I have a blackberry Z10, when I first set up my ID the contact e-mail address was for the business I worked for. I have not worked for that business for 4 years. I keep being asked to verify my Black Berry ID, the e-mail address is no longer valid, I will not see a reply, I now have a warning saying if the next attempt is incorrect, I will be unable to use black berry ID for 15 minutes???? All I want to do is change my ID e-mail address How do I do it?

  • Issue#7464: Blackberry - Unable to uninstall Android Apps and screen flickers while opening Messages (Text Messa

    Hi ,I am Blackberry Leap user and I have typical two problems. Please read below. 1. Recently after an OS update to, I have started facing an issue that I am unable to uninstall android apps. They are not been shown on the home screen but they still show as installed through amazon app store and can access them from there. Also cannot find them in App Manager--Device Monitor--- Storage. 2. When I open Messages (text message) through Blackberry hub or Messages option on the home screen. The screen starts flickering. It flickers for some seconds and then stabilizes. I am facing this issue since I have bought Leap (6 months from now). This seems to be a regular problem with the device and happens always. May please suggest solution to these problems. Cheers!!!Praisy

  • Issue#8147: Getting a new blackberry id - register page doesnt work

    Hi, I am trying to set my wife up wth a balckberry I'd. I have tried about a dozen times to register. I either get;- No error message, just the repeat password field blanked out- A message about insufficient number of characters supplied (no clue as to which field is being referenced here) I have checked the passwords I am entering for length AND rules. When the screen comes back to me the first password field is 13 dots long as opposed to 11 dots when I entered the password. There is no help link for anyone having trouble registering. There is a contact us link but that simply leads to the enterprise software page. Thus although its not BB classic specific I am posting here. Can anyone provide me with any guidance or clue as to what I am doing wrong? Thanks  

  • Issue#18057: Giffgaff - Transfer number page issue in Chrome

    One for the Giff Gaff Web Dev Team:There appears to be an issue in Chrome when submitting the transfer a number page: I attempted to submit the form on this page last night and nothing happened. No error message nothing etc. So I tried again this morning at work and I got the same (at home I'm on v48 and at work i'm on v47).Upon trying in Firefox (v43.04) the form submits fine.Thought I'd give you a heads up in case other people are experiencing the same issue in Chrome.Regards,Damian

  • Issue#18652: Blackberry - Swiping up to close an app moves position on list and page

    Was wondering if there is a solution or a fix to remedy this? Every time I close an app by swiping up my position on a webpage or on a chat or contact list or chat list etc scrolls up (i.e. down the page) with the swipe. So everytime I come back to it I have to scroll back to where I was kind of defeating the purpose for having apps on stand by for quick access. If it was couple of lines it could be okay but usually it's pages. A software update to fix this would be great!

  • Issue#19740: Blackberry - Not recieving notification from text on one contact only

    I have read some of the other posts here, and none of the solutions have worked for me.I have deleted Facebook, I have went in and manually deleted every text in the conversation, restarted many times, pulled battery. I can see the texts if I compose a new message, but as soon as it is sent, poof! gone again. No light, no vibration, no nothing. Nothing in the hub. I'm on 10 OS Normally I really wouldn't care, but the contact i'm not getting texts from is my wife, and she's gotten rather cross with me because of it. She is using a Galaxy Note 4, never had any problems. I think what may have started all this is I accidentally deleted our conversation, and it hasn't worked right since. Can anyone help?

  • Issue#23769: Paypal - Adding text field to donate button/page without separate website

    I am trying to find a way for a donor to specify using a text box or drop down menu what they want their donation to go toward.  I found this page: and was able to duplicate the steps to create a pulldown menu and/or text box, but the problem is that we don't have a separate website, only a paypal account and a mailing list that is managed through mailchimp.  We currently include a donate button in our emails that takes a donor to the standard paypal donation page where they can sign into their account and choose the donation amount.  Is there a way to add the text box and/or pulldown menu to this page?  The text box and pulldown menu don't seem to work in Mailchimp; after the code is added and the email template saved, Mailchimp automatically reformats the code to remove the text box and pulldown menu I created.

  • Issue#24063: Blackberry - Issue with

    Hello upgraded my Z10 to latest OS release and saw that in App Manger the option allow to install 3rd party apps is blocked? It states blocked by administrator? This is a personal phone from day one. Has anybody else seen this? On Passport SE from ShopBlackBerry purchased a month ago holding out to install this latest OS!

  • Issue#25392: Blackberry - Messenger Emoji Issue

    I am experiencing an issue where emoji are shown in the hub view but when you open the SMS message to view in greater detail or reply, then emoji are not recognized in Messenger.I have tried a few different text apps as well to see what happens and the same effect is seen.I have tried a few Web sites that show emoji and confirm what can be recognized by your phone and all emoji are recognized by my phone.Any suggestions. This is more annoying than functional...Regards...

  • Issue#32195: Unity UI.text issue with text/font

    Hi community, The problem that occurred is whenever the text rectangle is set to an even height it looks like this(perfect): View attachment 171631 (height = 20, even) but whenever the text rect transform is set to an uneven height it looks like this(ugly): View attachment 171632 (height = 19, uneven; it seems like the vertical spacing is off) I want to note that: I tried multiple versions of unity(5.3.0, 5.3.1) I used at least 3 fonts(arial, corbel,... Unity UI.text issue with text/font

  • Issue#35292: Text Message Forwarding issue

    I am trying to enable my Text message forwarding on my iPad, I had it enabled, but it never forwarded text messages but I never really cared for a while, but now I want to get it sorted out. So, today (because I had it enabled but was not working) I disabled it in my iPhone (iPhone 4S) and then tried to enable it. It asked me to enter the code that was being show on my iPad, but there was no code! So I did a bunch of looking around and have tried everything I have seen; signing out on... Text Message Forwarding issue

  • Issue#39413: Giffgaff - Hi, I have issue with text messages, where and how do I direct this issue?

    Sorry, not used this service before.I received a text message today where half the text sent was not received but half of a text sent on the 19th January was added onto the text received today.I dont understand, what has caused this to happen? How to stop it happening again?Thanks. 

  • Issue#41884: Unity - Custom Property Drawer Text Field Wont Select When Clicked How To Fix?

    I Have The Boolean stuff working correctly but when I try to do text fields they wont select why is this? Here's the section of code that draws the fields: Code (csharp):       EditorGUI.BeginChangeCheck ();     SerializedProperty keyProp = prop.FindPropertyRelative ("Key");     EditorGUI.PropertyField (new Rect (pos.x, pos.y + 15, pos.width, 16), keyProp, GUIContent.none);     SerializedProperty valProp = prop.FindPropertyRelative ("Value");     EditorGUI.PropertyField (new Rect (pos.x, pos.y + 33, pos.width,... Custom Property Drawer Text Field Wont Select When Clicked How To Fix?

  • Issue#47223: [BUG] Intel page doesn't show the complete text and there is no scroll bar.

    As the title says. You can't read the last line: (Please, left click on the image and open it on a new tab)

  • Issue#47687: Blackberry Classic Headphone Port Issue.

    Hi, I had been using my favorite BB Q20 Classic for 3 months.I got my handset from the Singapore Mobile Carrier M1 and the handset is said to be brand new,  legal and authentic. Previously the earpiece is working pretty well. But Just a week ago, I use a local brand earpiece; as of I prefer the in ear type. Afterward, I noticed that the original earpiece that provided with the device is not working.The earpiece itself is confirmed not defect. I found that the earpiece came into operation intermittently but soon turn off while calls still ongoing.The assumption of the problem is pointing to the Audio Out Line and Port.Hence, kindly address this issue to respective technician to fix this. MBS  

  • Issue#49853: Blackberry - Variation of Passing Data from QML to QML

    Hi,   This is a variation of passing the data from QML to QML pages back up after a child page is popped. Here is what I am attempting.   I have a NavigationPage which I have a page with ListView. I select one of the elements and then push another page with a subset of the first ListView and display another ListView. I then have another page that I push to edit the second pages data. When I edit the data, the data is saved and then the page is popped. I need to refresh the subset ListView and when I pop that page, I need to refresh the top level ListView.   Any ideas?

  • Issue#49959: Blackberry - Priv battery and heating issue solved for T-Mobile users

    After scouring the internet and opening tickets with Blackberry I can confirm 100% that the battery drainage and heat issue with the Blackberry Priv for T-Mobile users is due to: The My T-Mobile app.  When you go online you read lots of replies and gets lot of people offering advice (turn your display down, turn off your location, turn off sync, etc, etc). I tried them all.Once I disabled and uninstalled the my tmobile app (I actually deleted all t-mobile apps) the problem was solved. It was like I had a new phone. I highly recommend this for T-Mobile users. Good luck!

  • Issue#50175: Blackberry - update issue

    can any one pls pls tell me how to update my z10 .i am still on 10.2 .pls help

  • Issue#50190: InDesign - when I try to move a page, computer freezes. Issue?

    Under PAGES, When I add pages --- "create a spread" and then try to move the two pages, the computer freezes.Anyone have a solution?Mel Wayne

  • Issue#52042: issue with my blackberry Q10

    I upgraded 2 a new version of os through blackberry link, and the upgrading was successful, but the major problem is that every application that I install on it after the upgrading usually delete after every restart of the phone and the SQN100-1. Please am seriously disturb about it. Need solution please.

  • Issue#53826: Blackberry - delete email issue

    Dear All, my boss have experinced with deleted email on microsoft O365  . when we delete email on first time email has gone but no longer email comeback again in inbox. and we deleted again to make email truely dissapear in inbox.why must deleted email 2 times to make  email really dissapear deleted from Inbox. can anyone advise for this issue.

  • Issue#54635: Blackberry - issue with bb id

    hi. i have a second hand passport device and when i update this device to latest version, its required bb id info. and we havent email and password. what is the way? 

  • Issue#54636: Blackberry - PRIV battery heat issue solved

     I spent the better part of 2 hours with bb level 2 tech support. Read this through before you start NetworkTMOBILE OK we had to reset the entire phone Then we updated the standard apps / using playstoreThen updated the OSOS / using TM Then loaded the apps I was using Then updated these /using playstore  We backed up the phone .. Using Super Backup Took some time .. Battery life now awesome including surfing web.. All day plenty battery to go.  I did turn off a lot of the unnecessary features on the MyTmobile app. Shut off all the advertising push ****bleep** * as well and the continuous TM usage notifications. I did leave the security and health monitoring set to 24hrs operational.  I did change the network setting to LTE 4g3g no 2g  I dis turn off the auto connect for wi-fi .. But that's  just me making my phone more secure. I want to control.  This is one way to fix the two issues. Go

  • Issue#55441: Blackberry - wifi page showing wen I switch on my z3

    I changed the sim card on my z3, since then instead of it to load to the normal page, it bring a page asking me to connect to wifi network and I can exit the page

  • Issue#55708: Blackberry - Forwarding e-mails without losing main body of text

    For some reason, when I forward e-mails the main body of the text is removed.  Is there a setting somewhere to deal with this?  Solutions greatly appreciated.

  • Issue#56847: Amazon - Including original page numbers in Kindle text?

    I'm fiddling with some public domain books (e.g. collections of writings by John Adams and Thomas Jefferson), and I'm trying to figure out a way to include the original page numbers in the Kindle text so that they can be properly cited for research.My idea is to include the page breaks of the original book and insert the page number in the text at the "top" of each page section. Does this seem reasonable, or would that seem intrusive to readers? On the other hand, is there a better approach? Reply to this post.

  • Issue#61188: Dreamweaver - Text size issue

    Hi guys, I use Dreamweaver CC, and somehow must have accidentally changed my font size to small, for the paragraph <p> setting, to just size 10 instead of 14.    I have tried changing it back to 14 and re-uploading the files, but nothing seems to change.  Any ideas?  Here is my page Gymnastics Hypnosis | Tumbling Fear | Reverse Movements Anxiety    Many thanks, Craig T