-1
I am taking the first steps regarding User Controls in Genexus and I started by creating this simple user control:
Jscript Runtime Render:
function test1($)
{
this.Width;
this.Height;
this.show = function()
{
///UserCodeRegionStart:[show] (do not remove this comment.)
var buffer = "<p> hello </p>";
this.setHtml(buffer);
///UserCodeRegionEnd: (do not remove this comment.)
}
///UserCodeRegionStart:[User Functions] (do not remove this comment.)
///UserCodeRegionEnd: (do not remove this comment.):
}
The only tab I edited was the one where I just added the lines:
var buffer = "<p> hello </p>";
this.setHtml(buffer);
When I add user control to a web panel the result after running the application is an empty web page, not even the page footer and header.
I also followed the Helloworld tutorial to make a User control, but the result of the page is also totally empty (blank). What is wrong here? Something remains to be done?
I’m using trial version 3.
En la consola de Google Chrome o Firefox, aparece algún error? En Google Chrome se abre con F12.
– Gonzalo Gallotti
Yes it was a big mistake for me not to start going to the console! Yes, just when the browser is opened I have this error:
Failed to load resource: the server responded with a status of 404 (Not Found) http://trialapps3.genexus.com/Idf92d5b5d4d440bb6389f30e202ac93d5/gxmetadata/sdapps.json?0.8899557499680668
– marcpt
When I open the web panel I have this error:
GET http://trialapps3.genexus.com/Idf92d5b5d4d440bb6389f30e202ac93d5/test1/test1.js 404 (Not Found)
But the Test1.js file is in the same directory as the Test1.control that genexus recognizes. What I might be doing wrong?– marcpt
Could you please pass me the url of the Web Panel does not work?
– Gonzalo Gallotti