Slickgrid - dataView.setGrouping is not a function - grouping

I am trying to follow the code in the example:
http://mleibman.github.io/SlickGrid/examples/example-grouping
I am getting the error:
dataView.setGrouping is not a function
Am I missing a js include? Does anyone know where this function is defined?

Apparently I have the wrong version of slickgrid.
I looked at the slick.dataview.js file on the site and seems my file is outdated, the setGrouping function is present there.
https://github.com/mleibman/SlickGrid/commit/90964ce5541bc2f381b6c60893f60029f24f907b

Related

highcharts.js and exporting.js version problem

I'm using highcharts v4.1.9. Currently, I'm in need of exporting highcharts in a pdf or whatever. The problem starts when I include exporting.js file on my website.
exporting.src.js:31 Uncaught TypeError: Cannot read property 'parts/Chart.js' of undefined
Uncaught TypeError: $(...).iCheck is not a function
These were the console error. I guessed this is due to version mismatch b/w highcharts.js and exporting.js (not sure though) so I tried looking for any lower version of exporting.js but no luck. please suggest a way to solve this without updating the highcharts version. Thank you in advance:)

including other templates

I have the following situation.
My project has a "main.scala.html" file and a folder called "dashboard".
In this dashboard folder is a "index.scala.html" file, which works well with including inside the main file (#content) with the following syntax:
#main("index.title"){
<h3>test of dashboard index content</h3>
}
So, my specific question is now, I want to call another "sub template" inside this "dashboard/index.scala.html" file?! e.g. the sub-template is called "dashboard/detail.scala.html". How is the syntax I must declare in this "detail" sub-template and how do I have to call this sub-template inside the index page of the dashboard folder?
I looked up the wiki https://github.com/playframework/Play20/wiki/JavaTemplateUseCases but I didn't found a working solution for me, maybe I have some misunderstandings.
I'm looking forward to your answers, thank you very much!
Cheers,
Marco
You can just call it as you would call any other function or template from your controller. There is an example in the documentation
Home
#common.sideBar()

org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Template not found

I am using Grails 1.3.7 and deploy to JBoss 5.1.1. when I try to access a page myPage.gsp in one of the plugins. I got the Template not found error.
the page is working ok when using grails run-app. and the template file are definitely in th correct location and it is NOT missing.
I had searched around this issue, there is nothing really out there. I am new to Grails, I cant understand why this file is not found as it is there.
File structure as following:
grailsPlugins
myplugin
grails-app
views
templates
_myTemplate.gsp
mypages
myPage.gsp
in the myPage.gsp, I have a line like this:
<g:render template="/templates/myTemplate"/>
Can anyone help on this?
I've encountered this same issue before, so just for reference for others, while adding the optional attribute plugin="myplugin" works to resolve the plugin location, it won't allow the application that installs the plugin to customize the myTemplate template(if there is ever a need to as there was in my case!)
I found that copying the templates over to the application on install or via a script, just like Spring Security copies login template when you run the s2-quickstart was the easiest way to completely resolve the issue.

CFEclipse doesn't recognize structName in cfimage tag

This code:
<cfimage action="info" structName="imageInfo" source="#imagePath#">
is giving this error:
The attribute 'structName' is required for the tag. (Found:
[source, structname, action])
When I run this code in CFBuilder - everything is OK, but I must use CFEclipse.
What should I do (I use CF9)?
Thank you for your answers!
Of course this problem won't prevent you from running your application on ColdFusion. It is just an IDE warning that something is wrong.
You have a few options.
Try using a lowercase N in structName. i.e. structname. ColdFusion is not case-sensitive, but Java is, and CFEclipse is a Java application.
If that does not work, then it probably means that the dictionary file that drives the code assist is not correct. You can go earch forthose XML files and update them to include that attribute.
You can use CFBuilder. I know you said you can't, but I have to question why. You know there is a free version that is just as good as CFEclipse, right?
The problem is that there's a casing glitch in that file Peter mentions. There's one reference to "structName" to define the attribute itself, and another "structname" which is in the list defining which attributes are needed for action="info". If you make them both the same, then restart Eclipse, you should be OK (that's I've needed to do to make the error indicator go away).

c++ XML file parsing problem

Can any one tell me how to change an xml file using c++ and xercesc code?
My file is on my desktop using .
I know c++ file handling but don't know how to change attribute of xml file.
Can anybody tell me what I should do?
Any example, tutorial, book, etc., which can help me will be cordially accepted.
You can modify an attribute using the setAttribute function of class DomElement, as documentation says:
If an attribute with that name is already present in the element, its value is changed to be that of the value parameter.