FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
Wlanguage equivalent of Javascript code
Wlanguage equivalent of Javascript code
Débuté par Gautam, 15 nov. 2020 10:08 - 1 réponse
Connectez-vous…
Gautam
#1
Membre enregistré
67 messages
Posté le 15 novembre 2020 - 10:08
Hi All
I am trying out a Javascript component from Stimulsoft (
www.stimulsoft.com
) to allow dynamic creation of reports in Webdev.
As per the supporting documentation for the component I have created the following Javascript function and call this function from the onLoad event of the browser in WL. This function works well.
function startReportDesigner()
{
var designer = new Stimulsoft.Designer.StiDesigner(null,"StiDesigner",false);
designer.renderHtml("A2"); //A2 is the alias for Cell_Report control defined on the page in which the designer is rendered
}
The above function is called from onLoad event of the page (WL) using the following command:
startReportDesigner()
All the relevant dependency files .css and .js files have been loaded on the page and the above function works well.
However, I would like to REWRITE the above using WLanguage code with something like below in the onLoad section of the page
designer is object dynamic
designer = new "Stimulsoft.Designer.StiDesigner(null,'StiDesigner',false)"
designer.renderHTML(Cell_Report..Alias)
The above code fails to execute with a "Stimulsoft.Designer.StiDesigner(null,'StiDesigner',false)" element not found error message.
Can anyone help me understand how I should define the above in the correct manner so the "designer" variable can be accessed as an object in WLanguage code?
I want to be able to access the designer variable defined in the javascript function from many other places and therefore want to declare this as a WLanguage object.
Many thanks and regards
Signaler
0
0
Renko Allard
#2
Posté le 29 décembre 2020 - 20:14
hELLO
Make a wlanguadge browser procedure . In that procedure call the javascript function.That should do the job.You can call the wlanguage function everywhere you want
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte