Discussion Forums  >  iOS / Android Beta Testers

Replies: 14    Views: 155

RogueWave
Aspiring developer
Profile
Posts: 337
Reg: Jan 23, 2013
Park City
5,120
06/30/13 01:37 PM (10 years ago)

Buttons No Longer Work

Buzztouch/TAC APP BUILDER IOS/SDK Version? (Can't Find) XCODE Version 4.6.3. OS X 10.8.4. So, I'm running the new app on my device and I don't like the way the tabbed layout looks, so I go back to the App builder and delete all the tab names and add/create a menu button, go back to layouts and selected non tabbed layout and linked it to a buttons "welcome" screen. I then proceed to create buttons and selected their appropriate assignments. (Which were loading the created screens fine in the "tabbed" layout before I made the changes.) After making these changes I then copied and pasted new/updated JSON code into BT_Config text, cleaned, run on my device, everything loads nicely but now the buttons I created won't tap to their screen assignments. Tried it on the sim, same thing. Debugger report indicates some errors: initViewControllerForScreen: ERROR finding screen with itemId: (null) Running Scringo 2.2.2. Again, all was well until I made the above changes.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/30/13 03:46 PM (10 years ago)
you might want to delete the app from the device, just in case there is any old code hanging out there too... when I do a 'clean' I also 'clean' my device by deleting the app... It will be reloaded the next time it's run... Cheers! -- Smug
 
RogueWave
Aspiring developer
Profile
Posts: 337
Reg: Jan 23, 2013
Park City
5,120
like
06/30/13 05:51 PM (10 years ago)
Yeah, have been doing that, Smug. Still, the buttons don't work. Thank you, Rogue
 
RogueWave
Aspiring developer
Profile
Posts: 337
Reg: Jan 23, 2013
Park City
5,120
like
06/30/13 06:04 PM (10 years ago)
Here are the errors in the Debugger tracker I keep getting. 2013-06-30 18:59:35.438 XOXOXOXOX[177:907] BT_viewControllerManager: initViewControllerForScreen: ERROR finding screen with itemId: (null) 2013-06-30 18:59:35.439 OXOXOXOXO[177:907] BT_viewControllerManager: initViewControllerForScreen: ERROR, could not initialize view controller for screen with itemId: (null) NOTE: I replaced the App ID with "XOs"
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/30/13 06:11 PM (10 years ago)
Well, lets try and narrow down where the problem lies... Take a look at your BT Control panel for the app, and snoop around your JSON configuration in the control panel, as opposed to the JSON configuration in your app (BT_config\BT_config.txt). Most notably, locate the button menu, and see if the "loadScreenWithItemID" from the menu childItems corresponds to the screens 'itemId' value... Typically the BT_Config.txt file is laid out like... BT_appConfig { BT_items [ (here is a lot of app info...) BT_themes [{ (here is the theme information....) }] BT_Tabs [] <--- empty if you have no tabs... BT_Screens [ (If you have no tabs, the first screen is the 'home' screen. usually a menu with childItems) Snoop around and see if there is anything inconsistent. You can match the 'loadScreenWithItemId' to the actual screen itemId... if it's valid. If it's in the control panel, but missing in your config, there must be some kind of 'out of sync' situation... Either copy/paste the BT Control Panel JSON config into your app, or refresh the app data in your simulator/device. Also, ensure there are no problems with a 'Live' or 'Design' mode... if you're testing in 'Live' mode and you didn't 'publish', then the new config will not propagate to the app... Cheers! -- Smug
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/30/13 06:15 PM (10 years ago)
Ok, I posted the above while you were posting the error message. Screen with itemId 'null' means it doesn't know which screen to display. Have your button menu items had screens selected for them? there should be an itemId for every BT item in the config file... Cheers! -- Smug
 
RogueWave
Aspiring developer
Profile
Posts: 337
Reg: Jan 23, 2013
Park City
5,120
like
06/30/13 06:18 PM (10 years ago)
Yeah, I have a sneaking suspicion it's to do with the JSON in the control panel. I'm still in "design", for sure though. Now, If only I had a brain left to trouble shoot this tonight. Back at it tomorrow, thank you Smug. I'll "snoop" around as you say and get back to ya! Rogue
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/30/13 06:23 PM (10 years ago)
No problem. Let us know how it goes when you get back on it :) Cheers! -- Smug
 
RogueWave
Aspiring developer
Profile
Posts: 337
Reg: Jan 23, 2013
Park City
5,120
like
06/30/13 06:26 PM (10 years ago)
Yes, all I did was delete the "tabbed layout" and created a "non-tabbed" layout and created a "Welcome" page with menu buttons. From there, I created buttons and assigned them to their correlating screens, "selected" as you say. Once I did this, I went ahead and copied the JSON data and pasted it into BT_Config txt after deleting the former code. Then I did a clean, build, run....and again, I get the same error.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
06/30/13 07:09 PM (10 years ago)
Can you show me the JSON file? Just the part before the tabs, and all the screens. Nothing with your AppId or API key stuff... we don't need to see that (and you probably don't want people seeing that either...) Cheers! -- Smug
 
mixology
I hate code!
Profile
Posts: 24
Reg: Oct 01, 2011
Merelbeke
240
like
10/09/13 02:34 AM (10 years ago)
Hi there ! I'm having the same problem overhere :( after I made changes , the buttons are sleeping ... . I deleted the app, recreated, deleted and now I made a test to see what's wrong . Who can help ? thanks, Yuri the JSON : "name":"ACOD SPOOR OVL APP", "version":"1.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[ {"itemId":"B8DB588DA742ED26D0ECBC0", "itemType":"BT_theme", "itemNickname":"Default Theme", "splashScreenItemId":"9408FDD463C5F0E292416F0", "navBarStyle":"solid", "statusBarStyle":"default", "backgroundColor":"#66FF00"} ], "BT_tabs":[ ], "BT_screens":[ {"itemId":"BEF07CE0CEA457509EA0E7E", "itemType":"Buzz_carousel", "itemNickname":"t2", "navBarTitleText":"t2", "childItems":[ {"itemId":"65F46260B54F402413CEBEE", "itemType":"AK_carouselItem", "loadScreenWithItemId":"5F494CD04D51244E697A108", "titleText":"ccc", "itemImageFileName":"startbutton.png"}, {"itemId":"10126A194FA11DC3BC900BE", "itemType":"AK_carouselItem", "loadScreenWithItemId":"3AD66D68A3F78212A3A6382", "titleText":"dddd", "itemImageFileName":"startbutton.png"}, {"itemId":"00F7B1E7E4C2CD92ABDB368", "itemType":"AK_carouselItem", "loadScreenWithItemId":"5F494CD04D51244E697A108", "titleText":"eee", "itemImageFileName":"startbutton.png"} ]}, {"itemId":"A37099BE92E313C2BCD39DC", "itemType":"BT_screen_pdfDoc", "itemNickname":"m1", "navBarTitleText":"m1"}, {"itemId":"8F28EB4CF57B8CB231AD9FC", "itemType":"BT_screen_menuButtons", "itemNickname":"testscherm", "navBarTitleText":"testscherm", "buttonLayoutStyle":"grid", "buttonLabelLayoutStyle":"middle", "buttonBackgroundColor":"#CC0000", "buttonLabelFontColor":"#FFFFFF", "buttonSizeSmallDevice":"150", "buttonLabelFontSizeSmallDevice":"30", "backgroundColor":"#000000", "childItems":[ {"itemId":"5C25E0D41F0B26730B4BAEB", "itemType":"BT_buttonItem", "loadScreenWithItemId":"FD3907AF0A78E6309EE1C53", "titleText":"a"}, {"itemId":"130C69E853321BA1BA55117", "itemType":"BT_buttonItem", "loadScreenWithItemId":"BEF07CE0CEA457509EA0E7E", "titleText":"b"} ]}, {"itemId":"FD3907AF0A78E6309EE1C53", "itemType":"BT_screen_menuListSimple", "itemNickname":"t1", "navBarTitleText":"t1", "childItems":[ {"itemId":"FD5E9EB8D5D576820CE2649", "itemType":"BT_menuItem", "loadScreenWithItemId":"A37099BE92E313C2BCD39DC","titleText":"zzzzz"} ]}, {"itemId":"3AD66D68A3F78212A3A6382", "itemType":"BT_screen_pdfDoc", "itemNickname":"c2", "navBarTitleText":"c2"}, {"itemId":"5F494CD04D51244E697A108", "itemType":"BT_screen_pdfDoc", "itemNickname":"c1", "navBarTitleText":"c1"} ] } ] }}
 
mixology
I hate code!
Profile
Posts: 24
Reg: Oct 01, 2011
Merelbeke
240
like
10/09/13 02:47 AM (10 years ago)
Hi there ! I'm having the same problem overhere :( after I made changes , the buttons are sleeping ... . I deleted the app, recreated, deleted and now I made a test to see what's wrong . Who can help ? thanks, Yuri the JSON : "name":"ACOD SPOOR OVL APP", "version":"1.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[ {"itemId":"B8DB588DA742ED26D0ECBC0", "itemType":"BT_theme", "itemNickname":"Default Theme", "splashScreenItemId":"9408FDD463C5F0E292416F0", "navBarStyle":"solid", "statusBarStyle":"default", "backgroundColor":"#66FF00"} ], "BT_tabs":[ ], "BT_screens":[ {"itemId":"BEF07CE0CEA457509EA0E7E", "itemType":"Buzz_carousel", "itemNickname":"t2", "navBarTitleText":"t2", "childItems":[ {"itemId":"65F46260B54F402413CEBEE", "itemType":"AK_carouselItem", "loadScreenWithItemId":"5F494CD04D51244E697A108", "titleText":"ccc", "itemImageFileName":"startbutton.png"}, {"itemId":"10126A194FA11DC3BC900BE", "itemType":"AK_carouselItem", "loadScreenWithItemId":"3AD66D68A3F78212A3A6382", "titleText":"dddd", "itemImageFileName":"startbutton.png"}, {"itemId":"00F7B1E7E4C2CD92ABDB368", "itemType":"AK_carouselItem", "loadScreenWithItemId":"5F494CD04D51244E697A108", "titleText":"eee", "itemImageFileName":"startbutton.png"} ]}, {"itemId":"A37099BE92E313C2BCD39DC", "itemType":"BT_screen_pdfDoc", "itemNickname":"m1", "navBarTitleText":"m1"}, {"itemId":"8F28EB4CF57B8CB231AD9FC", "itemType":"BT_screen_menuButtons", "itemNickname":"testscherm", "navBarTitleText":"testscherm", "buttonLayoutStyle":"grid", "buttonLabelLayoutStyle":"middle", "buttonBackgroundColor":"#CC0000", "buttonLabelFontColor":"#FFFFFF", "buttonSizeSmallDevice":"150", "buttonLabelFontSizeSmallDevice":"30", "backgroundColor":"#000000", "childItems":[ {"itemId":"5C25E0D41F0B26730B4BAEB", "itemType":"BT_buttonItem", "loadScreenWithItemId":"FD3907AF0A78E6309EE1C53", "titleText":"a"}, {"itemId":"130C69E853321BA1BA55117", "itemType":"BT_buttonItem", "loadScreenWithItemId":"BEF07CE0CEA457509EA0E7E", "titleText":"b"} ]}, {"itemId":"FD3907AF0A78E6309EE1C53", "itemType":"BT_screen_menuListSimple", "itemNickname":"t1", "navBarTitleText":"t1", "childItems":[ {"itemId":"FD5E9EB8D5D576820CE2649", "itemType":"BT_menuItem", "loadScreenWithItemId":"A37099BE92E313C2BCD39DC","titleText":"zzzzz"} ]}, {"itemId":"3AD66D68A3F78212A3A6382", "itemType":"BT_screen_pdfDoc", "itemNickname":"c2", "navBarTitleText":"c2"}, {"itemId":"5F494CD04D51244E697A108", "itemType":"BT_screen_pdfDoc", "itemNickname":"c1", "navBarTitleText":"c1"} ] } ] }}
 
RogueWave
Aspiring developer
Profile
Posts: 337
Reg: Jan 23, 2013
Park City
5,120
like
10/09/13 07:31 AM (10 years ago)
I found out I did not select the plug ins in BT control panel before I compiled to project. Thai is why nothing worked. {embarrassed}
 
mixology
I hate code!
Profile
Posts: 24
Reg: Oct 01, 2011
Merelbeke
240
like
10/09/13 09:27 AM (10 years ago)
created a new app ( same functions but other name ) and now it works well ... . Strange :)
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/09/13 12:55 PM (10 years ago)
As long as it works :) Cheers! -- Smug
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.