Select to view content in your preferred language

Change default ID of app

1350
5
Jump to solution
04-10-2022 05:14 AM
ChaimSchwartzIroads
Regular Contributor

Hi,

Is there any way for me to control the default ID assigned to apps that I create in Web Appbuilder? I mean the ID that is assigned to the folder name, and the app. By default, there is a sequential numbering system. However we are now in the process of migrating several apps through 3 development environments, and I need to be able to change app IDs.

Any thoughts?

Thank you

Chaim

0 Kudos
1 Solution

Accepted Solutions
BrianLeroux
Frequent Contributor

I struggled with this with the early versions on the WABD as we had 3 environments as well. I eventually gave up and now just have a spreadsheet that tracks the app and which environments each is for. 

View solution in original post

5 Replies
AndrewMurphy3
Occasional Contributor

Easiest way I can think of is to copy the contents of for instance app id 5 and overwrite the contents of the folder app id 3 then rename the app in wab developer edition. App folders are in the wab develop install folder structure. Not sure which folder as not at my pc right now but you’ll find it. I use this method sometimes to force an app in when wab dev edition tells me my upload is invalid

0 Kudos
ChaimSchwartzIroads
Regular Contributor

Hi @AndrewMurphy3  thank you for your response. The problem is that in my case I already deleted app #1 - so that folder is already gone. I now want to create a new app as app # 1, but manually creating the folder (and then deploying the full content of an app into it) doesn't seem to work - the app doesn't load. 

0 Kudos
AndrewMurphy3
Occasional Contributor

I believe there is an app register xml / json somewhere in wab as well - name id, owner etc all listed. Highly recommend testing before doing it for real but I’ve had success using it to change an owner, you may be able to replicate your app folder with the correct id and add an entry to that xml / json. Again not an expert so health warning / testing on a replica advised and make sure wab startup batch / service isnt running. Not at pc but can find name of the file tomorrow or you can do a bit of hoking yourself

0 Kudos
BrianLeroux
Frequent Contributor

I struggled with this with the early versions on the WABD as we had 3 environments as well. I eventually gave up and now just have a spreadsheet that tracks the app and which environments each is for. 

ChaimSchwartzIroads
Regular Contributor

This is exactly the situation I am in right now! I spent several hours yesterday trying to "hack" the db file within the server folder. It seemed like there was a clear logic to follow (each app creates the same few lines with app ids) but it just wouldn't work. I'm going to accept your answer as the solution unless someone finds a way to actually make this work. Thanks!

0 Kudos