Element Details: Action.EmailReport
 Back


Available in: Logi Info Source code name: Action.EmailReportIntroduced in: v10.0.382

Action elements are triggered when the user clicks on the parent element.

Action.EmailReport allows the user to send a report via an email message. A popup panel appears allowing entry of To and From addresses, subject and email body.

The Capiton attribute sets the title of the popup panel.

Set the ConnectionID to the ID of an SMTP connection defined in the settings.lgx definition.

The attributes FromEmailAddress, ToEmailAddress, CcEmailAddress, BccEmailAddress, EmailSubject and EmailBody can be set to default values. These will be visible to the user before sending the email.

Reports can be sent as either exported reports attached as files or as the email message body. This is determined by a child Action element.

When sent as an attachment, the report is exported into another format. The Filename attribute can be used to provide a fixed attachment filename. Otherwise, a unique filename is automatically generated.

Action.Report sends the report in the message body - not as an attachment.

Element Group:Exports



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
BccEmailAddress
UserDefined
Identifies the email BCC (blind copy) recipient's email address. Multiple addresses should be separated by semi-colons.
Caption
UserDefined
The Caption attribute identifies the text to be displayed. For Image elements, Caption specifies the image filename.
CcEmailAddress
UserDefined
Identifies the email CC (visible copy) recipient's email address. Multiple addresses should be separated by semi-colons.
Class
UserDefined
Sets the Cascading Style Sheet class used by the element. When set, this class will also be used by all child elements that don't have their own class. The class should be defined in the report's style sheet file.
ConnectionID
UserDefined
Specifies a connection to a data source that is defined in the Settings. For elements connecting to relational databases, default is the first Connection element in _settings.lgx.
EmailBody
UserDefined
Specifies the body of an email message.
EmailSubject
UserDefined
Specifies the subject of an email message.
FromEmailAddress
UserDefined
Identifies the email sender(s).
ID
UserDefined
(Required) The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
PopupMenuCaption
UserDefined
When there are multiple Action elements, a simple popup menu appears allowing selection of the desired Action. PopupMenuCaption specifies the caption for an Action's popup option.
SecurityRightID
UserDefined
When entered, access to this element can be controlled with Logi security. Supply the ID of a right defined in the applications settings’ Security element. Only users that have a right in the SecurityRightID will be able to see the element. Note that when rights come from RightFromRole elements under Security/UserRights, and this element's SecurityRightID does NOT match any of the Right IDs defined in the Settings definition, then the user DOES have access. But when Right IDs are instead derived from RightsFromDataLayer or RightsFromRoles elements, and the user DOES NOT have a matching Right, then the user DOES NOT have access. You can enter multiple right IDs, separated by commas. In this case, the user sees the element if he has any one of the Rights.
TemplateModifierFile
UserDefined
Some elements employ a definition file as a template. The definition contains language and culture specific Caption attributes that you may want to change. Or you may simply want to change the captions to better suit your application. The TemplateModifierFile is an XML file with elements pointing to other elements in the template to be changed. All other attributes get applied in the template. For example, the Dashboard2 element has a template file (rdTemplate\rdDashboard\rdDashboard2Template.lgx) several Label elements. One has an ID="lblAddPanelsTitle". The Caption can be changed with the following XML in the TemplateModifierFile: You can set attributes for any number of elements. Examine the template file to learn the ID and Caption attributes you may want to modify. The above example shows how to identify template elements with an ID attribute. Alternatively, you can also identify elements with an XPath expression. In this example, we change an attribute of the InteractivePaging element: For a more detailed list of modifier actions see the following DevNet article. TemplateModifierFiles can be in any folder accessable to the web application. When a directory location is not specified, the default location is the _SupportFiles folder.
ToEmailAddress
UserDefined
Identifies the email recipient's email address. Multiple addresses should be separated by semi-colons.



PARENT ELEMENTS

Click element to drill down for more information.

Button
Column Cell
Data Calendar Day
Division
Event Handler
HTML Tag
Image
Label
Menu Leaf
Popup Option
Responsive Column


CHILD ELEMENTS

Click element to drill down for more information.

Action.Export CSV
Action.Export Native Excel
Action.Export Native Word
Action.Export PDF
Action.Pre-Action Javascript
Action.Report
Action.Template


 Back to top


 Chart Debug