Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to develop the tutorial of opengeo-suite sdk, but when I try to add a queryform to my app, firebug throws this exception:

Error: Could not create tool plugin with ptype: gxp_queryform I've tryed to perform a query form and i used this code

  • @require plugins/QueryForm.js

    { ptype: "gxp_featuremanager", id: "states_manager", maxFeatures: 20 },{ ptype: "gxp_queryform", featureManager: "states_manager", outputConfig: { title: "Query", width: 320 }, actionTarget: ["featuregrid.bbar"], appendActions: false }

How do I solve this?

share|improve this question
Can you give us an example? What code caused that error to be thrown? – Brad Koch May 29 '13 at 18:54
Is this related to your other question? Please clearly communicate what you've done and what you're trying to do. – Brad Koch May 29 '13 at 19:06
sorry about the poor information I've provided. I've put the code now. The example is the same, but I've solved the another problem, this one is new problem, it's a problem with QueryForm – Javier Cornejo May 29 '13 at 21:12

The main issue is that the FeatureManager is not bound to a layer.

Either specify the layer or autoSetLayer property in your FeatureManager, like:

 * @require plugins/FeatureManager.js
 * @require plugins/QueryForm.js

  ptype: "gxp_featuremanager",
  id: "states_manager",
  maxFeatures: 20,
  layer: { 
    source: "local",
    name: "usa:states"
}, {
  ptype: "gxp_queryform",
  featureManager: "states_manager",
  outputConfig: {
    title: "Query",
    width: 320
  actionTarget: "featuregrid.bbar"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.