Ext js 4:multiple grids showing different records from the same store - extjs4.1

I have a Json data store which contains the following records
{"resultList":[
{"type":"subscriber",
"subrecord1":[{"dateVal":1390475422000,"typeId":0,"name":"abcd"},
{"dateVal":1390475422567,"typeId":1,"name":"kdjjd"}],
"subrecord2":[{"messageDate":1390475489899,"typeId":0,"location":"delhi"},
{"messageDate":1390485422567,"typeId":1,"location":"pune"},
{"messageDate":1390475498901,"typeId":1,"location":"mumbai"}]
}],"success":true,"total":1,"validationErrors":false}
Now i want to show subrecord1 in one grid and subrecored2 in another grid.
Grid1 contains columns 'dateVal','typeId', and 'name'.
Grid2 contains coulmns 'messageDate','typeId', and 'location'.
How can i do this from the same store?
Thanks in advance

I suggest you setup 2 stores with different readers that look at the root of the data differently. You can have each fetch its own data or have one fetch the data and the other load data from the first upon it's load completion.

Related

bootstrap-vue table with sorting inside page

I have a bootstrap-vue table with pagination.
When I sort data by clicking a column header, data is sorted globally, which means that page N of a sort-by-column-one table displays different data than page N of a sort-by-column-2 table.
I would like to have an additional internal per-page sorting, e.g. via two separate column header rows. The first one would be responsible for global sorting, the other one would only (re-)sort displayed data of the current page.
Is there a standard way to do this?

SSIS Transposing Header Information With Excel Load

I've tried searching but most of the excel loads dealing with header information ask about ignoring them instead of loading them.
I'm working on a project, and have 7 lines of header information I would like loaded into my database table, it looks like this:
Using OpenRowset I load only A3:D13, when I check the Columns section of the Excel Source I only see these columns:
I needed to add a column for load date so I've added a derived column into my data flow, after which it looks like this:
Finally I add the DB destination and map out the columns, but as you can see I only have 4 input columns to my 7 columns in my table:
and after trying to load the file into my table I get this mess:
I'm thinking it's got something to do with how the header is formatted, instead of the normal heading then data directly below it, it's set up as heading then data adjacent to the heading.
Any ideas on what I can do to load this information correctly? Thanks in advance.

Can SQL Server Reporting Services print multiple tables and charts on one page?

I'm new to SSRS and I'm not sure if what I want to do is possible with SSRS. I have a list of 100+ schools in my data set. I'd like to print one page per school, and for it to look like the picture below. Each table and chart are using a unique data set, but it's all coming from one main table.
Can SSRS print two separate tables and 2 charts on the same page per school?
If so, where do I set the page breaks and how would I set this up please? If you need any more information, please let me know.
Thank you!
You can use a list in order to group by school and set the page break property of the list to End.
As long as your table and graph data fit to one page, you can position report components as your sample layout

Solr Transform to split data into multiple fields

I am Trying to create a new Core in Solr and import data into it, but I am displaying this data on Kendo grid and I need to display data from one column from the DB in two different fields(columns)
Here is the Data in the column that i need to split into two different columns
10680756-1000-RAT
I need to split the "10680756" in 1 called called A and in another column called B
this is my data config and schema
<entity name="myTable" pk="testingId"
query="select * from myTable"
>
<field column="codeStatus" name="codeStatus"/> (this column has the data "10680756-1000-RAT")
I need to show it like:
Code Status A B
10680756-1000-RAT 10680756 1000
You can use an Update Request Processor to split the field into two separate fields (and still keep the original field if needed), for example by using a StatelessScriptUpdateProcessor and writing a small piece of javascript to split the field and add two new fields.
Another option is to use the PatternReplaceFilter or PatternReplaceCharFilter together with two copyField instructions. Use the PatternReplaceFilter to remove anything except for the part of the token you want to keep.

Slickgrid render an existing table

I have a problem/question with Slickgrid.
On a website I have a big table and i want it to be rendered with slickgrid.
Loading data via JS is not possible.
So my question is, whether it is possible to get the data of a HTML-Table as source for a slickgrid?
And if yes how can I solve this?
I don't think SlickGrid suits your needs best here. I think DataTables will be better suitable to convert HTML-table data to a formatted grid which supports jQuery.
Hope this helps!
You could also load data by looping through your existing table to create your data variable.
Hide the HTML table
For each row in the table
Assign cell content to data[rownumber][column_name or number]
next
Then take the populated data variable and feed it to SlickGrid