on 10-25-2013 11:47 AM
Hello Experts,
Is there a way in which we can modify the properties of the on screen controls with the script? I mean making a control visible /invisible on the basis of a condition?
Regards,
Manu
Thanks Steve. At the moment I have taken the Icon off and I am clearing the text of the button and also disabling the button depending on the flag.
I feel, somethings are very simple to do Personas, but others really not.
Regards,
Manu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Steve, Manu,
You are both right: Steve hiding a button/control is not supported in Personas, yet. As usual, I cannot promise a feature for the future but I can promise you that we are watching SCN quite closely and take your feedback into consideration for future versions.
So, now, since you know it is not supported, yet, I show you how you can work around this with a trick
So, why is this working? If the label width is NaN then the label will adjust its width based on the input text. Filling the label with spaces will extend it over your button and because of the solid background color your button is invisble and unclickable.
Cheers,
Tobias.
No, there is no Personas script action that can change screen object properties. What are you trying to achieve? There might be a way to do it using a different technique?
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
I want to hide a button on the screen depending upon a value (flag).
I have my approve /cancel PO button on Print Preview screen. Now if the user wants to see the preview of the PO then he is accessing the same flavour with the buttons on it.
I tried calling the other flavour using the Javascript, but there are limitations with it. I am not able to switch to the right PO and any script written after the javascript call is not called.
I wish to modify the visible property of the button to collapsed.
Are there any ways to do it?
Regards,
Manu
No, there's no way to hide the button. You may be able to re-purpose it, though. You can user "Enter Value" to change the label (but not the icon) and make the script look at your flag and behave differently depending on its value.
I can't think of any other way of doing what you are looking for.
Steve.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.