Accessing S:List Checkbox Item Renderer Outside the Renderer

Hi All,
I have an S:List, with a checkbox item renderer.  I was to be able to access the selected portion of the renderer to create a new function that at the press of a button this will delect all the current selected items in the list.
Doco states that i should be able to do this just by setting the selectedIndex to -1.  But not sure if this is specific to 4.5??  But it is not working for me.
Below is my current list.  Outside of this list flashbuilder does not know about chkList, or even selected.  How can i get access to this to deslect all?
<s:List
id="ltattributes">
<s:itemRenderer>
<fx:Component>
<s:ItemRenderer>
<fx:Script>
<![CDATA[
import mx.events.ItemClickEvent;
protected function chkList_changeHandler(event:Event):void
var e:ItemClickEvent = new ItemClickEvent(ItemClickEvent.ITEM_CLICK, true);
data.selected = event.currentTarget.selected;
e.item = data;
e.index = itemIndex;
dispatchEvent(e);
]]>
</fx:Script>
<s:CheckBox id="chkList" selected="false" label="{data.displayname}" change="chkList_changeHandler(event)"/>
</s:ItemRenderer>
</fx:Component>
</s:itemRenderer>
Thanks

Try: dataGroup.getElementAt(). 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • List of items waiting in the SAP connect component in SOST transction

    Hi All,
    In SOST transction we can see the list of items waiting in the SAP connect component
    I want to get this list of items
    Could you please tell me how I can get this list?
    Thanks in Advance
    Snehal

    Hi All,
    Thanks for your reply.
    The tables SOSC and SOOD are used to find the list of waiting objects to send.
    My problem is ,  I have to delete some specific entries  from this list through code so that these entries will not send to approver.
    Is it sufficient to delete entry of seletced objtects from table SOSC?
    Also could you please tell me about other tables like SOST?
    Thanks in Advance
    Snehal

  • How to access spark list selected items

    selected items is some sort of vector? I can't access the items in it, can anyone shed some light on how to acess them? Maybe print them to the screen?

    I too am dragging through the documentation with a fine toothed comb and am at a loss of how to get something as simple (and intiutive) as myList.items.
    Maybe I'm overthinking it, but if I have a custom item renderer with a checkbox in it and when the user clicks the checkbox and it's selected state changes, I'd like to let the List that contains the List Item know of it... not that the item was messed with, but more to the point, that the checkbox was messed with and which item it was a member of...
    Right now I can't even figure out how to do something as rediculously simple as creating a creationComplete handler that iterates through the list items and calls a function in them to set a reference to itself that the list item can reference.     

  • How do I make my form (list/menu) items open in the same window (self).

    Hello, the kind, brilliant people on this forum have always been able to help me in the past, so I thought I'd give it a try today. Items in a form (list/menu) that I've created are opening in a blank window (pop-up) when clicked. I would like them to open in "self" mode so that pop up blockers on various computers don't become a challenge for site visitors. Can anyone please tell me how I could make that adjustment? I selected the entire form "red dotted line" around the list and changed the "target" in the properties menu to "self". Then I selected everything on the page and still not correct. I am inserting the code below. Any assistance to get me on the right track would be GREATLY appreciated!! BTW I also made the form a library item (just in case that fact is needed). Also if you need to see the actual link it is http://www.graphicmechanic.com/DEKALBCOUNTY/index.html. The "I WANT TO" list is the part I'm referring to.
    CODE BELOW:
    <form action="" method="post" name="form1" target="_self" class="style26" id="form1">
                       <a href="#" target="_self"><span class="style26">
                       <label FOR="iwantto">I WANT TO:</label>
                       <br />
                        <img src="../images/5x5.gif" alt="layout graphic" width="5" height="5" /><br />
                        <select name="iwantto" id="iwantto" class="style55" onchange="MM_jumpMenu('window.open()',this,0)">
                          <option value="http://web.co.dekalb.ga.us/voter/#">REGISTER TO VOTE</option>
                          <option value="https://govaffiliate.ezgov.com/ezutility/index.jsp?agency=3411">PAY MY WATER BILL</option>
                          <option value="../humanserv/hs-osa-facilities.html">FIND A SENIOR CENTER</option>
                          <option value="../humanserv/hs-lou-walker.html">GET INFO ABOUT LOU WALKER CENTER</option>
                          <option value="http://www.dekalbstatecourt.net/">FILE A RESTRAINING ORDER</option>
                          <option value="http://www.dekalbcountyanimalservices.com/">REPORT A LOOSE DOG</option>
                          <option value="http://web.co.dekalb.ga.us/courts/recorders/payment.asp">GET TRAFFIC CITATION INFO</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/pistol.htm">APPLY FOR A PISTOL LICENSE</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/marriage.htm">GET A MARRIAGE LICENSE</option>
                          <option value="http://www.co.dekalb.ga.us/dekalbflic/Centers.htm#service">FILE FOR A DIVORCE</option>
                          <option value="http://www.co.dekalb.ga.us/superior/index.htm">GET INFORMATION ABOUT JURY DUTY</option>
                          <option value="http://web.co.dekalb.ga.us/taxcommissioner/search.asp">PAY MY TAXES</option>
                        </select>
                       </span>
                       </a>
    </form>

    Looks like it still isn't working. When I removed those items the drop down menu stopped working as well. I went ahead and posted yours as the correct answer. I'm convinced it's my skill level. i'm gonna do some javascript searches to see where the js code should go, it's very confusing to me. Here is that code in case anything sticks out to you or anyone else.
    <link href="../cssfiles/lbistyles.css" rel="stylesheet" type="text/css"/>
    <form action="" method="" name="form1" class="style26" id="form1">
                     <span class="style26">
                       <label FOR="iwantto">I WANT TO:</label>
                       <br />
                        <img src="../images/5x5.gif" alt="layout graphic" width="5" height="5" /><br />
                        <select name="iwantto" id="iwantto" class="style55">
                        <option value="#" onClick="MM_goToURL('self','http://web.co.dekalb.ga.us/voter');return document.MM_returnValue">REGISTER TO VOTE</option>
                          <option value="https://govaffiliate.ezgov.com/ezutility/index.jsp?agency=3411">PAY MY WATER BILL</option>
                          <option value="../humanserv/hs-osa-facilities.html">FIND A SENIOR CENTER</option>
                          <option value="../humanserv/hs-lou-walker.html">GET INFO ABOUT LOU WALKER CENTER</option>
                          <option value="http://www.dekalbstatecourt.net/">FILE A RESTRAINING ORDER</option>
                          <option value="http://www.dekalbcountyanimalservices.com/">REPORT A LOOSE DOG</option>
                          <option value="http://web.co.dekalb.ga.us/courts/recorders/payment.asp">GET TRAFFIC CITATION INFO</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/pistol.htm">APPLY FOR A PISTOL LICENSE</option>
                          <option value="http://web.co.dekalb.ga.us/courts/probate/marriage.htm">GET A MARRIAGE LICENSE</option>
                          <option value="http://www.co.dekalb.ga.us/dekalbflic/Centers.htm#service">FILE FOR A DIVORCE</option>
                          <option value="http://www.co.dekalb.ga.us/superior/index.htm">GET INFORMATION ABOUT JURY DUTY</option>
                          <option value="http://web.co.dekalb.ga.us/taxcommissioner/search.asp">PAY MY TAXES</option>
                        </select>
                       </span>
                       </a>
    </form>

  • Lightbox Clone: not rendering outside the Viewport.

    Could someone please take a look at this in IE (at least 6 and 7 poss 8).
    All was well until the artist wanted bigger images: www.andrewjamesartist.com/galleries/portraits-02.php
    When an image is larger than the view port and the viewer is forced to scroll down the opaque background does not render and it is ugly.  I have advised the artist but he wants bigger images.  I am going to reduce the size of the images anyway to try to reduce the potential for this to happen but it leaves me wondering why the behaviour and if there is a fix?
    I don't kow the first thing about Javascript except that it looks like a complete nonsense when it's written down!
    Thanks
    Martin

    Thanks Paula and Hans
    Firslty Hans, I'm OK with the discussion about the pros and cons with the image being larger than the browser window.  The artist is a thoughtful chap and we talked at length about this.  His target audience are people who ar likely to have high-end equipment but for lots of reasons, I don't like that approach.
    Paula, thanks for your restraint with the long explanation!  I think I'll research a bit further the IE9 thing.
    At the moment I have come accross a couple of Lightbox Clones that resize the image according to the browser so it looks as though they might provide the best of both worlds.
    And to emphasise my postion with Javascript, the final step for installing a versiion called Fancybox was to " Fire plugin using jQuery selector" and add a bit of code.  It took me about 1 1/2 hours to work out that the bit of code needed to go in the head of the page. Doh!
    Anyway, thanks for your help and advice both,
    Regards
    Martin

  • Most Popular Items Report: items listed in report are not the document names or titles

    I have a document library that's loaded with typical corporate ppt, word, and pdf files.  When I run a Most Popular Items report on the library, the list of items displayed in the report are not the document file names or document titles. 
    Instead, the report is showing information that seems to pulled from within the content itself.
    For example, there's a new corporate ppt template in the document library and the Most Popular Items report shows the sharepoint url for the ppt file as being one of the most popular items.  Let's say that the file is named Standard_ppt_template.ppt. 
    The url for one of the most popular items reflects that in the URL.  However, the item is listed in the Most Popular Item as "Company Confidential".  The report seems to be pulling the words "Company Confidential" listed in the
    footer of the ppt template and showing that as the most popular content item. 
    Is there a reason or setting why the Most Popular Items report is not returning a list of items based on either the file name or the document title?
    Thanks in advance for any advice.

    Hi,
    According to your post, my understanding is that the PPT files items in the “Most Popular Items” report display these items’ names seem to be pulled from the PPT files’ content.
    Per my test, the Word, Excel, PDF, .txt, .png files items in the “Most Popular Items” report will display these items’ names based on the corresponding items’ title value if they have, or the corresponding file name if these items don’t have the title value.
    However, it’s by design that the PPT files items in the “Most Popular Items” report will display these items’ names only based on the beginning of these PPT files’ content rather than these files’ names and the corresponding items’ title value.
    Best Regards,
    Yumi Fu

  • Access Request list "Request For" Workflow

    We are looking at ways to use the current access request functionality.
    If we use the default view, pendingreq.aspx, for the Access Requests list, there is a column we are especially interested in "Request For".  This column, a hyperlink, tells you the level at which users are requesting access...and if approved,
    the level at which the SCA is about to give permission.
    If we create a new view on the Access Requests list, this "Request For" column isn't available anymore.
    I've tried to pull the list in to look @ all the available fields via:
    1. Report Builder 
    2. http://mySharePointSite.com/_api/lists/getbytitle('Access%20Requests')/items
    ...and can't find this "Request For" field.
    Any ideas?  Separate or linked list elsewhere?

    Hi Eric,
    I can now see the column via:
    http://mySharePointSite/_api/lists/getbytitle('Access%20Requests')/items?$select=ObjectRequestedTitleDisp
    Looks like from Report Builder {download here} if you select "Show Hidden Fields" @ the top of the modal window when building the query, you'll see the
    "Request_for" ...or this ObjectRequestedTitleDisp field.  Only bummer is it's just the name/title...there is no file extension or anything at the end of the string value.  So, if the name isn't "smart" coded/listed, you won't
    know if it's library, folder, document or site level...there is no ".docx" or ".xlsx" @ the end of the "Request_for" string.  At least, I haven't found a way to decipher that yet.
    In SharePoint Designer, I see the following View code which could lead to helping get to the right place, but I'm not familiar with this code just yet:
    <FieldRef Name="ObjectRequestedTitleDisp"/></ViewFields><RowLimit Paged="TRUE">15</RowLimit>
    <JSLink>accessrequestscontrol.js|mquery.js|callout.js|accessrequestsviewtemplate.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink><Toolbar Type="None"/></View></XmlDefinition>
    </WebPartPages:XsltListViewWebPart>
    Creating a view to enable access request delete functionality
    Open the site in SharePoint designer 2013 and click the “All Files” node
    Notice the right side shows the “Access Requests” list
    Right click the “Access Requests” list and select “Properties”
    On the Views panel click New
    Enter a name for the new view such as "showallitems"
    Click “OK”
    Navigate back to the original “Access Requests and Invitations” page
    Current URL is containing page name of “pendingreq.aspx”
    Change the URL to “showallitems.aspx”:
    The view will have no columns
    Click the ellipses and “Modify This View”
    Add at least the 2 columns with edit options
    Make sure if you select multiple columns (good practice so you can see the full scope of the request such as status and person), use the right side “Position from Left” ordering to have your edit item links located on the left side of the request row
    Click “OK” in upper right of page, and now you can see the view which contains the edit links to allow deletion of the item

  • List of Item form take time to open

    Hello,
    I am implementing SAP Business One in one of the manufacturing company in which Item master data is exponentialy increases day by day. In list of Item selection window I did grouping in Item Group and Item Sub Group which is UDF in Item Master Data Form.
    Problem is that when I open the List of Item window than it take 2min -3min to open.
    Please reply me ASAP....

    Hello,
    Thanks for response
    Process:
    We are implementing SAP B1 in manufacturing company they do MTS & MTO of labels for garments.What our client did , they put up the operators for creating the sales quotation and sales order under the request of the CS ececutive.And CS Executive have been taking orders from the customer.
    Item Master detail:
    Each orders from the customer generate new ITEM master data because there is variance of size,color,style No.,Bar code,matter etc.So for tracking every ITEM in warehouse operators have been generate new item master data.
    Problem:
    Only for operator support to easily find out the items from the list of item we group the items on the bases of the item group(Price Ticket FG,Printed Label FG,Woven label FG) and Item sub grooup(it is the part of the Item code)
    Is it possible to put different formatted search for different operator on the item no.(raw level) of sales quotation because Each operators create sales quotation and sales order for different labels one for(Price ticket), one for (Printed Label),one for (Woven label),Tape etc.)
    Please reply me ASAP.
    Rergard's
    Amit Tyagi

  • HR User, REST example - network access denied by access control list (ACL)

    Hi,
    I am new to APEX and am running the 'Oracle Developer Days' vm. I'm logged into APEX as the default HR/oracle account and I've been following the 'Creating and Using a RESTful Web Service in Application Express 4.2' training video, however when I try to retrieve information by entering a dept no. and clicking submit I get:
    ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL)
    I've seen the following thread:
    ORA-24247: network access denied by access control list (ACL)error-UTL_HTTP
    and I've tried running the command:
    GRANT EXECUTE ON SYS.UTL_HTTP TO HR;
    but I'm not getting anywhere, presumably the HR user does not have permissions to access 'http://localhost:8888/apex/hr/employee_test'
    Any help much appreciated, also if this is the wrong forum for this question please let me know.
    Many Thanks

    Hi,
    Thank you for the link; I executed the first block of code to 'grant connect privileges to any host for the APEX_040200 database user' that did not work so I changed the user to HR within the code and re-executed and that seems to have done the trick. I guess the HR user is now in the power_users list/group?
    Thanks again!

  • Checkbox item id value

    Does anyone know why the id of a checkbox item is of the format <ITEM_NAME>_0??
    when you do a this.id it does not return the item_name like the other item types do..

    vikas,
    my regular expressions are a bit suspect, but what would happen if you had 2 checkboxes on your page and called them:
    PX_CHECKBOX_1 and PX_CHECKBOX_2 would this not have an id of PX_CHECKBOX_1_0 and PX_CHECKBOX_2_0 respectively with the regular expression returning PX_CHECKBOX for both??

  • Show error for pageitems outside the workarea of illustrator document

    Hi all,
    I want to write a script which will alert the error message if the page items are outside of the workarea.Any object placed outside the page area should generate error message.
    Thanks,
    Sanat

    this should alert whenever an item is outside the document bounds ... please keep in mind that this script assumes that first artboard is default and thus set to the size of the document:
    var doc = app.activeDocument;
    var artboard = doc.artboards[0];
    var version = parseInt(app.version);
    //workarea aka artboard differs slightly from CS4
    if(version > 13) {
        if(doc.artboards.length > 1) {
            var dlg = prompt("Object should be inside which artboard?", "1", "Artboard number?");
            artboard = (dlg != null) ? doc.artboards[parseInt[dlg]-1] : artboard;
    var ar = artboard.artboardRect;
    var dv = doc.visibleBounds;
    if(dv[0] <  ar[0] || dv[1] < ar[1] || dv[2] < ar[2] || dv[3] < ar[3]) {
        alert("There are some objects outside the visible bounds!");
    } else { 
        alert("Thanks god ... they`re all in!"); 
    hope it helps;
    cheers;

  • Accessing page items in the document but outside the page bounds

    I'm as new to indesign as I am to indesign scripting so bear with me and my lack of termonology. I have page items that are in the whitespace that is in the document but outside the page bounds. I have access to all the page items that are even partially on the page using the myPage.pageItems. However this collection doesn't include those page items that aren't touching that page. So is there anyway to access those page items in the whitespace outside the page?

    OK, so where are you stuck?
    If you have a variable, say, page, that is a particular page, where page.pageItems is all the items on that page, then page.parent.pageItems will be all the items on the spread, which includes the pasteboard surrounding it.
    Good?

  • Checkbox item renderer populated with data from 2 sources

    I have a list object that has a check box and a label (using an inline item renderer).  The list itself is populated with an array of objects and whether the checkbox is selected takes those objects and adds them to another list (for outbound purposes).  Since the selected list can change elsewhere in my app how do I keep the binding of selections consistent?  The dataprovider for my checkbox list is the first array of objects and is binded, but the second one (selected array) is not.  What would be the best way to provide that binding to make sure the selected is consistent when the second array changes.  Some of the code is below to better show...
    <cms:HilightList
         id = "distributorList"
         width = "100%"
         height = "100%"
         drawHighlight="{ViewUtils.drawHighlightIndicator}"
         drawSelection="{ViewUtils.drawHighlightIndicator}"
         dataProvider="{pmDistributors.distributors}">
         <mx:itemRenderer>
              <mx:Component>
                   <mx:HBox>
                        <mx:CheckBox
                                           selected = "{outerDocument.isSelected(data)}"
                               change = "{outerDocument.handleSelectedChange(event)}"/>
                        <mx:Label text="{data.name}"/>
                   </mx:HBox>
              </mx:Component>
         </mx:itemRenderer>
    </cms:HilightList>
    public function isSelected(item:Object):Boolean
         var partner:Partner = item as Partner;
         var selected:Boolean = false;
         for each(var schedPartner:Partner in scheduleAssets.partners)
              if(schedPartner.id == partner.id)
                   selected = true;
         return selected;
    public function handleSelectedChange(event:Event):void
         var partner:Partner = event.currentTarget.parent.data as Partner;
              if(event.currentTarget.selected)
                   addPartnerEvent(partner);
              } else {
                   removePartnerEvent(partner);

    Hi Aakcse,
    In this condition, you need to make use of both the Precedence Constraint between Control Flow Tasks and the Conditional Split Transformation. Supposing you get the value in the flat file and store it in a variable via Script Task, you can create two Data
    Flow Tasks, and connect the Script Task to the two DFTs.
    For the Precedence Constraint between the Script Task and the Data Flow Task 1, set the “Expression and Constraint” expression to @[User::vEntryStatus]=="Y". And for the Precedence Constraint between the Script Task and the Data Flow Task 2, set the “Expression
    and Constraint” expression to @[User::vEntryStatus]=="N".
    In Data Flow Task 1, add a Conditional Split Transformation with this expression [Entry]==”YES”, and direct this output to the destination component. In Data Flow Task 2, also add a Conditional Split Transformation with expression [Entry]==”NO”, and direct
    the output to the destination component.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click here
    Mike Yin
    TechNet Community Support

  • Access the MOSS 2007 site outside the VM box

    hi all,
     I am having a VM  where MOSS 2007 is installed  and i had restored a .bak file  to a new site collection. so, its perormed successfully. Now the issue i am facing is,i am not able to access this site from outside
    the VM box.i am able to remote desktop to this VM from my desktop and its configured in my company's domain network. 
    mydomain\myusername is the farm admin/login id..
    so when try to acces the url from my desktop,  am getting "page can't be displayed".
     so would like  to know if there is any settings i need to make in order to access the site outside the VM box.

    Hi Richard,
    I thinks the file on the root directory of a SharePoint site is unable to be set with a unique permission, SharePoint securable object are web, list/library, list/library iteml, as what you're going to do, the workaround is
    to put the file in a libary and grant the unique permission.
    http://office.microsoft.com/en-001/windows-sharepoint-services-help/about-controlling-access-to-sites-and-site-content-HA010100144.aspx?CTT=5&origin=HA010100149
    http://office.microsoft.com/en-001/windows-sharepoint-services-help/manage-permissions-for-a-list-library-folder-document-or-list-item-HA010021564.aspx
    http://blogs.msdn.com/b/chandru/archive/2012/04/01/list-of-all-securable-objects-that-have-unique-permission.aspx
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • How to delete i.e. clear the pending access requests list from Access request page in SharePoint 2013

    Hi Team,
    I am site collection admin of a SP13 site. The issue is we have added some of the users manually after we got requests from them for site access. But this has left those users as pending on Access requests page. We don't want that list to stack up.
    I can not decline those requests as those users will be notified with declined mail. I searched for clearing the list of those pending requests but did't find any guidelines for this. 
    Is there any way I can do this. Any help is appreciated thanks in advance  

    You might consider using PowerShell to remove unwanted items from the "Access Requests" list of the web site.  This list holds all of the access requests including pending, declined and approved.  The following example demonstrates removing
    the first item from the list.  Please note, I'm not aware whether or not there are any negative side effects to removing items from this list so doing so would be at your own risk.
    $web = get-spweb https://yoursharepointsite
    $list = $web.lists["Access Requests"]
    $list.items[0].delete()

Maybe you are looking for

  • What gets wiped out if I sync my phone to iTunes

    Sorry for starting a new thread with this. It is really a followup/clarification to another post, but that one won't let me reply/comment In https://discussions.apple.com/docs/DOC-3141 wjosten wrote: By design, the iPhone will sync iTunes content wit

  • Opening a tab delimited file and replacing a space

    Hi, I am trying to open a tab delimited file with 4 columns and corresponding values under it. If no value under the column, 0 should be replaced. I used the StringTokenizer and the split methods, but this doesnt seem to work. Any ideas? E.g Title1 T

  • Free Busy takes over 30 seconds to retrieve on Outlook 2010 using Exchange Server 2010

    We have a small 100 user domain running Exchange server 2010 and outlook 2010 clients.  The issue is that Retrieving Free/Busy takes over 30 seconds.   So someone is trying to schedule a meeting has to wait Minutes see the Free/busy time for many use

  • Need help as BT help pages as useless!

    I have had my BT package for just under a year (I think its a year as I've just had an email asking if I want to sign up for another Line Saver rental). I can't find out how long my package has left to run or if there are individual elements which ru

  • Nudge clip one frame at a time

    I can move my clip one frame over by pressing "Shift" and the > or < key. But after I've done that once showing a synch discrepancy of +1 or -1, then next time I do it, the increment is +5 or -5. Is this normal? I need to be able to continue moving t