Delete tags in custom TinyWebDB - app-inventor

Is it possible to delete tags in a custom TinyWebDB without having to go into the database and manually delete them?
There is no block to do so, and I tried storing the tag as an empty string, but the tag doesn't go away.

Related

Updating fields of a Couchbase document if it exists by Go

I am using gocb library. I want to update specific field of a document.
However if the document does not exist, I don't want to do anything I will just produce an error message.
You can say that first retrieve the full document itself and make update and then insert it.It is possible right. But I want to use a ready for use method for this purpose if there is any. Since I don't want to retrieve the document. I just want to update some fields of it.
Is there a way for this in gocb library?
If you want to update parts of the document, you can look at sub-document operations. It only transmits the accessed sections of the document over the network making it more efficient for small changes.
Example: https://couchbase.live/examples/basic-go-subdoc-mutate
If you want to rewrite the entire document, you are looking for Replace() which replaces an existing document with a new one. It is similar to Upsert() except that it can only replace existing documents & not create new ones.
General Reference:https://docs.couchbase.com/server/current/guides/updating-data.html

How to drop a class (table) in Back4app Dashboard

I'm new to parse and back4app. While I'm trying to delete a class (table) in the dashboard, I can't find any menu item that allows me to do it. Can anybody point me to the right direction?
Also related, is it possible to change a column's name after it is added, and is it possible to bulk update rows for certain fields, all within the dashboard?
Well, actually I just found part of the answer. The "Delete this class" menu item is in the top right Edit menu, as shown in this screenshot:
In order to delete the class, it must be empty, so you firstly need to delete all rows before deleting the class.
It's not possible to edit the column's name from the dashboard, so, what you may do is exporting the data and import your JSON file with the right name.
Another option that is not recommended if you're not sure about it, is updating the column's name through Mongo commands.
You'll need to update it in the collection (the class) and in the SCHEMAS too.
The connection string to help you with the mongo commands is available at Server Settings > Core Settings > Settings > MongoDB Database URI.

Assets with multiple content types duplicating values

When adding additional content type tag on an existing asset it duplicates the values in the fields.
What I am trying to achieve:
There are trainers on NZ site and some of them also goes on AUS site.
So I have created a content type "trainersNZ" which applies to all NZ trainers. Some of them that needs to go on AUS site so I created another content type "trainerAUS" and applied both content types to the same asset but now there is duplication issue.
Screenshot attached below.
https://www.dropbox.com/s/p36ltk4k9ufo8vv/Screen%20Shot%202019-08-05%20at%201.00.14%20PM.png?dl=0
Ideally you would have a content type structure where your fields only appear on one type.
Eg have a content type called "trainer" which has the appropriate fields, and then have marker types for trainerAu and trainerNz. All assets would have the trainer type, and just tag assets onto the appropriate au/nz types as needed.
However, I've pushed an update so if there are duplicate field names the input will only be shown once on the management page, so you might find that you can continue with the current structure.

In VS2013 is there an easy way to update attributes in your model?

I'm using VS2013 in a MVC 5 app. Created EF6 model using the database first approach which yielded the model as expected. Subsequently I will make changes in the database objects (tables, views, stored procs). When I go into the model to update it, the visible model will get updated. Looking at the Model Browser, I have to manually clean up the artifacts that no longer exist. Am I missing something in my procedure?
When you right click and update the model from the database, it will typically add new pieces automatically, but in my experience it doesn't automatically remove pieces that are no longer there, so you'll need to watch for those and delete them manually.
On the plus side, if you had any special customizations around a field (e.g. enum types), and the field gets renamed, this gives you a chance to compare the two configurations and make sure they line up before you delete the old field from your model.

Where to store custom list of values in Magento

I am writing an extension in Magento that will import files. I want to keep a list of these files in the database somewhere so that I know not to process them again.
Is there any built in functionality that I can hijack to keep a list?
If not, how would I go about creating a new table to hold these values?
I was thinking of simply using Mage_Core_Model_Config and storing the values in there, however it probably isn't the best idea.
you can create a datatable that stores them. additionnaly, you will need to create the according model and define them in a config.xml under a ressource tag.
if you just need to store a value, you can do it in the core_config_data.

Resources