gotoscreen command works only with correct screen name and it should have a load function. if your screen is not accessible via any menu type, you cannot do this. Please check direct access to page via menu is working. if it works it is matter with screen name. it is not mandatory to give second parameter if you do not want to close the current activity.
How to get the name of the screen:
- got the actual screen from the mobile. eg DebriefPartUsageType
- go to Help from global menu ( gray coloured side menu)
- here you can see the correct name of the screen. ( at the bottom )
Create client script
- Go to smart client->client script screen
- command goToScreen("DebriefPartUsageType");
How to get script to mobile
- go to Mobile app, ->Designer
- Refresh script
- set your script to button
These are the steps and it should work.
Note:
Please double check your screen is accessible through any menu (global, home or workflow).
If this does not work, please add screenshot of help of the screen, screen properties, your client script and place where you use it.
Hello and thanks for your reply.
What do you mean by ‘3. set your script to button’?
I have set the screen as a menu element (global menu), and it does not work. So this might be an answer to my problems. I am not able to see what I am doing wrong. I have added the screenshots of the screen_definition and script as requested.
Bertel
yes. if you screen is not possible to open via menu without using Client script, it may have a error on a screen. you can see it by checking the mobile log( make sure to get debug log ).