I have this simple User Control that just displays a string in the web page:
In JScript Runtime Render tab:
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.):
}
I installed this user control, and tested it. Everything is ok, the message "Hello World!" is displayed in my web panel.
The problem is that, when I change the user control, for example to display "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.):
}
I always get "Hello World!!"!!! How can I see those changes applied? How I'm I supposed to develop an user control, and see the changes during the development?
I have tried doing this:
- Close GeneXus if it is open.
- Replace the files of the User Control which have been updated in the User Control folder under GeneXus installation path.
- Execute GeneXus with the /install parameter. For example: \GeneXus.exe /install
- Check that the toolbox still has the option under the User Controls section.
I also have tried to change the user control version, as is said here (http://wiki.genexus.com/commwiki/servlet/hwiki?HowTo%3A+Installing+User+Controls,):
When providing UCs, it is advisable to include the tag “Number” in the UserControlName.control file. If this recommendation is followed, the newer version of the user control is copied to the application directory once the UC installation process is complete (i.e. “genexus.exe /install” execution) and building the application.
And having this information (http://wiki.genexus.com/commwiki/servlet/hwiki?HowTo%3A+Installing+User+Controls,):
How are the UCs copied to the application directory?
UCs are installed in the GX installation directory (i.e. UserControls\UserControlName) and all the UCs being used by an application are automatically copied from the GeneXus Installation directory to the application directory (e.g. CSharpModel\Web\UserControlName).
I suspect that the new js file is never updated in the application directory, but I don't know why!
What can I do to solve this problem? Because right know every time I do changes in the JS files the only way I can see those changes (even if it is just a simple string "Hello World!!" to "Hola Genexus!!") is by creating a complete new user controller.
Any help?
I'm using the Genexus v3 trial version.