UITableViewCells grouped and accordion - core-data

I would like to make something like this using CoreData:
UITableViewCell with accordion
is there anyone who could help me?
Thanks in advance.

To summarize, your question is that you would like to have one row for each date and that additional rows should appear after tapping such a row and there is more than one item for that date. Your fetched results controller now gives you just one row per item, your section header is the month.
As you have month section headers, I suppose you are already using transient properties. Maybe one approach is to create another transient property for the date. You could then check for the number of items on that date in your cellForRowAtIndexPath method.

Related

Pivot tables in excel - showing last values

I am having an issue with showing last value.
I have a source table, where is every single day (once) and for each day I have for item 1 total amount in stock.
I put it in pivot table. Column for total item in stock, for each day in month July for example, shows me balance for every day. When I group the month, it shows cumulative amount - which is wrong. I need to show last value.
Therefore I searched for a solution, I found on webpage ExcelJet this.
But when I tried it, for some reason, the date 31/07/2020 shows value 0 on top first, and on top second place the correct value for the last day of month.
Does anyone know why that happens? In source data there is 31/7/2020 with only 9.546.
You are applying the filter in the wrong field. You must apply it to your AMOUNT field, and you are applying it to your ITEM field (the field that holds the value VEL).
This is happening because you are working in the compact view of Pivot Table, and I think it's easier to work in tabular design.
Design the layout and format of a PivotTable
My Pivot Table is like this:
As you can see, ITEM and AMOUNT field are in the rows section. And DATE field in the Values section, set to MAX DATE and renamed as LATEST.
The filter is applied in the field AMOUNT.
I know what you mean, but actually the filter is applied on the correct field/row. See the prtscrn.
For the references, I attached the source table too.
btw, if I tried filtered out the column Note it still doesn't work properly

Understanding Pivot Table Count

I was analyzing some data using Pivot Tables and noticed something strange.
I am attaching below the screenshots for details.
The first image if of the data, I have filtered it for a particular Brewery
The second image is of the rows and values selected in Pivot table
And the third image is of the analysis spit out by excel.
My question is shouldn't the count of category for '(512) Brewing Companybe4` which is the distinct values of category as seen from the second image?
If not then how come I can get the unique count of categories using the pivot table.?
Thanks
one way of doing it is to pull the category field just below Brewery one while keeping Category also in the values
This will help you to have the count you are looking for, one thing that may bother you are th subtotals that will appear for each Brewery, but this can be easy fixed by right clicking on them and select "Remove Subtotal..."
Hope this helps, if not let me know
Kind regards

repeat control from categorized view

I have tried to get the column values in repeat control from Categorized view in xPages,that time i got the column values are coming with single row,and the same row repeated
How to get the column values in "repeat control from categorized view"?
Thanks
I had a situation where I had to drill down from a much larger view and repeated the info back out with the following.
View is categorized in first column by what I'm drilling down by. I achieve this in the XPage/Custom Control by defining the view as a source in the data tab, then select "filter by category name", bind my repeater to that view data source, and compute the value I'm drilling down.
Then in my repeated table, each of my computed fields for each of the column entries read like:
rowData.getColumnValues()[1]
Adjust for your other columns by position with the array modifier after your getColumnValues method. This is not an elegant solution, but worked for my needs. Hope this helps if it's what you're looking for.
[Update]
It's worth noting that doing this can potentially create a memory handle for any DateTime objects which may be returned in the entirety of the getColumnValues method. If you're going to use this approach, I strongly recommend getting a handle on the column values separately, so you can perform a session.recycle(colVals); on them to prevent any memory creep.
[/Update]

grouped UITableView to generate block rows

I want each row of my table view to appear, as it's own independent block, a little like how the Twitter app has on the Discover section (they have the top 3 trending word as 3 blocks.
I am trying to recreate this and the route I am trying to go down is having my table as a grouped tableview but instead of treating each row as a row of one section, I will treat a row as a section, thus generating blocks, each block will have only 1 row.
It sounds like a hack, I'm sure it's not the way to be doing it, but can anyone lend some tips about this kind of setup ?
Also I am using NSFetchedResultsController and I need to specify I want my objects ordered by date, but the section be defined by a unique id which would allow me to generate a section per row. I am not getting any luck with my fetch request either, so I guess this is 2 questions.
Although if I am wrong with the first part, the second becomes irrelevant.
Thank you.
I would not do it this way. Looking at the Twitter app, I have no doubt that this is a grouped table view, and the block sections use the first row as the title and a second row with a bigger row height for the content.
You can adjust the sections and rows as needed in the table view datasource methods, based on what comes back from the NSFetchedResultsController. Only caveat is that you have to be careful when you use the index path to refer to the core data objects.
The design of the Twitter "blocks" suggest a grouped table view, in fact I did manage to achieve this with a plain table view I just needed to be careful with the borders and background colours behind the cells...

How to filter out a column entry in YUI Datatable that ends with a given string

Currently, I am working on a YUI datatable with hundreds of entries. The table consists of four columns, the first one (ID) being the primary key. What we want to do is to ignore any entries whose ID "ends with" a specific number. The source code is very big and ugly, so instead of posting code snippets, I wanted to post a rather high level question.
I've seen several YUI datatable samples, but none of them examplified what I want to do, namely filtering out data that ends with a given string. Has any of you been able to do this?
Are you wanting to filter the data before it is bound to the datatable? Have you looked at the datasource events such as doBeforeCallback?

Resources