How to create a push segue from an existing tableview (not the initial view controller) to a TabBarController? - segue

I have 4 tables organized hierarchically, from least detailed to most detailed: Table1 (higher level than 2) > Table2 (higher level than 3) > Table3 (higher level than 4) > Table4. Table1-3 are fully static. They do not change in components at all, so they were all hard coded through the storyboard. Now at table 4, the components may change, so I have managed through research and outside help to create and populate it programmatically.
Table4 has 2 sections with different number of rows. Say 2 rows in section 1 and 3 rows in 2. Now what I want to do is everytime the user click one of the cells in any rows, irrespective of sections, he/she is taken to the tabbarcontroller I currently designed on the storyboard. This tab bar has 2 tabs. The 1st tab when pushed should show general information about the component at the row just clicked on. The 2nd should show a bunch of statistics on that same component which row was clicked.
That is it. That is what I the end product should be able to do. I am currently stuck at how to create the segue from this table that is created programmatically (table4). In sort, this segue should be dynamic in the sense that irrespective of the row clicked, you are always taken to the same view (the tab bar).
I am happy to to work through this on my own if I can find some a good book or source on the internet that shows how to set this up from where I am today in the project. But I have searched and have failed to come up with anything.

Related

Keeping tables together on one page - Report Builder

stumped on this one. I know there has to be a logical reason or solution to this but it has left me scratching my head. I am using Report Builder 3.0 to build a report that will display information for a particular individual on each page. Meaning new page for each individual.
Anyway, I currently have 4 small tables across the top of the page until I reach the right margin. For an additional table, I place it underneath the first table on the left in the top row. Even though there is enough room vertically to contain the information from the tables in the first row and the table in the second row, it wont display that second row table until it returns a page for each individual, then it will put that data on a page of its own.
Example, if I have say 20 individuals returned, it will show the top row of tables on the first 20 pages, then starting on page 21 it will finally show the data from the table in the second row and so on.
I hope this makes sense! Any feedback or thoughts would be greatly appreciated!
Table 1
Table 2
Table 3
Table 4
First
First
First
First
Second
Second
Second
Second
Table 5
First
Second
This is the layout as it looks like in design mode. When I render the report, tables 1-4 will display on first page, but table 5 will not display on that page, but a second page. As far as I have been able to tell, all table data should fall within the body of the page when taking page size and margins into account.
EDIT: Each of these tables do have a Group based on the individuals name column. Also, if I were to slightly overlap the top of table 5 with the bottom of table 1, it will display the tables on the same page.

When adding a new row to an Antd table, make it the first row visible?

Just started using Ant, have been loving it so far. I have a working ant table and add row button, however when a row is added, it is added at the end of all rows since its ID is incremented from the last ID in the table. I am working with less than a 1,000 items.
Is there common logic or a property I can change to make adding a new row visible at the beginning by default? This way a user can visibly confirm that their actions succeeded.
Some ideas around this are:
Add a date created field and have it hidden by default, but sort by newest date
Figure out a way to make the ID column invisible and display the largest ID first..this not scalable when using GUIDs which I would prefer :(
Temporarily render the newly added row data in a special container in the table? No idea on how to go about trying this.

How to manipulate dataset to get information from different tables?

Currently my data is set up as a union of two tables. The red rows are Table 1 and the blue rows are Table 2. I am doing my union in SQL Server and am connecting this into Tableau. I am using Excel right now to depict what I am seeing (left pivot table) more easily and what I want to see (right made-up pivot table).
The current pivot table is showing when filtered on a particular Plant/Project/Product, those are the components that go into the Product and those are the months in which the Products are due to the customer. The values in the bottom row are the quantity of the Product that is due to the customer. For example- in June, a quantity of 1 of the 150-100020-1000 product is due to the customer. The quantities are showing up under a null component because that field isn’t in Table 2, as you can see in the blue rows.
I want those bottom row values to appear under literally any one of those components that are listed. In this case, it’s only showing one set of Plant/Project/Product, but I would want the formula/code to pick up on that too when it’s evaluating what to output. In the example on the right side made-up pivot table, I have the quantities showing up under the component #100, but it can be under any of them as long as the Plant/Project/Product is equal in both tables. I also don't want the blank/null dates from Table 1 to show up, but they are tied to the components so I can't filter them out easily.
I've tried several types of joins and temporarily tables to get this working and keep coming up blank. How can I set up my dataset to get the view I want to see in Tableau?
Dataset and Current View + View I Want
Your problem is you don't have a Component against a Qty. Hence for what you want somehow you need to create a Component. Perhaps this is possible using a FIXED calc, which would create this field across all records. If the value of Component doesn't matter create this calculation:
{MIN([Component])}
This should put 100 against each record.
If you also need to keep the existing Component value, when it exists, try a formula such as:
IFNULL([Component],{MIN([Component])})
Note I haven't tested any of this.

How to handle Multiple check-boxes in Reactjs?

"I am really stuck in this problem for past 1 week. Actually I am getting an array of strings from the API that contains the ID of employees. Now I am showing it in a table and it contains check-boxes before them. Now when I sort the Admin ID column, the Admins get sorted out but the check-boxes are left in there original position."
So I want a solution where both the Admin ID and check-boxes move simultaneously with each other on sorting that column.
I will attach some screenshots of the table so that it will be easy to understand the problem"

Adding an order for a customer selected from a list view in Access

I followed this great guide to help me add a search feature to my Access database:
http://www.techrepublic.com/blog/howdoi/how-do-i-populate-an-access-list-control-with-the-results-of-a-dynamic-search/108
At the end it says:
"If you’re building a quote or order, use the list control’s Click or Double Click event to copy record(s) to a temporary table. It’s easy to implement using a fixed query for each search task."
I have managed to display all search results in a list box and I would like to be able to click on a customer to highlight them, and then press a button to add an order to the selected customer. I've been thinking how I could do it and I really can't get my head around it.
Any help would be appreciated.
It depends on how you build your database. My guess is that one easy way would be:
Create a table with customers;
Create an "Order" table with orders where you link the customers through a foreign key
You load the customers in a listbox. While making the name visible, it is actually the ID that you retrieve when clicking the listbox. You can configure this via the wizard in the design view of a table. You can make other forms appear by events on the listbox (eg. on click).
If you managed to retrieve the ID of the customer, and you have the data related to the order (data that can easily be extracted from form objects and loaded into variables ) what you need is an insert statement and insert the values in the "Order" tabel (including the customer ID, which is linked through the foreign key).
This way all order records are linked to the customer and can be queried later.
Due to my limited knowledge on your other requests, I cannot help you any further on the rest of your database design.
I hope that my reply could help you and that I understood your question correctly.
You can access info from a listbox via:
List.Value
Or if it is not the first column then:
List.Column(0,0)
0 being the column and row references.
You may also consider using a listview over a listbox and then you can access the relevant parts of a listview control with the following code:
ListView.SelectedItem
Or if it is not the first column then:
ListView.SelectedItem.SubItems(3)
3 being the column reference

Resources