It is possible to disable the sortable feature for DB tables?
Related
I'm trying to add a filter to a dashboard. Dash only has one pivot table, which is generated by multiple joins. One of those joins is with a model I created. When I put the filter to filter a column of this model, the filter works, that is, I can filter, but I cannot see the available options.
The specific column is set to 'category'. The specific table was created as a question without using SQL. The model used in join was created directly in SQL.
I've tried clearing the cache, logging out of the account and logging in again, but the filter still doesn't populate the model's options. What do I do?
I'm seeding a CSV file with about 2.000.000 entries into a PostgreSQL database, and some fields need to be dispatched in specific tables with relationship.
For the relationship, I'm using this in my migration:
$table->foreignId('foo_id')->constrained('foos');
When trying to improve the bad seeding performances with PostgreSQL, I realised there's was no index on the profession_id column, so I added one like this:
$table->foreignId('foo_id')->constrained('foos')->index();
But I don't see it in the indexes list of my main table, why ? Also, I don't get any error at migration refresh.
I don't have this problem in mysql and indexes are added but not in PostgresSql
Is it possible to add an index to a foreign key ? If yes, how ?
In migration :
$table->foreignId('foo_id')->constrained('foos')->index();
I'm using Backpack 3.5 for laravel 5.7, I have two tables related by 1-n. I need to show rows from first table sorted by column in related table, how can this be done?
For sorting in the first table there is a method
$this->crud->orderBy('column', 'order'); but it doesn't work for other related columns
I am using typed datasets to retrieve and manipulate data. To generate a typed dataset I use the built-in dataset designer and drag-drop tables from data sources. In addition, mostly I need to add custom columns to my data tables.
The problem is that when I make a change in the underlying database schema I simply delete and regenerate the data table and loose all the custom columns that I added earlier. So everytime I regenerate a data table I had to add these custom columns again and again.
So my question is that if there is an easy way to mantain or keep track of these custom columns?
Don't delete the DataTable and regenerate it. Instead right-click, choose configure and adjust the query to add/remove your new columns. Then click finish and the table will be updated in the DataSet but without deleting your customisations.
Can I create a form in APEX which creates/updates records in multiple tables? For example two tables with a one-to-one relationship.
If you are using Automated Row Fetch mechanism, you can use two different ARF for two tables. If you want to have more control, you can define your INSERT/UPDATE statements yourself usign Page Processes.
A simple way would be to create a view that returns the joined tables and base the Apex form on that. You may need to add INSTEAD OF triggers to the view to be able to insert and update successfully.