Can M-Files bring Send as a PDF back please???

Our company use this feature multiple times per day. Removing this in the latest updates seems like a massive oversight!

Can this please be returned ASAP!!

Regards

Nathan

Parents
  • Hi everyone,

    The BuiltinCommand named "BuiltinCommand_SendPDFByEmail" still works. When creating a client application, you can simply call this command.

    On GitHub, there is an example for built-in commands:
    https://github.com/M-Files/MFilesSamplesAndLibraries/tree/master/Samples/UIX%20Applications/BuiltInCommandEvent/#readme

    Here is the source code for the "appdef.xml" file:

    <?xml version="1.0"?>
    <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.m-files.com/schemas/appdef.xsd">
    	<guid>4F2D1A9C-7E8B-3D6F-1A5C-9B8E4D2F1A3C</guid>
    	<name>Custom Command Send PDF</name>
    	<required-mfiles-version>24.1.13312.7</required-mfiles-version>
    	<modules>
    		<module environment="shellui">
    			<file>main.js</file>
    		</module>
    	</modules>
    </application>

    Here is the source code for the "main.js" file:

    "use strict";
    
    function OnNewShellUI(shellUI) {
        shellUI.Events.Register(Event_NewShellFrame, newShellFrameHandler);
    }
    
    function newShellFrameHandler(shellFrame) {
        shellFrame.Events.Register(Event_Started, getShellFrameStartedHandler(shellFrame));
    }
    
    function getShellFrameStartedHandler(shellFrame) {
        return function () {
            var command1 = shellFrame.Commands.CreateCustomCommand("Send as PDF by E-mail");
            shellFrame.Commands.AddCustomCommandToMenu(command1, MenuLocation_ContextMenu_Bottom, 0);
            shellFrame.Commands.Events.Register(Event_CustomCommand, function (command) {
                if (command == command1) {
                    shellFrame.Commands.ExecuteCommand(BuiltinCommand_SendPDFByEmail, null);
                }
            });
        };
    }

Reply Children
No Data