You need to sign in to do that
Don't have an account?
恵美子 大橋
JavaScriptボタンのlightning対応方法
リストビューのレコードに対して一括アクションを実行するためのJavaScriptボタンがございます。
コードは以下の通りです。
こちらをlightningでも使用する方法をご存知の方がいらっしゃいましたらご教示頂きたく存じます。
{!REQUIRESCRIPT('/soap/ajax/28.0/connection.js')}
{!REQUIRESCRIPT('/soap/ajax/28.0/apex.js')}
var chk = sforce.apex.execute( 'GrobalClass', 'checkSeikyuUser',{});
if(chk == "false"){
alert("権限がありません。");
}
else{
var records = {!GETRECORDIDS( $ObjectType.Item__c )};
var result = sforce.apex.execute( 'invoiceController', 'validate', {idList:records});
var r = eval("("+ result +")");
if(r.isSuccess==false){
alert(r.mess);
}else{
window.open("/apex/invoiceOnly?id="+records, width=800, height=600);
}
}
コードは以下の通りです。
こちらをlightningでも使用する方法をご存知の方がいらっしゃいましたらご教示頂きたく存じます。
{!REQUIRESCRIPT('/soap/ajax/28.0/connection.js')}
{!REQUIRESCRIPT('/soap/ajax/28.0/apex.js')}
var chk = sforce.apex.execute( 'GrobalClass', 'checkSeikyuUser',{});
if(chk == "false"){
alert("権限がありません。");
}
else{
var records = {!GETRECORDIDS( $ObjectType.Item__c )};
var result = sforce.apex.execute( 'invoiceController', 'validate', {idList:records});
var r = eval("("+ result +")");
if(r.isSuccess==false){
alert(r.mess);
}else{
window.open("/apex/invoiceOnly?id="+records, width=800, height=600);
}
}
Have you tried the Lightning Experience Configuration Converter
With this tool, you can recreate the JavaScript buttons and links as Lightning components, quick actions, or other declarative solutions
Anudeep
試してみましたが出来ませんでした。