Skip to content

Administering Nama Mobile from the ERP ​

Nothing about Nama Mobile is configured on the phone beyond the server address and the printer. Which screens a user sees, which fields those screens show, what a list card says, which records a lookup offers, which phone is allowed to save, and what the dashboard draws — all of it is decided in the ERP, by an administrator, under Basic → Mobile Apps. This page is the map of that menu: what each screen is for, where it is explained, and when a change actually reaches the phone. It also covers the one screen that has no other home, the Mobile Application Dashboard.

The Mobile Apps menu, screen by screen ​

Screen (menu name)ArabicWhat it decidesExplained in
Mobile App Screen Modifierتعديل شاشة التطبيقWhich fields a document screen shows, in which order, and which are requiredShaping the app's screens
Mobile Entity Title Modifierطريقة عرض بيانات المستند في التطبيقThe lines of text shown on each card in a list or a search resultShaping the app's screens
Mobile App Translation Overrideترجمة حقول تطبيق المحمولYour own wording for any label the app showsShaping the app's screens
Mobile App Fields Extra Filterمعايير إضافية لفلتر حقول تطبيق المحمولWhich records a lookup field in the app offersShaping the app's screens
Mobile App Menu Definitionتعريف قائمة التطبيقThe groups and screens in the Menu and More tabsOverview, Navigation & Settings
Mobile App Shortcutتعريف اختصارات التطبيقThe shortcut cards that can replace the home pageOverview, Navigation & Settings
User Mobile Identifier Documentسند تعريف هاتف مستخدِمWhich phone each user may save documents fromBinding users to their phones
Mobile Application Dashboardلوحة تطبيق الموبايلThe charts on the app's dashboard screenBelow
Mobile QR Integratorربط QR بتطبيق الموبايلWhat happens when the app scans a QR codeMobile QR Integrator
Mobile Security Configurationإعدادات صلاحيات الموبايلExtra app rights given to chosen users, such as seeing every driver's delivery statusBelow
Mobile Apps Configurations (last item in the menu)إعدادات تطبيقات الهواتف المحمولةBooks, print templates, draft saving, attendance rules and the rest of the app's behaviourMobile Apps Configurations — option reference

All of these screens come with the basic licence.

The Mobile Apps folder of the Basic menu

When a change reaches the phone ​

The app does not ask the server about its configuration every time it opens a screen. It downloads the user's settings when the user logs in, and again when the user presses Reload app data in the app's Settings screen, and works from that copy. So after you change a screen modifier, a translation override, a menu definition or a shortcut, the user sees the change only after logging in again or reloading the app data. When you are testing a change, reload on the test phone before concluding that it did not work.

Three things are different, because the server applies them at the moment the app asks for data:

  • Mobile Entity Title Modifier — the server writes the card titles into every list it sends, so the next time the user opens or refreshes the list, the new titles are there.
  • Mobile App Fields Extra Filter — the server adds the filter to the search each time the user opens a lookup, so a changed criteria applies to the very next lookup.
  • User Mobile Identifier Document — where the phone check is switched on, the server checks it on every save, so accepting or rejecting a phone takes effect on that phone's very next save.

One record per screen

For the screen modifier and the entity title modifier, keep a single active record (or a single line) for each app screen. When two active ones apply to the same screen, only one of them is used, and which one is not something you can rely on. Untick Inactive on the one you want and tick it on the others.

The API Credentials record each app user gets ​

The first time a user logs in to the app, the server creates an API Credentials record for that user (Basic → Documents → API Credentials) and hands its key to the phone. From then on the app signs its requests with that key rather than with the password. The record is named Mobile App Access For followed by the user's English name (Arabic name: «دخول تطبيق الموبايل لـ» followed by the user's Arabic name), and its code is the user's internal id followed by -Mobile-API-Key. Later logins reuse the same record, so each user has one.

These records are expected — nobody created them by hand, and they should not be deleted to tidy up. Because the phone works through this key, the record governs that user's app access:

  • Ticking Prevent Login on it, or a Valid to date that has passed, stops the app's requests from that user.
  • Deleting it cuts the phone off until the user logs out of the app and logs in again, which creates a fresh record.

The Mobile Application Dashboard ​

The app's Dashboard screen draws charts. Which charts is decided by a Mobile Application Dashboard record, and which record a user gets is decided on the user's own record, in its Mobile Application Dashboard field. A user whose record has no mobile dashboard but has an ERP Dashboard in the same settings is given that ERP dashboard instead, shown as a web page inside the app. A user with neither sees an empty dashboard screen.

The charts themselves are not built here. Each one is a DashBoard Widget (Administration → DashBoards → DashBoard Widget) — the same widgets the ERP's own dashboards use, see the BI module guide. The mobile dashboard record only picks widgets and arranges them into groups, one line per chart in its Charts grid:

ColumnWhat it does
ElementThe DashBoard Widget to draw.
Group IDA short code. Lines with the same group ID are shown together as one group. Required.
Group Arabic Name / Group English NameThe group's title. Fill one and the other is copied from it when you save.
Basic GroupMarks the group the dashboard opens on. Tick it on the lines of one group only.

The app can draw only some kinds of widget: Pie Chart, 3D Pie Chart, Table, Column With Rotated Labels, Column With Categories And Labels and HTML. A widget of any other kind is refused when you save the dashboard.

A widget the user has no right to view is skipped silently: the rest of the dashboard still draws. If one user is missing a chart that a colleague sees, check that user's view rights on the widget before anything else.

A Mobile Application Dashboard with two groups, one of them the basic group

Messages you may see ​

MessageWhyWhat to do
Element Type {0} is not supported — «نوع العنصر {0} غير مدعم»A line's widget is of a kind the app cannot draw.Pick a widget of one of the six supported kinds, or change the widget's type.
Only One Group Can be Main Group — «مجموعة واحدة فقط يمكن أن تكون المجموعة الرئيسية»Basic Group is ticked on lines that belong to two different groups.Untick it everywhere except on the lines of the group the dashboard should open on.

Mobile Security Configuration ​

Most of what a user may do in the app follows from their ordinary rights in the ERP. A few app-only rights have no place there, so they are granted on a Mobile Security Configuration record (Basic → Mobile Apps → Mobile Security Configuration). Each line of its Details grid names who gets the right and ticks the rights given:

ColumnField idWhat it does
Userlines.userWho the line applies to: a user, a security profile (every user who has it) or an employee (the user linked to that employee).
Employee Grouplines.employeeGroupApplies the line to every user whose employee belongs to this employee group. Fill it instead of, or as well as, User.
See All Drivers Delivery Statuslines.seeAllDriversDeliveryStatusThe delivery-status summary a driver asks for in the app counts the delivery documents by status. Normally it counts only the documents where the user's own employee is the driver; with this ticked the user gets the counts across all drivers — useful for a dispatcher or a delivery supervisor.

Only saved (committed) records count, and a user gets a right as soon as any one line that matches them grants it, whether the line names the user, their security profile, their employee or a group containing that employee. The server rereads the records each time one is saved or deleted, so a change applies to the user's next request without logging in again.

A user who has no employee on their user record and has not been given See All Drivers Delivery Status is refused the summary with The user {0} does not have an employee — «المستخدم {0} ليس لديه موظف». Link the user to their employee, or grant them the right here.