Multiple copies of widget in builder

3103
15
Jump to solution
01-13-2016 01:35 PM
RichardMacNeill1
New Contributor II


I am making a start on widget development, and have developed and deployed a widget after several false starts. After a false start attempting to deploy a faulty widget, I removed the widget folder from the widgets parent folder, corrected the problem, and then replaced it. I now have four copies of this widget in the builder. Two have an icon (one is a copy) and the other two do not respond and have no icon.

How do I clean this up by removing unnecessary or duplicate widgets?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Richard,

   Go into the [install dir]\server\db folder and delete the repoitems file. The file will be automatically re-created and the errant widgets should not appear any more.

View solution in original post

15 Replies
RobertScheitlin__GISP
MVP Emeritus

Richard,

   Go into the [install dir]\server\db folder and delete the repoitems file. The file will be automatically re-created and the errant widgets should not appear any more.

RichardMacNeill1
New Contributor II

Thanks Robert.

I've found the file alongside a newly created apps file. At what point does is the file recreated? Do I need to restart anything?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Richard,

   It will be re-created once you restart WAB (meaning close out the cmd window and re-launch the bat file).

0 Kudos
RichardMacNeill1
New Contributor II

UNCLASSIFIED

Thanks yet again Robert.

The file has reappeared when I redeployed the Widget. However, I am not seeing this deployed widget among the available widgets in my app.

Richard MacNeill | SENIOR GEOSPATIAL SPECIALIST

National Native Title Tribunal | Geospatial Services

Level 10, Commonwealth Law Courts Building, 305 William Street, Melbourne, Victoria 3000

Telephone (03) 9920 3001 | Facsimile (03) 9606 0680 | Email richard.macneill@nntt.gov.au<mailto:richard.macneill@nntt.gov.au>

Freecall 1800 640 501 | www.nntt.gov.au<http://www.nntt.gov.au/>

Shared country, shared future.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Richard,

   If you are saying that your custom widget is not appearing in the list of available widget once you have deleted the repoitems file then you have an issue in your manifest.json or widget.js that is preventing it from being added. you can check the appbuilder.log in the [install dir]\server\logs folder and see if there is a clue there.

0 Kudos
RichardMacNeill1
New Contributor II

UNCLASSIFIED

Thanks Robert. I'll persevere.

Richard

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Richard,

   If you like I can take a look. All you need to do is zip-up the whole widget folder and attach to a thread using the advanced editor and attach link.

0 Kudos
RichardMacNeill1
New Contributor II

UNCLASSIFIED

Thanks Robert

I have taken the liberty of attaching the zipped file folder.

I'm a newby at this (at least the widget side of things), so the attached is the most simple of widgets basically saying hello. It is identical to that which was visible before the file removal (which I have a backup of).

I did see that there is another file is the server/db folder - apps - that seems also to be recreated. Should I delete this also?

Richard

0 Kudos
RichardMacNeill1
New Contributor II

UNCLASSIFIED

Apologies Robert. All is good and all themes and widgets are visible. The problem was on our side. Your advice has been extremely useful.

Richard MacNeill | SENIOR GEOSPATIAL SPECIALIST

Geospatial Services | Melbourne

Telephone: (03) 9920 3001

0 Kudos