Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 52

Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
07/22/13 02:31 PM (12 years ago)

Trying to duplicate a buttons menu plugin

I just started trying to create duplicate of buttons menu to use two different kind of buttons menu as i would be modify their codes according to the need. The issue i am facing is that in json data the childitems is missing for the screen though they are bring shown in the plugin page. I have already changed hasChildItems to Yes and category to Menu but still no childitems in json data of the screen.
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
07/22/13 02:35 PM (12 years ago)
The childitem are being shown in the individual data url of the screen. ie. The url found under data url after clicking on connect to control panel. Confused about why it is not showing in main app data..
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/22/13 02:43 PM (12 years ago)
Is your Plugin 'unique identifier' different? They all have to be different. Otherwise, it may think you're talking about 'the other' plugin. Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/22/13 04:07 PM (12 years ago)
Not sure I fully understand, but it sounds like you're using a dataURL for this screen? (i.e., you're loading the childItems from an external source rather than the control panel). Yes? If so, it could be that there's something not formatted right with your external file. Look at the XCode debugger to see what it says - it should give you an indication as to what's going on. Also make sure your external file is checked through a JSON Validator. I prefer http://jsonformatter.curiousconcept.com/
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
07/22/13 08:56 PM (12 years ago)
@SmugWimp the unique identifier in config.txt is set to a different value. @chris1 What i mean is that the child items are showing in the screen's individual data url generated by default by buzztouch which looks like http://*********/api/app/?command=getChildItems&appGuid=EA9G22B1FD2396C564F1C914F&screenId=87FF95BA069DDDB44245DD9&apiKey=N9FD720A466FAF5DBCC2C4D&apiSecret=F55345569E0BBFEE2C35362 but the childitems for the screen are not being shown under the json data link.
 
Rishav
Code is Art
Profile
Posts: 153
Reg: Jan 26, 2012
Dubai
8,780
like
07/22/13 10:16 PM (12 years ago)
issue fixed automatically when a added another screen of that plugin...don't know how..:)
 

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.