Accessing Items Across Components

Hello All,
I'm having trouble figuring out how to access items (in this
case an accordion) across components.
In my application I have a main.mxml file which contains a
viewstack that uses homeview.mxml and buyersview.mxml to display
different content.
buyersview.mxml contains an accordion that I'd like to be
able to access from homeview.mxml. I tried using
click="this.parentApplication.buyersview.buyersAccordion.selectedIndex=1".
This does not return an error but it doesn't work either.
Any help would be appreciated

You are or will be hitting the deferred instantiation issue.
Non-visible children of ViewStack or Accordion, are not created
until the user navigates to that view.
It is bad practice to attempt to set component properties
from the outside, and this is one reason. Instead, use the
creationComplete and/or show events to "pull" the data you want
into the component.
Your theory is good on the inter-component communication. You
may need to approach it one step at a time to verify your
expression. Application.application resolves to the top-level
application scope. I tend to use that more than parentDocument.
Tracy

Similar Messages

  • Accessing Items across content Areas

    We have two content Areas ( CA1 , CA2)and a folder(CA1-F1,CA2-F1) in each, which are published as Portlets.
    Different people create Items in ContentArea A(CA1-F1 FOLDER).
    I want to display some(by Creator) of the items from CA1-F1 FOLDER to CA2-F1 FOLDER automatically.
    'casue, we don't want to create the same item in two content areas.
    Is there anyway of achiveing this........?
    Please reply!!!!!!

    G'day,
    An option here is to use 'share objects' perspectives and/or categories.
    Regards,
    Luke Duc Lam

  • Unknown variable or property name 'ReportFilePath'. Error accessing item 'Runstate.Root.Locals.ReportFilePath'. in TestStand

    Hi all.
    I was using Teststand 4.2 up to last week and upgraded to TS 2013. In 4.2 I was using the following to get the location of the teststand report:
    Runstate.Root.Locals.ReportFilePath
    but with TS 2013 this no longer works.. is the following error:
    Unknown variable or property name 'ReportFilePath'.
    Error accessing item 'Runstate.Root.Locals.ReportFilePath'. in TestStand - Get Property Value (String).vi->
    I've tried the following now with no success:
    RunState.Root.Report.Location
    So my question is how can I get the location (path) of the report file during test programmatically please?
    Please find enclosed a screenshot of the report config:
    Solved!
    Go to Solution.
    Attachments:
    TS_ReportConfig.png ‏42 KB

    Shashidhar,
    Thanks for your help! With your tips, I finally got it to work. For anyone else trying to modify report names based on user input after the sequential process model sets the file name path I will re tell what I did:
    Edit the Ni_RerportGenerator.seq plugin found in C:\Program Files (x86)\National Instruments\TestStand 2014\Components\Models\ModelPlugins\
    You go into this file and add the step higlighted in Blue at that same location. Please see the expression I typed in the expression box. Setting Parameters.ReportOptions.NewFileNameForEachUUTStatus to true forces re-evaluation of the report name at the end of the sequentialmodel.seq.
    Then you add a FileGlobal in the sequenatialmodel.seq. I called my FileGlobal ReportFileName
    Then I added an expression in my test sequence that modified the the new FileGlobal I created:
    Finally I updated the report options (Go to Cofigure>Report Options > Report File Pathname and under File/Directory Options select "Specify Report File Path by Expression" and I entered my expression. It appears that you can disregard the evaluated report file path error (box below) because your pathname won't be generated until run-time.
    This worked well for me hopefully it will for others. 
    Thanks,
    Marco

  • GL Account Line items - Across Fiscal year

    Hi,
    Is there any way to get the line items for GL accounts across fiscal years? Let us say the fiscal year is from Jan to Dec. If I want to see all the line items from Nov 2009 to Mar 2010 in one report, is there any standard report that would let me pull the line items across fiscal years? Have any one else come across this requirement?
    I was not able to find any standard report and was trying to develop using report painter. But did not have any luck with the period variable to go to the prior fiscal year when it gets to zero. I could give the period and year as March 2010 and give value 3 to a variable and it would go an get the line items/balances from Jan to Mar. But if I give the value to the variable as 5 I get an error message. (REPLACE_VARIABLES; SUBRC= 0; &ZPR3   Message no. GR016)
    Thanks in advance for your help. Points would be assigned for useful answers.
    Thanks,
    SD.

    The only way we can use FBL3N or FAGLL03 is  by entering the posting date in the main screen. As we are using 4-5-4 calendar, the period end dates are not the same as the month end dates.
    You can not enter the period and year in the dynamic selections and get the results.
    Is there any other method?
    Thanks,
    SD.

  • "sCode=0xf​fffbc66: Descriptio​n: Unknown variable or property name 'ReportSty​le'. Error accessing item 'ReportSty​le' when trying to optn the ReportOpti​ons in TestStand 4.0.

    I get the error "sCode=0xffffbc66: Description: Unknown variable or property name 'ReportStyle'.  Error accessing item 'ReportStyle'. when trying to load the ReportOptions in TestStand 4.0.
    Has anyone seen this before?  If so how can I get around it as I will need to disable Report Generation for this system.
    Thank you

    Hello,
    I am not 100% sure how I resolved this issue as it was a few years ago.  However, I have attached the TestStandModelReportOptions.ini file that I used - hope this helps you.
    Attachments:
    TestStandModelReportOptions.ini ‏5 KB

  • Access to graphical components in AddOn Forms with Indirect Access Licence

    Hi,
    we have been developing an add on whose forms contain SAP Business One graphical components such as Calendar, Choose from list, calculator..
    Our users who have indirect access licence havent' access to the graphical components Calendar and Calculator whereas they have access to choose from list.
    SAP communicated in the fact that Indirect Access Licence doesn't allow user to have access to SAP Business One forms but nothing is mentioned about the graphical components used in Add On forms.
    Moreover the difference of behaviour between Calendar and choose from list is not logic.
    Do you know if SAP intends to fix this problem and allow users with Indirect Access Licence to have access to graphical components in Add On forms ?
    Thank you in advance for your returns

    Thank you for your reply.
    I'm afraid I do not undersand.
    Do we have to develop again the graphical components Calendar and Calculator whereas they are available in the SDK ?
    If yes, how do you do to develop these components ?
    Thank you in advance.

  • Restrict selecting multiple items across two ListBoxes

    Hello,
    I'd like to know, how to restrict user from selecting multiple items across two different ListBoxes.
    Reason I need this is I want to pass that selected item forward using only one button.
    Something like
    if Lb_Regular.hasSelected = true then
    passfunction(Lb_Regular.SelectedItem)
    elseif Lb_Patch.hasSelected = true then
    passfunction(Lb_Patch.SelectedItem)
    else
    Debug.WriteLine("Nothing is selected")
    Thanks in advance,
    TheCreepySheep

    Hi,
     You can try it like this.
    Public Class Form1
    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
    If ActiveControl Is ListBox1 Then
    ListBox2.SelectedIndex = -1
    End If
    End Sub
    Private Sub ListBox2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListBox2.SelectedIndexChanged
    If ActiveControl Is ListBox2 Then
    ListBox1.SelectedIndex = -1
    End If
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    If ListBox1.SelectedIndex > -1 Then
    MessageBox.Show("Listbox1 has item selected - " & ListBox1.SelectedItem.ToString)
    ElseIf ListBox2.SelectedIndex > -1 Then
    MessageBox.Show("Listbox2 has item selected - " & ListBox2.SelectedItem.ToString)
    Else
    MessageBox.Show("No Item Is Selectd")
    End If
    End Sub
    End Class
    If you say it can`t be done then i`ll try it
    Thanks! Just what I wanted!

  • Accessing files across clusters

    I wasn't sure if this would go here or in the Off-Topic, so I flipped a coin.
    Background: My workplace has an EVAL environment and a PROD environment which are basically off-limits to developers. These are unix boxes which have weblogic servers in a cluster. Logical or Physical, I am not sure. We developers of applications don't even have access to the logs etc. This is a major pain in the ass since the snotty-assed unix admins require a "upper level clearance" before they can hand us log files. Jeez !
    Possible Solution: An idea that me and a fellow developer has suggested to our bosses, is to have a link in all of our apps called "View Logs" which will be accessible only to developers of the said app. Our bosses have told us that if we can do something like this, they would push the required buttons to get us access to the log files of individual apps so that we can display it in the app itself or allow them to download it.
    The solution seems easy enough to implement on a single instance of a server. You get access to the logs and just display the last 200 odd lines on a html page or give them the option of downloading the entire file. However, because our servers are in a cluster, if any error has occurred on server2, and if the developer logs on server1, he will never be able to see the same log file. And because of sticky sessions, refresh of the page is not going to connect him to the other server either.
    So I wanted to ask if anyone had any experience with something like this. How can one access files across a different server on the same cluster? I will have to check any solutions that you guys provide, to make sure if it passes company security policies etc.etc. So any other solutions (totally unrelated to the above) are welcome too.
    Thanks
    Last edited by Inxsible (2010-08-05 15:07:46)

    Wow,  cool. There is no knowledge about cluster on my side. However, speaking of several hosts connected in one network, yes.
    AFAIK, several nodes in the cluster would be accessible via a unique NIC and thus IP. Maybe you can  setup the solution you mentioned on every node / virtual node? You can probably have a script solution to pull from every node and grep for the interessting lines.

  • TS2446 changed password, but i still cannot access items from old accounts what do I do?

    changed password, but i still cannot access items from old account

    Contact iTunes store support and ask for assistance: https://ssl.apple.com/emea/support/itunes/contact.html.

  • Link work items across collections, TFS 2012

    Hello,
    Is it possible to link work items across collections?  We have items reported in one collection which are triaged, routed to the correct department where a new bug is opened in the corresponding collection, then closed in the original collection.  We
    would like to have a direct link between the 2 items.  Is there an existing way to do this?
    Thanks 

    Hi Ajn,ny,  
    Thanks for your post.
    As EIKort said, TFS not support link work items in different collections. You need create new bug in the same collection, then create link between work items.
    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.

  • 17306 Error accessing item 'Locals'.

    I have a sequence called "ProgramAssetData" in the same file as it is being called in.  The first time I call ProgramAssetData, it works fine.  The second time I call ProgramAssetData as part of a loop, I get the error below. The "Run-Time Error" window pops up and I select "Retry" and that always works.
    I do not beleive it to be a timing error because stepping through the code does not help.
    How can a property name 'Locals' be unknown?   ... and always work in Retry?
    What does "Retry" do that is different from normal running?
    How do I get rid of this error? 
    FYI- A CVI call in in the previous step.
    Details:
    Error calling sequence ProgramAssetData.
    Unknown variable or property name 'Locals'.
    Error accessing item 'Locals'.
    Error Code:
    -17306; Unknown variable or property name.
    Handle Current Error
        Retry
                                                  OK
    17306 = TS_Err_UnknownVariableOrProperty

    I'm not sure why retry wasn't giving you the error again. All it's doing is running the step again, so you should get another error if the property still does not exist.
    Also, not sure why the error is referring to Locals as missing, you should instead be getting an error about Locals.name missing if that is what is the problem.
    Also normally teststand will show the runtime error dialog (station option setting) on runtime error at the location in the sequence where the error occurs. Not sure what settings you are using or where you are seeing the error. If you are seeing it just in the report, then perhaps the station options were changed to not show the dialog. I'd recommend changing the settings to show the dialog while you are debugging.
    Without looking at your code, it's hard for me to know for sure, but the experience you had is likely due to something the sequence you are executing is doing  (or some other customization of TestStand - perhaps a custom error handling dialog) and is not a normal behavior of TestStand.
    Hope this helps,
    -Doug

  • Slow Accessing Files Across a Windows 2003 Server Network

    I posted this quite some time ago in the Os X Forum:
    Hi,
    We get the spinning ball when we access files across a Windows 2003 network with our Os 10.3.9 Macs.
    It seems that the more files there are in the folder, the longer you see the ball, our Fonts folder can sometimes take up to 2 minutes before you can scroll to the bottom of the folder.
    This happens after a computer restart or a program restart.
    Does anyone know of a fix for this issue, as it is quite annoying?
    Also note: This does not happen when accessing the same files through Os9 classic, even though the machines are running 10.3.9.
    The network is all new cat 5 cables and this a relatively new Dell Power Connect 3324 switch connected to a very fast Dell Poweredge 2600 server.
    Thanks in advance,
    David

    I'm also running several Macs on a Windows Small Business Server (Windows Server 2003) and the only way I am able to pull up the files was to join each one of my Macs to the Windows Server's network domain. You have to do this through the Directory Utility in the Utilities folder. There is one draw back from what I can tell, and it's something that I need some help with. It seems that once a Mac (running Leopard) is joined to a Windows domain, it takes the log in process forever to finish. Logging into a Leopard Mac alone is pretty quick, but after joining the domain, logging into any of the Macs on the Windows domain takes over a minute. If anyone knows the answer to this one, I'm all ears.

  • How do I access items in my iCloud account?

    According to my iPhone I have almost used up all of my 5 gb in my iCloud account. When I try to access my iCloud account on my mac I don't know where to find all the items saved in here? What am I not getting? Where should I be looking? All I see are the contacts, email, calendar tabs etc but it has nothing in it when I click. What happen to my photos I supposedly backed up? Keep in mind, I am new to this and this is my first time accessing my iCloud account.

    Hello boytribe213, 
    Thank you for participating in the Apple Support Communities. 
    There are several ways to find items that are synced to iCloud, depending on the type of content. 
    You can find a good overview of the ways to manage your iCloud storage - including email, photos, and backups - at this link:
    Manage your iCloud storage - Apple Support
    Sincerely,
    Jeremy 

  • How to accessing item renderers in action script??

    Hi
    I am working on itemrenderes in Flex!
    I have link button component as item renderer inside one of the data grid column, please find my piece as below!
    Now how do we make that item render invisible once we click on it!
    We need to make that link button invisible to the user!
    Let me know how to access like this!
    public function onClick():void {
                // we use our custom component as the template for the popup window
                var confirmWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, ConfirmationPopUp, true));
                // you will only need to take care of the yes response since you don't have to do anything
                // if the response was a no
                confirmWindow.addEventListener("selectedYes", function():void {  
                            //Alert.show("Can be Upgraded to an Alarm");
                            upGradeEventToAnAlarm();
                confirmWindow.addEventListener("selectedNo", function():void {         
            public function upGradeEventToAnAlarm():void
                eventRO = new RemoteObject();                  
                      eventRO.destination = "eventBrowser";
                      eventRO.upGradeEventToAlarm.addEventListener("result",getResultHandler);                 
                      eventRO.addEventListener("fault", getFaultHandler);
                      eventRO.upGradeEventToAlarm(eventsDataGrid.selectedItem.id);
            private function getResultHandler(event:ResultEvent):void
                      //eventsDataGrid.dataProvider.removeItemAt(eventsDataGrid.selectedIndex)
                      if(event.result == true)
                       Here I need to access the link button which is clicked and need to make invisible
    Alert.show("Successfully  Upgraded to an alarm");
                      else
                            Alert.show("Cannot be Upgraded to an alarm");  
                //Fault Handler.             
                private function getFaultHandler(event:FaultEvent):void 
                      Alert.show(event.fault.faultString, 'Error');
                ]]>
    </mx:Script>           
          <mx:TabNavigator x="24" y="25" width="95%" height="90%"
                styleName="MyTabNavigator" horizontalGap="-20"  backgroundColor="#e6e4e5">
                <mx:Canvas label="View" width="100%" height="100%" >
                      <mx:DataGrid id="eventsDataGrid" dataProvider="{myModel.eventsList}"
                             height="90%" width="98%" x="10" y="23" >
                      <mx:columns>
                      <!--  <mx:DataGridColumn  id="iconFlagID" headerText="IconFlag"
                                  dataField="iconFlag" visible="false"/>-->
                            <mx:DataGridColumn  headerText="EventID" dataField="id" visible="false"/>
                            <mx:DataGridColumn  headerText="Event Name" dataField="eventName"/>
                            <mx:DataGridColumn  id="catFieldId" headerText="Category"
                                  dataField="category"/>
                            <mx:DataGridColumn  headerText="AlarmName" dataField="alarmName"/>
                            <mx:DataGridColumn  headerText="Severity" dataField="severity"/>
                            <mx:DataGridColumn  headerText="Source" dataField="source"/>
                            <mx:DataGridColumn  headerText="Updated Time" dataField="updateTime"/>
                            <mx:DataGridColumn  headerText="Description" dataField="description"/>
                            <mx:DataGridColumn  id="upgradeLinkButtonId" 
                                  headerText="Upgrade To Alarm" dataField="iconFlag">                          
                            <mx:itemRenderer>
                            <mx:Component>
                    <mx:Box height="100%" width="100%">               
                    <mx:LinkButton id="eventsLinkButtonID" textDecoration="underline"
                                  icon="@Embed(source='assets/eventsBrowser/images[97]1.JPG')"
                                  click="outerDocument.onClick();" visible="{!data.iconFlag}"
                                  textAlign="center" includeInLayout="true">
                    </mx:LinkButton>                                       
                            </mx:Box>
                    </mx:Component>
                    </mx:itemRenderer>
                            </mx:DataGridColumn>
                      </mx:columns>    
                      </mx:DataGrid>
    Thanks in advance
    Aruna.S.N.

    Hi Prashant
    Thanks for your reply!
    But where my viewStack need to be declared??
    Is it inside dataGridColumn if so its giving error as comonent declaration is not allowed here!
    Tell me how to go about!
    Thanks in advance
    Aruna.S.N.

  • Implementing drag and drop across components with drag image...

    Hey all,
    Finally got the hang of drag and drop. Not too hard, but a little time consuming. I found an article showing how to capture and drag a BufferedImage within a JTree. When you click and drag a node, it creates a BufferedImage of the node on screen and "ghosts" it a bit, which has a very appealing effect.
    However, when I try to drag this image to a JList component, it disappears. So I created the same affect in the JList component. Now you can drag the image from the tree to the list and vice versa. However, the problem is, the image does not "fly over" the borders of the two components (butted up against each other) with the mouse. The image seems to go under the borders, while the mouse floats above everything.
    What I would like to do is be able to drag the image all over the application, perhaps even the desktop in the case of a SDI application. I want to be able to see this image drag from my Java app over the Windows Explorer folder, just like how you can do that with Windows Explorer, dragging an image of the selected node into any app that supports the drop. I know we can handle the "transfer" data from explorer and vice versa, but how to be able to keep an image with the mouse?
    My best guess is somehow using the Glass pane, grabbing a ref to its BufferedImage (if that is even what is there), and drawing the dragged item in that pane. But, then, how will the image move over the desktop outside of the app, where a glass pane is not?
    Is there a way to draw on top of anything, anywhere, but still be able to redraw the background as the image moves with the mouse? There are times where the image may be big, so I don't want to have to capture the underlying screen as an image covering the size of the drag image to restore it as the drag image moves around.
    Thank you.

    We know cursors support some degree of transparence because they have shapes other than blocks.
    I've done some playing around with
    Toolkit.getDefaultToolkit().createCustomCursor(....);The sad news is, it seems that as soon as a pixel's alpha value is greater than 0, it automatically becomes 100% opaque.
    The best you can do, is to take your image, and divide it into a pixel-checkerboard, and set the alpha value of alternating pixels to 0.
    e.g.
    BufferedImage i = new BufferedImage(32, 32, BufferedImage.TYPE_INT_ARGB);
            int[] data = ((DataBufferInt)i.getRaster().getDataBuffer()).getData();
            boolean on = true;
            for (int z=0; z<data.length; z++)
                if (on)
                    data[z] = 0xffffffff;
                else
                    data[z] = 0x00000000;
                on = !on;
                if (z%32==0) on = !on;
            Cursor hazyWhite = Toolkit.getDefaultToolkit().createCustomCursor(i, new Point(0,0), "hw");

Maybe you are looking for

  • IOS 8.1 Safari not loading, goes back to home screen

    I have an iPhone 5, 5S and ipad air all on version 8.1.  Safari is not working on any of them.  It tries to load, the blank safari screen comes up, then it crashes and goes back to home screen.  I have to use google chrome to access the internet. I t

  • How to generate a text file with values from internal table

    hi, can anybody help me out to get the values from different internal table written into a text file. regs, raja

  • Need a report with po,gr,ir values in LC and FC

    Dear experts, How can I develop this custom report  with po,gr,ir values in LC and FC with the following fields is their any standard sap report .Please advise PO NO PO DATE GRNO GR DT IR NO IR DATE VENDOR GR VALUE IR VALUE GR VALUE IN FC IR VALUE IN

  • Posting not possible

    hi all sap guru i am not able to make goods receipts message is comming posting not possible in periods 2002/11 & 2002/10 in co.cd.xyxy thanks in advance

  • HR DATA LOADS - General

    I'm creating this post to hear any lessons learned that people can share with me for HR extractors.  As we all know HR extractors are full loads and I wanted to understand how people controlled these loads, meaning did you create programs in the Info