Drag & drop multiple items of M2M field in Directus - directus

I have a data model in Directus with Many to Many field called Games.
I know that it is possible to order elements of the M2M field by using drag & drop but I'd like to know if it is possible to drag & drop multiple items at once?
I've tried to look for it in docs but haven't found anything.

Related

How to update records form a from whose data source is set to view in Oracle Apex?

My oracle apex application has an events page that has a v_event view as its data source. This view contains all the column that an event table contains plus it also has club_name column that holds the name of the organizing club. The report displays correctly as I want it for now.
When I try to update a record I get an error saying 'data manipulation operation not legal on this view'
This must be because the data source for the page is a view. How can I solve this problem ?
Also when I try to create new events I get an error:
First I thought that the '... non key-preserved table' occurred because the relationship between event and club_event(junction table between club and event) table was one to many and same event row was repeating multiple times if there were multiple clubs organizing it. So to solve this issue I "LISTAGG" clause to combine multiple club names for a single event in a single row using comma separation as you can see in the second row of the first image above. But it didn't solve the issue. What am I doing wrong?
By the way the entire page is a "report with form" that oracle apex provides. So I am able solve this problem by create a new page and setting its data source to event table. But I just wanted to learn if there is a way that I can create a new event through the view table.
Also one final question. How can I map the values in 'From College' and 'From Community' column in the first image to be "yes" if the value in the table is 1 and "no" is the value is 0 ?
Thank you.
As far as I remember, there are several tables involved here. Even if it weren't for Apex, the answer is to create an instead of trigger which fires when view is updated, and then trigger body decides which tables are updated and how.
In Apex, you could - additionally - try to write your own processes that handle inserts, updates and deletes. In other words, don't use automatic row processing as it won't work, but create your processes.
As of mapping 1/0 to "yes/no":
in (interactive) report, use CASE (or DECODE)
in form, either create radio button or select list item
The view needs to have a 1:1 mapping to the table and the column that has the "LISTAGG" should have the attribute "Source > Query Only" set to "On".

How to add button for each row in table?

Labview,
i would like to add button for each row in table and this button depends on number of rows of data in the table,Button will add programatically in each row.
Reference Image: Cross button
When do you say "Table", Are you referring to "Multi-Column ListBox" or "Table Control" or Individual 1D arrays that are arranged like a Table? There are many ways you can do this!
An array of Clusters as Dave_St suggested.
Using a Table control & Boolean Array.
Using a Table control & Array of Picture Ring.
Using individual 1D Arrays Arranged like a Table.
I'd recommend the first method. Since it makes data handling pretty easy!
But If you're going to go with any other method! You can make your boolean array background as white/transparent and place on top of a Table Column!
Example:
In the above image, I used a Table Control and an array of Picture ring. But you need to synchronize both your array's scrolling positions! Only then the user shall be able to see the correct status for the row.
It seems like you're trying to imitate a webpage form! If you want to dynamically add controls/indicators to your VI check out VI Scripting! But I'm not sure whether VI Scripting will satisfy your requirement.
There are a couple of other ways to get this behavior. However, the array of clusters is probably the easiest. Two other ways to do it are:
Use the glyph (symbol) functionality of a table or multicolumn listbox
Create a data grid or use the DataGrid QControl.
P.S. You currently cannot programmatically add controls/indicators during run time. So VI Scripting won't help you there.

How to stay in view when searching by filter

I've added Owner to the columns shown in the standard Active Accounts view, as well as some other fields. This turned out as supposed to. However, I've noticed that when I enter something in the search box on the right, the filtering gets me a correct list of accounts but the columns are not the ones that I've set in the view Active Accounts.
Where do I set it to be like that? Preferably so that CRM retains the subset of columns and only filter down the number of records presented. If it's not possible, how do I set the columns presented in the Search Results view (independently of from which view the search's been performed)?
In solution, on where entity views are listed, there is 'quick find' type view. Columns defined in tha view are displayed when search is executed.
You can also define additional search criteria for search, when you modify filter in that view.

Access multi selection list box as a criteria to INSERT, UPDATE OR DELETE records from a table

For a database with this schema (a product may belong to one or more categories):
Item_category(product, category_name)
Category(category_name)
Will it be possible for me to build a multi-selection list box (List box data source from the Category relation) using an Access form and then highlighting the categories that the product belongs to (by querying the Item_category table), and at the same time letting users select new categories or deselect highlighted categories so that when an "Update" button is pressed, VBA code will automatically determine either INSERT, UPDATE or DELETE queries are needed to update the Item_category table?
How can I do that? Thanks!
I've generally done this type of interface using a form which looks very much like the "Which fields do you want on your form?" in the Form Wizard. Where you have the Table/Query list of Available Fields in the table in the listbox on the left hand side and the Selected Fields in the listbox on the right hand side. Along with the move left and right command buttons in the middle. The users quite like this interface.
Added: Note that the left hand listbox contains all the category records which aren't present in the products category table. So a category would be present in one or the other listbox but never both.
You very likely will want to use the Multi Select property of the listbox. If you hit the help on that field in the property sheet it should lead you to a page which mentions the ItemsSelected collection. Visit that page for sample code on how to read all the items selected by the user. Or visit http://msdn.microsoft.com/en-us/library/aa196172%28v=office.11%29.aspx.

In SharePoint 2010, datasheet view for a list is not allowing me to update items

In SharePoint 2010, datasheet view for a list is not allowing me to update items.
Its giving an error saying, "all the required fields are not included in the view, Please include all the required fields in the view before updating items"
My List has two content types (A & B) associated to it.
I have included all the required columns from two content types (A & B). Still not able to use datasheet view for updating items.
There are few things to consider,
1) Make all the columns of two content types (A & B) optional.
Do it for List content type and Site content type.
2) You have to make all the list columns optional. For doing this, you have to first uncheck "Allow management of content types" from advanced settings of a list.
After doing this, you will be shownn all list columns with "Required" column as well. Now you can go to list column settings by selecting a list column and make it optional.
If you do not uncheck "Allow management of content types", you can't know whether list column is required or optional and you don't have a way to make it optional.Bookmark
Please check the all views of the list. There will be one columns which is require but you did not include. Check the view settings.