Discussion Forums  >  Uncategorized

Replies: 2    Views: 362

Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
08/30/11 05:29 AM (14 years ago)

Randomization possible in BuzzTouch?

I'm guessing it would require a lot of modification within xCode, but I figured I'd ask anyhow. I was wondering if it was possible to randomize the content and/or order of a list view. Example: If I had a bank of 50 items, and I wanted only a random 15 to show when I entered the list menu. I guess I could probably use a HTML page and let java or something do this. But it always looks prettier when I use your built-in tools :) Thanks for any help. Starting project #2 today!
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
08/30/11 08:19 PM (14 years ago)
Yeah, you're on the right track, and you can do something like this. If you look at the Documentation you will see that every screen is created with JSON data and expects it in a certain format and has several mandatory values. It is different from screen to screen, but the Documentation covers this. So, if you wanted, say, a list menu of 15 items you would: Set the menu list to pull it's data from a URL. This is entered in the Advanced Screen Properties for that screen. The Data URL would look like- http://www.mysite.com/files/myphpscript.php That .php file would digs through a database of all of your menu list options, and randomly generates a bunch of JSON data for 15 menu list items. The .php file returns that data to the Menu list and the screen is created. The screen created will be identical to a 'built in' menu list. This concept will work with any screen type you wish to make.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
08/30/11 10:06 PM (14 years ago)
Wow, that might just do the trick then. Thanks. Now I just need to find someone more skilled in php than me, lol.
 

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.