Question about HTML Widget


hi, guys i have a Html widget this html object
have a one javascript funcion how i can invoke from wavemaker button?

[SOLVED] Where do application-owned code stubs get generated?


If I attach "Javascript" to an event on a Service Variable that is owned by "Page", I can see the code stub generated. However, if I set the owner to "Application" I cannot find the code stub in "Script"

So, is one generated? If so, where?

By contrast, 6.7 had an AppScript tab for such things. I've been unable to find an equivalent in 7.

Help, setting properties in widgets dinamically created in WaveMaker


Hi, i need help.

Is there an example where the code have all the properties of Form widgets & Basic widgets ?

Im looking for code like this

parentWidget.createComponent(inName, inType, inProps, inEvents, inChildren, inOwner);

and i found the list of properties but i dont undestand where i need to put the properties or how to use them

this.createComponent("myLabel", "wm.Label");

This code help a little but after "wm.Label" i don't know how to set properties.

I hope you can help me, in return i'm going to share the way to create dinamically widgets in a new post.

Piramidale's picture

wm.List - Copy row displayed content to clipboard with a click (JS-generated contents)


Hi all,
my goal is to obtain, on a long press, the copy of the wm.List element text content and let user choose how to share it (ex. email, SMS, ecc.).

I can use "onLongClick" event on wm-List widget to launch a custom function, but i have know how to get the entire row content and copy it to the clipboard.

In the following code i have inserted "?????????" to show the missing code.

share: function(inSender) {
    var Content = this.my_list.selectedItem.?????????;

Thank you!

kentj's picture

Execute Service Call When Window Unloads


How do I ensure a service call executes when a user closes the browser window or navigates to another page?

I am using the BIRT Reporting Engine and have started up an instance of the report Platform object that I need to clean up. I execute a service call to the Reporting Java Service to trigger the destruction of my instance to the garbage collector will delete it.

passing variable to object reference



I am getting annoying error when attempting to pass a variable to dot notation object reference

contractorsDojoGridSelect: function(inSender) {

wm.forEach(this.LiveForm1.widgets, function(editor) {
var editorname = (;
if (editor.datePattern !== undefined) {
this[editorname] = "#ff2121";
this[editorname] = "bold";
this[editorname] = "#ffffff";

Error in [Main:main].contractorsDojoGridSelect: Cannot read property 'domNode' of undefined

Dramia's picture

DojoGrid how setData


Hi everyone !

Actually, I have a ServiceVariable bind to a Java function which return a complex list.
With that, in JavaScript, I fill 2 var, each contains a list.

How bind these 2 lists of a empty DojoGrid ?

Thank you for any tips !


Dramia's picture

DojoGrid click and event


Hi !

I have 2 questions :

Is it possible to click on a dojo grid and set modifications directly on this grid, without use panel/text under this dojo ?

And is it possible to launch a JavaScript code when an user click on a spécific column on a specific row ? (And not just when he clicks on a spécific row)

Thank you for your answers !


Dramia's picture

Export CSV with selectedRow on dojoGrid


Hi everyone,

I want to export, in a csv, a selection when I made.
So I have 2 grids :

Grid1 = all my data

I use this.dojoGrid1.setQuery(row : "myRow");

But the result of this query doesn't appaer (I got empty grid). I have to quit the layer, then come back at the layer to see my query. May be the issue is the dojogrid is not update.. but how can I update it in JavaScript?

After, I want to select automatically all row(s). But that doesn't work..

Translating the invalid widget warning message "Invalid value for WIDGET"


We are in the middle of translating our application into French, and have hit a snag.

I have some widgets (just 2 wm.Text widgets) inside of a wm.LiveForm, and they have a regex attached to them for validation.

I have already found ways to translate the widget, the userPrompt, even the regex is customised for the different languages. But there's a Warning toast message that pops up on these particular inputs, that I can neither find a way to translate, customise, or even turn off.

The Warning message simply states:
Invalid value for Date

Searching Word documents stored in database


Hi All

I really need help with the following. I am currently developing a recruitment database application for my company internally. I want to know what I need to do in order to perform searches on Word docs stored within the application i.e. to search through the candidates resumes.I have seen other applications that uses boolean searches.

I want to know what I must do to use this type of feature within Wavemaker.

Any advise will be greatly appreciated.

Piramidale's picture

HQL - Filtering inside Relationships (ex. CASE Inside SELECT)


please, consider this situation:


- id_a
- col_a1
- col_a2
- col_a3

- id_b
- col_b1
- col_b2
- col_b3
- col_b4

name: MyRelation
type: One-to-many (from "TABLE A" to "TABLE B")

Then, there is an "wm.List" widget (binded to a ServiceVariable that is binded to an HQL query) that need to show:

• Need 1 -> "TABLE A" rows, filtered by "col_a1" value.

Dramia's picture

Export CSV limit 500


Hi everybody!

I currently use "this.DojoGrid.showCSVData();" in JavaScript to export my list of name.
However, my created file.csv contain only the 500 name of my selection.
How can I increase this limit for my file.csv contain all of my selection?

Thank you for any help.


DraggableTree Bug


Dear WaveMaker Team,
I found the following bug in the actual release version 6.6.0.

In the code of widget file DraggableTree.js at line 58 there is:

var moveNodes = !this.multiSelect || this.selected.length === 0 ? this.draggedItem : this.selected;

but in case of multiselection not active the instance variable this.draggedItem will be not an array. Going ahead in the code the array moveNodes is looped to execute the drop for every items. In this case will not work. I fixed the code replacing the mentioned line with the following. Hope this could help you:

Dramia's picture

IPad : no keyboard



I created a web site which works fine on Pc, but not on IPad.
In fact, when I touch text bar, the keyboard doesn't appear..

Someone know why ?

Thanks for any help,


Syndicate content