Hi,
I created a class with more attributes which represent the columns of a table. I need to write data in that table and also to get data from the table such that i will can compute an average for example (with that values) and after that i want to put/write the result in the same table.
The page I have created using the class contains the attributes of the class, which I can modify, but I need the table.
So, my question is:
How can I make the table such that I will can write in it and get data from it? Also, how can I export that table as pdf document?
ok so you’re using scripting to generate the table syntax. You can do whatever you want in a script and perform any computation you want. What’s the problem?
I make this table. I want that when I click on a cell to can introduce some data from the keyword and then that data to remain saved in the cell / table. I don’t want to introduce data in the table from cod. So how can I do that?
Hi!
I created a class “Student” and more pages. Each page contains an object of type “Student” class. How can I do to display all objects from all pages (which are of type “Student” class) in a single page?
I wrote the following code, but I get an error, what’s wrong?
{{velocity}}
#set($xwql = "from doc.object(IP-MODUL4.EvaluareStudentClass) as Student where doc.fullName <> 'IP-MODUL4.EvaluareStudentTemplate'")
#set($results = $services.query.xwql($xwql).execute())
#if($results.empty)
No Student has been created yet!
#else
#foreach ($item in $results)
#set($Student = $xwiki.getDocument($item))
#foreach($prop in $class.properties) ## go through all properties
* ${prop.prettyName} $Student.display($prop.getName())
#end
#end
#end
{{/velocity}}