Hi all ,
I need any help.
From grid component design on grip properties
Client-Side Xbasic Function not work in a5v11
but work only in a5v10.5
==============================================
I try to create xbasic function from
Properties->miscellaneous->client side xbasic function
this my code:
function MyFunction as v (obj as p)
dim msg as c
msg = "Hello world"
msgbox(msg)
end function
============== and I Freeform edit regions ===
Above grid: I add code like this
<button onclick="MyFunction(this)">Run</button>
when I start run working Preview and click on
the button "Run" it work on V10.5
the popup show msgbox
================ when I used the same code on v11 ==
show error like this
script error
An error has occurred in th script on this page
line 685
char 1
error object expectes
url .........
I want to known I code wrong / or version
THis document from help
===================================
Grid Components - Desktop Applications and Working Preview - Client-side Xbasic
-------------------------------------------------------------------------------
The ability to use client-side Xbasic in a Grid is an extremely powerful feature that greatly extends the utility of the Grid component when used in a Desktop application. For example, assume you have a button on a Grid and you want to use Xbasic to handle the button's onClick event. You might define the following code in the 'Javascript - Attribute' pane, added to the onClick attribute for the button. when the Grid is rendered:
Thanks you very much for help
Compee Jitjai
I need any help.
From grid component design on grip properties
Client-Side Xbasic Function not work in a5v11
but work only in a5v10.5
==============================================
I try to create xbasic function from
Properties->miscellaneous->client side xbasic function
this my code:
function MyFunction as v (obj as p)
dim msg as c
msg = "Hello world"
msgbox(msg)
end function
============== and I Freeform edit regions ===
Above grid: I add code like this
<button onclick="MyFunction(this)">Run</button>
when I start run working Preview and click on
the button "Run" it work on V10.5
the popup show msgbox
================ when I used the same code on v11 ==
show error like this
script error
An error has occurred in th script on this page
line 685
char 1
error object expectes
url .........
I want to known I code wrong / or version
THis document from help
===================================
Grid Components - Desktop Applications and Working Preview - Client-side Xbasic
-------------------------------------------------------------------------------
The ability to use client-side Xbasic in a Grid is an extremely powerful feature that greatly extends the utility of the Grid component when used in a Desktop application. For example, assume you have a button on a Grid and you want to use Xbasic to handle the button's onClick event. You might define the following code in the 'Javascript - Attribute' pane, added to the onClick attribute for the button. when the Grid is rendered:
Thanks you very much for help
Compee Jitjai
Comment