SAPUI5 - Send email via popup dialog box - dialog

I'm wondering if it is possible to send an email in SAPUI5 via a dialog component. I have a dialog box that opens on button press and the requirement is to send a query (with optional attachment) to a email address (a possible of 5 different addresses depending on the option you select for the Subject select component).
Is this possible?
As an alternative option, I have seen the URL helper component which when pressed it loads up a mail client (eg, Outlook) but the business wanted it in a contact form style if possible.
https://sapui5.netweaver.ondemand.com/sdk/explored.html#/sample/sap.m.sample.UrlHelper/preview

On the alternative option is this what you need?
sap.m.URLHelper.triggerEmail("Smith, John <john.smith#sap.com>", "Info Request");

Related

How to display images accourding to choise from dropdown?

I'm creating a Django website where I want to implement such functionality.
There will be one Dropdown list and one submit button. When user selects any item from dropdown list - An image according to user selection will be displayed.
ie. There's drop-down list containing names of animals and one submit button. When user selects any animal from list, photo/details of that animal should appear before pressing submit button.
I don't know how to create link between them. Any reference to such work or advice would be appreciate.
Thank you :)
You likely want to use async request with JavaScript here (look for AJAX or JS Fetch API)
Attach it to onchange event of select element and send it's value to django.
Django will have a view that processes this request and returns a JsonResponse with image url.
Alternatively you can load all urls before hand and just select them on page without request, but anyway if you don't want to press button to take change - you need JavaScript.

Netsuite - Send Email Action Button Not Working

I am working on a workflow that creates a button to "Email All" that emails the customer and then the list of emails in a text field on the invoice. I know the Send Email Action works on its own when tested and the button can be created. i can't to sew them together so that clicking the button performs the action.
I have the workflow set up this way:
State 1
Action Add Button on Before record Load with label "Email All"
Transition from state 1 to state 2. Transition on Entry, and Execute on clicking button in state 1
State 2
Send Email Action. Trigger on Entry
Recipient = Customer > E-Mail. CC {custbodycustbody_cc_emails_to_include} (custom text field)
I'm a bit new to workflows and can't seem to nail this last part. There was a post here
but the steps did not produce the action. The log seems to only show the Add Button. No other errors.
When looking at the workflow logs, did you check the "Show Rejected Actions" option. I think there might be an issue with the CC field. If I recall correctly, it does not support field ids there.

Orbeon Forms - Dialog Control to Email

I would like to prompt a message box that would consist of a label, text box and a button to email the form to the email address added in the text box when the Save button in Orbeon form is clicked. Is there a dialog control suitable for this? Please help.
You'll most likely need to add your own dialog for this. I imagine that this is for a form you're creating with Form Builder. Then the good news is that the upcoming Orbeon Forms 2017.2 will have a new property, oxf.fr.detail.dialogs.custom.*.*, which will allow you to include in your forms dialogs that you've defined in external files.

Aldryn Forms setup: how to add add recipients

I try to use Aldryn forms on the Aldryn platform.
In one form, a setup for recepients is possible.
In another form the recipients part are missing.
What could be the difference between both forms?
How do I add recipients to a form?
Here is how to do it:
One has to choose a theme: default.
Then click:
+ Add another New email notification.
screenprint initial settings
Then one has to save first and reopen the form settings.
Now there is a section "Recipients" and "Email".
Here you can enter the addresses.
screenprint reopened after save
Create and "advanced form" to enter custom email addresses, or one has to choose from the cms-user list.

xpages: compute Confirm Action confirmation text does not work in XPiNC

I'm using Notes/Domino 8.5.3. I've added a button control to an xpage. The button uses a Confirm Action to display a client-side prompt to the user before continuing with the next action defined for the button. When I use static text for the Confirmation Text for the Confirm Action, the confirmation prompt is displayed. However, when I change the Confirmation Text to be computed, and retrieve the text from a profile document, the confirmation prompt it not displayed at all in XPiNC. The confirmation prompt with the computed confirmation text is displayed just fine in a browser. Is there a work-around for this issue with XPiNC?
Following is the code I'm using in the Confirm Action to get the text for the prompt:
var server = database.getServer();
var dbProfile:NotesDocument = database.getProfileDocument("DBProfile", "");
var msg = dbProfile.getItemValueString("ContactsInitUpdatePrompt");
return msg;
To further my comments, this is a work around I use the below code for an app that uses the bootstrap extension library on the web but uses basic functionality with xpinc.
If the values for xPinc are different you could make the confirm action different in the browser and in the client.
if (#ClientType()== "Notes")
{
<action>;
}
else{
<action>;
}
I think that profile documents are a bad idea in xPages though. Having to restart HTTP to get a new value ruins the point I think. Almost better to hard code values at that point. I think you can set application scope to handle the work of profile documents. But then application scope in xpinc is just on the current machine as the server is the client.

Resources