on 05-29-2012 6:55 AM
I created a button on the screen in Hybrid Container. However, I'm wondering if there is an option to dynamically hide a button?
Thanks!
function customAfterShowScreen(var screenKey)
{
if(screenKey==="YOUR_SCREEN_KEY")
{
//visible
document.getElementByID("buttonid").style.visibility='visible';
//to hide
document.getElementByID("buttonid").style.visibility='hidden';
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You an use removeAllMenuItems() to hide all menu items...
To hide all menu items, we have API in SUP... I don't know exactly why they have not provided to hide the menu items individually by providing the key.
Still I hope, we can hide/show the menus by getElementById().
You would have passed the menu key directly. But you should concatenate the screenKey with menu key to get the element..
Try
function customAfterShowScreen(var screenKey)
{
if(screenKey==="YOUR_SCREEN_KEY")
{
//visible
document.getElementById(YourScreenKey+menuKey).style.visibility='visible';
//to hide
document.getElementById(YourScreenKey+menuKey).style.visibility='hidden';
}
}
hi eksari/Jitendra,
Yes you can hide any component in work flow screen dynamically.Once you genreated the mobile work flow package, you will be able to see one file called custom.js. All kind of customization should do in this class. In this class we've different events are available. you can write your code in any of this Functional block.
Thanks
Dinesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jitendra,
For example if you want to hide the button when the workflow starts, You have write the code to hide the button in following method. Before loading workflow screens will not available.
function customAfterWorkflowLoad()
{
Write your code to hide button.
}
PS: Once you generated the workflow pacakage, you can go through this class. every method will have its comment and example code also. You can go through that and have better understanding
Hi Ekasiri
I would like to know in which version of SUP, you wants this
Thanks
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi eksari/Jitendra,
Yes you can hide any component in work flow screen dynamically.Once you genreated the mobile work flow package, you will be able to see one file called custom.js. All kind of customization should do in this class. In this class we've different events are available. you can write your code in any of this Functional block.
Thanks
Dinesh.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.