How to check the button Disable/enable property in openscript

I am creating a test script using openscipt 12.2.0.1 and needs to verify whether a button is in disabled or enabled mode.
I am trying below code:
boolean enable=adf.commandToolbarButton(
*125, "/web:window[@index='0' or @title=' - Collections Customer - Oracle Applications']/web:document[@index='0' or @name='13hipll5e2_1']/web:ADFCommandToolbarButton[@text='Pay' or @absoluteLocator='pt1:USma:MAnt1:pt1:TRX_FL:AP1:AT2:_ATp:ctb1']".exists();*
if(enable)
fail("Test failed");
But this code is not working and Test failed for both enabled and disabled button.
Please suggest the code which i can use for my scenario.
Edited by: robi sharma on Apr 12, 2013 2:41 AM
Edited by: robi sharma on Apr 12, 2013 2:42 AM
Edited by: robi sharma on Apr 12, 2013 2:42 AM
Edited by: robi sharma on Apr 12, 2013 2:43 AM
Edited by: robi sharma on Apr 12, 2013 2:43 AM

Hi Robi,
Try this...
String disabled = adf.commandToolbarButton("XPATH").getAttribute("disabled");
if(disabled.trim().equals("false"))
    fail("Test failed");
}If you want to convert your string to boolean use the following:
boolean boolValue = Boolean.parseBoolean(disabled);
if(! boolValue)
    fail("Test failed");
}Regards,
Deepu M

Similar Messages

  • How to find the button is enable/disabled by sql coding

    Hello friends,
    How can i find a button is disabled or enabled state by plsql coding ?
    I have a requirement to ckeck out the user try to close login window without click out button..I should make a warning message to user when he try to close window improperly..Pls help me

    Hi
    ur requirement is not clear...
    How can i find a button is disabled or enabled state by plsql coding ?
    IF ur_condition  THEN
    SET_ITEM_INSTANCE_PROPERTY('BLK_NAME.ITEM_NAME',NAVIGABLE,PROPERTY_TRUE);
    ELSE
    SET_ITEM_INSTANCE_PROPERTY('BLK_NAME.ITEM_NAME',NAVIGABLE,PROPERTY_FALSE);
    END IF;
    REgards,
    Abdetu..

  • How to check the verity version in our PeopleSoft Installation?

    How to check the verity version in our PeopleSoft Installation? I am not sure if the verity is installed or not and also if installed what is the version?

    yes. it says the version is 5.0.1
    Is there any difference in installation or configuration when the app and web server are in same machine and when the app and web server are installed in different servers?
    ============================================
    D:\fs840\webserv\peoplesoft>mkvdk
    mkvdk - Verity, Inc. Version 5.0.1 (_nti40, Jul 23 2004)
    Usage: mkvdk [<option>...] <filespec>...
    Where <option> can be a VDK switch, or any of:
    -about Show the collection's about resources
    -autodel Delete bulk insert file when no longer needed
    -backup <dir> Specify collection backup location
    -bulk Submit bulk insert file(s)
    -charmap <name> Specify the character map to VDK
    -collection <path> Specify the collection (required)
    -create Create the collection
    -credentials <user> Specify user[:passwd][:domain][:mailbox]
    -datapath <path> Specify VDK datapath
    -datefmt <fmt> Specify date format to VDK
    -debug Enable debugging output
    -delete Delete documents
    -description <desc> Set the collection's description
    -diskcache <num> Set VDK's disk cache size (kbytes)
    -extract Extract field values from text
    -help Print this usage information
    -insert Insert documents (default)
    -locale <locale> Specify the locale to VDK
    -logfile <file> Save output in a log file
    -loglevel <num> Set the VDK output level for the log
    -mailboxes This option is depracated. Use the credentials option inste
    ad
    -maxfiles <num> Set VDK's maximum number of open files
    -maxmemory <num> Set VDK's maximum memory usage (kbytes)
    -mode <mode> Set the indexing mode
    -modify Modify fields using field/value pairs from a bulkfile
    -nohousekeep Disable housekeeping
    -noindex Disable indexing
    -nolock Turns off locking (dangerous)
    -nooptimize Disable optimizations
    -nosave Don't save collection work list
    -noservice Prevents servicing of submitted work
    -nosubmit Don't submit work to VDK
    -numdocs <num> Number of documents to insert from bulk insert file(s)
    -numpages <num> Synonym for diskcache for backward compatibility
    -offset <num> Specify offset into bulk insert file(s)
    -online Flag for online Bulk Modify
    -optimize <spec> Optimize the collection
    -outlevel <num> Set the VDK output level
    -persist Service the collection forever
    -purge Remove all documents from collection
    -purgeback Purge in the background
    -purgewait <secs> Specify delay before purge
    -quiet Suppress all non-error messages
    -repair Repair the collection
    -servlev <spec> Advanced option for overriding service level
    -sleeptime <secs> Interval between service calls for persist
    -style <dir> Specify style directory for create
    -submit Synonym for noservice for backward compatibility
    -synch Perform work synchronously
    -topicset <path> Specify VDK topic set
    -update Update documents
    -vdkhome <path> Specify VDK home
    -verbose Output more information
    -words Build word assist list
    -wordindex Build word assist index
    The <spec> for -optimize is a hyphenated string of:
    maxmerge Perform maximal merging of partitions
    squeeze Recover space from deleted documents
    vdbopt Build optimized VDB's
    spanword Create word list spanning all partitions
    ngramindex Create ngram index into spanning word list
    maxclean Really clean (not for read-write)
    readonly Make the collection read-only
    tuneup Fully optimize for read-write use
    publish Fully optimize for read-only use
    The <spec> for -servlev is a hyphenated string of:
    search Enable search and retrieval
    insert Enable adding and updating documents
    optimize Enable opportunistic collection optimization
    assist Enable building of word list
    housekeep Enable housekeeping of unneeded files
    delete Enable document deletion
    backup Enable backup
    purge Enable background purging
    repair Enable collection repair
    dataprep Same as search-index-optimize-assist-housekeep
    index Same as insert-delete
    Error: must specify collection
    mkvdk done
    D:\fs840\webserv\peoplesoft>

  • How to make the buttons INVISIBLE in the Application toolbar

    Hi All,
    I have a requirement to create a button in the Application toolbar of the Module Pool Screen. The field should be made Invisible by default. and it should be displayed based on one condition.
    Could you please let me know how to make that particular button INVISIBLE. I think we can make it invisible by using EXCLUDING statement. But, How to make the button VISIBLE again when the check is satisfied.
    I found from the portal that the FM 'VIEW_SET_PF_STATUS' can be used to make a button INVISIBLE. Could anyone help me out how to pass the parameters to this Function module?
    or is there any Function Module available to make the button VISIBLE and INVISIBLE? Please help me on this issues.
    Is there any possibility to make the button VISIBLE or INVISIBLE as we do for the screen fields using LOOP AT SCREEN..?
    Thank you in advance.
    Regards.
    Paddu.

    Hi,
    Try to use below in the PBO module status_0100 OUTPUT.
    DATA t_fcode TYPE TABLE OF sy-ucomm.
    refresh t_fcode[].
    APPEND 'Function code name of the button' TO t_fcode. 
    Check the condition here for which you want to make field visible.
        DELETE FCODE of the button from T_FCODE table
      ENDIF.
      SET PF-STATUS 'STATUS_0100' EXCLUDING t_fcode.

  • How to control the button available in SRM 7.0

    Dear ,expers :
       I work in SRM 7.0 .SP 09
    You know ,the purchaser can do the "renew "in contract in the purchaer's view .But in my case ,some purchaser can do this ,but other nerver .So I just want to control the button available though the user role .
      Or other method ?
    BestRegards !
    Alex !

    Hi,
        We can achieve this with Meta configuration . You have to  configure  the button in the following path with dynamic customer class  and method and in this method you have to check the authorization for the user for the Auth object .
    if user is not authorized you can disable this button.
    Like this you can achive the control on the button.
    ->SAP Supplier Relationship Management
         ->SRM Server
            ->Cross-Application Basic Settings
                ->Extensions and Field Control (Personalization)
                   ->Control Actions
                      ->Configure Control Actions at Item level(    Check the button is at header level or item level or sub sructure level                                                                               
    and  configure accordingly   )
    regards,
    Devi

  • How to check the usage of ram and cpu Performance for the particular application like sqlserver ,ms word

    how to check the usage of ram and cpu  Performance for the particular application like sqlserver ,ms word
    ranki

    Hi,
    You can use Performance Monitor and add the required counters.
    Check the below Technet article on Performance Monitor.
    http://technet.microsoft.com/en-us/library/cc749249.aspx
    Below are the steps to monitor the process in Performance Monitor.
    - Go to the Performance Monitor. 
    - Right-click on the graph and select "Add Counters".
    - In the "Available counters" list, open the "Process" section by clicking on the down arrow next to it. Select "% Processor Time" (and any other counter you want).
    - In the "Instances of selected object" list, select the process you want to track. Then click on "Add >>" button. Click on OK.
    Regards,
    Jack
    www.jijitechnologies.com

  • Making the button disabled in the pop up window

    Hi experts,
    I have created a pop up with button type as buttons_yesno. The pop automatically creates two buttons YES and NO
    The pop up window contains two fields - Manufacturer and Description as input fields.
    The requirement i need is -> till the user enters the data into both the input field i wanted the yes button to be disabled.
    i have done the below code for the pop up to appear.
    DATA lo_window_manager TYPE REF TO if_wd_window_manager.
    DATA lo_api_component  TYPE REF TO if_wd_component.
    DATA lo_window         TYPE REF TO if_wd_window.
    lo_api_component  = wd_comp_controller->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = 'YWD_CREATE_MANF'
                     title                  =
                      close_in_any_case      = abap_false
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                     close_button           = abap_true
                       button_kind            = if_wd_window=>co_buttons_yesno
                       message_type           = if_wd_window=>co_msg_type_none
                      default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).
    is there any option to make the button disabled initially and then enable it when the user enters both the input field.
    Regards,
    Vinod

    Hi,
    When ever you create the popup, store the window reference globally.
    Use the method - SET_BUTTON_ENABLED of if_wd_window based on the input field values.
    Use the GET_ATTRIBUTE for that input field get the value into lv_value,
    if lv_value eq initial.
    lo_window->set_button_enabled
    exporting
    button = button id
    is_enabled = abap_false.
    else.
    lo_window->set_button_enabled
    exporting
    button = button id
    is_enabled = abap_true.
    endif.
    Edited by: Lekha on Oct 14, 2009 6:25 PM

  • How to check the Conditional transition while submit the jsp as screenflo

    Hi All,
    I want to know that how to check the conditional transition, which result is used to decide the next Activity while submit the JSP as Screen Flows
    Edited by bpmvasu at 03/27/2007 11:14 PM

    Hi,
    Unlike BPM Object Presentations where the 'selectedButton' is automatically assigned to the predefined screenflow 'result' variable, when using JSP Persentations you need to do the mapping yourself (I don't think there is a way around this).
    Assuming you're using a JSP Presentation with a Fuego Object Interactive Call, click the 'Advanced' button at the bottom of the Main Task dialog.
    Select the 'showOut' argument set, add a new argument mapping. Select 'result' from the Screenflow's instance variables and map it to 'parameters["paramName"]'. Where paramName is the name of the HTML submit input element in your JSP.
    Hope this helps,
    Tim

  • How to check the load balancing in Oracle 11gR2 2 node RAC

    Dear All,
    Can any one please assist me how to check whether the incoming connections are evenly distributing across the nodes..?
    We have two nodes, when we check the sessions counts in both nodes, Most of the time we could see node -1 has more no of sessions than node-2..? So just wanted to know whether load balancing is happening or not ...? If not how to enable it and distribute the incoming connections evenly..?
    Oracle 11gR2 / RHEL5

    SQL> select inst_id,count(*) from gv$session where username is not null group by inst_id;
    INST_ID COUNT(*)
    1 43
    2 40
    Not sure how to check the users are connecting through scan or not ..? But below are scan setttings...
    SQL> !srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
    SQL> !srvctl status scan_listener
    SCAN Listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node za-rac-prd-02
    SCAN Listener LISTENER_SCAN2 is enabled
    SCAN listener LISTENER_SCAN2 is running on node za-rac-prd-01
    SCAN Listener LISTENER_SCAN3 is enabled
    SCAN listener LISTENER_SCAN3 is running on node za-rac-prd-01
    SQL> !srvctl config scan
    SCAN name: rac_prd.abc.local, Network: 1/10.100.130.0/255.255.255.192/eth6.64
    SCAN VIP name: scan1, IP: /rac_prd.abc.local/10.100.130.55
    SCAN VIP name: scan2, IP: /rac_prd.abc.local/10.100.130.54
    SCAN VIP name: scan3, IP: /rac_prd.abc.local/10.100.130.53
    SQL>

  • How to rename the button "Give FInal Ratings" in appraisal.

    Hi,
    How to rename the button "Give FInal Ratings" in appraisal. (In Manager Appraisal the manager finally clicks on "Give Final Ratings" button. I want to rename this button.)
    I tried through personalization but could not locate the button name in the personalization structure , so that I can rename it.
    regards
    Edited by: Maya on Nov 24, 2012 11:23 PM

    Hi Maya,
    In personalization, find the item with simiilar word pattern . For Example : "%Final%Rating" or something like this.
    You will get the item as well as block name.
    As per my understanding , If you want to change the button label , then set the property : LABEL for that item.
    Apply and Save the personalization.
    Switch over responsibility and retest the case.
    HTH
    Sanjay

  • How to check the success/failure of e-mail sending from Sharepoint?

    Dear Expert,
    I connect Exchange 2010 and SharePoint 2010. When user create workflow in sharepoint, it will send the email to confirm. if it's done. but I checked from user they didn't get the email. I would like to know how to check the success/failure of e-mail
    sending from Sharepoint? 
    Thank you

    By default, there is no logging mechanism in SharePoint for outgoing mails.
    Mails in SharePoint are sent by giving an SMTP sever IP address in Central Administration. SharePoint never sends email directly. It relays or routes mails to the SMTP server. So, logging should be done in the SMTP server itself.
    There is also another way of doing it. You can enable SMTP service of IIS for sending emails from SharePoint, which would also just relay the mails to an SMTP Server. But in this case, you can enable logging in your IIS SMTP Service. Please visit this blog
    for more details.
    In your case you need to check your exchange server for any failure for relaying mails.
    Regards, Vikas Patel

  • CIN: How to check the material document posted without excise invoice

    Hi Guru,
    Please advise how to check the material document posted without excise invoice.
    I have tried tcode J1I7 but it seems start to collect the excise invoice first and then material document.
    But my case is to find the material document WITHOUT excise invoice for internal tracking purpose.
    At the moment we start from tcode MB51 to get the list of material document and check in J_1IEXCHDR / J_1IEXCDTL
    Best regards,
    Pakorn

    Hi,
    Try creating a Query in Tcode SQVI by combining tables MKPF and J_1IEXCHDR/J_1IEXCDTL for your requirement.
    Check these threads how to create Query.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6018c1ae-8c44-2d10-6ea9-c3fad2c82880?QuickLink=index&…
    http://ptgmedia.pearsoncmg.com/images/9780672329029/samplechapter/0672329026_CH03.pdf
    Regards
    Binoy

  • How to check the messages in solution manager?

    hai experts !
    how to check the messages in solution manager?
    in which transaction do we see them?

    Hi Kiran,
    From what I gather from your brief question, you are perhaps looking for CRM_DNO_MONITOR that would display all queries created from Satellite/SolMan system itself, as support messages.
    If you are looking for Notifications underlying those messages, please look for DNOTIFWL.
    For more specific answers, please provide more description of what you are looking for.
    Trust this helps.
    Regards,
    Srini

  • Can anyone tell me how to check the balance on an iTunes gift card that is not yet scratched?

    Can anyone tell me how to check the balance on an iTunes gift card that is not yet scratched or activated?

    If it's not printed on the card, then you'll need to check the receipt from the purchase of the card. There's no way to check the value from the card itself without redeeming it.
    Regards.

  • How will check the space taken by a single table in a tablespace ?

    How will check the space taken by a single table in a tablespace ?
    dba_segments is giving the same values even if I truncate the table?
    Pls reply

    I need to know how can we find out the size of the table in the tablespace.use user_segments (bytes) column.
    How much bytes it has taken ?value from user_segments, bytes column
    If u delete records will the space be used for another table in same tablespace?No, it keep the space in the same table for future usage.
    How can we free that space ?truncate or drop the table and reduce the size from tablespace, if you want to reclaim the space from the tablespace, OS level.
    Jaffar

Maybe you are looking for

  • How can i put a file into blob using jdbc !?

    Hi i tried to put a file into blob , but got a problem..... My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver ) a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~) /

  • Web Dynpro to XI Scenario

    Hi I am developing web dynpro to XI scenario.. I configured Sender SOAP adapter channel and defined a web service  for my Interface which create WSDL file. On dynpro I Imported that WSDL file and created Model. On click of UI element button I am fetc

  • Connecting new iPod Classic to a TV

    Hi! I am hoping that someone can help me. I am somewhat new to this whole mp3 thing. I did get my 9yr old daughter an iPod nano for Christmas and have been helping her set hers up, but that's pretty much the extent of my experience. So, please forgiv

  • Apple, please may you put the ability to upload photos from your photo album directly to Facebook in the iOS5.0.2 update?

    Hi apple, I was wondering if you could in the iOS5.0.2 update or the update after that, give the ability to upload photos from your photo album directly to Facebook without having to plug your iPod, iPad or iPhone into your computer.

  • Need some suggestion on bapi

    Hello,      I am not able to pass multiple values for single import parameter..i tired calling function module in loop and also tried RANGES..Need some suggestion on this.. Thanks and Regards,        sapdev86 Moderator Message: Basic Question Edited