on 11-05-2015 12:36 PM
Hi,
So i've added a script next to my textfield that functions as f4. How can i make this unique? Since i have 2 scripts that lead to a different f4 screen. How can i put a button on both on these while not seeing the other. In the picture i've added, there's the material you have to chose and plant. But i want to see my plant button in my plant screen and my material button in my material screen. s there a way i can do this?
Thanks in advance,
Shana Weemaels
If you are on Personas 2.0 SP03, you can add another script button and call it from onCreateHandler of popup. In this script button check IF CONTROL EXISTS for some unique control that exists in only one scenario (eg: graph button in material f4) then use SHOW CONTROL "material" button and HIDE CONTROL "plant" button.
But you need to be very careful because most F4 windows have id of "ses[0]/wnd[1]". So making any screen changes in one popup might show up unexpectedly in other popup. (eg: go to SU01 and make changes like userarea background color in popup for User and then open popup for Alias...you will see changes there too)
Thanks
Chinthan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can change the label on a button just by using "Enter Value", so you could have just one button that changes its behaviour as necessary. Use Chinthan's onCreateHandler trick to set the label appropriately, and have the script on the button perform the same test to decide which action it should take.
But again, be aware of this button appearing in unexpected places.
Steve.
Whenever your screen changes (like popup opens or closes, navigate to different screen like details screen or new transaction), you need a REFRESH SCREEN step in your script so that the scripting engine can fetch the screen metadata again with current state.
So in simple words, please add REFRESH SCREEN as step 4 and then move Enter Value step to 5.
User | Count |
---|---|
86 | |
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.