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
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: unable to get asset

Without changing or creating any other code at that line rename AccountSummary to BobObject.

 

You will see you get exactly the same error, as BobObject does not exist in your project, now work out why it is happening for AccountSummary!


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: unable to get asset

most ridiculous ever...

 

here is what I did

 

I just renamed page Summary.qml to Krikor.qml

and instead of Summary{}, I wrote Krikor{}

and guess what I get error krikor is not a type

 

but if i go back calling it summary...and open summary{} i dont get error..

Developer
Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: unable to get asset

there is a file .assets.index

 

 

1
21
employees.json
GuestMenu.qml
images/ic_display.png
images/ic_help.png
images/ic_id.png
images/ic_launcher.png
images/ic_logo_black.png
images/ic_marker.png
images/ic_phone.png
images/ic_user.png
images/Thumbs.db
Login.qml
main.qml
NetworkActivity.qml
ServerSelection.qml
Splash.qml
Style.qml
Summary.qml
Tabs.qml
TopBar.qml
TopHeader.qml

 

 

now if i change here Summary.qml to AccountSummary.qml gues what..account summary starts orking..and summary doesnt work?

 

the heck is this file and how its generated? and why not regenerating?

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: unable to get asset

I've spent some time trying to recreate your problem and I can't, it all works fine for me.

 

If you are sure that my suggestions aren't the problem and everything is in the same folder then either something is corrupted in your project or something that I haven't seen yet is causing the problem.

 

Are you on the latest Momentics and what OS are you building to?

 

I suggest reporting this via the Help menu option.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: unable to get asset

hohohohoh

i f ucking deleted stupid .assets.index file under my assetts folder..and seems worked.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: unable to get asset

Yes as suspected it was corrupted and I was just about to suggest a delete followed by a clean rebuild.

Glad we got there in the end.

 


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: unable to get asset

i was working 10.2 and swithced to 10.0

the problem is in my .assetts.index file

which i dont know what it was.. once i deleted tha folder..
my qml is being seen..and even the image .amd is working now.

sorry to have bothered u...this took hours and hours from me. trying to fix sthg very abnormal.
Developer
Posts: 813
Registered: ‎05-29-2012
My Device: see later
My Carrier: see later

Re: unable to get asset

when i recreated the project... coppied my entire assetts folder...
so .assetts.index went with it.
hence why i was lost too.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: unable to get asset

That's okay, this is a known problem, it just took too long to get to this being your problem.


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.