You can do with QUIT, to take back the value in javascript and work with it:
ClientMethod searchValue() [ Language = javascript ] { var ctrl = zen('CountryID'); tVar = ctrl.getValue(); alert (tVar); ///test-show text value
///example name = zenPage.sqlTest(tVar);
zen('CountryName').setValue(name); }
Method sqlTest(tVar) [ ZenMethod ] { SET InVal = tVar &sql(SELECT Countrie INTO :OutVal FROM ZenCrm_Data.Countries WHERE CountrieCode=:InVal) QUIT:SQLCODE'=0 "No data returned! \n SQL error code "_SQLCODE QUIT "Name is = "_OutVal }
go to post
I have found the option [Atelier Explorer]:
But when I login, I get sucessful login message, but anyway can not edit any class, and the second option does not get enabled.
go to post
This don't work too. I will keep trying :(
go to post
I'm using
Atelier: 1.0.262
Caché: 2017.1.1
I can see the classes in Server Explorer (Can not edit).
Where I can login in source control (Atelier)?, in Studio I have this option (Our source control tool):
In Atelier console I can see information about source control, but I have not discovered how to login and use it.
go to post
Well done, this is a great ideia.
This would have been very useful in our Mojo application.
go to post
Hi,
You must use 3 single quotes:
go to post
Hi Ruslan,
I found an alternative,
Suppose your dataCombo id is 'test' ( <dataCombo id="test" ...):
{
&html<<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(event) {
var old = document.getElementById('test').innerHTML;
newHtml = old.replace('class="comboboxInput"','class="comboboxInput" placeholder="Your custom placeholder..."');
document.getElementById('test').innerHTML = newHtml;
});</script>>
Quit $$$OK
}
I hope it helps!
Andrei L. Nenevê
go to post
Hi Marco,
You can do with QUIT, to take back the value in javascript and work with it:
ClientMethod searchValue() [ Language = javascript ]
{
var ctrl = zen('CountryID');
tVar = ctrl.getValue();
alert (tVar); ///test-show text value
///example
name = zenPage.sqlTest(tVar);
zen('CountryName').setValue(name);
}
Method sqlTest(tVar) [ ZenMethod ]
{
SET InVal = tVar
&sql(SELECT Countrie
INTO :OutVal
FROM ZenCrm_Data.Countries
WHERE CountrieCode=:InVal)
QUIT:SQLCODE'=0 "No data returned! \n SQL error code "_SQLCODE
QUIT "Name is = "_OutVal
}
go to post
Good to know, This will be very useful!
Thanks.
go to post
Thanks Eduard,
For now I will use both way, but in the future maybe I need to take a closer look at what fits the most.
go to post
Hi,
This will help a lot in our works.
Thanks.