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
| Window | How to open | Condition |
|---|---|---|
| Share File | The 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 Settings | File > 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 window | The program does not open it in this version. | — |
| Server connection | From the create-file, open-database and sign-in windows, and from the Home page. | — |
| Human Resources connection parameters | Program Options > Link > Setup in the Human Resources group. | The connection is enabled on the same page. |
| The old password window | The Password button in the loyalty card and the discount card in the point of sale. | — |
| Image Processor | From the "Images must be processed" notification, and from the question that appears when a grid shows an image column. | — |
| Generate Bill | In 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.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Share Method | How the document reaches them. | Yes | Email, 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. |
| Recipients | The addresses or numbers. | Yes | Type 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. |
| Button | What it does |
|---|---|
| Send | Checks 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. |
| Cancel | Closes 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
| Method | What arrives |
|---|---|
| One 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. | |
| With 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. | |
| SMS | Nothing. 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
| Message | Why it appears | What 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.

Email
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Enable Service | Turns on the automatic messages that the program sends from the database, such as notices to customers. | No | Default: 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 Name | The type of e-mail account. | Yes | Microsoft Account, Gmail, Office 365, Yahoo or Other. The names are in English in every language. |
When you choose Microsoft Account, these items appear:
| Item | What 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. |
| Account | Shows the account name after you sign in. |
| Login | Opens 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. |
| Logout | Signs out of the account at once. It appears after signing in. |
When you choose any other provider, the SMTP fields appear:
| Field | Description | Required | Values and rules |
|---|---|---|---|
| SMTP Server | The name of the mail server. | Yes | Gmail, Office 365 and Yahoo put in the name of their server, and you can edit it. For Other, type your provider's server. |
| Port | The server port number. | Yes | A whole number, such as 587. The program does not fill it in. |
| Enable SSL | Asks for a protected connection during the test. | No | Sending from the sharing windows agrees on the protection with the server automatically, so it does not depend on this. |
| The sender address that the recipient sees. | Yes | A valid e-mail address. | |
| User Name | The sign-in name on the server. | No | If you leave it empty, the program does not ask the server to sign in. |
| Password | The account password. | No | Saved 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.
| Field | Description |
|---|---|
| Send Test To | Type 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.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Enable Service | Turns on the automatic messages. | No | Default: on. |
| Server Name | A ready setup template. | Yes | Other, 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. |
| URL | The address of the request at the provider. | Yes | Put in by the template. |
| User Name and Password | The sign-in data for the provider. | Depends on the provider | The 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 Method | The shape of the request. | Yes | GET or POST. |
| Service Parameters | A table of the names and values that are sent. | Depends on the provider | The 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. |
| Preview | A collapsed group that shows the request as it will be sent. | — | With GET it shows the address followed by the parameters. |
| Send Test | A 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

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Service Provider | The party that sends the message. | Yes | WhatsApp for Business or WhatsApp by Endless Data. This page has no "enable" switch. |
For WhatsApp for Business:
| Field | Description | Required | Values and rules |
|---|---|---|---|
| WhatsApp Business ID | The business account identifier. | Yes | Paste it with the paste icon inside the field. |
| Account ID | The WhatsApp business account identifier. | Yes | Same. |
| Phone Number ID | The identifier of the sending number. | Yes | Same. |
| Access Token | The access code that the provider gives you. | Yes | Same. It is shown in the field as plain text, so do not display it or send it to anyone. |
| Report Template | The approved message template used to send the document. | Yes | Disabled 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:
| Field | Description | Required | Values and rules |
|---|---|---|---|
| URL | The address of the service. | Yes | Filled in by the program. |
| Api Key | Your account key at the service. | Yes | Paste 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
| Button | What it does |
|---|---|
| OK | Saves 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. |
| Cancel | Closes 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
| Item | Where it is saved |
|---|---|
| E-mail provider, SMTP data with the password, the Microsoft account name and the test address | In the file settings, for all its users. |
| The "Enable Service" switch for e-mail and for SMS | In the file settings. |
| The chosen SMS setup with its parameters and its password | In the file settings. |
| WhatsApp identifiers, the access token, the template and the key | In the file settings, for both providers together. |
| The recipients you added in Share File | On this computer, for the current Windows user. |
| The last share method | For 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.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Select or enter server name | The SQL Server that holds the Human Resources database. | Yes | Choose from the list or type. It starts with the saved server. |
| Use Windows Authentication Mode | Sign in with the current Windows account. | — | Default: what was saved. The name and password fields are disabled. |
| User Specific Name and Password | Sign in with a SQL Server account. | — | Enables the next two fields. |
| Name | The SQL Server user name. | In this mode | If you open the database list while it is empty, "Please enter user name" appears. |
| Password | The password of that account. | In this mode | Saved with the connection settings in the file. |
| Select the database on the server | The Human Resources database. | Yes | The list fills when you open it, with the server databases that are not alameen file databases and not system databases. |
| Button | What it does |
|---|---|
| Ok | Checks 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. |
| Close | Closes 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.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Old Password | The current code. | If a code exists | Shown only when the card has a code. Compared ignoring the case of English letters. |
| New Password | The new code. | Yes | No rules on length or characters. |
| Verify Password | A repeat of the new code. | Yes | Matches the new code, ignoring the case of English letters. |
| Button | What it does |
|---|---|
| Ok | Checks, then puts the code in the open card. It is saved only when the card is saved. |
| Cancel | Closes 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.
| Element | What it shows |
|---|---|
| Welcome to the Image Enhancement Processor and the description | Explains 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. |
| Start | Starts 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.

| Field | Description | Required | Values and rules |
|---|---|---|---|
| Bill type | The bill type that is generated. | Yes | The bill types of the direction that suits the report, in the order of the types. |
| Customer | The customer or supplier. | For credit pay | Type a few letters of the name so that the field lists the matching choices. |
| Currency and Parity | The 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. |
| Warehouse | The warehouse the invoice is generated for. | Yes | Type a few letters of the name so that the field lists the matching choices. |
| Cost center | The cost center. | Sometimes forced by the bill type | — |
| Branch | The invoice branch. | When branches are enabled | It does not appear if branches are not enabled. |
| Pay Type | Cash or On Credit. | Yes | — |
| Salesman and Distributor | The salesman and the distributor. | — | — |
| To Reach | The quantity that the invoice is calculated to reach: Maximum, Minimum, Re-Order Point or Total Quantity. | Yes | It 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".
Related
This page applies to alameen ERP 10, version 10.1.79.764.