How to Merge two column of ASPxGridView in DevExpress? - devexpress

I want to Merge and show the two column of the gridview as single column.
Example:
I have two different columns
--------------------
|Amount | Currency |
--------------------
| 1000 | INR |
--------------------
| 2000 | EUR |
--------------------
| 500 | USD |
--------------------
Result as one column
-----------
|Amount |
-----------
| 1000INR |
-----------
| 2000EUR |
-----------
| 500USD |
-----------
Two columns are seperate fields from databaes.i don't want to do it in procedure, need to be done in frontend because i want to put total for this amount column.

It sounds like you're looking for calculated columns.
Have a look at the following links:
devex unbound columns
devex calculated columns

Related

Providing summary on data by Month in R

I have a dataset that contains information on incidents reported (either Fraud or Error). Information includes the unique ID number, date of the incident, the type of incident, the size, and whether the case is open or closed and, if closed, the closed date.
I am looking to create a script of code that will produce a new table that groups the data by month so that for each month we can see how many new incidents there have been, as well as the average size.
Additionally I would like to be able to see how many cases are open still in that month and Ideally break this down by the type of incident.
It is the counting both the new cases and the open cases that I am having the most issue with
any help would be appreciated
| Erro Type| Date of Error | ID | Size | Open/closed| Date Closed
| Fraud | 12/05/2021 | 233 | 5,000 | Open | -
| Fraud | 19/07/2020 | 194 | 23,000 | Closed | 24/01/22
| Error | 23/05/2021 | 241 | 9,000 | Open | -

Join and merge are only working partially and completely in R

I am working with a dataset that was obtained from a global environment and loaded into R. It has been saved as a CSV and is being read in R as a data frame from that CSV. This dataset (survey_df) has almost 3 million entries, I am trying to join this dataset based on a column ID (repeated multiple times since there are multiple entries per id) to what originally was a shapefile and is now loaded in R as a data frame shapefile_df . This data frame has 60,000 unique entries, each representing a geometry in a country. We expect to have many entries per geometry in most cases. I am using a simple left_join which should in theory join these two datasets together. I am running into an issue where they are not fully joining together, only some entries are. I have tried inner,fully and right join as well as merge and I keep getting the same issue. I made a full_join and a copy of the id columns to compare the ones that are not joining and I do not see any patterns. They seem to be the same id, they are not joining for some reason. I tried formatting them as.character and as.factor and yet nothing. Below I pasted a sample of the join/unjoined df.
Matched ids
| survey_df_id | survey_id_copy | shapefile_df_id
-------------- | -------------- |--------------
0901200010229 | 0901200010229 | 0901200010229
0901500010729 | 0901500010729 | 0901500010729
090050001087A | 090050001087A | 090050001087A
0900600010467 | 0900600010467 | 0900600010467
0901400010897 | 0901400010897 | 0901400010897
0901200011960 | 0901200011960 | 0901200011960
Unmatched ids
| survey_df_id | survey_id_copy | shapefile_df_id
-------------- | -------------- |--------------
01903900010480 | 01903900010480 | NA
070470001010A | NA | 070470001010A
0704700010117 | NA | 0704700010117
0704700010140 | NA | 0704700010140
0705200010672 | NA | 0705200010672
0705200010742 | NA | 0705200010742
Most of the entries that are unmatched are like the first row where shapefile_df_id is NA. However, there are a few where survey_id_copy is NA. This field is simply a mutate of survey_df_id and in theory should not be any different yet they are. Any idea what could be causing this? I suspect this is a formatting issue but as a said, using as. hasn't fixed the issue. I am using tidyverse and read.csv. Any help?

R markdown table with a caption

I'm trying to create a table outside of a code chunk using normal markdown notation and to add a caption to it. Here's an example file (taken from here:
---
output: pdf_document
---
| First Header | Second Header | Third Header |
| :------------ | :-----------: | -------------------: |
| First row | Data | Very long data entry |
| Second row | **Cell** | *Cell* |
| Third row | Cell that spans across two columns ||
[Table caption, works as a reference][section-mmd-tables-table1]
This unfortunately produces a rather sad string:
Removing the caption line in square brackets produces the table fine (but without the caption, obviously):
This can be achieved if I made my data into an actual data.frame and used kable as shown here but I'm looking to avoid having to do this.
The linked guide refers to MultiMarkdown, while RMarkdown uses Pandocs. Captions work a little bit differently in Pandoc. The following should do the trick. The syntax is Table: followed by your caption; Pandocs numbers automatically. Leave one line blank between the end of the table and the caption line.
---
output: pdf_document
---
| First Header | Second Header | Third Header |
| :------------ | :-----------: | -------------------: |
| First row | Data | Very long data entry |
| Second row | **Cell** | *Cell* |
| Third row | Cell that spans across two columns ||
Table: Your Caption

Selenium IDE, identify row in table based on 3 columns

I am trying to find a row in a table which contains specific values on three columns.
I have tried methods in #paul trmbrth's answer to find XPath to identify cell in table based on other column. Worked fine for 2 columns, but didn't worked with 3. I didn't find any example for cases with more than 2 values.
VEHICLE CATEGORY | CATEGORY | SUBCATEGORY
A | Exteriors | Badges
A | Exteriors | Badges
A | Exteriors | Mirrors
A | Interiors | Wheels
A | Interiors | Rears
Want cell with the combination that contains:
A | Exteriors | Mirrors
I have tried but no success:
//tr[contains(td[1], 'A')]/td[2][contains(., 'Exterior')] td[3][contains(., 'Mirror')]
//tr[contains(td[1], 'A')]/td[2][contains(., 'Exterior')] /td[3][contains(., 'Mirror')]
css=tr([td:contains('A')][td:contains('Exterior')][td:contains('Mirror')])
css=tr([td:contains('A')][td:contains('Exterior')][td:contains('Mirror')])
Can anyone help?
I think you have a couple of typos:
//tr[contains(td[1], '1') and contains(td[2], 'Eve') and contains(td[3], 'Jackson')]
But I'm not 100% this is most efficient, but it will work.

Getting summary data from graphite

I have created a dashboard using the data published from my application using statsd with a graphite backend. This has worked great for building nice data visualizations. (Kudos to etsy and others!)
Now I need to make a summary dashboard that will display a grid, more-or-less, that shows each stat with a count. (No graphs on this page but clicking on the stat name will take you to the graph.)
So, for example, I am collecting statistics for how many messages each node in our cluster recieves, processes successfully, fails to process. What I need is something like the following:
| Node Name | Messages Recieved | Successful | Failed |
| ------------- |:-----------------:| -----------:| ---------:|
| Node1 | 1126 | 1120 | 6 |
| Node2 | 1155 | 1100 | 55 |
| Node3 | 1124 | 1119 | 5 |
| Node4 | 1204 | 1198 | 6 |
I have a timespan selector on the toolbar and based on that selection these numbers should be updated to reflect the selected timespan. I'm having a hard time getting numbers that seem to aligne with what I expect. And in some scenarios with the summarize function I am getting decimal values back which does not seem to make sense to me.
Any help or guidance would be greatly appreciated.

Resources