Creating and Enhancing Mobile Development Kit Projects Using Joule¶
This guide will walk you through the steps to effectively leverage Joule to generate a new Mobile Development Kit project or enhance your new/existing Mobile Development Kit projects. This feature allows you to automate the generation of a fully working Mobile Development Kit project or essential app definitions—such as pages and actions— thereby streamlining the creation of metadata and improving efficiency and consistency throughout your development process.
Additionally, Joule can automate the creation of translation files in multiple languages directly from a source file (i18n.properties) that contains key-value string pairs. This functionality ensures that your applications are not only efficient but also easily adaptable to diverse linguistic requirements.
By integrating Joule into your Mobile Development Kit projects, you can focus more on innovation while reducing the manual effort involved in repetitive tasks.
Generating Mobile Development Kit Project¶
There are two options to generate an Mobile Development Kit project using the AI Assistant.
Option 1 : Opening the Joule Panel via Storyboard¶
1 2 3 4 5 | |
Option 2 : Opening the Joule Panel Directly¶
1 2 3 4 5 6 7 | |
Generating Mobile Development Kit Page¶
- In SAP Business Application Studio, open the AI assistant, Joule, from the activity bar. If you do not see the icon, click Additional Views and select Joule from the list.
- Type / to access available Joule's commands.
- Select the
/mdk-gen-page Generate MDK Pagecommand. - You can either compose a prompt based on your requirements or use the sample prompt provided by Joule.
- Click the send icon to send the prompt to Joule.
- Code for the prompted Mobile Development Kit page, and the corresponding actions or rules are generated and displayed below your prompt.
- Review the code snippets and click Accept to save the code under the Pages, Actions and Rules folders, respectively.
Note
Only the following section types are supported in Mobile Development Kit pages:
ContactTableKeyValueObjectCardObjectTableObjectCollectionSimplePropertyCollectionFormCellCardCollectionDataTableKPIHeaderProfileHeaderTimelineTimelinePreviewCalendar
Generating Mobile Development Kit Action¶
- In SAP Business Application Studio, open the AI assistant, Joule, from the activity bar. If you do not see the icon, click Additional Views and select Joule from the list.
- Type / to access available Joule's commands.
- Select the
/mdk-gen-action Generate MDK Actioncommand. - You can either compose a prompt based on your requirements or use the sample prompt provided by Joule.
- Click the send icon to send the prompt to Joule.
- Code for the prompted Mobile Development Kit action is generated and displayed below your prompt.
- Review the code snippets and click Accept to save the code under the Actions folder.
Note
Only the following action types are supported:
OData:
CreateODataEntityCreateODataMediaUploadODataMediaCreateODataServiceDeleteODataEntityDeleteODataMediaDownloadMediaODataDownloadOfflineODataUndoPendingChangesUpdateODataEntityUploadStreamODataUploadOfflineODataCancelUploadOfflineODataCancelDownloadOfflineODataReadODataServiceCreateODataRelatedEntityCreateODataRelatedMediaRemoveDefiningRequestClearOfflineODataCloseOfflineODataInitializeOfflineODataOpenODataService
Logging:
LogMessageUploadLogSetStateSetLevelChangeSet
Messaging:
MessageProgressBannerBannerToastMessageChatCompletionCheckRequiredFieldsFilter
Navigation:
NavigationPopoverMenu
Push:
PushNotificationRegisterPushNotificationUnregister
Rest:
SendRequestOpenDocument
Generating Translation Files¶
- In SAP Business Application Studio, open the AI assistant, Joule, from the activity bar. If you do not see the icon, click Additional Views and select Joule from the list.
- Type / to access available Joule's commands.
- Select the
/mdk-gen-i18n Generate MDK i18n Filecommand. - You can either compose a prompt based on your requirements or use the sample prompt provided by Joule.
- Click the send icon to send the prompt to Joule.
- Translation files are generated and displayed below your prompt.
- Review the files and click Accept to save the files under the i18n folder.
- You can either choose the Merge file option to append any new changes to existing files, or select Overwrite file to completely replace an existing file with the new changes.