How to copy multiple SELECTED ID from dxDatagrid? - devexpress

I am having checkbox in dxDatagrid, I want to copy selected ID from dxDatagrid on single click and also i want in comma separated way(I mean selected value or ID should get copied in comma separated way). I tried multiple ways but none work for me.
I hope I made my query clear and its a very challenging question to solve for me. Any help will be appreciated.

you can use selectedRowKeys() method, to get an array of selected rows.
FYI: you can also get rows data from getSelectedRowsData()
read more:
https://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxDataGrid/Methods/#getSelectedRowKeys
https://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxDataGrid/Methods/#getSelectedRowsData

Related

oracle adf how to invisible current row?

I have oradcle adf and jdeveloper.
I want to invisible current row in a table by click on a button(named "delete_row") .
Can anyone help me ?
I think you are looking for a soft delete of rows from table. Refer to this post Soft deletion of rows
You can make the row invisible but once you open again the application it will show again as this information is not stored anywhere. Better you have to override the remove operation for the current row. Once the remove operation is called you should change the value of a column from the table (boolean deleted for example). The query used in VO iterator for that table should not get rows with that value as false. Please check: http://husaindalal.blogspot.com/2009/11/generic-way-to-handle-soft-delete.html

Filtering a multivalued attribute in StringTemplate

I have a template which uses the same multivalued attribute in various places. I often find myself in a situation where I would like to filter the attribute before a template is applied to the individual values.
I can do this:
<#col:{c|<if(cond)><# c.Attribute2 #><endif>};separator=\",\"#>
but that is not what I want, because then there are separators in the output separating "skipped" entries, like:
2,4,,,6,,4,5,,
I can modify it to
<#col:{c|<if(c.Attribute1)><# c.Attribute2 #>,<endif>};separator=\"\"#>
Which is almost OK, but I get an additional separator after the last number, which sometimes does not matter (usually when the separator is whitespace), but sometimes does:
2,4,6,4,5,
I sometimes end up doing:
<#first(col):{c|<if(cond)><# c.Attribute2 #><endif>};separator=\"\"#>
<#rest(col):{c|<if(cond)>,<# c.Attribute2 #><endif>};separator=\"\"#>
But this approach fails if the first member does not satisfy the condition, then there is an extra separator in the beginning:
,2,4,6,4,5
Can someone give me a better solution?
First, let me point out that I think you are trying to do logic inside your template. Any time you hear things like "filter my list according to some condition based upon the data" it might be time to compute that filtered list in the model and then push it in. That said something like this might work where we filter the list first:
<col:{c | <if(c.cond)>c<endif>}:{c2 | <c2.c.attribute>}>
c2.c accesses the c parameter from the first application
The answer by "The ANTLR Guy" didn't help in my case and I found another workaround. See at Filter out empty strings in ST4

how to display multiple select list after node submit

I have been reading around and just havent found any type of answer.
I have a multiple select list and need to take the the values of the multiple select and pass them to an API call.
But I dont understand how drupal renders the multiple select list and how to habdle this.
Can someone please explain this to me or if you have come across any docs that explain this, please point me in the right direction.
Also, when I try to write the select to the db, I always get a the value 1... never changes...
Any help is appreciated :)
Solved:
The Multiple select is stored in an associative array where the key value pair are taken from the key value of the list, this means that both the key and value get the same value.
I did this by using devels dvm(); function which displays the array in the message area after the node was saved.

SSRS Tablix not returning full resultset

I have a tablix that is only returning the first row from a created dataset. I verified my stored procedure and dataset in asp and it's returning the expected results. Also I read somewhere to check the count of rows using a textbox and the CountRows() function and it indeed shows the expected count. Is there any special setting in the tablix or somewhere that I'm missing? Also if I add grouping, it would return the first row from each group which are several rows apart. This is really frustrating. Thanks in advance
If you deleted the row group it will do that. Or, if your row group is based on a single row value, that would be another reason. I had a limited result set coming back, and realized I was not grouping according to how I intended the report to behave and display.
Check to see if there is a filter on the Tablix, or perhaps you are grouping such that it only produced a single row? Please provide more information.
One of the reason I found for this issue is when a Matrix type of report (RDL) is converted to Tabular type of report by removing all grouped columns. To a developer it seems fine, but some where there is catch which does not convert a Matrix type report to Tabular and hence the grouping still continues and report never shows all the rows as expected. Only solution I found for this issue is creating a new RDL file of Tabular type and it all works fine.

Good way to rename fields in Actionscript array?

Should be easy but google couldn't give me a straight answer. I have an array. The fields in the array have underscores that I would like to remove e.g. "Column_1" to "Column 1". Does anyone know a good way to do this without looping through the whole array and rebuilding it anew? I didn't see any methods in the reference that would make this easy. thx
Depending on where you are using this Array, you could use the labelFunction to format the data before presenting it. It is present in Lists, DataGrids and Trees.
But you'd only need this if you have a very large data and wouldn't want to loop over all the records before showing them. A labelFunction would "reprocess" the label everytime before it's presented.
Flex 3 has built in refactoring
Edit... I may have misunderstood..
If you want to format the data in the array just loop through it and use regex to remove the underscores... or you can modify your query which grabs the data (if it is populated from a query)

Resources