我有一个简单的用户控件,它仅在网页中显示一个字符串:
在“ 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!” 显示在我的Web面板中。
问题是,当我更改用户控件时,例如显示“ 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.):
}
我总是收到“ Hello World !!”!我如何看到已应用这些更改?我应该如何开发用户控件,并查看开发过程中的更改?
我尝试这样做:
- 如果GeneXus已打开,请关闭它。
- 替换已在GeneXus安装路径下的“用户控件”文件夹中更新的用户控件文件。
- 使用/ 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试用版。
我想当您要更新用户控件时,这回答了您的问题:
https://stackoverflow.com/a/25454131/2121837
在开发过程中,您应该执行以下操作:
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句