I've searched to no avail

Ok so, I have a DataGrid that is binded to some XML data. The
last column in the grid renders a Link button which when clicked
should change the view state to the selected index's XML property I
have set that corresponds to a view state i have already named.
Here's a few lines...
First I have this number to keep track of the selected
item...
<mx:Number
id="selectedMapIndex">{myMapGrid.selectedIndex}</mx:Number>
here's the code for the last column...
<mx:DataGridColumn dataField="scrims" headerText="Goto
Strat" width="50">
<mx:itemRenderer>
<mx:Component>
<mx:LinkButton label="Strat"
click="currentState='{mapInfo.map[selectedMapIndex].mapStrat}';"
width="50"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
Again any help you can provide would be awesome. "mapInfo" is
the xml object name, "map" is the item, "mapStrat" contains the
text in xml that is identical to the name of my states.

When you work with in-line itemRenderers using
<mx:Component> its as if the MXML and ActionScript were in
another file. That is, they have their own scope. You cannot simply
refer to variables in the file. So within the
<mx:Component>...</mx:Component> mapInfo et al have no
meaning.
You need to use outerDocument:
outerDocument.currentState='{outerDocument.map[outerDocument.selectedMapIndex...
etc etc
Here's an easier way. The "click" event is a bubbling event.
Meaning that if you don't catch it within the <mx:Component>
it will go up to the next component, the DataGrid. So you can do
this:
<mx:DataGrid
click="currentState={mapInfo.map[selectedMapIndex].mapStrat}" ...
>
The trouble with this approach is that ANY click within the
DataGrid will be caught. So you need to test the event. The better
thing to do is put the event handler into a function:
<mx:DataGrid click="handleClick(event)" ... >
private function handleClick( event:Event ) : void {
if( event.currentTarget is LinkButton ) { /* put here your
currentState = ... code */
You'll have to test it and get any kinks out since I just
wrote that off the top of my head.
--peter

Similar Messages

  • Your search cannot be completed because no search service is available- SP2013

    Hi,
    We have an application page, in which we need to retrieve the search results in SP2013. However, the query always returns the error "your search cannot be completed because no search service is available". Please find the code below.
    using (SPSite site = new SPSite("http://server"))
    using (SPWeb web = site.OpenWeb())
    Microsoft.SharePoint.Search.Query.FullTextSqlQuery kq = new FullTextSqlQuery(site);
    // KeywordQuery kq = new KeywordQuery(site);
    //KeywordQuery kq = new KeywordQuery(site);
    kq.SourceId = new Guid(SourceID_Value);
    kq.QueryText = keyword;
    kq.RowLimit = 100;
    kq.AuthenticationType = QueryAuthenticationType.NtAuthenticatedQuery;
    ResultTableCollection resultTables = new SearchExecutor().ExecuteQuery(kq);
    ResultTable resultTableFinal = new ResultTable();
    resultTableFinal = resultTables[ResultType.RelevantResults];
    However, the same code works in a console application executed on the same server. Please let know if you have faced this issue and the solution.
    Sreeharsha Alagani | MCTS Sharepoint 2010 |
    Linkedin | Blog

    Not sure if it's typo with your post or the code, the url in the first line doesn't contain a close quote.
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!

    I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!
    It started after the major update to iOS 7.
    I can't believe that this is so hard to do. It's just not letting me. I can add a bookmark to the home screen just fine, just not in a bookmarks folder anywhere I try.
    I've used Apple products since 2001 and have always loved how intuitive they are. But the Safari browser since iOS 7 has been the worst I've experienced. At least right in the beginning after that update.
    I'd really appreciate any help that doesn't just tell me how it's suppose to work...I know that.
    My iPad 4 is not affected with the problem and works as it should.

    To delete, tap "Edit" (tap to enlarge image)

  • How to get Search and offline Availability properties in SharePoint using powershell with CSOM

    Hi,
    I want to get the information about the SharePoint sites being crawled or not. I tried to get "Search and offline Availability in SharePoint" settings properties but I couldn't get those properties.
    I followed below thread with no luck : http://www.c-sharpcorner.com/uploadfile/anavijai/search-and-offline-availability-in-sharepoint-2010/
    I couldn't find $web.AllowAutomaticASPXPageIndexing property at site level but i can see $list.NoCrawl
    at list level.
    Can any body help me out to get those values?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    Since AllowAutomaticASPXPageIndexing is a member in SPWeb members while not in Web members, we can not use Client Side Object Model with it. If you need to use it in client side, you need to create a web service for it.
    https://msdn.microsoft.com/EN-US/library/microsoft.sharepoint.client.web_members.aspx
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb_members.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • E 72 building cache ,search will be available in a...

    Hello, 
    today i buy one new Nokia E72 from Vodafone Romania and i have this problmes
    When i try to search in my contact list one no my phone say "building cache search will be available in a moment" 
    Why?
    Nokia what is doing, cannot check phone when it start to sell?
    I speak with my lawyer and i thing i suit Nokia for this. I pay money for one phone to work not to start to look over the internet
    after this problems and to resolve this.   

    I have had my e72 for about a week now and "Building cache. Search will be available in a moment." and tried deleting all contacts as well as using isync to reset the contacts and cal. NOTHING I have tried resolved the error, every time I try to search contacts I get the "Building cache. Search will be available in a moment." message. I can scroll through contacts using the optimouse but searching contacts from within contacts throws the message. 
    Interestingly, when contacts is closed and I use the phone's search function (the one appearing in active standby) it will search contacts just fine.
    There must be something within Contacts search that is messed up, if it was corruption the overall phone search probably wouldn't work.
    Also, I'm wondering if it may be an isync issue, the isync add-in from Nokia for the mac may be the issue, perhaps it's the culprit.
    I tried tweeting @nokiamessaging but they did not reply, I don't know if they are on top of the problem or may have reported it to Nokia. 
    It's frustrating, very frustrating. My old e61 never had issues like this. The e72 is giving me a headache, I've spent now over 30 hours on this contacts problem. Arggh. 
    am e72 as of yesterday, 2 dec 2009. was e61. previously 6310i, which is an amazingly well designed and tough phone with awesome battery life. i even had a banana slider, but that was way pre-matrix.

  • How to get SharePoint Search and offline Availability properties using powershell with CSOM

    Hi,
    I want to get the information about the SharePoint sites being crawled or not. I tried to get "Search
    and offline Availability in SharePoint" settings properties but I couldn't get those properties.
    I
    followed below thread with no luck : http://www.c-sharpcorner.com/uploadfile/anavijai/search-and-offline-availability-in-sharepoint-2010/
    I couldn't find $web.AllowAutomaticASPXPageIndexing property at site level
    but i can see $list.NoCrawl at list level.
    Can any body help me out to get those values?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    Since AllowAutomaticASPXPageIndexing is a member in SPWeb members while not in Web members, we can not use Client Side Object Model with it. If you need to use it in client side, you need to create a web service for it.
    https://msdn.microsoft.com/EN-US/library/microsoft.sharepoint.client.web_members.aspx
    https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb_members.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Why can't I purchase movies from my Apple TV? When searching not all available movies even show up!

    I've had my apple tv for a while now, but have never actually purchased anything from the itunes store directly from the device. A friend recommended "Sleepless in Seattle" to me, and since it's not in Netflix or On Demand, I decided to buy it from itunes.
    In doing a search in the Movies section of my Apple TV and typing in "Sleepl", I got no results. Bummed, I went onto Amazon to see how much the DVD would cost. On a whim, I opened itunes on my computer and did a search for the movie. To my shock, it is available for purchase on itunes for $9.99!
    Once I found this out, I went back to my Apple TV and searched again. The movie still didn't appear to exist. I noticed then that every movie on the apple tv only gave me the option of renting, not buying. I was going to purchase from my computer, but then thought better of it because I wasn't sure it would be made available for me to watch on the apple tv.
    Is there something wrong with my system? Why can't I buy movies from the device? I can buy tv shows, so it just seems weird to me that this is limited to the movies!

    Ha, ha, you are such a tool!
    That profile was written in 2007 and never updated. Unlike you, I don't live on this forum. I have one 5 year old Dell gathering dust, waiting for the trash that has some kids software on it my kids never use.
    Currently I own a 27 inch iMac, and a 21 inch iMac used by my wife. I just sold my MacBook Air, which replaced my MacBook Pro of two years ago. I have an AppleTV v2, and unfortunately gave my AppleTV v1 to a friend before I realized they stripped out the movie purchase feature. We also own an iPad, two iPhones, and 4 iPods, two of which are used as digital music storage for our cars.
    So yes, all of my factual posts concerning Apple's shocking decision to try to hide the fact they removed significant functionality from AppleTV when they revved it, are just driven by the fact that 4 years ago I used almost no apple products. Apparently I harbor a twisted desire to hurt the company that provides me almost all of my technology of choice today, despite being an early software developer for the Mac, helping start two Macinotosh software companies in the 1980s and 1990s, and working at Apple for 2 years in the early 90s.
    The truth is, Apple's products weren't so good 15 years ago so I gradually switched to Windows for professional reasons. About 4 years go I bought an iPhone, and started to wake up to the fact that Apple had done a tremendous job moving the Mac platform to the intel architecture, and was very happy to replace my crappy dells with Apple products.
    But that doesn't mean I wear blinders when their product teams and marketing department makes mistakes, or does something deceptive.

  • Website suggestion: filter search results by "available today in a store near me."

    When I use the BestBuy.com website, it's almost always because I am looking to purchase an item that same day, or wish to inspect the product in person at a store, rather than simply mail-ordering it from an online vendor and waiting to have it shipped. No offense, but if I wanted to mail-order something or wait 5-7 days, I'd have gone to a different website. 
    While the BestBuy.com website does allow me to check the stocking status of individual SKUs at stores near me (opening up a new window / tab for every single one), this can be extremely tedious and time-consuming if I have to individually check a large number of similar and fundamentally interchangeable items until I find one that is available. 
    It's nice that the website allows me to narrow the results for any given search to merely "Best Buy Items." It would be extremely nice if the "Narrow Your Results" tab offered an option to further limit the selection to items which are in-stock at a store within a given distance from a ZIP code. 

    Hi Joe_Perez,
    With there being so many different ways to shop, it’s understandable that you’d be particular in what you like! While I do order things online, I personally like the feeling of going into a store and seeing the product first. Furthermore, the instant gratification that goes along with walking out of the store, product in hand, is nothing short of fantastic.
    Personally, I think your idea is fantastic. There are countless products on BestBuy.com, and your example of a flash memory card shows how one particular item may have many different types available. However, only some of those would be in-store, and that’s an awful lot of items to dig through individually!
    AWBrown is spot on here. If you haven’t done so, I’d suggest heading over to IdeaX and posting your suggestion. Other members of the forum can express their thoughts, which only further assists in getting an idea like this in motion. You can visit IdeaX by clicking here.
    Thanks for posting on the forums, and keep the good ideas coming!
    Cheers,
    Brian|Senior Social Media Specialist | Best Buy® Corporate
     Private Message

  • Why can you not have the same Siri voice used in the US version in the UK and Global search should be available

    I have just recently purchased the new iPhone 4s and it is great.
    I am now using Siri a lot,however I don’t like the fact that in the UK only the man's voice is available.
    I think we should have a choice of a Lady / a man assistant and not just a man who's voice is the same/ very similar to the one used for voice control on the iPhone 4.
    Now that we all know that Siri is useless without an internet connection then why only allow Siri to search for items, businesses, addresses etc only in the country you’re in i.e. the UK.
    Where if you just go onto the internet or use the built in maps application you can search anything you   self without restriction.
    I think Apple should really consider thinkingabout this in there next software update for the iPhone 4s.
    Thishan

    we're all users on this forum, so we cannot answer any of your questions.  Feedback goes here:  http://www.apple.com/feedback/iphone.html

  • JSP/Servlet code for searching for Domain availability

    Hi Guys
    I am giving a service on my homesite which will search for the domain availability. Users will enter the domain name and the code should check whether the domain is already taken or it is available for registration
    Please help me out.

    Nah, I don't have one myself. WHOIS can work but only for .org, .net and .com (and a few others here and there.) In that case, all you'd have to do is run the command, and look for the text which says it isn't registered..
    trejkaz@carroll:~> whois gnifodgjidfo.com
    [whois.crsnic.net]
    Whois Server Version 1.3
    Domain names in the .com, .net, and .org domains can now be registered
    with many different competing registrars. Go to http://www.internic.net
    for detailed information.
    No match for "GNIFODGJIDFO.COM".
    Last update of whois database: Sun, 25 Nov 2001 16:58:31 EST <<<The Registry database contains ONLY .COM, .NET, .ORG, .EDU domains and
    Registrars.

  • Searched to no avail! Help!

    Sorry everyone, have searched under this topic but could not solve my problem. I know it's been discussed loads.
    Trying to output files for use on the internet and have come up with some reasonable options. Can't output for use on media player so will convert later.
    Question is what are the optinum settings for output so that reasonably small files are produced and can be opened by Quicktime player without filename errors or codec issues?

    Can't output for use on media player so will convert later.
    I hope you don't mean to output aweb QT now and convert it to WMV later. WMV isn't great but that would render it pretty much unusable.
    For WMV you might want to try VisualHub - http://www.techspansion.com/visualhub/
    Question is what are the optinum settings for output so that reasonably small files are produced and can be opened by Quicktime player without filename errors or codec issues?
    There's no magic bullet, it depends on your material and the target machines. But here I also reccomend VisualHub, which can do a great job of targeting a specific file size in any of a variety formats.

  • How to make Spotlight search always on available/mounted shares?

    Hi all, is there a way to configure spotlight on our Leopard Clients to always search our spotlight enabled shares on our leopard server?
    The only way we can do this until now is by manually selecting to search "Shares" in the finder. We would appreciate the quicker way via CMD+Space to find files also on our shares.
    By default, CMD+Space seems to search only on the client.

    I finally experienced the "Spotlight just stopped" issue after a year and a half of flawless use. Here is how I fixed it.
    Went to System Preferences, chose User Accounts, and created a new account. Then logged into the new account. Spotlight was working, logged off new account then back into the original account. Spotlight was now working again for it.
    My original intent was to just see if it was my user account that was having problems but it turned out to be the fix.
    Maybe it will work for you and others.
    iMac G5, MacBook Pro   Mac OS X (10.4)  

  • F4 Search option not available through webgui / Tr. iView

    We have NW Portal 7.31 and ECC 6 ehp 6 in our Landscape. We have created a transaction iview so that some portal users can create sales order (VA01) using Portal.
    This tr. iview uses webgui in the backend.
    But pressing F4 to choose values in various fields is not working. We cannot choose any option.
    Please find attached the screenshot.
    Thanks,
    Gaurav

    Any answers??

  • Any function like 'SEARCH', 'SEARCH NEXT' available in tree element?

    As we know, the tree control in EnjoySAP Controls provides the functions 'Search' and 'Search Next'. Are these functions available in a tree UI element in WebDynpro?

    Hi
    According to my information i dont think functions like 'Search' and 'Search Next' are available for a tree UI element in WebDynpro.
    If you want to check any value follow the below instructions:
    1.      In the test script editor, open the command interface.
           2.      Expand the tree in the left side of the structure editor to display the relevant element.
           3.      From the context menu, choose Insert Check. The element is copied to the GETS_AND CHECKS node.
           4.      Under the GETS_AND CHECKS node, double-click the element to display it for editing in the right-hand pane.
           5.      Parameterize the CheckAction field and ExpectedValue field as required. Optionally, parameterize the Value field to perform a GET as well.
    For further clarifications please go through the link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/84/ef2a41b108f523e10000000a155106/frameset.htm
    Rergards
    Elizabeth

  • I installed AVG 2011 Free, and Firefox 4 today on a friends compouter. The AVG Safe Search Toolbar is not available, even after disabling and enabling the Add On. I use AVG 2011 full Licence with Firefox 4 at home no problems. How do I fix this please

    Works in IE no probs, Add On shows in Add On's List. AVG Safe Search Toolbar not available in toolbar lists.

    Because I am having issues with Norton Security Suite with the upgrade to Firefox 4.0.1, I have been dealing with that as well, with no success to-date. However, I did notice today when I was looking in my trash, an interesting thing occurred with the upgrade that MAY have something to do with the apps. in Facebook not working correctly now with Firefox.
    In my trash, there are several folders of 'Recovered Files'. Two of them are loaded with Internet Plugins for Facebook and were all dumped on May 1st, the day I upgraded to v. 4.0.1 Firefox and began having all my problems. For example, they are plugins like: plugin-cross domain.xml, plugin-gateway-1.php, plugin-102452128776.gz-72.json, just to name a few of them. Now, I am wondering if they were inadvertently removed during the upgrade process, or if they are in conflict with the new upgrade. Should I put them all back into Library -->Internet Plug-Ins to see if that resolves the problems? There are so many of them, I wish there was a way to mark them in some fashion in case I would have to remove them and not take the wrong ones out! Maybe there is a way I can color code them before I move them. I hate using 2 browsers!
    I notice that 2 other people have this problem but I don't see where they left any post. I really wish Norton, Firefox, and Facebook would get this ironed out. I never had a problem with anything until this and I don't like to spend all my time trying to troubleshoot something I don't understand! Anyway, thanks for listening.

Maybe you are looking for

  • Slow service and dre4adful customer service

    I was enticed to the BT infinity service from an existing ADSL provider with the promise of additional speed. Not the full 20/10 but 17/2. I actually get 6.5/0.6 unfortunately after a catalogue of dreadful customer service and bad technical support I

  • Java.lang.NullPointerException in Servlet

    Hello Friends, I am getting java.lang.NullPointerException line 28 I m enclosing the code Please check and let me know asap import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.sql.*; public class ForwardServlet extends

  • Execution time is too high.

    Hi, I got several xsql-files that uses aprox. 1 minute to execute by them selves. I want to run one xsql that includes them all, but it times out, and I get an server-error. Is there any way I can get the execution time down, or change the timeout-se

  • Server 2008R2 and Exchange on Same server

    Hello Everyone, I have taken over the IT Department for a small County Government and have found that the prior contractor installed Exchange 2010 on the same server that is running Active Directory. This machine is also acting as the DC. I would rea

  • Content Preview in Form Builder

    Hi all, I have duplicated the standard SAP XML form SAP_Announcements from the Form Builder. The standard xml form displays only the title and creator of the item in the RenderListItem tab. I am trying to modify it such that it displays the first 3 l