There are several tot modules for BAS >
https://community.bablosoft.com/topic/9519/tor
https://community.bablosoft.com/topic/14198/tor-module
https://community.bablosoft.com/topic/10243/advor
@darkstone said in Get element attribute from custom interface:
Who can I get an element attribute on my custom interface?
I tried this solution but didn't workAny solution?
thanks
Use quotation marks:
alert("[[PROJECT_PATH]]")
@darkstone said in Get element attribute from custom interface:
@fox i mean i need to get $('element').val() and store it on a variable that can i used inside BAS
Code for the "Run javascript in web interface" action:
Api.SetGlobalVariable("GLOBALVARIABLENAME", $('element').val())
It is better to hang the handler on this element so that when it is changed, it writes the result to a global variable. In this case, the global variable will always contain relevant information:
$("#element").change(function() {
Api.SetGlobalVariable("GLOBALVARIABLENAME",this.value)
});