How can I duplicate a row right below where it is on DataTables? - datatables

I found that DataTables now supports colspan and rowspan. but to use it better, I needed to duplicate same data thrice. What I need to make is something as image below, and I can't find whether DataTables supports splitting a row into multiple rows.
The image shows how I modify each set of data. It means, there will be 5 columns for each data, and it will be split into 3 lines.
Even the question was about duplicating, if there's other way to make a row/set of row for each data with same shape as image, than please explain.

Ok, I found very wierd trick.
I just made display:none to original table, and only showed child row table.
Not like original table, child row was free to custom the format.
The answer of other question on the link was useful.
https://stackoverflow.com/a/72745607/10780764

Related

So, RStudio 2022.12.0 Build 353 does not show the last rows of the tibble in the R-document file. Anyone knows the solution, please

so, I have this data in the tibble displayed in the R-document. The first rows are shown fine the image of the first rows in the R-document, but the last are not shown (its just empty tibble, which has the data, but these cannot be seen cause I like can copy some of them) the image of the last rows in the R-document. The same thing is happening if the data were in the dataframe. Does anyone know how to overcome this issue, so in the R-document, one can see all the data clearly? Thanks in advance.
I can look at the data with View(), no problem, but it is not the way I want the reader to see the data as it's like a different window and not in the R-Document. I expect these last rows be either non-present or show the actual data.
ok, never mind. I just found a temporary and the best-at-the-moment solution, which is to use the function print.data.frame(). Though, it has not a good view like when you do it using the print() function, but it prints all the data (first rows) (last rows).

Not existing column in the current network's table but still visible in the column selection

I have imported data table to my cytoscape map for the following continuous mapping accorging to values. After some time, I have imported another data table and then deleted the previous one. The original data are not present in either the node or edge table but I still can see the names of the original columns when selecting column for continuous mapping i. g. for size or colour. Moreover, this warning appears: "The current table does not have the selected column. Please select another column." Do you know how to solve this so that I no longer see the names when these columns are not even in the table?
I would be grateful for any ideas.
I have tried to delete the data table and import the data again but it didn't help. I have also tried to clone current network and import data to the new map, but the old names are still present in the column selection.
Do you know how to solve this so that I no longer see the names when these columns are not even in the table?
I would be grateful for any ideas.
A couple points and then a couple suggestions:
The style is going to "remember" the selected column name, even if you delete it since it doesn't know what to change it to. It will add a warning icon mentioning that the column is missing. You have to choose a new column (or reload the missing column) to address that issue. [I think you know this already, but just stating for completeness :)]
The pulldown list of column names should be updated when you delete table columns. This does indeed sound like a bug.
Are you running the latest Cytoscape 3.9.1?
Have you tried selecting another style and then returning back to this style? That might "refresh" the column name list.
Have you tried saving/restoring the session?

Is there a way to single out data within an SQL column?

So I'm working with an old joomla site and trying to export only useful data, and I found a pretty hacky way of accomplishing what I wanted to do.
So for the column I want to get to, images, even though there's been no useful information input into it, joomla automatically populates it with the following:
{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}
I Ideally only want to search for fields where the value for image_fulltext is not empty, and only get the value of the field.
My original idea was this hacky snippet just to find the relevant rows at least.
SELECT id, images FROM `JOOMLAPREFIX_content` WHERE images !='{"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}'
This gets the me the relevant rows, but it also gets me more information than I want. (The first suggested solution, while a much less "hackey" query, gets me the same result, as you can see in the SQL snippet.)
Id Images
7 {"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"images\/featuredimage1832014.jpg","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}
Is there a way to target only the value of image_fulltext, in the case of this row: "images/featuredimage1832014.jpg"?
SQL Fiddle
Try this:
SELECT id, images FROM `JOOMLAPREFIX_content` WHERE images NOT LIKE '%"image_fulltext":""%'

Is there a (creative) way to hide a text field in Indesign if there is no information in the data merge field?

I am creating a data-merge document in InDesign.
There are various tables that I've created which only show as many rows as there is actual data in the field, through some creative table and cell styles.
Now I've been asked to only have an entirely separate table only show if there is information in any of those fields.
I'm at a total loss. With the way the current structure is set up, I can cause it to not display any text, but it still shows empty header cells and one line of empty row cells.
Pre-DataMerge, with the data fields
Post-Datamerge, with the resulting empty cells
Any creative ideas to hide that table? I was thinking there might be a way to hide the entire text field, if not the table. Maybe a script? I tried one that deletes blank tables, but that didn't seem to work after the data-merge was run.
I am not sure you can get that level of processing with InDesign datamerge. You could think of a script to post remove those tables or use a dedicated plugin such as Easycatalog that can take care of such empty items natively.

Rearrange a column (int) in jquery datatable while search

I'm trying to rearrange a column (int) during search in the jQuery dataTable but found no way. The following link will clearly depict the issue i have.
http://s3.postimg.org/6hwa5e637/Capture.jpg
You can see that after search the 1st column (Serial #) has numbers 2 and 3. Instead I need 1 and 2 there.
There must be a solution and I'm badly in need of it.
Thank you.
Are you trying to say that you want your rows to be numbered? I am not sure what you mean by "rearranged". Perhaps sharing your DataTables initialization code would shed some light on your problem?
Don't have enough reputation to comment, but will edit this answer post if Ashik clarifies his question and I have an answer.
Edit: Since you're trying to number your rows, look into using the mRender property of a column (in aoColumns). It is a function you can define for custom column rendering where you could place logic for row numbering. I'll leave the logic for that to you, but point you to some relevant material on mRender: http://datatables.net/release-datatables/examples/advanced_init/column_render.html