SchemaCrawler Row Count with Velocity template? - schemacrawler

Is it possible to get table row count with velocity template?
If anyone has done it before can you share howTo?
Thanks in advance.

Please use SchemaCrawler 16.6.1 (or better), which introduces a new command-line switch, --load-row-counts. (Please download both Velocity and Thymeleaf using the SchemaCrawler download tool first.) Then, you can use a Velocity template something like this:
#foreach($table in $catalog.tables)
#if ($table.tableType == "table")
$table.fullName - $table.getAttribute("schemacrawler.table.row_count")
#end
#end
Sualeh Fatehi, SchemaCrawler

Related

Add full Sourcecode in Doxygen search

i would like to ask, if it is possible to make the whole sourcecode searchable in doxygens html output ?
I have already found SOURCE_BROWSER and INLINE_SOURCES to display the code, but it is not searchable fulltext via the searchbox...
thanks for your help,
Christian
You probably need to set EXTRACT_ALL = YES
Additionally, Doxygen needs to be able to find all of your sources (see the INPUT and FILE_PATTERNS variables).

Can I display multiselect list items as onordered list using Razor?

I was wondering if this is possible with razor syntax (I have found that there are other ways that utilize jquery). Please point me in the right direction if you know one. I am working on a MVC 5 project.
Thanks.
Yes, this is possible by creating custom html helper methods. Refer this little example which would be helpful.
Video version of tutorial

XPages view control link manipulation

I have a view control and at least one column has the option "Display as link" set. The link is generated manually. What I want to achieve is to add a url parameter which is added to a view column link. The usual link would like this
"http://host/path/file.nsf/$$OpenDominoDocument.xsp?databaseName=server!!path/file.nsf&documentId=03871DD0B47F88D4C12576AB00623137&action=editDocument"
What I would like to have is:
"http://host/path/file.nsf/$$OpenDominoDocument.xsp?databaseName=server!!path/file.nsf&documentId=03871DD0B47F88D4C12576AB00623137&action=editDocument?param1=value1&param2=value2&etc..."
There must be a (presumably easy) way to achieve this - unfortunately I don't know how...
Any help or hint is appreciated.
Many thanks in advance.
Michael
Follow the below steps:
1. go to All Properties of view Column which displays column values as link.
2. Compute the PageUrl with the below Code.
var col:com.ibm.xsp.component.xp.XspViewColumn = getComponent("viewColumn1");
col.getDocumentUrl()+"&param1=value1"

Can OpenCollada export cgfx shaders from Max?

We are using the OpenCollada plugin for Max 2011. Geometry and animation data is coming through fine but I don't see any shader or material data included in the DAE.
Do I need to modify the Max exporter or should it just work out-of-the-box?
Using MaxScript we can iterate through the materials and export the cgfx (or directx shaders) to a separate file. Exporting it as part of the Collada is possible if we write a Collada exporter and insert the shader params as extra data. We're going the MaxScript route.
Update/Edit: wow, were we wrong about using MaxScript! The correct solution was to use the Max SDK and the IGame interface to query the materials. Yannick Puech has the definitive article.

Drupal Views Arguments

I know how to successfully use arguments in drupal's views module, but when it "filters" based on those arguments it uses "=" in the where clause of the SQL statement. However, I would like to use "like" instead of "=" in the where clause of the SQL statement so I can pass in, say the title of a node, as an argument and then show all nodes that CONTAIN the title passed in. I am not interested in grabbing only the nodes where the title is exactly the same as the title passed in. Does anyone know how I can do this? Is this possible?
one possible solution would be to generate the view by code with your required query.
I am looking for the same solution. It looks like you can modify the query using the views_views_pre_execute hook. The link below has a pretty good explanation. Haven't tried it yet but giving it a shot now...
http://drupal.org/node/409808
You could export the view, which outputs the views-generated query as code, then modify the query to suit your needs, and load it programatically (http://www.chilipepperdesign.com/2010/01/15/how-to-programmatically-create-views-in-drupal-6)
In drupal 7 you can use views query alter to generate your custom querys:
Take a look at this example: https://gist.github.com/4001074
I don't think you can do this. See here (https://www.drupal.org/node/1578564):
There are no options for selecting which operator should be used with contextual filters (save the exclude option). All default to is equal to.

Resources