Magic xpa 2.5 Release Notes
New features, feature enhancements and behavior changes
Call with destination-backward compatibility enhancements
In online, the following scenarios are now possible:
? Calling a program to a destination frame when the call operation is defined in a handler that is a parent task of the task that includes des the frames form.
? Opening an online task in a destination frame when the online task is called from a batch parent and the batch parent was defined to be called into the destination frame.
These capabilities provide backward compatibility with the splitter capabilities. Note that the behavior of these scenarios has some limitations. Refer to the destination property help topic for additional information.
Table Control-scroll bar appearance-change of behavior
When setting the scroll bar property to yes, the vertical scroll bar will now appear only if there are more records than the ones that can be displayed on the form (as in v1.9 ).
Rich Client-local data sources Support in range, locate and sort Functions
The rangeadd (), rangereset (), locateadd (), locatereset (), sortadd () and sortreset () functions can now be used on local data sources.
Rich Client-client-server compatibility
The internal communication protocol between the client module to the server was changed. therefore, pre-magic xpa 2.5 clients (such as 2.4) cannot be used with a magic xpa 2.5 server, and magic xpa 2.5 clients cannot be used with pre-magic xpa 2.5 servers.
Retrieving the magic executables version
You can now retrieve information about the magic version (as seen in the help-> about screen) by running the studio or runtime engine with the-ver parameter. for example: 'mgxparuntime-ver '. the result will be saved in a file named mgxpaver.txt in the magic installation folder.
Floating license usage for mobile devices
Floating licenses can be used only for licenses that are not limited to mobile devices or desktop computers.
3
Color definitions-Alpha support
The color definition screen was enhanced to support the definition of the colors 'Alpha value. The Alpha value of a color defines the opacity level and enables the creation of semi-transparent colors.
This definition affects only the Android and iOS clients.
Oracle 12C compatibility
Magic xpa was tested and is compatible to work with Oracle 12C.
WebSphere MQ server 7.5 compatibility
Magic xpa was tested and is compatible to work with WebSphere MQ server v7.5.
Android™And IOS™
The Android and iOS clients were enhanced and now support the following features:
? Mobile specific properties
The form and controls now have a new section containing all of the mobile-related properties. these properties replace and extend the current capabilities that were previusly defined in the Additional Information property. the additional information property values are still supported to maintain backward compatibility.
? Opacity level support
A semi-transparent color can be defined and used in the controls. the definition is done by setting the Alpha value in the color definition screen as defined above. using semi-transparent colors will enhance the appearance of your application.
? Suggestion text (hint) Support
You can now define a hint for edit controls by using the new hint property. A hint is the text shown on an edit control that is removed automatically while typing.
For additional information, refer to the Edit Control help topic in the magic xpa Reference Guide and to program rmo01 in the rich client samples project.
? Navigation drawer support
A native navigation drawer is now supported by assigning a menu entry in the navigation drawer menu property of the form. A navigation drawer is the menu that is opened by swiping from the left side of the screen.
For additional information, refer to the tabs control help topic in the magic xpa Reference Guide and to program rmo02 in the rich client samples project.
? Form animation support
You can now control the form entrance and exit animation by using the new enter animation and exit animation properties.
For additional information, refer to the tab control help topic in the magic xpa Reference Guide and to program rmo03 in the rich client samples project.
? Tab Control Support
A native tab bar is now supported by using a magic tab control.
Each one of magic xpa's tabs is seen as a tab page on the mobile devices.
4
For additional information, refer to the tab control help topic in the magic xpa Reference Guide and to program rmo04 in the rich client samples project.
? Two-State Image Support
A two-state image (pressed/un-pressed) is now available for Android and IOS.
You can define this type of control by using either a check box control or a radio control and setting their image list file name property to a 6-state image.
For additional information, refer to the check box and radio controls 'help topics in the magic xpa Reference Guide and to program rmo06 in the rich client samples project.
? Controlling the keyboard type
You can now define the keyboard type (such as an email or a URL keyboard) that will be opened when editing a control by using the new keyboard type property.
For additional information, refer to the Edit Control help topic in the magic xpa Reference Guide and to program rmo05 in the rich client samples project.
? Controlling the keyboard action button
You can now define the text that will appear on the carriage return button by using the new keyboard return key property.
This allows you to force the value (such as done) or set a specific value (such as search or go ).
When the done, search or go values are pressed, the Select internal event is raised so you can execute logic when these keys are pressed.
For additional information, refer to the Edit Control help topic in the magic xpa Reference Guide and to program rmo05 in the rich client samples project.
? Title bar color support
You can now change the color of the forms 'title bar by using the new title bar color property.
? Colum visibility support
The visible property of the column control is now supported for mobile devices.
? Executing operations while editing-change of behavior
When editing data in an edit control that is attached to a virtual variable, if an operation is executed (for example, if the operation is defined in the control modify event handler ), the busy indicator spinner will not be shown. this will allow you to continue typing characters while the operations are executed.
? Native code execution-New Function
A new function named clientnativecodeexecute was added to allow you to easily execute native code (Java for Android and Objective C for iOS ), without having to use the userdefinedfunction in the native code as a single entry point.
? Native code execution-raising user events
It is now possible to raise a user event directly from the native code (Java for Android and Objective C for iOS ). this capability replaces the previous one in which only the built-in external event cocould be raised.
5
? Native code execution-finding a magic control
It is now possible to find the reference of a magic control directly from the native code (Java for Android and Objective C for iOS ). this allows you to add custom native controls as children of the magic control.
For additional information, refer to the help and to program rnc09 in the rich client samples project, which adds a native label control inside magic's group control.
? Native code execution-samples update
The native code samples (programs rncxx in the rich client samples project) were updated to use the new native code execution features described above.
Android only
? Combo box-native appearance
The combo box control will now appear according to the Android operating system's theme (instead of as a push button with a rectangle ).
? Pop-up window-support location, size, position
The startup position of the pop-up window can now be customized, so you can define the location, size and position of the window (as in IOS ).
? Default theme-change of behavior
The default theme was changed and is now the light theme.
You can revert this change and have the previous dark theme appearance by removing the word. light from the themes. XML file located under the riamodules \ Android \ source \ mgxparc \ res \ values folder in the installation folder.
? Push notification-change of behavior
The Project ID in the integrated push notification capabilities is now set using the new clientnativecodeexecute function.
For additional information, refer to the sending and processing ing push notifications help topic in the magic xpa Reference Guide and to program rnc06 in the rich client samples project.
? Native code execution-Internal rename
The internal core library package name was changed from Com. PDAC. myact to com. magicsoftware. core and the main class in the core was changed from globalclass to coreapplication.
Due to this change, the Android Application Files, such as the androidmanifest. XML and the java files were also changed.
If you added native code to the Android Application, you shoshould also make the changes in the updated files or write your custom code in a separate file and use the new native code execution capabilities to execute your code.
IOS only
? IOS 5.x is no longer supported. Magic xpa is compatible with IOS 6.0 and above.
6
Magic xpa 2.4c-new features, feature enhancements and behavior changes
Subforms-behavior change for unsupported Task Mode
Starting with this version, if an online task that is running in a subform control cannot be executed, the subform will close (and not the entire program, as in previous versions ).
Requester log-number of lines threshold
The log key in the mgreq. INI file now supports an additional optional parameter named number of lines threshold. this parameter allows you to change the total number of lines that will be stored in the log file. this setting applies only to the server-side log and not to the RIA log.
Android™And IOS™
The push notification sample code is now integrated in the client.