IF-statement in Personas that is checking if control is inactive?

Hi,
I have this simple script in screen personas that is clicking the option: "Attachment list". Everything is working great if there is attachments.
If there are no attachments the option is "inactive" or "greyed out". This will result in a script error.
I thought this was going to be an easy fix by adding IF statement to the the script. But howerver I specify the critera for the IF statement the script will always try to click the Attachment list. The condition will simply always be TRUE.
Am I missing something here or is it not possible at this time to script an IF statement that is checking if the control is inactive or similar?
Best Regards,
Oskar Söderlund

There is another way, but it will get a little tricky.
Outside of the transaction IE03 you can check for the existence of attachments for a piece of equipment by looking in table SRGBTBREL. Field TYPEID_A will be "EQUI" and field INSTID_A will be the equipment number, zero-padded on the left to 18 characters long. Use SE16 to look in the table and you'll get the idea.
You could wrap this test in an RFC-enabled ABAP function and call that from your Personas script button. Use the return value from that RFC to decide if attachments exist or not and how the script should respond. Details for how to write such an RFC and call it from a Personas script are in this blog: Calling RFCs from a Personas script.
Like I said, this isn't straightforward and perhaps Personas scripting should include an active/inactive test in addition to the exists/doesn't exist test. Until then, however, there is a way if you don't mind a bit of ABAP programming.

Similar Messages

  • Print only pages that are checked on page one??? Hidden is possible?

    Please help. I know a little about java and acrobat but not enough to do everything I want.
    I am making a form that has many pages but not all the pages apply to every event. So what I want to do is put a number of check boxes near the top of the form. When I print I only want the pages that are represented by the checked boxes to print.  Even better, I would like those pages not visible at all just print. For example: Page one is a form that one would fill out: name, address, phone number, etc. Near the bottom that person would check all that apply: page A, page B, etc. That’s all he would see but when printed, it prints out the form and any of the pages that are checked.
    Am I asking too much?
    Thank you for any and all help.

    It's possible to use a script to print only certain pages, but any contiguous page ranges have to be sent as a single print job. For example, to print pages 1-5, 10-20, and the single page 50, you would have to issue 3 separate print statements.
    It's possible to have non-visible pages (templates), but it's not possible to print them until they are displayed. Since Reader 11 now supports templates, it would be possible to display the selected pages in the order that you want, which would presumably be a single continous range of pages, which would then require just a single print statement, as opposed to multiple ones as described above.

  • How to troubleshoot issues that Spell Check is not working in Outlook 2013

    When composing a new message in Outlook 2013, we may notice that Spell Checker does not recognize misspelled words. When we enter a completely garbage word in Outlook, it won’t be marked as misspelled with a red wave underline. When encountering such issue,
    we may follow the troubleshooting guide below to correct it.
    1. Make sure you are not typing in the signature area.
    Outlook doesn't perform a spell check in the signature area, so if this is the case, spell check won’t work. To confirm if you are typing in the signature area, right click in the area you are typing, if you see a menu listed all you signatures instead of
    the normal context menu, then you are not typing in the email body.
    If you want spell check work in signature area, use Quick Parts instead of Signature. For more information, see
    Quick Parts.
    2. Check the Set Proofing Language option.
    In Outlook, click New Email to open a new message, click
    REVIEW tab > Language > Set Proofing Language, a dialog titled
    Language will open.
    Please first make sure English (United States) is shown above the double line. If not,
    you must enable the language for it to be available to check spelling.
    Second, make sure “Do not check spelling or grammar” check box is not selected.
    Note: If this method fixes the problem, repeat steps 1 through 3 to reopen to the
    Language dialog box, and then click Set As Default.
    3. Enable Check spelling as you type.
    To enable the option in Outlook, go to File > Options > Mail, click Spelling and Autocorrect button. In the Editor Options dialog, select the check box labelled “Check spelling as you type”.
    4. Make sure that you are not using a standalone version of Outlook or mixed versions of Word and Outlook.
    The “Check spelling as you type” feature doesn’t work when using a standalone installation of Outlook or mixed versions of Word and Outlook. However, the manual spell check always works. In this scenario, we can set Outlook to
    always check spelling before sending. To do this, go to File > Options > Mail, select the check box before “Always check spelling before sending” in the Compose message section.
    5. A registry key exists overriding the spell checker
    To remove the registry key, please follow these:
    Important This article contains information about how to modify the registry. Make sure that you
    back up the registry before you modify it.
    a. Press Windows key + R to open the Run command.
    b. In the Run box, type regedit, and then press Enter.
    c. Locate the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing Tools\1.0\Override
    d. Delete or rename the subkey.
    e. Exit Registry Editor. Restart Outlook.
    6. Recreate the NormalEmail.dotm and Normal.dotm template
    If the two templates above are corrupt, this issue may also happen. To fix it, please browse to:
    drive:\Users\username\AppData\Roaming\Microsoft\Templates
    Rename the two templates, then restart Outlook to see the result.
    7. Problematic add-in
    Add-ins may cause various issues in Outlook, so if you have tried all the suggestions and still no luck, try starting Outlook in safe mode to see if a problematic add-in is the culprit. To do this, exit Outlook, press Windows key + R to open the Run
    command, then type outlook /safe and press Enter. If the problem disappeared in safe mode, then go to File > Options > Add-ins and disable the suspicious add-in to resolve the problem.
    If you have any comments, welcome to post in the forum. Thank you.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Not all locales come with a dictionary installed for licensing reasons.<br />
    If you do not have the en-US locale then check that you have a dictionary installed (Tools > Add-ons > Extensions) and selected.<br />
    <br />
    You can see which dictionary is selected if you right-click in a text area and open the Languages submenu.<br />
    Also make sure that [X]"Check Spelling" in the right-click context menu has a tick.<br />
    You can also try to toggle the "Check Spelling" item off and on again.<br />
    <br />
    See http://kb.mozillazine.org/Spell_checking and [[Using the spell checker]]<br />
    See also http://kb.mozillazine.org/Dictionaries<br />

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • Need billing number for a real person that can fix problems

    I got Fios a few months ago.  A new account was set up for Fios but I'm still being billed for DSL.  I've been trying to get the problem fixed for months.   The first month they credited back the Fios charge.  The second month they said they would send someone out to make changes to transfer my copper line number to Fios but the person never came.  I've called several times after that to get the problem fixed.  This month they turned off Fios so I paid to have it turned back on in addition to paying my phone and DSL bill.  I've been on the phone several times for hours with people that can't do anything to help so they transfer me to others or tell me to call back the next day because their shift is over or the person that can really help me has different hours.  If anyone has the phone number to someone that actually fixed a convoluted problem, please message me.  I'll go postal if I have to explain my problem to another series of people that can't do a thing to help me.
    Solved!
    Go to Solution.

    Hi holeinone,
    Your issue has been escalated to a Verizon agent. Please go to your profile page for the forum, and look in the middle, right at the top where you will find an area titled "My Support Cases".  You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under “My Support Cases” you will find a link to the private board where you and the agent may exchange information.  This should be checked on a frequent basis  as the agent may be waiting for information from you before they can proceed with any actions. Please keep all correspondence regarding your issue in the private support portal.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer that solved your issue as the accepted solution.

  • Creating an If Statement in Flex That Produces Multiple Results

    I have created a small login window for my flex app and once the user enter's an appropriate username and password I want the username to be displayed at the top but I also want a new window to appear. To do this I require an if statement to be activated nce the user clicks on a sign in button which will either produce the text "Invalid username or password" or log the user in and do a couple of things. It is the doing a couple of things part that I'm struggling with. Here is my if statement so far that activates when the sign in button is clicked:-
    if (usernameEntry.text=='usernametest' || passwordEntry.text=='passwordtest') loginNotificationLabel.text='You Are Logged In' || accountLinks.visible=true else loginNotificationLabel.text='Invalid Username or Password'
    It is the || accountLinks.visible=true part that is giving me errors. Basically if the username and password are correct I want a new window I've created 'accountLinks' to become visible as well as the 'loginNotificationLabel' text to display the message "You Are Logged In" but I can't figure out how to get that particular statement to work.

    Ok I've now changed it to this however compiling it produces the error "The entity name must immediately follow the '&' in the entity reference". It was this error that made me use the || in the first place as I thought it was an alternative to && that may not produce the error:-
    if ((usernameEntry.text=='usernametest') && (passwordEntry.text=='passwordtest')) {loginNotificationLabel.text='You Are Logged In'; accountLinks.visible=true;} else{loginNotificationLabel.text='Invalid Username or Password';}

  • I have an apple iphone 4gs... It is synced with my outlook exchange in the office. If I do a search for emails that also checks the server then all of a sudden I end up with various amounts unread email with the inbox saying "Inbox 71" ..which is not true

    I have an apple iphone 4gs... It is synced with my outlook exchange in the office. If I do a search for emails that also checks the server then all of a sudden I end up with various amounts unread email with the inbox saying "Inbox 71" ..which is not true. The only way to make the inbox on the iphone back to 0 is to delete the account then re install it.
    Anyone have any ideas

    We need to know more about your system, please download EtreCheck and run the report and please post it on your next reply. Then we can see how your system is configured, what apps are on it and look for anything obvious. We will look forward to seeing your report.

  • When I tap the mail icon on my iPhone 4s, the menu of email servers pops up.  I already have a me acct that I check all the time, no problem.  So I choose iCloud, sign in and it tells me that I already have an acct-.so why can't I get to my emails then?

    When I tap the mail icon on my iPhone 4s, the menu of email servers pops up.  I already have a me acct that I check all the time, no problem.  So I choose iCloud, sign in and it tells me that I already have an acct….so why can't I get to my emails then?  I've turned the phone off and on twice....that has fixed it in the past but not this time....

    all fixed ha

  • HT201272 i just got an iPod 5 and the person that had it before has it link to there apple id and they didn't give it to me and now i can't by pass it i even did a hard factory reset and still nothing how do i get rid of this problem so i can start using

    i just got an ipod 5 and the person that had it before has it link to there apple id and didnt give me a password i did a hard reset and  nothing happen it still asking me for a password how do i bypass that cause i want to start useing it

    Funds cannot be transferred from one Apple ID account to another.
    Try here > Rescue email address and how to reset Apple ID security questions
    If that doesn't help, contact Apple for assistance with your security questions > Contacting Apple for support and service

  • I work for the County and we purchased a copy of Adobe Photoshop CS2 long ago.  The person that did the order is no longer here.  All I have is the CD Disk that is new but i did not know the key code is.  Is there a way to get the keycode for this?

    I work for the County and we purchased a copy of Adobe Photoshop CS2 long ago.  The person that did the order is no longer here.  All I have is the CD Disk that is new but i did not know the key code is.  Is there a way to get the keycode for this?

    It would not work anyway. The activation servers have been retired and Adobe has provided a new CS2 download along with a new serial number for CS2 owners.
    Download Acrobat 7 and CS2 products
    Gene

  • I have configured a new one iphone 4s I have done it via wifi i has caught myself for defect the you ID (mail) of a person that toward a lot of time habia lived in my house.  Someone can tell me the because??

    I have configured a new one iphone 4s I have done it via wifi i has caught myself for defect the you ID (mail) of a person that toward a lot of time habia lived in my house.  Someone can tell me the because??

    PinguXeF wrote:
    , while I have taken a backup of the iTunes Library,
    this means nothing if it was not done correctly...
    To have  EVERYTHING on a New Computer...
    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Full Details Here  >  http://support.apple.com/kb/HT1751

  • I downloaded new os for my daughter's ipod touch.  I remember during setup after that I checked off my husband's email account and now she is receiving his texts.  How do I fix this.  The "icloud"/ "messages" buttons are both greyed out under settings

    I downloaded new os for my daughter's ipod touch.  I remember during setup after that I checked off my husband's email account and now she is receiving his texts.  How do I fix this.  The "icloud"/ "messages" buttons are both greyed out under settings

    Forgotten RESTRICTIONS Passcode
    - Restore from a backup that was make before you added the Restrictions passcode. If you restore from a backup made with the Restrictions passcode the Restrictions passcode is also restored.
    - Restore to factory settings/new iPod.
    - If you are up to file manipulation see:
    How to reset forgotten Restrictions...: Apple Support Communities

  • How do i check ensure that SAP checks for duplicate vendor invoice numbers?

    Hi Experts -
    How do I verify that SAP checks for duplicate vendor invoice numbers and blocks duplicate invoices from being paid?
    Thanks!

    Hi
    Pls chek the settigs by following the path
    IMG>Materials Management>Logistics Invoice Verification>Incoming Invoice>Set Check for Duplicate Invoice.
    Here you make the settings for creating a duplicate invoice check.
    Moreever, in the vendor master, you need to tick the check box for duplicate invoice check.
    I suggest you search the Forums before posting a query. There are lots of postings on this issue.
    Thanks & regards
    Sanil K Bhandari

  • When do Workflows fire for a Document Library that requires Check In?

    I have a SharePoint Designer workflow that is set to fire if the item is changed, and this workflow is running against a Document Library that requires Check In.
    So, the big question is, does the workflow fire if the document is checked out, and the properties are modified, but before the document is checked back in?  Or, will the workflow only fire after the document is checked back in?
    I understand that a workflow is asynchronous, and that a document could be modified and then checked in, and the workflow might only fire after that. What I want to know is whether the workflow will fire if the document properties are modified but the document
    is not checked in for some time.

    The workflow will fire only when the user checks in the document.

  • Ok, so basically my charger fell apart on my MacBook pro(2010) and I didn't have the money for a new charger, I got it in the states too if that's relevant. Basically my laptop will not charge, I bought a new charger yesterday and it's still no-use

    Ok, so basically my charger fell apart on my MacBook pro(2010) and I didn't have the money for a new charger, I got it in the states too if that's relevant. Basically my laptop will not charge, I bought a new charger yesterday and it's still no-use,not charging . No green or orange light coming on on the new charger either.

    It is one of the items that Apple gets criticized at regular intervals. The MagSafe connector is proprietary and unlicensable, so the company has a lock-in on the power options. And as you have now found out, your hijinks trying to avoid buying an expensive new charger may have caused more damage and led to a total no-charge condition.
    If lucky and no physical damage has occurred (there IS a fuse in there somewhere on the circuit boards), maybe resetting the SMC can restore charge functionality, provided there is still enough juice: http://support.apple.com/kb/HT3964

Maybe you are looking for

  • Billing documents should not be created when it is not released to accounti

    Hi SD gurus, In some situation, billing documents are generated but it is not released to accounting which results in mismatch between FI value and SD value. We go to VFX3 and see the list of billing documents and take corrective action. Our requirem

  • Want to reduce execution time

    Hi all, I am executing an insert query with about 2 million of records. I is taking around 4 hrs to execute. Sometime it is giving error of (ORA-01652: unable to extend temp segment by string in tablespace). I cannot increase temp. tablespace. Thanks

  • Preferred oracle client installation...

    Hi i have installed oracle10g server and now i need to install oracle10g client and need to export it to NFS. So is it preferred to install both in the same machine or different machine. if not which will be the ideal path???? Can u please help me...

  • Global Org Structure query

    Hello, I have one query regarding creating Org Structure. We are setting up one global org structure for 10 countries. The org structure format is as follows - Root org unit Company --- Division     --- Department          --- Country We have created

  • Lumia 1520 broken

    My Lumia 1520's camera doesn't work. I tried factory reset the phone, factory reset and the camera still can not work. It just show black screen in NOKIA Camera and whatever apps use the camera. Any one have the similar problem? Updates: Now the phon