Extjs FormPanel中的超链接问题

怎样在fromPanel中加入一个超链接?点击后弹出一个窗口。
好像xtype没有这个类型。这个功能在ext中一般都是怎么实现的?
谢谢!!

[b]问题补充:[/b]
我这样写,为什么找不到方法?

[code="java"]

function showPurchaseWin(){
alert('dd');
};

items : [ {
fieldLabel : '采购单编号',
name : 'pruappcode',
html: "" + this.purAppcode + ""
}]

[/code]

  1. function showPurchaseWin(){
  2. alert('dd');
  3. };


  4. items : [ {
  5. fieldLabel : '采购单编号',
  6. name : 'pruappcode',
  7. html: "" + this.purAppcode + ""
    1. }]

[code="java"]new Ext.form.FormPanel({
items : {
html:""
}
});[/code]

[code="java"]function showPurchaseWin(){

alert('dd');

}; [/code]
这个方法如果是在全局的位置时,就可以访问,如果在某个对象中的内部,DOM生成的代码是不能访问的。移到处面去吧

采购单编号是动态生成的吧?可以在生成的时候,在后台返回的数据中,自动加上格式化后的超链接标签,连同采购单编号一起返回到前台,就可以了.作为html代码,无论在哪里都是会被解释的.
另外一种解决方法,可以采用模板也就是template,详细的介绍,可以参看ExtJs的docs.上面有一些例子.
如果还不懂,欢迎m我,我这里有一些现存的例子.

:wink: