Getting entries of child grids of currently expanded row in `igHierarchicalGrid` - ignite-ui

I am trying to achieve a functionality in which what i want is to get the data of children of the row, that is currently being expanded. I came through the Example on Ignite UI Help Forum, but it does not help me with the issue. The Example is demonstrated in this fiddle. The
ui.owner.allChildren().data().igGrid.dataSource.data()
is giving me data of all expanded rows children. I want this functionality to achieve at every level i.e. Suppose a row at level 2 is expanded, then, I want to be able to get the data of child grid associated with that row.
In the example above mentioned fiddle, I want to be able to get the data of Food row children, when food is expanded, and of Beverages row children, when this is expanded.
I am not able to figure out, how can i filter out those entries, which do not belong to a particular row.
Thanks

I managed to find a way for you how to extract the specific child grid data:
$(ui.parentrow.context).find("table[data-childgrid=true]")
.data()
.igGrid
.dataSource
.data();
This should still be made easier to be accessed using the event arguments more directly!

Related

How do one extract information from a dynamic table, automatically through excel functions?

I have been searching high and low for a way to solve my dilemma, in different ways, so I am trying to post both of the things I've been trying to do:
The challenge version 1:
I want to extract the entire row with information tied to the name which is the latest entry of that name in the table. So from the table below I would want to collect the entire row which contains the information: "A, Jack Black, 01.01.2029, 10:20". I simply want to copy the entire row to another sheet. But one important factor is that it has to happen automatically.
So i need functions which can check if: Is there another entry with the same name, higher up in the table? If so, DO NOT COPY THE ROW. If there ain't another entry with the exact same name higher up in the table, COPY THE ENTIRE ROW, to another table, within another sheet.
The challenge version 2:
What I really want to do is count the number of unique people(unique names) per. department, and summarize this in another table. Basically this means that "Jack Black" should be counted as 1 person, in department A.
So the result I want, is a table looking like this (the one beneath), where the number of people does not contain any duplicate people (names). OR it does not function with a dynamic table, which updates the information it contains on the fly. I can make this happen if I am copying from a static table, but as stated above, the table is dynamic and updates with new information every minute...
So far i've tried excel's built in filtering, but this does not work automatically. I've also tried using functions like in this guide: https://excel-bytes.com/how-to-extract-a-dynamic-list-from-a-data-range-based-on-a-criteria-without-filters-in-excel/. However every solution i find seems to need criteria for filtering out duplicates or does not function when copying information from a dynamic table.
Does anyone know how to reach my desired result, without implementing criteria for selecting the rows or counting rows as stated above? VBA code is not an option at the moment :(
In advance, THANK YOU, I've really tried solving this, but I feel like this just might break my head wide open soon if I can't solve it. HEEEEELP!
Sincerely
haakonlu

Taking means of irregular amounts data

I'm not able to take the means for a large dataset given that the amount of attributes is irregular.
I have posted a simplified case for the problem. It explains the problem very well.
An idea that I came up with: Make a filter to condition on a single attribute. However, still, I don't see a way to do this in an efficient way (other then doing it all by hand).
see excel file:
All help is much appreciated.
I'm basically looking for a function/method to achieve taking means of all different attributes conditioned on each person for a large dataset without doing it by hand.
You can use AVERAGEIFS() inside an IF:
=IF(OR(A2<>A1,B2<>B1),AVERAGEIFS(C:C,A:A,A2,B:B,B2),"")
the ifrst part of the if tests whether the row starts a new group either by the person or the attribute changing. Then it uses AVERAGEIFS() to return the correct average of that group. otherwise it returns a blank
What you want to do can be accomplished very simply with a pivot table.
Simply select one of the cells inside the range of data you want to process(See the video for general use of a pivot table https://www.youtube.com/watch?v=iCiayB6GrpQ )
go the insert tab and insert pivot table.
Once you have it, simply check people, attribute, and values. Then drag people and attribute into rows, drag valut into the values window, select the drop down list and change it from sum of value to average and you should be done. https://i.stack.imgur.com/nYEzw.png

Fix the structure of the SSRS Matrix

I have been working on a small project. I am trying to display all the results in the same row without NULL values. I've written a small expression to remove the Null values already "=IIF(IsNothing(Fields!RegisterNo.Value),True,False)". However, the rows seem to be moving one level down as it is displayed in the picture ResultMatrix1. I want the results to be on the same level. Can you please tell me if this is possible and how I can achieve it. Is it something to do with the groupings or something else?
Design Groupings
By default, when you create a table, there is a Row Group called "Details" that is not actually grouped by anything. This causes it to produce one row for each row from the dataset. Since you are trying to group these, you need to make sure that innermost group is grouped by your Staff Ref No.
In the lower-right cell, you may need to change the expression to use a Max function. This will simply avoid arbitrarily showing blanks when they happen to be sorted before a real value within that group.

BluePrism - Selecting HTML row [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
Recently i started working on RPA - BluePrism and i am stuck at one place and not able to proceed further.
I have a HTML table and no of rows is dynamic based on search criteria. i am able to get the rows values in a collection. But the problem is i need to highlight the table row->click button->will open popup->fill few values->close and select 2nd row->follow the same process.
I don't know how to highlight the table row(i cannot create static elements in ApplicationModeller since the rows will be populated dynamically). Please provide some suggestions.
Thanks
I would consider to spy it using region mode and then using either a single region or a region list. With a list you have to first read the list and then loop through it and check the content with a choice stage if it is equal to the one you want.
If there is a hit you can then select to access that specific row.
Note: when you check if the content is there make sure to store the number of which the content is in.
So to sum it up:
you need to spy the table
make a list over the column in which the content will be present.
read the content and store in a collection
loop the collection
in the loop have two calc stages one counter and one that will save the correct row
have a choice stage checking if the current row contains what you want
if true set the correct row to be equal to the counter. If False set the counter to +1.
Then when the loop is done, you can take a navigate and point it to the row num that is stored in the "correct row"-data item.
This what i had to do for a system in which the tables differ in amount of rows.
Hope this helped you.
Just spy table cell (or any other element in one row), then use dynamic Path attribute to refer to a correct table element:
"/HTML/BODY/TABLE/TR("&[Row]&")/TD("&[Column]&")"
You have two options for getting number of rows - either spy a table, read to collection and count rows or just iterate over rows with dynamic path until you get exception and handle it.
It could be that the values held within the HTML code are not stored directly in table tags, because more HTML code is being held within the table cell.
For example: data
If Get Table doesn’t work you could try reading the HTML code of the table and use string manipulation to extract the values another way is to use counters for each row and column of the table and read each cell individually.

Map multiple people in multiple States

I am looking for a way to chart out some Excel data onto a PowerView map. I'd like to see which person within my group is most active in each state. However, when I'm running with the data in Excel and PowerView, it lists every person and their activity in each state. I just want to show each state with the most active user.
Do you have any example data? You need to use MODE & MATCH for this in an array, so MODE(MATCH(A1:A5,A1:A5)) will give the row number of the most occuring, so A,B,A,B,A,E will give 4, the last A, so INDEX the column will give the value, so INDEX(A1:A5,MODE(MATCH(A1:A5,A1:A5)),1) would return A.
Without seeing your data, i cant really answer fully, you'll probably need to add another array to select the state.

Resources