Jump to content
Ketarin forum

Unhook your app from the original Online template!


Tomorrow
 Share

Recommended Posts

Consider this:

 

You found an app from online database.You added it and customized it, but one day you are notified that an update is available and this update (if applied) revokes all your changes to this app.Lot of work wasted and you have to use a database backup.

 

This is a tutorial on how to unhook your app from it´s "parent".Meaning you can share it with others (Provided it has unique name) and you won´t have any more updates to this app from the database.

 

1.First we need to identify all apps that cannot be shared.If it can´t be shared it´s a good indication that it is not an "original" .Open Ketarin: File - Settings - Add (new custom column).Give it any name you like and set value as:

{property:CanBeShared}

Now after enabling this column you will see the values as False (app cannot be shared) or True (can be shared/original).

 

2.Now that we have indentified the apps we need to export them for further modification.

Sort the apps with this column and use CTRL+SHIFT+UP/DOWN ARROW to select the apps with the "False" value.

Select File - Export Selected...

 

3.Now you need to modify the exported .xml template.I suggest a capable text editor such as Notepad++ .Since i used N++ i will use this as an example.Open the XML and press CTRL+F.Select the Replace tab and enter the following value to the upper box:

<CanBeShared>false</CanBeShared>

And the following to the lower box:

<CanBeShared>true</CanBeShared>

...And click Replace All

 

4.You are now halfway there.There is further modification required tho.

Switch back to Find tab and enter the following to the box:

Guid="

Click Find Next and now you can close the find window and use F3 key to jump to every following occurance.

Open Online GUID Generator in your browser.

Generate a new GUID for every occurance in the file and do copy-paste.

 

5.Once done save the .xml and import it back to Ketarin.beware that for a short time you will have duplicate app(s)!

Sort the apps by name, select and delete the duplicates that have the version number(these are the old ones.New ones are without version number until you check for updates to them atleast once.)

 

Congrats.If you did everything right your apps are now unhooked :)

 

EDIT1:

You can also replace

<ShareApplication>false</ShareApplication>

in step 3 if you want to share the modifyed app(s) to online database.Just make sure the App name(s) is unique!

 

Error notices,suggestions and constructive criticism to this tutorial are welcome ofcourse :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.