:: Forum >>

Browse button inside the grid

How can we have a browse button in one of the cells inside grid control ?
Vidyadhara
Friday, July 6, 2012
Just to elaborate, it is the file browser dialog which needs to show up when the browse button is clicked.
Vidyadhara
Friday, July 6, 2012
Alex, is there anything like this ?
Vidyadhara
Tuesday, July 10, 2012
You can put a button in the cell of a browse but you will need to use JAVA to connect to the local file system of the workstation. I use jumploader, free and works like a charm.

Here is how you can add a button in the cell:

var formTemplate1 = new AW.System.Template;
formTemplate1.setClass("item", "template");
formTemplate1.setClass("templates", "cell");

var button1 = new AW.HTML.BUTTON;
button1.setContent("html", "Delete");
button1.setEvent("onclick","TAB06030201Delete(event)")
button1.setSize(40,20);
button1.setStyle("font-size","10px");
button1.setStyle("text-align","center");
button1.setStyle("line-height","normal");
button1.setAttribute("disabled","_GRIDBUTTON_");
formTemplate1.setContent("button", button1);

...

grid.setCellTemplate(formTemplate1, 2);
Erik Dobrie
Tuesday, July 10, 2012
Thanks Erik. Let me see if it works
Vidyadhara
Tuesday, July 17, 2012

This topic is archived.


Back to support forum

Forum search