Removing Fields From the Registration Screen

If your application does not use a relay server, a reverse proxy server, or connect to an SAP Mobile Platform 2.x server, you can remove some of the fields from the registration screen, such as the URL Suffix, Company ID, and Security Config.

  1. Open the StaticScreens.js file, which is located in SDK_HOME\MobileSDK3\KapselSDK\plugins\logon\www\common\modules.
  2. Find the SCR_REGISTRATION screen and reorder, or hide and show fields using the visible:false options. You can also delete unneeded entries.
    For example:
    SCR_REGISTRATION': {
                id: 'SCR_REGISTRATION',
                fields: {
                            user : {
                                uiKey:'FLD_USER'
                            },
                            password : {
                                uiKey:'FLD_PASS',
                                type: 'password'
                            },
                            serverHost : {
                                uiKey:'FLD_HOST',
                                editable:true
                            },
                            serverPort : {
                                uiKey:'FLD_PORT',
                                type: 'number',
                                editable:true,
                                visible:true
                            },
                            communicatorId : {
                                uiKey: 'FLD_COMMUNICATORID',
                                'default':'REST',
                                visible:false
                            },
                            https: {
                                uiKey:'FLD_IS_HTTPS',
                                type: 'switch',
                                'default':false,
                                visible:false
                            },
    
                }
            },
  3. Save the file.