Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Regular Contributor
CrozyBB
Posts: 83
Registered: ‎07-19-2012
My Device: Bold 9790, Dev Alpha A
My Carrier: Koodo
Accepted Solution

Code Change from Beta to Beta2

Hello again,

I've been working on getting a twitter feed loaded via parsed JSON data from the solution found here, however the Beta 2 release of the NDK shows a new error that I never got with the original Beta release...

 

The following code gives me an "Uknown Property" error for statusTest and descriptionText near the bottom

 

Page {
    content: Container {
        background : Color.DarkRed
        layout : DockLayout {   
        }
        ListView {
            layoutProperties : DockLayoutProperties {
                verticalAlignment : VerticalAlignment.Center
            } 
            objectName : "basicTimelineView"
            id : basicTimelineView
            listItemComponents: [
                ListItemComponent {
                    type: "item"				 
                    StandardListItem {
                        statusText: { 
                            ListItemData.created_at
                            }
                        descriptionText: {
                            ListItemData.text
                            }				            
                    }
                }
            ]
        }
    }
    onCreationCompleted: {
        cs.getTimeline("ladygaga");
    }
}

Is this a documented change? Or maybe someone can quickly explain to me what I have to change.

 

Many thanks!!

 

 

Please use plain text.
Developer
soaman
Posts: 848
Registered: ‎03-03-2011
My Device: Z10

Re: Code Change from Beta to Beta2

Changes:
statusText -> status
descriptionText -> description
titleText -> title

And you dont need { and } around ListItemData.created_at and ListItemData.text.
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.
Regular Contributor
CrozyBB
Posts: 83
Registered: ‎07-19-2012
My Device: Bold 9790, Dev Alpha A
My Carrier: Koodo

Re: Code Change from Beta to Beta2

YES!! Thank you so much :smileyvery-happy:

Please use plain text.
Contributor
xelexdu
Posts: 13
Registered: ‎02-08-2013
My Device: Z10
My Carrier: Rogers

Re: Code Change from Beta to Beta2

Hi,
I have been working on a similar type of twitter style code.

When I tried to load the file on to the device, I get a Black screen with the above QML code. Any help please
Please use plain text.