我有这个简单的用户控件,它只在网页中显示一个字符串:
在 JScript 运行时渲染选项卡中:
function test4($)
{
this.Width;
this.Height;
this.show = function()
{
///UserCodeRegionStart:[show] (do not remove this comment.)
this.setHtml("<p>Hello World!</p>");
///UserCodeRegionEnd: (do not remove this comment.)
}
///UserCodeRegionStart:[User Functions] (do not remove this comment.)
///UserCodeRegionEnd: (do not remove this comment.):
}
我安装了这个用户控件,并对其进行了测试。一切正常,消息“Hello World!” 显示在我的网络面板中。
问题是,当我更改用户控件时,例如显示“Hola GeneXus!!”:
function test4($)
{
this.Width;
this.Height;
this.show = function()
{
///UserCodeRegionStart:[show] (do not remove this comment.)
this.setHtml("<p>Hola GeneXus!!</p>");
///UserCodeRegionEnd: (do not remove this comment.)
}
///UserCodeRegionStart:[User Functions] (do not remove this comment.)
///UserCodeRegionEnd: (do not remove this comment.):
}
我总是得到“你好世界!!”!!!如何查看已应用的这些更改?我应该如何开发用户控件,并在开发过程中查看更改?
我试过这样做:
- 如果 GeneXus 已打开,请关闭它。
- 替换GeneXus安装路径下User Control文件夹中已更新的User Control文件。
- 使用 /install 参数执行 GeneXus。例如:\GeneXus.exe /install
- 检查工具箱在用户控件部分下是否仍有选项。
我也尝试过更改用户控件版本,如此处所述(http://wiki.genexus.com/commwiki/servlet/hwiki?HowTo%3A+Installing+User+Controls,):
提供 UC 时,建议在 UserControlName.control 文件中包含标签“Number”。如果遵循此建议,则在 UC 安装过程完成(即“genexus.exe /install”执行)并构建应用程序后,将更新版本的用户控件复制到应用程序目录。
并拥有这些信息(http://wiki.genexus.com/commwiki/servlet/hwiki?HowTo%3A+Installing+User+Controls,):
UC 是如何复制到应用程序目录的?
UC 安装在 GX 安装目录(即 UserControls\UserControlName)中,应用程序使用的所有 UC 会自动从 GeneXus 安装目录复制到应用程序目录(例如 CSharpModel\Web\UserControlName)。
我怀疑新的js文件在应用程序目录中从来没有更新过,但不知道为什么!
我能做些什么来解决这个问题?因为正确知道每次我在 JS 文件中进行更改时,我可以看到这些更改的唯一方法(即使它只是一个简单的字符串“Hello World!!”到“Hola Genexus !!”)是创建一个完整的新用户控制器。
有什么帮助吗?
我正在使用 Genexus v3 试用版。