little help for simple code demo for set id="name" to headtitle report or message tittle
little help for simple code demo for set id="name" to headtitle report or message tittle

http://live.datatables.net/labihegu/5/edit
I would like to have a method to define The name of the database, id = "name" to set print report. I would like to get some code snippets to make them work.
This discussion has been closed.
Replies
Are you asking about setting the
messageTop
to a dynamic value? If so you can use a function withmessageTop
as shown in this example. You will need to get the desired data in the function.Kevin
Well, I'm not very good at English. My information table has an ID search, then the id = "name" field will show the ID holder's name. I would like to assign the name of the ID card holder to be set on the above message, can I do that in the data printing report?
or maybe print table like this picture
Complex headers with column visibility
Print all table like this
https://datatables.net/examples/advanced_init/complex_header.html
If can not complex header print can i set name id="name" from ID holder's name
Where is this information located? Are you trying to output this with
messageTop
. Please provide more specifics of what you want output using the Print button.Kevin
here result
and link data
https://docs.google.com/spreadsheets/d/1Y5wH9pL21duDSa2Y6lkZaexDVuVqXhGwxPlOXMY9b6I/edit#gid=0
Still not sure what you are asking for but my best guess is you should add a
span
element to the header with the `id="name", for example:Then use the
messageTop
as a function, like the example I posted, to get the name. Here is your updated example:http://live.datatables.net/labihegu/7/edit
Is this what you are looking for?
Kevin
Very correct, extremely accurate, thank you very much, give thanks as many times as possible.