Hello,
i have an issue with the code displayed in the Wiki:
let msgBoxResult = await brixxApi.messageBox({
title: "sampel title",
text: "sampel text", ....
I changed the "let msgBoxResult = brixxApi.messageBox" to
"let msgBoxResult = app.messageBox".
As far as i know, we shouldn´t need the "await" anymore, if we use "app." instead of "brixxApi.".
Unfortunately it does not work without the "await", when i combine it with a
app.compose Email.
Here is my full code:
let sendMail = await app.messageBox({
title: "Email Versenden?",
buttons:[
{
title: "Ja",
value: "1"
},
{
title: "Nein!",
value: "2"
}
]
});
if(sendMail == 1){
app.composeEmail({
text: "the text",
to:["email"],
subject: "Subject",
from: "fromMailAddress",
autoSend: true,
attachmentBlobs: [
{
name: "",
blob: myBlob = app.createReport("reportControl")
}
],
});
}
Is it intended, that we still need the await here?