How to get object-path at runtime

Hi, In my application paths of particular controls(radio buttons and links) get changed at runtime. Therefore I cant access those objects. It would be helpful if somebody guide me how to get paths of objects(controls) at runtime. To be more specific following are the paths procured on different time ie. on different runs.
"window(name='incident173747')[1].window(name='ifrmTabWindow')[1].input(name='generateQuote')[1]"
"window(name='incident173750')[1].window(name='ifrmTabWindow')[1].input(name='generateQuote')[1]"
One can see only first window name is changed here.In first case it is :
name='incident173747'
while in the second one it's:
name='incident173750'

Hi Vivek555,
How do you know which radio button or link you want to click on? If each one is called generateQuote, what is in on the page that says "This is the one I want to click on".
Please give a snippet of the html for the page so that we can help you out.
Thanks,
Kevin Gehrke
Empirix, Inc.

Similar Messages

  • How to get current path at runtime?

    i wish to determine file path at runtime.
    it will be run from an executable jar. i do not wish to do anything within the jar, i simply wish to know the full path that the jar was run from.
    how do i go about doing this?
    thanks.

    actually, after some testing, both of those methods returns where the call to run the jar was from, not where the jar itself resides.
    ie if you were at the dos prompt (with the current folder being C:\Current) and typed java -jar C:\AppFolder\test.jar as the command, it would return C:\Current vice C:\AppFolder where the jar was actually located.
    I want to return C:\AppFolder no matter where the call was from...

  • How to get the path when i select a directory or a file in a JTree

    How to get the path when i select a directory or a file in a JTree

    import java.lang.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.awt.HeadlessException;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Iterator;
    * @author Frederic FOURGEOT
    * @version 1.0
    public class JTreeFolder extends JPanel {
    protected DefaultMutableTreeNode racine;
    JTree tree;
    protected JScrollPane scrollpane;
    final static int MAX_LEVEL = 1; // niveau max de descente "direct" dans l'arborescence
    * Sous-classe FSNode
    * @author Frederic FOURGEOT
    * @version 1.0
    private class FSNode extends DefaultMutableTreeNode {
    File file; // contient le fichier li� au noeud
    * Constructeur non visible
    private FSNode() {
    super();
    * Constructeur par initialisation
    * @param userObject Object
    FSNode(Object userObject) {
    super(userObject);
    * Constructeur par initialisation
    * @param userObject Object
    * @param newFile File
    FSNode(Object userObject, File newFile) {
    super(userObject);
    file = newFile;
    * Definit le fichier lie au noeud
    * @param newFile File
    public void setFile(File newFile) {
    file = newFile;
    * Renvoi le fichier lie au noeud
    * @return File
    public File getFile() {
    return file;
    public JTree getJTree(){
         return tree ;
    * Constructeur
    * @throws HeadlessException
    public JTreeFolder() throws HeadlessException {
    File[] drive;
    tree = new JTree();
    // cr�ation du noeud sup�rieur
    racine = new DefaultMutableTreeNode("Poste de travail");
    // cr�ation d'un noeud pour chaque lecteur
    drive = File.listRoots();
    for (int i = 0 ; i < drive.length ; i++) {
    FSNode node = new FSNode(drive, drive[i]);
    addFolder(drive[i], node); // on descend dans l'arborescence du lecteur jusqu'� MAX_LEVEL
    racine.add(node);
    // Gestion d'evenement sur JTree (on �coute les evenements TreeExpansion)
    tree.addTreeExpansionListener(new TreeExpansionListener() {
    public void treeExpanded(TreeExpansionEvent e) {
    // lorsqu'un noeud est ouvert
    // on descend dans l'arborescence du noeud jusqu'� MAX_LEVEL
    TreePath path = e.getPath();
    FSNode node = (FSNode)path.getLastPathComponent();
    addFolder(node);
    ((DefaultTreeModel)tree.getModel()).reload(node); // on recharche uniquement le noeud
    public void treeCollapsed(TreeExpansionEvent e) {
    // lorsqu'un noeud est referm�
    //RIEN
    // alimentation du JTree
    DefaultTreeModel model = new DefaultTreeModel(racine);
    tree.setModel(model);
         setLayout(null);
    // ajout du JTree au formulaire
    tree.setBounds(0, 0, 240, 290);
    scrollpane = new JScrollPane(tree);
         add(scrollpane);
         scrollpane.setBounds(0, 0, 240, 290);
    * Recuperation des sous-elements d'un repertoire
    * @param driveOrDir
    * @param node
    public void addFolder(File driveOrDir, DefaultMutableTreeNode node) {
    setCursor(new Cursor(3)); // WAIT_CURSOR est DEPRECATED
    addFolder(driveOrDir, node, 0);
    setCursor(new Cursor(0)); // DEFAULT_CURSOR est DEPRECATED
    * Recuperation des sous-elements d'un repertoire
    * (avec niveau pour r�cursivit� et arr�t sur MAX_LEVEL)
    * @param driveOrDir File
    * @param node DefaultMutableTreeNode
    * @param level int
    private void addFolder(File driveOrDir, DefaultMutableTreeNode node, int level) {
    File[] fileList;
    fileList = driveOrDir.listFiles();
    if (fileList != null) {
    sortFiles(fileList); // on tri les elements
    // on ne cherche pas plus loin que le niveau maximal d�finit
    if (level > MAX_LEVEL - 1) {return;}
    // pour chaque �l�ment
    try {
    for (int i = 0; i < fileList.length; i++) {
    // en fonction du type d'�l�ment
    if (fileList[i].isDirectory()) {
    // si c'est un r�pertoire on cr�� un nouveau noeud
    FSNode dir = new FSNode(fileList[i].getName(), fileList[i]);
    node.add(dir);
    // on recherche les �l�ments (r�cursivit�)
    addFolder(fileList[i], dir, ++level);
    if (fileList[i].isFile()) {
    // si c'est un fichier on ajoute l'�l�ment au noeud
    node.add(new FSNode(fileList[i].getName(), fileList[i]));
    catch (NullPointerException e) {
    // rien
    * Recuperation des sous-elements d'un noeud
    * @param node
    public void addFolder(FSNode node) {
    setCursor(new Cursor(3)); // WAIT_CURSOR est DEPRECATED
    for (int i = 0 ; i < node.getChildCount() ; i++) {
    addFolder(((FSNode)node.getChildAt(i)).getFile(), (FSNode)node.getChildAt(i));
    setCursor(new Cursor(0)); // DEFAULT_CURSOR est DEPRECATED
    * Tri une liste de fichier
    * @param listFile
    public void sortFiles(File[] listFile) {
    triRapide(listFile, 0, listFile.length - 1);
    * QuickSort : Partition
    * @param listFile
    * @param deb
    * @param fin
    * @return
    private int partition(File[] listFile, int deb, int fin) {
    int compt = deb;
    File pivot = listFile[deb];
    int i = deb - 1;
    int j = fin + 1;
    while (true) {
    do {
    j--;
    } while (listFile[j].getName().compareToIgnoreCase(pivot.getName()) > 0);
    do {
    i++;
    } while (listFile[i].getName().compareToIgnoreCase(pivot.getName()) < 0);
    if (i < j) {
    echanger(listFile, i, j);
    } else {
    return j;
    * Tri rapide : quick sort
    * @param listFile
    * @param deb
    * @param fin
    private void triRapide(File[] listFile, int deb, int fin) {
    if (deb < fin) {
    int positionPivot = partition(listFile, deb, fin);
    triRapide(listFile, deb, positionPivot);
    triRapide(listFile, positionPivot + 1, fin);
    * QuickSort : echanger
    * @param listFile
    * @param posa
    * @param posb
    private void echanger(File[] listFile, int posa, int posb) {
    File tmpFile = listFile[posa];
    listFile[posa] = listFile[posb];
    listFile[posb] = tmpFile;

  • How to get the Path of the WebDynpro page

    Hi All,
    Can any one say how to get the path of the JSPDynPage ina Portlet in Portal Application.
    Becoz i have to display that Page in another JSPDynPagee
    Thanks in Advance....

    Hi,
    You can call your JSPDynPage component by calling the URL as:
    http://localhost:50000/irj/servlet/prt/portal/prtroot/YourApplicationName.YourComponentName
    Check this:
    Calling portal component
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • How to get the path of the image stored in sap??

    Hi All
    The problem is
    While making an entry in standard there is a field called documents through which we attach our images in sap.
    How to get the path of the image stored with the corresponding order so that the image can be displayed while we are creating a report.
    I know how to upload the image while creating a report using docking control.
    I am not able to get the path of the image stored...
    Please Help
    Thanks in advance..
    Pooja

    I am not aware of exactly which tables are used for storing the attached doc. details, but we have worked in the similar requiremnent.
    What you can do is .... before uploading the image to any order, try swich on the SQL trace ST05 and after upload switch off.
    The log will display what are the tables involved while storing the image. And you can easily find out the image location.

  • How 2 get the path of a file

    how 2 get the path of a file Using jsp
    i have tried getPath...but i'm geting the error
    The method getPath(String) is undefined for the type HttpServletRequest
    any idea how 2 get the path of a file

    You need ServletContext#getRealPath().
    API documentation: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)

  • How 2 get the path of a file Using jsp

    how 2 get the path of a file Using jsp
    i have tried getPath...but i'm geting the error
    The method getPath(String) is undefined for the type HttpServletRequest
    any idea how 2 get the path of a file

    You need ServletContext#getRealPath().
    API documentation: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)

  • How to get absolute path of a form within the Forms

    Aslam o Alikum (Hi)
    How to get absolute path of a form within the Forms 6i or 9i
    For example
    i am running a from "abc.fmx" from C:\myfolder directory
    can i get the form path 'C:\myfolder' by calling any any function from "abc.fmb"

    There is no direct call that will always work. What you need to do is call get_application_property(current_form). This may have the full path in it, depending on if that path was defined when the form was launched. If there is no path, then you need to use TOOL_ENV.GETVAR to read the Forms<nn>PATH and the ORACLEPATH, parse those out into individual directories and then check for the FMX in each.
    I already have some code to do all this for you see:
    http://www.groundside.com/blog/content/DuncanMills/Oracle+Forms/?permalink=4A389E73AE26506826E9BED9155D2097.txt

  • How to get the Path of the Current File using Import & Export File -Reg.

    Dear all,
    I have a mega (big) doubt. I have manually inserted the Figures from the figure folders. Now i need, fully automated. So How can I get the Figure path
    Example :
    PMString path = "E://development/Figures/";
    now i checked, How many subFolders is there in "path", get the All Subfolders and check to the Article Name.
    Example
    Article Name == subFolder name then get the Files from the SubFolders(E://development/Figures/ChapterF/*.eps files").
    now I paste the Document using to For Loop.
    Please any one can suggest me, How can We get the Path in SDK.
    Note:
    Should I have to create the relative path by myself?
    No method supplied in SDK to do this directly?
    Please I need a help of this Query as soon as posible.
    Thanks & Regards
    T.R.Harihara SudhaN

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
    When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
    i need to know on how to get the compelete path /directory of the filename
    using <input type="file"> tag You can't. Its a security thing.
    is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
    You could always go into activex components, but thats different again.
    Cheers,
    evnafets

  • How to get the path of the selected Jtree node for deletion purpose

    I had one Jtree which show the file structure of the system now i want to get the functionality like when i right click on the node , it should be delete and the file also deleted from my system, for that how can i get the path of that component
    i had used
    TreePath path = tree.getPathForLocation(loc.x, loc.y);
    but it gives the array of objects as (from sop)=> [My Computer, C:\, C:\ANT_HOME, C:\ANT_HOME\lib, C:\ANT_HOME\lib\ant-1.7.0.pom.md5]
    i want its last path element how can i get it ?

    Call getLastSelectedPathComponent() on the tree.

  • How to get the path of input type="file" tag

    -- im using <input type="file"> tag to get an input file from a local host, it returns only the filename but not the complete path of the filename,,,
    -- i need to know on how to get the compelete path /directory of the filename using <input type="file"> tag , or is there any other way to get an input file from a local host aside from <input type="file"> tag?
    thanks

    http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/input_file.asp?frame=true
    When a file is uploaded, the file name is also submitted. The path of the file is available only to the machine within the Local Machine security zone. The value property returns only the file name to machines outside the Local Machine security zone. See About URL Security Zones for more information on security zones.
    i need to know on how to get the compelete path /directory of the filename
    using <input type="file"> tag You can't. Its a security thing.
    is there any other way to get an input file from a local host aside from <input type="file"> tag?No. Not using just html.
    You could always go into activex components, but thats different again.
    Cheers,
    evnafets

  • SRM7 - how to get clipboard content at runtime

    Hello gurus,
    not sure this is the proper section as my question is kinda technical and ABAP-related, anyway.... SRM 7.0 has a Copy/Paste option on items of a document (purchase order or contract): once the user selects an item, the "Copy" button uploads the item on the clipboard, while the "Paste" one gets clipboard's content and generate a new item with that data.
    I have to check at runtime which data are in the clipboard in a WDDOMODIFYVIEW post-exit enhancement.
    For a specific customer desiderata, I have to check the "copied" position w.r.t. the item that is selected at runtime in order to enable/disable the "Paste" button.
    So the question is: how can I get the "copied" item? I need to check some fields in it in order to eventually disable the "Paste" button dinamically.
    I assume this question could be equivalent to the following: how can I access the clipboard area and get the "copied" item(s) ?
    I'm working on the item main area (/SAPSRM/WDC_CTR_DOTC_IT web dynpro) and tried as follows:
    DATA: lv_FILLED Type abap_bool.
      DATA: facade_clip TYPE REF TO /SAPSRM/IF_CH_WD_SETF_CLIPBRD.
    * check clipboard
      CALL METHOD wd_this->MO_DODM_CTR_ITEMS->/sapsrm/if_cll_do_mapper~is_clipboard_filled
        RECEIVING
          rv_data_contains = lv_filled.
      IF lv_filled EQ abap_true.
        CALL METHOD wd_this->mo_dodm_ctr_items->get_clipboard
    *      EXPORTING
    *        iv_cross_tx  =
          receiving
            ro_clipboard = facade_clip.
    Unfortunately, the second method (get_clipboard) seems to be private/protected. Is there any other way to get info on the copied positions?
    Thanks in advance
    EDIT: moreover, I noticed also that IS_CLIPBOARD_FILLED is not relevant for my task, as it returns always abap_true even though no item was copied. I guess that clipboard can be filled with every kind of data... I have anyway a workaround which is based on a post-exit on the COPY_ITEM method, in which I mark a custom field in the context ("copy_pressed"), so I know in WDDOMODIFYVIEW whether the "Copy" button has been pressed.
    Edited by: Matteo Montalto on Mar 2, 2012 3:53 PM

    Hi all,
    back on the argument as I probably found a way to achieve the desiderata... only a little tile missing, hope someone could provide me an help.
    Basically, in WDDOMODIFYVIEW, I coded as follows:
    DATA: clipbrd TYPE REF TO /SAPSRM/IF_CH_WD_SETF_CLIPBRD.
    clipbrd = wd_this->mo_dodm_ctr_items->/sapsrm/if_cll_do_mapper~get_clipboard( iv_cross_tx = 'X' ).
    This gives correctly the clipboard object, that is however not usable as object of type /SAPSRM/IF_CH_WD_SETF_CLIPBRD.
    I should then use a method to retrieve the content of the clipboard in an usable format; I found out that the method
    CALL METHOD (of /SAPSRM/IF_CH_WD_SETF_CLIPBRD) get_clipboard_content
        EXPORTING
          io_set_facade        =
        receiving
          rt_clipboard_content = test (type ref DATA).
    is exactly what I'm looking for.
    The problem is: what's that io_set_facade intended for? As it's a mandatory parameter I have to pass it in order to retrieve clipboard's content, but don't have idea on how to get it in WDDOMODIFYVIEW as it seems an private attribute of the interface IF_CLL_DO_MAPPER.
    Any help is welcome.
    Thanks.

  • How to get object key before load data into form?

    I need to get object key (e.g. ItemCode in Item Master Data From ,docEntry in A/R Invoice From) to calculate and do something  before data is loaded into this form .
    I try to use SAPbouiCOM.BusinessObjectInfo.objectKey as in this code.
    Private Sub oApp_FormDataEvent(ByRef pVal As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
           If pVal.FormTypeEx = "672" And pVal.BeforeAction = True And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD Then
                   oApp.MessageBox(pVal.ObjectKey)
           End If
    End Sub
    But this fields doesn't valid under this condition (form DI help file).
    - The property returns an empty value in the before notification of the Load action (et_FORM_DATA_LOAD) triggered by a Find operation.
    How can I get this value(key)?

    Janos
    I can't do a calculation after data is loaded because what I'm going to do is that if the opening entry match my condition , the system will not let that user see that entry (bubbleEvent = False).
    I think when formDataEvent is triggered B1 know which entry are going to load because before this event is triggered we did one of following ways
    1. choose from "choose from list windows"
    2. enter docEntry or itemCode or cardCode  and then press Find Button
    3. press "next/previous record button"
    4. press linked button (orange arrow)
    Choice 3 and 4 can be done by retrieve data from BusinessObjectInfo.objectKey (I've tested and it return entry key that is going to open correctly).
    but 1 and 2 can't (it return empty as I mention before).
    thanks
    Edited by: daron tancharoen on Aug 5, 2008 2:34 PM

  • How to get full path in file browse item

    Hi
    I have a file item. When I submit the form and store and value in db, then the file path is stored as numbers and appended to the file name. I undestand that this is because of some wwv flow files index or something . How to get the file path? Anybody...

    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    Changes to IE's security config can enable the path to be exposed in IE8, but I don't think it will be available via <tt>apex_application_files</tt>.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx

  • [CS3] How to get the path of a graphics item?

    Hallo!
    I want the path, e.g. "C:\test.jpg" of a graphics item on a page.
    How to get it?
    Thanks,
    Alois Blaimer

    You probably have a kSplineItemBoss.
    Follow IID_IHIERARCHY to its nested kImageItemBoss child.
    Follow IID_IDATALINKREFERENCE to the kDataLinkBoss.
    See the SDK docs for interfaces on that boss.
    Dirk

Maybe you are looking for

  • Master data load error

    Hi I am getting following error while executing the DTP: 0MATERIAL : Data record 84 ('1-80200-01  '): Version '1-80200-01  ' is not valid. I know its because of space and I can correct it in PSA. But its loaded daily as full load and I dont want to c

  • How do I put a disc in my iMac?

    I have software on a disc that i need on my mac. There's no dvd/cd slot.. can i put it on my macbook & transfer it maybe?

  • Schedule & Time Planner for the Web...

    Hello , beautiful day for everyone here ! Do you know any place to find this resource I am looking for ? i am creating a Web for a theater, and they need to update easily their schedules for the week... I am using PHP server.... any suggestion ? I wi

  • I want to rotate images on refresh

    I work for a newspaper, we want to rotate ads on refresh at random. We are looking to stop using our current programmer. We just need to figure this out. I want it to rotate like THIS. Is there a fairly simple way to do it in dreamweaver?

  • Why is my mac mini slowing dowm

    Hi All My Mac Mini I got 8 weeks ago is now so painfully slow that I cannot load Safari or Chrome they just keep churning away and nothing happens. Getting a bit fed up with it actually