on 06-10-2014 10:34 PM
hi,
i am new to personas. I am getting an issue control not found. I researched and there is a good tutorial how to handle erros with IF condition when the error is a tab - you would click on the tab and get the object ID.
The scenario:
go to transaction VA02
Enter order number
Go to extras > Output > header > Edit (show output management screen)
Attached are the screenshot of the scripts. Can you please help me understand how to deal with Control not found issue.
Thank you
Hi,
Maybe try this way:
1. Put all scripts for one condition in one script buton, say SB_a
2. Put all scripts for the other condition in another SB, say, SB_b.
3. In the third Sb, make sure you check both cases for IF, eg:
IF xxx
is not empty
Push SB_a
IF xxx
is empty
Push SB_b
It looks like that in SB_a or SB_b, the screen changes, so if you endup with different screen, you may not be able to find the right control to apply the action.
Lastly, try "set select" method too.
Good luck!
Dong Zhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Im also getting similar issue in ZVA01 where in once i enter mandotry field in the first screen, the 2nd screen ask to enter quantiy. once i enter the quantiy need to check (push button for price check) for price, at that time a message pops up...
i want to dismiss this pop my selecting "no" ..then proceed by saving the sales order.
i tried but the values are reflecting back to default or previous values.. please help me out
using personas version 1.4.023, kernel 7.21
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
step 3: i'm entering value as "order quantity" (if you can see my 3rd screen shot)
step 4 : checking value( check value button on the left side of 3rd screen shot) for the quantity mentioned in step3
step5: messages pops up if i like to add more items to the list ( will select No:)
but when i'm running this script ...the values are in step 3 are not getting saved ...but the pop up functionality working (means no popup coming)
If you are running Personas v1 SP03 or later (or v2 SP01 - same thing) then you can use a "control exists" or "control does not exist" condition in your IF - this is more reliable than checking for an empty text property. You do need to remember to include a "Refresh Screen" action before the IF.
Here's a simple example from one of my flavours. Here I sometimes get a pop-up from the transaction, depending on the properties of the data I'm manipulating. If I get the pop-up I want to just dismiss it by clicking the green tick button. In my script, then, I first refresh the screen, then check if the button exists. If it does, I push it. If it doesn't, I don't!
Does that help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are few things you can do to better this script:
1. As mentioned, you can move step 4-9 under IF of step 1.
2. you can remove FOCUS steps as they are unwanted here (Script recorder will record these steps, but in most cases these are unwanted)
3. Add REFRESH SCREEN whenever you have a screen changes or a popup is expected. In your case Step 6 should have REFRESH SCREEN because Step 5 here changes from your landing page to VA02 page.
Hope this helps.
cheers
Chinthan
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.