PLEASE HELP!! Need some way to read header text in advanced datagrid using QTP

I am writing a function to read column names in advanced data
grid. There is no operation for that and any of the properties that
I can use to read the column names.
Please suggest any way that I can get the names of columns in
the advanced data grid.
Thanks

I hope to hear something from adobe folks...I am providing
more info.....
I am using QTP 9.2 and Flex 3 add-in available from Adobe.
My application has flex Advanced datagrid object and I am
trying to read column names for the datagrid.
I have contacted developers and they told me that column
names for flex advanced datagrid are stored in "Header Text"
I have tried reading "Header Text" using
GetROProperty("HeaderText") but it doesn't return anything.
I have tried the following code:
x =
Browser("app").FlexApplication("flexapp").FlexCanvas("Canvas").FlexAdvancedDatagrid("esti mategridid").GetROProperty("Header
Text")
msgbox x
I have also tried getting value for column names using other
available properties for webtables like outerhtml, outertext, alt
etc. but I don't get any data.
Part of the problem may be because none of the above
mentioned properties are supported by Flex Advanced datagrid.
I have also tried getting child objects but I always get the
data in datagrid as values but not the column names.
My primary reason for getting column names is to write a
function to update cell in datagrid independent of application. So,
I want to pass column name as a parameter to the function and get
the corresponding columnIndex in the function by comparing the
parameter value against column names.
Thanks to all for you help...

Similar Messages

  • PLEASE HELP: Need some help with coding a next page button.

    so ok, in details, I'm trying to code a next page button and can't really figure out how and tried to look for them over the net but can't find the kind I am looking for. So ok, the kind of next page button I'm looking for is the kind where you have like << 1 2 3 4 5 ... (Next page button) >> not just a button where I need to hyperlink it to the next page url cuz I have like 35 pages to put... so I'm trying to figure it out yet no cigar so can someone please help me with this? Thanks!

    What I've seen done a lot (on forums with upwards of 1000 pages on some threads) is to add a "pagination" block of code that has:
    two or three pages before the current page
    two or three pages after the current page
    a drop down with ALL pages listed
    The "next" link or button is then just a copy  of the final link in the inline list.
    Something like this:
    <table>
    <tr>
    <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>Goto page <select name="generate_pagination" onchange="if(this.options[this.selectedIndex].value != -1){ window.location = this.options[this.selectedIndex].value; }"><option value="forum-page-26.html" selected="selected">1</option><option value="forum-page-26-45.html">2</option><option value="forum-page-26-90.html">3</option><option value="forum-page-26-135.html">4</option><option value="forum-page-26-180.html">5</option><option value="forum-page-26-225.html">6</option><option value="forum-page-26-270.html">7</option><option value="forum-page-26-315.html">8</option><option value="forum-page-26-360.html">9</option><option value="forum-page-26-405.html">10</option><option value="forum-page-26-450.html">11</option><option value="forum-page-26-495.html">12</option><option value="forum-page-26-540.html">13</option><option value="forum-page-26-585.html">14</option><option value="forum-page-26-630.html">15</option><option value="forum-page-26-675.html">16</option><option value="forum-page-26-720.html">17</option><option value="forum-page-26-765.html">18</option><option value="forum-page-26-810.html">19</option><option value="forum-page-26-855.html">20</option><option value="forum-page-26-900.html">21</option><option value="forum-page-26-945.html">22</option><option value="forum-page-26-990.html">23</option><option value="forum-page-26-1035.html">24</option><option value="forum-page-26-1080.html">25</option><option value="forum-page-26-1125.html">26</option><option value="forum-page-26-1170.html">27</option><option value="forum-page-26-1215.html">28</option><option value="forum-page-26-1260.html">29</option><option value="forum-page-26-1305.html">30</option><option value="forum-page-26-1350.html">31</option><option value="forum-page-26-1395.html">32</option><option value="forum-page-26-1440.html">33</option><option value="forum-page-26-1485.html">34</option><option value="forum-page-26-1530.html">35</option><option value="forum-page-26-1575.html">36</option><option value="forum-page-26-1620.html">37</option><option value="forum-page-26-1665.html">38</option><option value="forum-page-26-1710.html">39</option><option value="forum-page-26-1755.html">40</option><option value="forum-page-26-1800.html">41</option><option value="forum-page-26-1845.html">42</option><option value="forum-page-26-1890.html">43</option><option value="forum-page-26-1935.html">44</option><option value="forum-page-26-1980.html">45</option><option value="forum-page-26-2025.html">46</option><option value="forum-page-26-2070.html">47</option><option value="forum-page-26-2115.html">48</option><option value="forum-page-26-2160.html">49</option><option value="forum-page-26-2205.html">50</option></select>  <b>1</b>, <a href="forum-page-26-45.html">2</a>, <a href="forum-page-26-90.html">3</a> ... <a href="forum-page-26-2250.html">51</a>, <a href="forum-page-26-2295.html">52</a>, <a href="forum-page-26-2340.html">53</a>  <a href="forum-page-26-45.html">Next</a></b></span></td>
    </tr>
    </table>

  • PLEASE HELP NEED SOME ADVICE

    i joined bt on the 17th may with my fone line tv n broadband and i was quite happy with the service 
    for the 9 days it was working but after just 9 days my vision went down and i rang up wasnt to happy went i was told i would have to wait till the 8th june for and enginer to come but fair enothe i waited as i need a new box 
    8th of june came and went without a sight of an engineer so i rang up again was on the fone for 2 hours and requested a formal complaint to b submitted on my behalf which i was assured was done and received another appointment for an engineer to come on the 17th of june which it today 
    anf guess what no sign of them so rang up n found out that my complaint hadnt beed submitted and told i need to wait till the 28th june for another engineer to come seriously pi**ed 
    also has to ring the billing department to sort out my bill as not had my services for nearly a month and been told from my £54 bill they deducted £30 so for nine days worth of services they charging me £24 which i think is unfair do u call this customer service its a joke seriously finkin bout going to virgin

    Hi Venus,
    I'll be happy to help you out with this and make sure that we get everything sorted out and your service up and going again.
    Could you drop me in an email please with your BT account and telephone number along with a link back to this thread.
    Just send using the contact us form in my profile under the 'about me' section.
    Thx
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Javascrip to read Header text in pdf

    Hi all
    I'm new to use javascritp in PDf , i used javascript in Photoshop and illustrator i'm new to PDF
    i need a script to read header text in all pages of pdf where font, fontsize must be same
    Please anyone help me to develop script

    JS has no access to the type face information of text in a file. Best you
    can do is get the font size by analysing the coordinates (quads) that
    define each word on the page.

  • Please I need some help with a table

    Hi All
    I need some help with a table.
    My table needs to hold prices that the user can update.
    Also has a total of the column.
    my question is if the user adds in a new price how can i pick up the value they have just entered and then add it to the total which will be the last row in the table?
    I have a loop that gets all the values of the column, so I can get the total but it is when the user adds in a new value that I need some help with.
    I have tried using but as I need to set the toal with something like total
        totalTable.setValueAt(total, totalTable.getRowCount()-1,1); I end up with an infinite loop.
    Can any one please advise on some way I can get this to work ?
    Thanks for reading
    Craig

    Hi there camickr
    thanks for the help the other day
    this is my full code....
    package printing;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.DecimalFormat;
    public class tablePanel
        extends JDialog  implements Printable {
      BorderLayout borderLayout1 = new BorderLayout();
      private boolean printing = false;
      private Dialog1 dialog;
      JPanel jPanel = new JPanel();
      JTable table;
      JScrollPane scrollPane1 = new JScrollPane();
      DefaultTableModel model;
      private String[] columnNames = {
      private Object[][] data;
      private String selectTotal;
      private double total;
      public tablePanel(Dialog1 dp) {
        dp = dialog;
        try {
          jbInit();
        catch (Exception exception) {
          exception.printStackTrace();
      public tablePanel() {
        try {
          jbInit();
        catch (Exception exception) {
          exception.printStackTrace();
      private void jbInit() throws Exception {
        jPanel.setLayout(borderLayout1);
        scrollPane1.setBounds(new Rectangle(260, 168, 0, 0));
        this.add(jPanel);
        jPanel.add(scrollPane1, java.awt.BorderLayout.CENTER);
        scrollPane1.getViewport().add(table);
        jPanel.setOpaque(true);
        newTable();
        addToModel();
        addRows();
        setTotal();
    public static void main(String[] args) {
      tablePanel tablePanel = new  tablePanel();
      tablePanel.pack();
      tablePanel.setVisible(true);
    public void setTotal() {
      total = 0;
      int i = table.getRowCount();
      for (i = 0; i < table.getRowCount(); i++) {
        String name = (String) table.getValueAt(i, 1);
        if (!"".equals(name)) {
          if (i != table.getRowCount() - 1) {
            double dt = Double.parseDouble(name);
            total = total + dt;
      String str = Double.toString(total);
      table.setValueAt(str, table.getRowCount() - 1, 1);
      super.repaint();
      public void newTable() {
        model = new DefaultTableModel(data, columnNames) {
        table = new JTable() {
          public Component prepareRenderer(TableCellRenderer renderer,
                                           int row, int col) {
            Component c = super.prepareRenderer(renderer, row, col);
            if (printing) {
              c.setBackground(getBackground());
            else {
              if (row % 2 == 1 && !isCellSelected(row, col)) {
                c.setBackground(getBackground());
              else {
                c.setBackground(new Color(227, 239, 250));
              if (isCellSelected(row, col)) {
                c.setBackground(new Color(190, 220, 250));
            return c;
        table.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
            if (e.getClickCount() == 1) {
              if (table.getSelectedColumn() == 1) {
       table.setTableHeader(null);
        table.setModel(model);
        scrollPane1.getViewport().add(table);
        table.getColumnModel().getColumn(1).setCellRenderer(new TableRenderDollar());
      public void addToModel() {
        Object[] data = {
            "Price", "5800"};
        model.addRow(data);
      public void addRows() {
        int rows = 20;
        for (int i = 0; i < rows; i++) {
          Object[] data = {
          model.addRow(data);
      public void printOut() {
        PrinterJob pj = PrinterJob.getPrinterJob();
        pj.setPrintable(tablePanel.this);
        pj.printDialog();
        try {
          pj.print();
        catch (Exception PrintException) {}
      public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {
        Graphics2D g2 = (Graphics2D) g;
        g2.setColor(Color.black);
        int fontHeight = g2.getFontMetrics().getHeight();
        int fontDesent = g2.getFontMetrics().getDescent();
        //leave room for page number
        double pageHeight = pageFormat.getImageableHeight() - fontHeight;
        double pageWidth =  pageFormat.getImageableWidth();
        double tableWidth = (double) table.getColumnModel().getTotalColumnWidth();
        double scale = 1;
        if (tableWidth >= pageWidth) {
          scale = pageWidth / tableWidth;
        double headerHeightOnPage = 16.0;
        //double headerHeightOnPage = table.getTableHeader().getHeight() * scale;
        //System.out.println("this is the hedder heigth   " + headerHeightOnPage);
        double tableWidthOnPage = tableWidth * scale;
        double oneRowHeight = (table.getRowHeight() +  table.getRowMargin()) * scale;
        int numRowsOnAPage = (int) ( (pageHeight - headerHeightOnPage) / oneRowHeight);
        double pageHeightForTable = oneRowHeight *numRowsOnAPage;
        int totalNumPages = (int) Math.ceil( ( (double) table.getRowCount()) / numRowsOnAPage);
        if (pageIndex >= totalNumPages) {
          return NO_SUCH_PAGE;
        g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    //bottom center
        g2.drawString("Page: " + (pageIndex + 1 + " of " + totalNumPages),  (int) pageWidth / 2 - 35, (int) (pageHeight + fontHeight - fontDesent));
        g2.translate(0f, headerHeightOnPage);
        g2.translate(0f, -pageIndex * pageHeightForTable);
        //If this piece of the table is smaller
        //than the size available,
        //clip to the appropriate bounds.
        if (pageIndex + 1 == totalNumPages) {
          int lastRowPrinted =
              numRowsOnAPage * pageIndex;
          int numRowsLeft =
              table.getRowCount()
              - lastRowPrinted;
          g2.setClip(0,
                     (int) (pageHeightForTable * pageIndex),
                     (int) Math.ceil(tableWidthOnPage),
                     (int) Math.ceil(oneRowHeight *
                                     numRowsLeft));
        //else clip to the entire area available.
        else {
          g2.setClip(0,
                     (int) (pageHeightForTable * pageIndex),
                     (int) Math.ceil(tableWidthOnPage),
                     (int) Math.ceil(pageHeightForTable));
        g2.scale(scale, scale);
        printing = true;
        try {
        table.paint(g2);
        finally {
          printing = false;
        //tableView.paint(g2);
        g2.scale(1 / scale, 1 / scale);
        g2.translate(0f, pageIndex * pageHeightForTable);
        g2.translate(0f, -headerHeightOnPage);
        g2.setClip(0, 0,
                   (int) Math.ceil(tableWidthOnPage),
                   (int) Math.ceil(headerHeightOnPage));
        g2.scale(scale, scale);
        //table.getTableHeader().paint(g2);
        //paint header at top
        return Printable.PAGE_EXISTS;
    class TableRenderDollar extends DefaultTableCellRenderer{
        public Component getTableCellRendererComponent(
          JTable table,
          Object value,
          boolean isSelected,
          boolean isFocused,
          int row, int column) {
            setHorizontalAlignment(SwingConstants.RIGHT);
          Component component = super.getTableCellRendererComponent(
            table,
            value,
            isSelected,
            isFocused,
            row,
            column);
            if( value == null || value .equals("")){
              ( (JLabel) component).setText("");
            }else{
              double number = 0.0;
              number = new Double(value.toString()).doubleValue();
              DecimalFormat df = new DecimalFormat(",##0.00");
              ( (JLabel) component).setText(df.format(number));
          return component;
    }

  • This website make problem for me, he open by it self everytime i try to open another websites  Please i need some help

    this website make problem for me, he open by it self everytime i try to open another websites
    Please i need some help
    http://yandex.ru/yandsearch?text=ццц&lr=1004

    Dude, I don't think there's a user on this forum that would click on that link.

  • I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past

    I ordered a new phone and shipped it to a friend in Dubai, UAE. without knowing i have to activate it by making 5minutes calls, please i need a way to activate it without sending it back to the US..any help? this has been very frustrating for me this past few days

    scottxx,
    That was very nice of you to provide your friend with a new phone! I am sorry to say that the device will not be able to activate while in Dubai. For a device to activate it must connect to the VZW network to become active. I apologize for any inconvenience.
    LindseyT_VZW

  • Hi, Someone Know why my charger is not working properly but always it was been working good but now when conect my iphone (3gs) shows a yellow triangle saying : Charging is not supported with this accessory. Please I need some help here. Thanks =D

    Hi Someone Know why my charger is not working properly but always it was been working good but now when conect my iphone (3gs) appears a golden triangle saying :Charging is not Supported with this accessory. Please I Need Some Help Here. Thanks =D

    sounds like the cable or the iphone connector are somehow damaged

  • I want to change my apple id password but I forgot the security questions please help me some using my icloud I'd

    I want to change my apple id password but I forgot the security questions please help me some using my icloud I'd and if confirmation is must so please phone number is mine please send a code please help me my apple

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • Jjmack! All deleted "adobe photoshop express version 2.7.2." Please help me download way

    Please Jjmack! All deleted adobe photoshop version 2.7.2. Please help me download way.
    Oh~ I must need version 2.7.2.  Please help me!

    You posted in the Photoshop forum by mistake.  I've moved your post the Express forum where you're more likely to get help with Express.

  • Please help! I am trying to change my Apple Id that used to be my mother to Mine- Every time i have it changed and i go and try and do an update it continues to ask for her old password. I really need help with this!

    Please help! I am trying to change my Apple Id that used to be my mother to Mine- Every time i have it changed and i go and try and do an update it continues to ask for her old password. I really need help with this!

    Phil0124 wrote:
    Apps downloaded with an Apple ID are forever tied to that Apple ID and will always require it to update.
    The only way around this is to delete the apps that require the other Apple ID and download them again with yours.
    Or simply log out of iTunes & App stores then log in with updated AppleID.

  • Hello please i need some information about the blackberr...

    hello please i need some information about the blackberry instant messenger is how does it work , i heard that i send messages for free from a blackberry to a blackberry is it true ? does it need internet ? and does it matter if the other phone is in another country'
    thank you alot

    Hello,
    Here is a page with much information about BBM:
    http://na.blackberry.com/eng/devices/features/im/blackberry_messenger.jsp
    Hope that helps! If not, Please come to:
    http://supportforums.blackberry.com/rim/
    and register an account. Then post to the applicable forum.
    Thanks!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Need some clarifyication on the header variable login module

    Hi ,
    I need some clarification on this Header login Module.
    It checks for the Header variable sent by IIS a server, when we implement the single sign on from windows system .
    1. Is HEADER variable differnet from HTTP header
    2. can we use this login module if we have to check the user id in HTTPheader?
    3.In my case the header variable(rEmote_user) will not be set by the IIS as i am not doing the windows authentication. can i set the the header variable(rEMOTE_USER)from asp pages and configure the Header variable login module on the portal to enable single sign on from asp application to the portal?
    please write to me if you know anything on this.
    Thanks,
    Lakshmi

    Hi Lakshmi,
    Header Login Module checks the HTTP headers for the header varible specified in the Header Login Module. In your case it is "remote_user".
    > 1. Is HEADER variable differnet from HTTP header
    No. Header variable is nothing but HTTP header variable.
    > 2. can we use this login module if we have to check
    > the user id in HTTPheader?
    >
    Yes. Portal looks for the user_id in the remote_user header varible.
    > 3.In my case the header variable(rEmote_user) will
    > not be set by the IIS as i am not doing the windows
    > authentication. can i set the the header
    > variable(rEMOTE_USER)from asp pages and configure the
    > Header variable login module on the portal to enable
    > single sign on from asp application to the portal?
    >
    Here is the hack. Before you set the http header varible through the asp page, what kind of mechanism you are using to ensure this is the authenticated user. Technically you can make it work. Without properly prtotecting the portal, if you simply configure the portal to accept the header variable then it could be a security risk. Anybody can simply set a HTTP header varible with the userid and access as that user.
    I am just mentioning the security risk but I assume that you may have other mechanisms in place to ensure proper authentication before setting the header varibles..
    > please write to me if you know anything on this.
    >
    > Thanks,
    > Lakshmi
    Hope this helps.
    Regards
    -Venkat Malempati

  • HT5631 how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    how do I verify my apple id? I can't sign in to it in mail and I can't make a new one because it just will not process I'm trying to set up iCloud between iPad and iPhone and having ALOT of difficulty pleAse help need it done by later on today!!!!!

    In order to use your Apple ID to create an iCloud account, the primary email address associated with the ID must first be verified.  To do this, Apple will send a verification email to your account and you must respond to the email by clicking the Verify Now link.  Make sure you are check the spam/junk folder as well as the inbox.  If it isn't there, go to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right click Resend under your Primary Email Address to resend the verification email.

  • Please help needed os x lion I wish to transfer photos from the iPhoto library to a album or folder then delete them from the Library but when I do this it also deletes them from the album ? how do I do this please.

    Please help needed os x lion I wish to transfer photos from the iPhoto library to a album or folder then delete them from the Library but when I do this it also deletes them from the album ? how do I do this please.

    Albums are not places to store photos, they're more like "labels" you can apply to photos to better organize them. A single image file can be in multiple albums... they are not copies, it's simply been labelled as being in all those albums. So what you're trying to do doesn't make sense, because it's based on incorrect assumptions.
    The iPhoto library will always show all photos that you have added to iPhoto.

Maybe you are looking for

  • ITunes 9.1 was unable to load dataclass information from Sync Services.

    Everything was working perfectly fine on 9.0, then i upgraded to 9.1 version and my iPod Touch 3G stopped syncing properly (error as in subject). I tried many things, checked dll's, restarted services, everything without success. SO... I uninstalled

  • Error: "This license has already been fulfilled....."

    This past week I updated my iPad to the new IOS7 software. Immediately after doing so, I tried to download a book through Overdrive...software used by most libraries.  Unfortunately, two problems occurred.  The Overdrive sofware was not compatible wi

  • Include driver in jar file

    Hi, i need include de jdbc driver for postgres en my jar application file... i use netbeans 4 but i dont know make this... Help meeeeeeeeeeeeeee

  • ITunes 9.2 - Artwork Bugs

    Hello, So in addition to the lost artwork that seems to occur with each iTunes update, there is now another bug. When viewing my library in list, grid, or cover flow many albums will only have the grey music note box, however if I click on the box th

  • Sequence: possible to use sequence in "Data" tab

    Hello, I have one question concerning the "Data" tab in Developer which makes it possible to enter rows like in an excel sheet. Is it possible to use a sequence in a direct way here? Entering "<sequence_name>".nextval or ""<sequence_name>".currval" j