Get index in cellrenderer

How does one get the index, rowindex or cellindex in a
datagrid from a cellRenderer using a component or movieclip?
For example: If I use a button in a cellRenderer.. when it is
clicked, what is the current index of this cell or row?
If I tell it to access the datagrid itself to retrieve the
index.. it does not get the current index as the cell was not
actuated before the button is. So if no cell (or row) has been
selected yet.. the button would return -1.
It must be a simple way to get the index.. but I cannot seem
to find the answer. Anyone?
Must be AS3!

Nope. data.index only works if I designate the index when
adding the object to the dataProvider.
Still looking for any help with this.
Should getCellIndex still work in AS3? Does not seem
to.

Similar Messages

  • My pages are not loading correctly---get index-like pages.

    Web pages like NASCAR.COM, The Daily Beast are not loading correctly. All I get are lists of links.
    ''moderator edited the title of this thread''

    ''get index-like pages for NASCAR.COM, The Daily Beast''
    For nascar.com if I turn off page styling it kind of looks like indexes.
    From the View menu (Alt+V) see if what you have for Page Style -- if you have a theme try Basic Style to see if it fixes, and try "No style" to see if it looks the same as you currently see.
    Besides themes, styles, and GreaseMonkey scripts you might have an extension such as Adblock Plus blocking some styles.

  • How to control the order in which records get indexed

    Hi,
    I like to control the order in which the ATG (10.1.2) product records get indexed in Endeca (3.1.1). I like the products/categories to be indexed in the order in which they are sequenced in BCC (in otherwords baseed on the sequence num they have). How to do this? Please help

    If you want TopLink to set the values in a particular order you can order the mappings on a descriptor by setting their ‘weight’ (DatabaseMapping.setWeight(int). All DirectToField type mappings are defaulted to a weight of 1 and all relationship mappings are defaulted to a weight of MAX_INTEGER. Mappings with a lower weight value will be processed first by TopLink.
    --Gordon

  • Problem in getting index page of Tomcat3.2(urgent!!!)

    Hello!
    I am not able to get index page of Tomcat3.2
    I am getting error page can not be displayed, when I wrote http://localhost:8080/index.html.
    Could u send me what could be problem and what will be solution
    Thanks in advace !
    Regards,
    Ritesh

    might be a stupid question, but is the tomcat server actually running?
    Maybe you have to start the server via the startup script first...
    Hope that helps
    ADowning

  • Getting "index-1 is negatief of hoger dan het totaal aantal rijen" error randomly

    Hi
    In my windows application using Visual studio 2008, I am getting "index-1 is negatief of hoger dan het totaal aantal rijen" error randomly. Even I can't reproduce the error. Could anyone help me for the same.
    Thanks in advance.

    Hi,
    Which type of application do you work with?
    When did you get such error? When you build the app? When you debug the app?
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    If you work with Windows Forms app,
    please consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If you are workingw with WPF app, please consult on WPF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    For Visual C++ windows app, you can start a new threadt at Visual Studio Language Forums:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages
    Best regards, 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Only folders get indexed.

    Hi,
    We have Portal on a clustered environment.
    TREX is up and running fine.
    When I index any folder, I select Item to Index as ALL and service as TREX SERVICE.
    When I look up the Indexing monitor, the status is There are too many TREX errors, and only 1 object gets indexed and that is the folder itself and not the documents under it.
    So when I perform a search too I can see the folder in the search results and not the constituent files.
    I flushed the index from the TREX monitor as mentioned in other threads.
    In the URL Generator service too I have the entry https://<host>:8080 (i dont think this might have anything to do with it)
    Please help !!
    Prem

    Hi Prem,
    You have described all the things related thats good...but let me know about the error type also..you can check that in the application log.
    Also check the index server is up n running..
    just let me know the error type from the AL.
    Also check whether you have created any taxonomies and crawler parameters..
    Regards
    Piyush
    Pl reward points if this helps!!!

  • I would like to get to the point whre txt, pdf,doc are all getting indexed

    Hi gurus,
    Please reply to my question.
    I would like to get to the point where txt, pdf, doc, etc... are all getting indexed
    Edited by: 784786 on Feb 5, 2011 5:55 AM

    HOW to get to the point .....If you do not provide a context to your question, you are a very far distance away from the point.
    Sybrand's response is what would be the response to a question that is very [very] inadequately framed.
    Without knowing the Oracle version, how you plan to load documents , there is no way your question can be answered.
    For all we know, you aren't even planning to use an Oracle database but might be looking at Microsoft Windows Indexing !!
    At the top right corner of the forums.oracle.com page, you would see a link to "FAQ". The FAQ is currently hosted at http://wikis.sun.com/display/Forums/Forums+FAQ
    See the question titled "What is proper discussion forum etiquette?"
    You could also see the well known article "How To Ask Questions The Smart Way" at http://catb.org/esr/faqs/smart-questions.html
    Returning to your question :
    Assuming that you are using Oracle 11.2.0.x, you can explore the Oracle Text option.
    See the documentation at
    http://download.oracle.com/docs/cd/E11882_01/text.112/e16594/overview.htm#i1007403
    and
    http://download.oracle.com/docs/cd/E11882_01/text.112/e16594/ind.htm#i1004902
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Please iam getting index out of bound exception can any body solve my probl

    Dear all
    iam doing aproject in swing in that one class iam using the below method. Iam getting index out of bound exception. Actually iam trying to access the more that 50mb file at that time its giving out of memory exception after that iam using this method now its giving index out of bound exception, when it is going second time in the while loop. can any body solve my problem. Please give me the solution . Ill be very thankful to you.
    public Vector getFileContent(File fileObj){
    FileInputStream fis = null;
    DataInputStream dis = null;
    Vector v = new Vector();
    byte[] data = null;
    int pos = 0;
    int chunk = 10000;
    int sizePos = 0;
    try{
    fis = new FileInputStream(fileObj);
    int size = (int)fileObj.length();
    dis = new DataInputStream(fis);
    int k = 1;
    if(size <10000){
    data = new byte[size];
    //v.addElement(dis.readFully(data));
    dis.readFully(data);
    v.addElement(data);
    else {
    while(pos < size){
    sizePos = size - chunk*k;
    if(sizePos > 10000){
    chunk = 10000;
    else{
    chunk = sizePos;
    data = new byte[chunk];
    dis.read(data, pos, chunk);
    v.addElement(data);
    System.gc();
    pos = pos + chunk + 1;
    regards,
    surya

    pos = pos + chunk + 1;Why the +1??

  • How to get Index storage Quality

    Hi,
    I want to get the storage quality of the Index for multiple Indexes.
    I am albe to get the Index Quality for particular one Index by accessing following path.
    DB02OLD -> Tables and Indexes -> Detailed Analysis -> Enter Index Name -> Detailed Analysis
    Check storage quality by, Analyze Index -> Storage Quality
    By accessing above path i have to check index one by one and its take very long time.
    But I want to check the storage Quality for multiple Indexes at same time.
    So is it possible to get Index Storage quality for miltiple indexes in single steps?
    Regards,
    Nisit

    Hi Nisit Patel ,
    If u have found the solution please share with me
    as i also need to analyse the % of storage quality from mulitple indexes
    is there any sql script for the same
    thanks
    Anand

  • When i upload my site via ftp to 3rd party hosting i only get 'index of/' when looking at the webpag

    I have exported my site and even tested on adobe and everything looks ok.  For some reason when I export and uplaod via ftp to my 3rd party hosting and look at the site I just get the index of/  and a list of the pages and directories underneath

    Thanks for that.  Now sorted.  It was a problem on my hosting
    Ian
    cid:[email protected]
    cid:[email protected]<http://twitter.com/dieselthefrog>[cid:[email protected]][cid:[email protected]]<http://www.facebook.com/dieselfrog>[cid:[email protected]][cid:[email protected]]<http://uk.linkedin.com/pub/ian-royle/30/a20/928>
    From: Abhishek Maurya [email protected]
    Sent: 04 July 2012 23:02
    To: Ian
    Subject: when i upload my site via ftp to 3rd party hosting i only get 'index of/' when looking at the webpag
    Re: when i upload my site via ftp to 3rd party hosting i only get 'index of/' when looking at the webpag
    created by Abhishek Maurya<http://forums.adobe.com/people/Abhishek+Maurya> in Help with using Adobe Muse - View the full discussion<http://forums.adobe.com/message/4538835#4538835

  • URGENT: Web Server 6.1 SP4 won't respond to GET /index.html

    Hello folks,
    I was adding "additional document directories" when the management web interface suddenly decided that it had had enough of my additions and decided to throw out all but the last three.
    Worse still, GET /index.html doesn't work; instead the server responds with "Method not allowed", which my browser reports as HTTP405 but the server error log reports as HTTP2205. So no web page request is currently being honoured.
    For what it's worth, a look at the mime.types file shows that type=text/html is linked with exts=htm/html.
    Any ideas?
    Cheers!

    I had just clicked on OK to input another "additional document directories" when the administration server threw an error in a popup window; I honestly can't remember what text was in that popup, probably because I was gutted on realising that of the forty plus entries I had just made, only the last three were showing up in the "Current additional directories" list.
    One possibility that would exonerate the administration server is that I gave some keystroke combination that caused the obj.conf fault as by that time I was typing in quite rapidly...
    Thanks for positng.
    Cheers

  • How to get Index of a single element in a table

    Hi Gurus,
    I need to get the index number of the element in a table even if the row is not selected.
    I've already searched the forum for this but all i'm getting are selected rows in the table.  I need to get the index even if that elemen's row is not selected in the table.
    Please advise.
    Regards,

    Hi,
    Could you please specify what exactly you want to do?
    You said you want to get the index of an element even if the corresponding row is not selected. But there might be more than one element where the correponding rows are not selected. So it would be better if you could be more specific about what you want to achieve.
    Regards,
    Srilatha

  • Getting index error while updating table

    Hi All,
    I am getting error
    SQL> UPDATE bqcustomer
    2 SET
    3 namelegal = 'SME ' || SubStr(bqcustomer.namelegal,8),
    4 nameshort = 'SME ' || SubStr(bqcustomer.nameshort,8),
    5 nametrading='SME ' || SubStr(bqcustomer.nametrading,8)
    6 WHERE
    7 hassmeaccount = 1
    8 AND nametrading LIKE 'GLOBAL %' ;
    UPDATE bqcustomer
    ERROR at line 1:
    ORA-08102: index key not found, obj# 60473, dba 46348301 (2)
    any help on this will be appreciated .
    Thanks in advance
    Sachin Srivastava

    ORA-08102 INDEX KEY NO FOUND, OBJ# 25095, DBA 33567643 (2)

  • Why my iweb website is no longer getting indexed by google?

    I have had my website for 2 years and it was showing up on google with no problems. Now my site is not showing up on google and I dont know why.
    I have verified the site, I have resubmitted the URL. I have requested reconsideration, but I just need to know why my site that stop showing up on google.
    .Google mention that .mac blocks googlebots from indexing the site. What should I do to fix this probelm. (url:www.noticemagazine.com)

    In order for search engines to find your site you need to have text content. They don't know what your site is about if there is no text content on it. I have went through your site and you should do the following;
    1) Get ride of your "click here to enter site" page (the Welcome_.html page)
    Never EVER use your default page in this way. This is called a splash page and provides no value to your visitors since they need an additional click to find your page and it provides no indication to search engines about what your site is all about. Your default page is the most important page on your site, use it to link to the most important pages on your website and to have your important keywords.
    2) Your title tags NEED to have your most important keywords
    Your title tags (what you see at the top of your browser) need to have your most important keywords . They should be 60-120 characters long, unique for every single page and describe what your page is all about. This is one of the most important things for search engines. Not only do they use this to learn about your website content but its also what users will see when your site is listed in Google's result. Do you think someone will click a link called 'Welcome' when they do a search in Google, or "Notice Magazine: Lifestyle and Fashion Advice" (for example).
    3) You need more text content
    All of your pages are mostly images, you need more content that search engines can properly index. Imagine you were searching for text in a Word Document and it was just an image, you wouldn't find anything. This is basically what Google does too. Most of your text has been converted to images because you use non standard fonts in iWeb. In iWeb, open the fonts palette, and select 'Web'. Stick to those fonts.
    4) Link to other pages on your site using your keywords
    You need to link between your pages on your site using keywords you want to be found with. Anchor text (the text you click to follow a link), is used by Google to rank your website. Tip: Do a search for click here in Google, look at the top result and notice that click here is not found anywhere on that page. Its because so many people link to that first result using the term 'click here'. (Its Adobe Reader's page for those that do not want to search).
    5) Get a real domain name AND real hosting
    MobileMe is NOT meant for commercial sites and should never be used for it. A real host with a real domain name (that includes your keywords) you will outrank the same website hosted in MobileMe (even with domain forwarding. Any kind of domain forwarding is not ideal for search engines because of how redirects are handled).
    6) Create and submit an XML Sitemap file
    Not only will this help with you rankings, Google/Yahoo/Bing provide a Webmaster Tools account that will provide feedback on why your site may not be in Google.
    7) Speed up your website
    You are using too many high quality images on your site which is making it extremely slow. Reduce the quality of your images and optimize your HTML/CSS/Javascript code so it loads faster. Not only does this provide a bad user experience for your visitors but Google will not index a slow loading page as much as a faster loading page. Also, Google announced just a few days ago that the speed of a website's load time WILL become an important ranking factor in the VERY NEAR future.
    Having a real web host will help with the speed issue.
    8) Redo your navigation bar using text and include your keywords in each link. iWeb's javascript navigation bar does not allow search engines to easily find all your pages on your site.
    9) Get links from third party websites. Post on forums, use twitter, facebook, blogs and other social networking sites. Links from other websites are a very important factor for how well your website ranks.

  • How to get index of an item in the DropDownByKey control?

    Hi,
    I'm new to PDK for .NET and I have a simple question about the "IndexOf" method of the items collection.
    Attached a small test program:
    Dim li As New DropDownListItem
    li.Key = "A"
    li.Text = "Zero"
    DropDownByKey1.Items.Add(li)
    li = New DropDownListItem
    li.Key = "B"
    li.Text = "One"
    DropDownByKey1.Items.Add(li)
    li = New DropDownListItem
    li.Key = "C"
    li.Text = "Two"
    DropDownByKey1.Items.Add(li)
    li = New DropDownListItem
    li.Key = "D"
    li.Text = "Three"
    DropDownByKey1.Items.Add(li)
    li = New DropDownListItem
    li.Key = "E"
    li.Text = "Four"
    DropDownByKey1.Items.Add(li)
    Dim liForSearch As New DropDownListItem
    liForSearch.Key = "C"
    liForSearch.Text= "Two"
    Write(" Index --> " & DropDownByKey1.Items.IndexOf(liForSearch))
    The output should be 2 but instead I get -1 (Not Found).
    Why?
    thanks,
    Omri

    Hi,
    Since you have the Key of the listItem you are looking for you should get the item by applying:
    liToSearch = DropDownListItem.Items[key];
    int index = DropDownListItem.Items.IndexOf(liToSearch);
    Regards,
    Tsachi

Maybe you are looking for