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
Developer
soaman
Posts: 848
Registered: ‎03-03-2011
My Device: Z10
Accepted Solution

Momentics bug in Beta 2: objectName not recognized in GroupDataModel

Hi!

 

Below written code shows error in line where objectName is mentioned. But if you build and put the executable code on BB 10 Dev Alpha it works fine.

 

Error is annoying but not a show stopper.

 

Where can I report the bug?

 

Best regards, SOAman

 

            attachedObjects: 
                [
                    GroupDataModel
                    {
                        id: ptGroupDataModel
                        objectName: "ptGroupDataModel"
                        sortingKeys: ["displayName"]
                    }
                ]

 

 

--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.
BlackBerry Development Advisor (Retired)
mgoulet
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha

Re: Momentics bug in Beta 2: objectName not recognized in GroupDataModel

That is odd - objectName is clearly a property of QObject, which is the parent class of GroupDataModel;

 

I would recomment logging an issue for this here:

https://www.blackberry.com/jira/secure/Dashboard.jspa

 

Cheers,

 

Martin

 

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

Re: Momentics bug in Beta 2: objectName not recognized in GroupDataModel

Impossible. It allows to choose only production apps and not the beta ones :-(
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Momentics bug in Beta 2: objectName not recognized in GroupDataModel

Do you see BlackBerry 10 (BB10) in the list?

 

Stuart

Please use plain text.
BlackBerry Development Advisor (Retired)
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Momentics bug in Beta 2: objectName not recognized in GroupDataModel

Can you give us enough code to reproduce the issue?  What is the error message?

 

Stuart

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

Re: Momentics bug in Beta 2: objectName not recognized in GroupDataModel

Wrong selection on first screen :-(

I am submitting the bug right now.
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.
Developer
soaman
Posts: 848
Registered: ‎03-03-2011
My Device: Z10

Re: Momentics bug in Beta 2: objectName not recognized in GroupDataModel

error.png

--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.
Developer
soaman
Posts: 848
Registered: ‎03-03-2011
My Device: Z10

Re: Momentics bug in Beta 2: objectName not recognized in GroupDataModel

import bb.cascades 1.0

Page 
{
    id: ptPage
    objectName: "PTPage"

	content:
    	Container 
	    {       
	        id: ptContainer
	        
            attachedObjects: 
                [
                    GroupDataModel
                    {
                        id: ptGroupDataModel
                        sortingKeys: ["applicationName",  "displayName"]                
                        objectName: "ptGroupDataModel"
                        grouping: ItemGrouping.ByFullValue
                    }
                ]
                 
	        ListView 
	        {
	            id: ptListView
	            dataModel: ptGroupDataModel
	            selectionMode: SelectionMode.Single
	            
	            
	            listItemComponents:
	                [
	                    ListItemComponent
	                    {
	                        type: "header"
	                        HeaderListItem
	                        {	                            
                                title: ListItemData
 	                        }
	                    },
	                    ListItemComponent
	                    {
	                        type: "item"
	                        StandardListItem
	                        {	                            
                                title: ListItemData.displayName
                                status: ListItemData.state.substring(ListItemData.state.indexOf("_") + 1)
                                description: ListItemData.description
                                imageSource: "img/pt/STATE_STARTED.png"                              
	                        }
	                    }
	                ]
	        }  
	    }
}

 

--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Please use plain text.