0

I am new user of OpenGeo suite. I want to configure FeatureEditorGrid plugin to change the column header to display name. My basic requirement is to customize column label like my table column is "pop" and want to display "Population" in FeatureEditor popup.

I have refer this question modify the GetFeatureInfo popup. So is it possible to modify FeatureEditor popup. I have tried like this:-

Include plugin :-

 * @require plugins/FeatureEditor.js
 * @require plugins/FeatureEditorGrid.js

And add reference in Tools section :-

{
    ptype: "gxp_editorgrid"
    ,propertyNames: {"project_id_fk": "Project ID",  "output_code": "Output Code"}
}

But it gives error, I don't know what I am missing.

Error: Could not create tool plugin with ptype: gxp_editorgrid
attributes = feature.attributes;

Is it possible to modify Featureedit popup??

Any suggestion will always welcome.

2 Answers 2

1

For a featuregrid plugin, you can set the propertyNames in outputConfig:

{
    ptype: 'gxp_featuregrid',
    featureManager: 'featuremanager',
    outputConfig: {
        id: 'featuregrid',
        title: 'Features',
        propertyNames: {
            // key: value
        }
    },
    outputTarget: 'east'
}
0

Actually I dont found how to configure it so I have customize FeatureEditorGrid.js. and added custom code like (I know this is not a right approach but i dont found useful docs.. :( )

    this.customEditors[name] = new Ext.grid.GridEditor({
                        field: Ext.create(fieldCfg),
                        listeners: listeners
                    });
//custom code....
     this.propertyNames= {"project_id_fk": "Project ID",
                      "output_code": "Output Code"}

If anyone help me in configuring code then i will update my code... I hope someone will help me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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