on 10-22-2015 3:45 PM
Personas Experts:
I cannot figure out how to set the initial cursor location/field after I enter a transaction in Personas.
For example, in transaction MFBF, the default field is set to the "BackFlush Quantity", but I want it to open on the "Material" entry field.
I have set the tab order in the Properties to have "Material" as the 1st tab stop, but it continues to start in the wrong field.
Can anyone tell me how to set this default?
Thanks!
Hi Jason,
You can use a script to do so.
Just use the "Focus" action.
The help says:
"...
Use this action to move the focus around the screen
deliberately - this can be useful to ensure that a specific field
or button is selected after the execution of a script.
..."
I hope this helps,
Cris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Cris. I found that option in the scripts now, great!
Next question (related), is how to I execute that script immediately, without users needing to do anything?
So the enter the transaction code, and as the transaction opens, the script runs so the cursor is in the right field immediately?
Thanks!
Jason
I only needed to be more persistent in my Googling... Found out how to launch a script immediately upon a screen starting. To do this:
1) Create a script button, as described above to perform the actions you wish.
2) Click on the new button to get the ID from the "Properties" section of the screen
3) Copy the ID
4) Click on the background (or "UserArea")
5) In the properties section, paste the script button ID into the "OnCreateHandler" variable.
Done! Now when the t-code is called, the script button is automatically pressed! Now to hide the button so make the screen look pretty!
Thanks Chris for kick-starting my journey!
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
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.