cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Persona 2.0:Need to Copy status Message Dynamically

Former Member
0 Kudos

Hi All,

   i have a requirement to display status message separately beside a text box component.I tried using the script button,But the status dynamically changes for each and every input we are giving.

Is there any process(script/Method) to update the label dynamically according to the change in the status.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bhaskar,

   I tried the Copy Value and Paste Value Process in copying the Status to a label.But the Status keeps on changing and the Label which i linked to the Status is not updating each time whenever the status changes in the status bar.

My requirement is to reflect the changes of Status bar dynamically in Label.

I hope you are clear on my requirement.

Thanks,

Brungi

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

If the status bar message changes multiple times when selecting a function, these is no way to read the constantly changing text in the Personas flavor. You would have to start the script reading the status bar multiple times and a script can only be executed with a user action or a screen event (such as loading the screen), and none of this happens if a process running in the background updates the status bar.

former_member189842
Participant
0 Kudos

Hi Rohit,

I now got your question completely from Tamas reply. You have to find each event responsible  for the status bar update and add a custom script to do the above thing before it does the actual thing.

So for example if clicking on a button(say b1) causes the status get updated, You'll place a new script button (b2) on the screen  which will  click on the script button that updates the status to the label(the script you wrote already) and then clicks on b1. Hide b1 and place b2 in place of b1. you have to identify all such occurrences and handle them. There is no other way

SAP personas is kind of a screen automation tool, sometimes you have to hold horses of your programmers mindset and think as a automation specialist, I feel like. 

Thanks,

Bhaskar

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

I think what he may be referring to is a situation when a process is running after a button press, and it displays a status message several times during execution, so the status bar text changes multiple times.

Personas will have no way to capture those messages and keep a custom label updated, mirroring the changing messages.

former_member189842
Participant
0 Kudos

actually I see from his original post, he said that, " each and every input we are giving".


so My answer above still holds good, just replace the button i said in example with  textbox, you would be good,  handle the onchange event. 

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Bhaskar,

  It's cleared and working now.I think This is what you people are telling and this solved the issue.

http://youtube.com/watch?v=fBKr5WSOCBg

Thanks Tamas and Chinthan for your valuable Replies.

Former Member
0 Kudos

Thanks for the Solutions which you provide.

   Actually I am working on ME21N. When ever i am entering any field Ex: Vendor and press enter then We will see a status message "Enter Purchase Org" and once we entered Purchase Org and enter we will See status message as" Enter Purchase Group" and next Company Code and so on.

Now i want to display the status in a label component automatically which keeps on changing while entered the field data.

I hope,now u will get what exactly my requirement was.

Waiting for Your valuable Inputs

Thanks,

Rohith

former_member189842
Participant
0 Kudos

do you know PushOnEnter and how to use it? if not first read the personas user guide at least once completely.

if you already know how to use it, use that on all the controls and call that script that is updating the label.

let me know if you have any other questions.

Thanks,

Bhaskar

chinthan_yajamaan
Active Contributor
0 Kudos

Hi Rohith,

You can create script button as Bhaskar mentioned and call it from onCreateHandler property of UserArea Everytime the screen is refreshed (even on submit due to enter key), it checks if there is a message in status bar and displays in text label.

If above solution does not copy new text from status bar, then you need to add RefreshScreen action before copy action.

Thanks
Chinthan


former_member189842
Participant
0 Kudos

you have to use copy value and paste value functions in the script to copy status to a variable (x) and paste it(x) to your label.  You'll get the content of the status from its container so exact value doesn't matter for you even if it dynamically changes.


if the container ID is dynamically changing between each session (which is highly unlikely) , research for control ID overwrite rules and implement that. But I honestly don't think you need to do that.

Post more details, screenshots if you are not clear of what I said in the first para.

Thanks,

Bhaskar