cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Initial Cursor Location in Personas 2.0

Former Member
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

cris_hansen
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

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


cris_hansen
Advisor
Advisor
0 Kudos

Hi Jason,

If the user calls the t-code, then I don't think it is possible.

But if you use a panel with a script button that calls the transaction, then the next step can be set the focus in a specific field.

Cheers,

Cris

Former Member
0 Kudos

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!

Answers (0)