Skip to main content

Sharing, connection and password windows

This page groups windows that share one idea: getting something from the program to the outside, or linking it to another system. They are the Share File window that sends a document, the Share Settings window that sets up e-mail, messages and WhatsApp, the server connection windows, the old password window, the Image Processor and the Generate Bill form. The sending steps are in Send a document by e-mail or message, and the setup steps in Set up e-mail, WhatsApp and SMS sharing.

Opening the windows​

WindowHow to openCondition
Share FileThe Share button in the invoice and order windows, in the print options window (vouchers, payments and journal entries get there), in the document preview, and on the Share page of the report viewer. Also from the print designer, a desktop tile, the workspaces management window and the Excel export wizard.A sending account set up in Share Settings.
Share SettingsFile > Program Options > Link > the Settings to Share group > Email, SMS or WhatsApp.A user with full permissions; otherwise the message "You must have full permission" appears, with "You don't have the appropriate authority to perform this operation" under it.
The old Send Mail windowThe program does not open it in this version.—
Server connectionFrom the create-file, open-database and sign-in windows, and from the Home page.—
Human Resources connection parametersProgram Options > Link > Setup in the Human Resources group.The connection is enabled on the same page.
The old password windowThe Password button in the loyalty card and the discount card in the point of sale.—
Image ProcessorFrom the "Images must be processed" notification, and from the question that appears when a grid shows an image column.—
Generate BillIn six stock and order reports, from the Operations tab of the viewer: the button Generate Bill, Input Bill, Output Bill, Purchase Order or Sales Order, depending on the report.—

Share File​

This window carries a ready document to recipients by e-mail, WhatsApp or message. Before it opens, the program prepares the document as a temporary file in PDF or the format you chose.

The Share File window with the share method, the recipients field and a Send button

FieldDescriptionRequiredValues and rules
Share MethodHow the document reaches them.YesEmail, SMS or WhatsApp. It starts with the last method you used in the invoice, voucher and payment windows, and with e-mail elsewhere. Changing the method clears the recipients and puts in the contacts that suit the new method.
RecipientsThe addresses or numbers.YesType a value and press Enter to turn it into a tag. For e-mail, type @me to put in the e-mail of your account from the user card. A value that is not valid does not enter the recipients list, and no message appears. For messages and WhatsApp, numbers are accepted in the usual formats: a + sign, spaces, dashes and brackets.
ButtonWhat it does
SendChecks the recipients and that the file exists, then sends. While sending, the button is disabled and a progress bar appears at the bottom of the window.
CancelCloses the window without sending.

The program remembers the recipients you add so that you find them in the suggestion list, separately for each kind (e-mail or numbers), on this computer and for the current Windows user.

What the recipient receives​

MethodWhat arrives
EmailOne message to all recipients, with the document title as subject, the program name as text, and the document attached. It is sent from the e-mail account set up in Share Settings.
WhatsAppWith WhatsApp for Business: a message based on an approved template, holding the document and its title. With WhatsApp by Endless Data: a message whose text is the document title, with the document. It reaches every number, and the number is sent as you typed it.
SMSNothing. The window closes as if the sending had worked, and the program sends no message from here in this version.

The attached file from invoices, vouchers and payments has a temporary name made of the program name and the creation time, with the extension .pdf. From the preview and the report viewer it is named after the document title.

After sending​

  • When sending succeeds the window closes with no success message.
  • From the invoice window only: if you sent to a single recipient who is not in the customer card, and you may edit customer cards, the program asks "Do you want to save the email address to the customer card?" or "Do you want to save the mobile number to the customer card?", and under it "This e-mail is missing in the customer card, do you want to enter the e-mail address in this field" followed by the name of the first empty field of that kind in the customer card. If all fields of that kind are used, it tells you so and asks whether to write the value in the last field. After Yes, "Updated successfully" appears.

Messages​

MessageWhy it appearsWhat to do
Please enter recipients.You clicked Send with no recipients.Add at least one recipient.
File not found.The temporary file is no longer in place; its path appears under the message.Close the window and share again.
Sorry, an error occurred while sending the file.Sending failed. The reason appears under it. It may be "Incorrect username or password.", or "Connection error. Please check your ISP address and port number.", or, for a Microsoft account, "Invalid authentication code. Please log in again from the connection settings window (Program Options - Link).", or a text sent by the server. This message also appears when the Microsoft service refuses the message for another reason, such as the size of the file.Read the reason. For the common causes see Send a document by e-mail or message.

Share Settings​

This window sets up the accounts the program sends from. It has three pages: Email, SMS and WhatsApp. It opens on the page whose button you clicked in Program Options. It opens only for a user with full permissions; otherwise the message listed in Opening the windows appears. The settings are saved with the file and apply to all its users.

The Share Settings window showing the Email page

Email​

FieldDescriptionRequiredValues and rules
Enable ServiceTurns on the automatic messages that the program sends from the database, such as notices to customers.NoDefault: on. It does not affect the Share File window or sending from the Share Center. When it is cleared, the rest of the page is disabled except the test field.
Server NameThe type of e-mail account.YesMicrosoft Account, Gmail, Office 365, Yahoo or Other. The names are in English in every language.

When you choose Microsoft Account, these items appear:

ItemWhat it does
Warning"Microsoft accounts are only supported for sending from within alameen and are not supported for scheduled messages. If you want to send scheduled messages, please use another provider." The warning is about the notifications that the database server sends at set times. Share Center tasks in Share Center work with a Microsoft account while its sign-in is valid.
AccountShows the account name after you sign in.
LoginOpens the Microsoft sign-in window. After signing in it becomes Change Account. Change Account opens no window while the current sign-in is valid, and returns the same account. To use another account click Logout, then Login. The window opens when the sign-in has expired. If you close the Microsoft window without signing in, the account shown is cleared.
LogoutSigns out of the account at once. It appears after signing in.

When you choose any other provider, the SMTP fields appear:

FieldDescriptionRequiredValues and rules
SMTP ServerThe name of the mail server.YesGmail, Office 365 and Yahoo put in the name of their server, and you can edit it. For Other, type your provider's server.
PortThe server port number.YesA whole number, such as 587. The program does not fill it in.
Enable SSLAsks for a protected connection during the test.NoSending from the sharing windows agrees on the protection with the server automatically, so it does not depend on this.
EmailThe sender address that the recipient sees.YesA valid e-mail address.
User NameThe sign-in name on the server.NoIf you leave it empty, the program does not ask the server to sign in.
PasswordThe account password.NoSaved with the settings in the file.

When the window opens, the four providers start with the same saved SMTP values, and the program does not put in a port or protection of its own when you choose a provider. What you type under one provider does not move to another, and the provider you chose last is the one saved.

FieldDescription
Send Test ToType your address and click the send icon inside the field. The program sends a "Test Message" with the values you have typed now, without waiting for OK. On success "Sent Successfully" appears, and on failure "Failed to send message". The reason for failure appears with it for a Microsoft account only; for SMTP only the general message appears. The program saves the address for next time when you click OK.

SMS​

The program sends text messages with a request to the service provider's site over the internet. The automatic messages run from the database server itself, so the server must reach the internet.

The SMS page with the provider, the URL and the service parameters

FieldDescriptionRequiredValues and rules
Enable ServiceTurns on the automatic messages.NoDefault: on.
Server NameA ready setup template.YesOther, and the templates of providers that the company ships with the program: clickatell and smsapi. Each provider has its own values, and what you edit stays when you switch provider while the window is open. Only the provider you chose is saved.
URLThe address of the request at the provider.YesPut in by the template.
User Name and PasswordThe sign-in data for the provider.Depends on the providerThe program uses them to sign in to the request if you type a user name. Some providers ask for them as parameters in the table instead, as in the two ready templates.
Send MethodThe shape of the request.YesGET or POST.
Service ParametersA table of the names and values that are sent.Depends on the providerThe first row is the name of the message text parameter, and the second is the name of the phone number parameter. You can edit their names. Their values, "Message Text" and "Mobile Phone", are replaced by the program when it sends, so they cannot be edited and the two rows cannot be deleted. Add a row at the end of the table for each other parameter the provider asks for, such as an account key.
PreviewA collapsed group that shows the request as it will be sent.—With GET it shows the address followed by the parameters.
Send TestA collapsed group with a To field for a number, digits only, and a send icon.—The message is "Test Message".

The test uses the settings saved in the file, not the ones on the screen. Click OK first, then open the window and try. The test is sent from the database server, not from your computer. The program shows the answer it received from the provider, and a connection error text may appear in an ordinary information box, so read the text and not only the icon. If a text says that the procedure NSCLRSendSms does not exist, click OK and test again.

WhatsApp​

The WhatsApp page with the service provider, the account identifiers and the report template

FieldDescriptionRequiredValues and rules
Service ProviderThe party that sends the message.YesWhatsApp for Business or WhatsApp by Endless Data. This page has no "enable" switch.

For WhatsApp for Business:

FieldDescriptionRequiredValues and rules
WhatsApp Business IDThe business account identifier.YesPaste it with the paste icon inside the field.
Account IDThe WhatsApp business account identifier.YesSame.
Phone Number IDThe identifier of the sending number.YesSame.
Access TokenThe access code that the provider gives you.YesSame. It is shown in the field as plain text, so do not display it or send it to anyone.
Report TemplateThe approved message template used to send the document.YesDisabled until you fill the four fields. When you open the list, the program fetches the approved templates whose language code equals the program's language code exactly, and whose header is a document and whose text has exactly one variable. If there is exactly one template, the program selects it. Changing any of the four fields clears the selected template.

For WhatsApp by Endless Data:

FieldDescriptionRequiredValues and rules
URLThe address of the service.YesFilled in by the program.
Api KeyYour account key at the service.YesPaste it with the paste icon inside the field.

This page has no test button. With WhatsApp for Business the program connects to the service when you open the Report Template list, so a successful load shows only that Account ID and Access Token are accepted. The program does not use WhatsApp Business ID and Phone Number ID before a document is sent, so send a document to check them. Its messages: "No templates found." when no template fits, and "An error occurred while loading templates" with "Please review your settings and make sure you have an internet connection, then try again." under it.

Buttons and saving​

ButtonWhat it does
OKSaves all three pages, even those you did not open. Then it prepares the database to send automatic messages: it turns on what that needs on the server and on the file's database. The SQL Server account that the program connects with must allow this. If saving fails, "Sorry, an error occurred while saving settings." appears, the window closes, and part of the settings may have been saved.
CancelCloses the window without saving what you typed. But Login and Logout of a Microsoft account take effect at once and are not undone by Cancel.

OK also records, for e-mail and for SMS, whether the service was tested in this session: the test worked, failed, or was not done. If you click OK without testing, "not tested" is recorded even if the service works. This state is saved for each service every time you click OK, even if you did not open its page. The program uses it when you transfer the file to a new year: it prepares the service in the new file if one of the two services is "working".

What is saved and where​

ItemWhere it is saved
E-mail provider, SMTP data with the password, the Microsoft account name and the test addressIn the file settings, for all its users.
The "Enable Service" switch for e-mail and for SMSIn the file settings.
The chosen SMS setup with its parameters and its passwordIn the file settings.
WhatsApp identifiers, the access token, the template and the keyIn the file settings, for both providers together.
The recipients you added in Share FileOn this computer, for the current Windows user.
The last share methodFor your user in the file.

Passwords and keys are saved in the file settings, so anyone who can read the file's database can reach them. Use an account for sending that has its own password.

The old Send Mail window​

An old window titled Send Mail with the fields To, Subject and Attach, a text box for the message, the buttons Send, Options and Cancel, and a Status line. The program does not open it in this version. It has been replaced by the Share File window and by the Send EMail button in the Error window.

Server connection​

The Connect to Server window sets the SQL Server and the way to sign in to it. It opens from several places, and it is explained field by field in Choose the default SQL server, so it is not repeated here.

Human Resources connection​

The Connection Parameters window sets the server and the database from which the program reads the data of the alameen Human Resources program. It opens with the Setup button on the Link page of Program Options, and that page is explained in Program Options: default values, link and holidays.

The Connection Parameters window with the server, the sign-in mode and the database

FieldDescriptionRequiredValues and rules
Select or enter server nameThe SQL Server that holds the Human Resources database.YesChoose from the list or type. It starts with the saved server.
Use Windows Authentication ModeSign in with the current Windows account.—Default: what was saved. The name and password fields are disabled.
User Specific Name and PasswordSign in with a SQL Server account.—Enables the next two fields.
NameThe SQL Server user name.In this modeIf you open the database list while it is empty, "Please enter user name" appears.
PasswordThe password of that account.In this modeSaved with the connection settings in the file.
Select the database on the serverThe Human Resources database.YesThe list fills when you open it, with the server databases that are not alameen file databases and not system databases.
ButtonWhat it does
OkChecks that the server and the database are not empty; otherwise "No special data has been specified in payroll program or the specified data has no identified sections" appears. Then the Link page checks that the database is a Human Resources database and saves the connection at once, and switches it on. The connection is saved before OK or Apply of Program Options, and Cancel there does not undo it.
CloseCloses the window with no change.

When you open the database list, the program adds, if needed, a link between the file's server and the chosen server. If the sign-in fails or the program cannot reach the server, "A problem occurred while connecting. Please check your connection settings" appears.

The old password window​

The old Change Password window changes the password code in the Loyalty Card and the Discount Card in the point of sale. A user's own password is changed in another window; see Change your password and Change a user password.

FieldDescriptionRequiredValues and rules
Old PasswordThe current code.If a code existsShown only when the card has a code. Compared ignoring the case of English letters.
New PasswordThe new code.YesNo rules on length or characters.
Verify PasswordA repeat of the new code.YesMatches the new code, ignoring the case of English letters.
ButtonWhat it does
OkChecks, then puts the code in the open card. It is saved only when the card is saved.
CancelCloses the window.

Messages: "Incorrect old password" and "Password and confirmation do not match". When you open an existing loyalty card, the button does not work for a user without the permission Change password in loyalty cards, and "You do not have permission" appears with "You don't have permission to change the password" under it. The password rules of the file are not applied to this code.

Image Processor​

It prepares small copies of the pictures saved in the file so that they can be shown and printed in the report preview. The title is Image Processor.

ElementWhat it shows
Welcome to the Image Enhancement Processor and the descriptionExplains that processing may take long depending on the number and size of the images, and that what is processed is saved so you can cancel and finish the rest later, and gives the number of images waiting. If there are none, "There are no thumbnails that need processing" appears and the Start button does not.
StartStarts processing.
Progress line and percent"Processing image (… of …)", a percentage and a bar.
"Operation completed successfully"Appears when all images are processed.
Cancel (Close after it ends)Closes the window. While processing, it asks "Do you really want to cancel the operation?", and after Yes the processing stops.

The processor appears when you click Start in the notice "Images must be processed and optimized in order to display and print them in the report preview", and when a grid in a report shows an image column and you answer Yes to "Would you like to start processing now?". After processing from a report, the report is refreshed. The steps are in Create picture thumbnails.

Generate Bill​

The Generate Bill form turns the rows of a materials report into an invoice. It appears with a button in six stock and order reports. The button is named Generate Bill in two of the stock reports, Input Bill and Output Bill in two others, and Purchase Order and Sales Order in the two order reports. The two order buttons make an order, not an invoice. For each material in the report the program calculates the difference between the chosen limit and the quantity in stock, and adds to the invoice only the materials whose result is positive.

The Generate Bill form with the bill type, the pay type and the warehouse

FieldDescriptionRequiredValues and rules
Bill typeThe bill type that is generated.YesThe bill types of the direction that suits the report, in the order of the types.
CustomerThe customer or supplier.For credit payType a few letters of the name so that the field lists the matching choices.
Currency and ParityThe invoice currency and its exchange rate.—The parity is taken as a whole number. If it has a fraction, check it in the generated invoice.
WarehouseThe warehouse the invoice is generated for.YesType a few letters of the name so that the field lists the matching choices.
Cost centerThe cost center.Sometimes forced by the bill type—
BranchThe invoice branch.When branches are enabledIt does not appear if branches are not enabled.
Pay TypeCash or On Credit.Yes—
Salesman and DistributorThe salesman and the distributor.——
To ReachThe quantity that the invoice is calculated to reach: Maximum, Minimum, Re-Order Point or Total Quantity.YesIt appears in some reports only.

Messages: "Must select a warehouse", "Branch Must Be Selected", "You must specify a customer account in case of credit pay" and "Must select a cost center". The last one appears whenever the chosen bill type forces a cost center, and the generation does not complete from this form.

On OK the program saves the invoice and posts it at once without showing it first, with today's date, taking into account any approvals the type requires. If today is after the end of the period, before the operations lock date, or before the start of the period, it asks "Today date is later to closing date. Do You Want to generate bill?", "Today date is before Lock Date. Do you want to generate bill?" or "Today date is before beginning date. Do you want to generate bill?", and if you agree it uses the end date, the lock date or the opening date as the case may be. After saving, "Bill saved successfully" appears and the invoice opens. If no material has a positive quantity, "No materials for saving bill" appears, and if saving fails, "An error occurred during saving bill".

This page applies to alameen ERP 10, version 10.1.79.764.