Assist in the management of data

We have a large application in development which has a lot of side brother pages that require the use of the same variables. We are looking for a way to achieve this other than to make a function call repeatedly. Here's how we do it but I don't know that there is a much better method. We want to do is have an available global object we can store variables and enter when necessary. Any suggestions would be greatly appreciated.

1 CompanyManagement.mxml
function goToLocations()
We put a TextEvent and give him a CompanyId; but want
to pass an object containing all the properties of the selected company
2 ResourceCoverage.mxml
the event listener for "editLocations."

function editCompanyLocations()
We have defined a public variable [selectedCompanyId] with the property you selected of the TextEvent then pass the selectedCompanyId newly defined for a property on CompanyLocationManagement.mxml also called selectedCompanyId

Step 1:
private function goToLocations (): void {}
selectedCompany = dgCompanies.selectedItem as business;

var id: int = dgCompanies.selectedItem.CompanyID;
var editLocationsEvent:TextEvent = new TextEvent ("editLocations", true);
editLocationsEvent.text = id.toString ();
dispatchEvent (editLocationsEvent);
}


Step 2:
private function initApp (): void {}
selectedCompanyId = 0;
selectedCompanyLocationId = 0;

addEventListener ("editLocations", editCompanyLocations);
addEventListener ("editMapCoverage", editMapCov);
}

private void editCompanyLocations(x:TextEvent):void {}
selectedCompanyId = Number (x.text);
tabResource.selectedIndex = 1;
}


< mx:Canvas label = 'Locations' width = "100%" height = "100%" id = "tabLocations" >
< selectedCompanyId views: CompanyLocationManagement = "{selectedCompanyId}" enabled = "false" / >
< / mx:Canvas >

Here's a simple example:

class MyGlobals
{
public static var companyID: int = 0;
public static var companyName: String = "";
}

Import this class whenever you need to access these variables. Then, in your handlers (for example. When you receive the user input), has created the variable you need:

MyGlobals.companyID = userinput;

Because the variables are static, there is never only one instance of each. So, somewhere else, you can get the id of the company:

myCompanyID = MyGlobals.companyID;

Tags: Flex

Similar Questions

  • Use two assistants for the acquisition of data at the same time

    Hello

    I want to read multiple data channels of analog inputs on my DAQ hardware. However, when I try to create two separate data acquisition assistants for each entry, it gives an error saying "is reserved for the specified resource. The operation could not be performed as indicated "." Can't use two assistants for the acquisition of data at the same time?

    I have to add different channels in the same assistant DAQ? I tried, but I couldn't separate the data in different graphs.

    How does this work?

    Kind regards

    Allard

    You can't have multiple tasks of the same type (in this case inputs analog) on the same device.  Just so having 1 DAQ Assistant read all your channels and separate your channels for individual transformation.

  • The managed path data

    Someone knows how can I make areport of all virtual machines with RDM which will include the managed path LUN id. IS this possible with Vfoglight?

    It is not possible to do with vFoglight. vFoglight storage that offers visibility deeper into physical storage could achieve this functionality in a future release.

    / Mattias

  • Question about the management of data Cache OBIEE 10g / 11g.

    Hi friends,

    I have a question: how we can find the display of data in the report (in the answers or dashboard) if Cache or paintings of DW? y at - there no mechanism for this? I know that normally we can find data in tables of aggregation using file view log. Can you please help on this and I would really appreciate your help.

    Cheers!
    Srini

    Add the suggestions above, to find the query caches

    1. use followed - cache_ind_flg O/N indicates whether or not the application has reached the cache.
    2 NQQuery.log will show "cache hit" (if not you will see SQL to the physical database)

    There is no mechanism to track if it hits the browser cache / cache of presentation server.

    I hope this helps...

  • advice/assistance on the consolidation of data from multiple Macs

    Hi, I have accumulated years worth of data... text, multimedia files, documents of all kinds - everywhere

    a variety of Macs - Mobile Office, Mac mini, iMac - each running 10.6.8 systems or 10.8 +.

    My mission, after a new backup of each of these respective volumes - is to gather all the data on their part on a single external hard drive in order to see him again all for relevance - after executing a kind of double-eliminator app like Tidy Up or Gemini - and in turn, to classify everything in a logical as a whole new folders.

    Before you start what I want to know if I'm going to run into some weird permissions problems or other have difficulties to open any of the data collected on the "new master" HD - and if so, what can I do to not have this happen.  Back in the day, we could of course just do drag an entire volume of HD on another HD and find it... who was OS9 and earlier of course.

    I am concerned about the content of the data - not applications/utilities - those that are not relevant to this project - it is organize information (docs) and multimedia files.  Where also does make sense for only the copy of the files

    vs 'everything' - and if so... what would be a good way of singling out and only transfer that data on the new 'master' review by car?

    Thanks for your time and any thoughts on the best way to do this.

    Mike

    iMac, Mac OS X (10.6.8)

    For permissions, after you copy the data to the external hard drive, do a Get Info (command - I) on the drive and check for the option ignore the property. If this is not available, unlock the lock and give you read/write permissions. Then, click on the gear down and select apply to included items.

    Normally, all data are stored in your user/home folder, so if you copy the folders that are located in your user/home folder, which should get your data.

  • Looking for example of the Manager to OBTAIN with the PL/SQL source type

    Hello

    I currently have a Manager GET job with a running QUERY source type in ADR 3.0.  The call returns the number of records (hundreds, or even thousands of 10) in JSON and allows the user to navigate through the results.

    The call accepts several parameters that I convey just in the place where the clause of the query in the Manager.  Data is retrieved by the beach date (s).

    To prevent queries runaway with ranges for a long time, I've implemented a logic in the sql statement to limit the applicant.  The applicant requested an error thrown instead.  There are other limits that I'm imposing on other entries I need to provide useful errors for example.

    I would like to change the call GET use PL/SQL type instead of the type of REQUEST so that I can do validation on entries and send useful return error messages if necessary, however I can't find examples online.

    Are there any examples (or alternatives) would be greatly appreciated.

    Thank you

    Anthony

    Hello

    You can use the Pipelined functions to generate your recordset plsql and then just use a select statement of the function in the pipeline in the service definition.

  • When the Profile Manager stores data profiles created?

    I have several profiles of Firefox that I created with the Profile Manager, but I find no where the Profile Manager stores data for profiles created because even if I delete all the firefox location of C:\Users\user\AppData\Local\Mozilla user data files and all the data in the registry though Firefox I start the Profile Manager still lists all created profiles.

    Then, where the data for profiles created is stored?

    Hello, these data are stored in subfolders of \Mozilla\Firefox\Profiles\ C:\Users\user\AppData\Roaming- profiles - where Firefox stores your bookmarks, passwords and other user data

  • HP connection manager exe. Could not load the Assembly system.data, Version = 1.0.61.0, culture = SQ Lite...

    have new laptop dv7 and continue to receive the window... HP connection manager exe.

    "Cannot load the Assembly system.data, SQ Lite, Version is 1.0.61.0, culture = neutrral, db937bc2d44ff139 = public key token.

    The application will now exit.

    Please identify your laptop / pc

    Look at the basic/back/side of the pc/laptop to the sticker with barcode.

    Item number of pole 2 as seen on the following example of label with barcode of a HP laptop. The barcode on your HP product may be slightly different in appearance, but will still have important information necessary for us to help you.

    #Do not post not the serial number of your product because it is private and considered to be personal information. ###

    Display the version of the operating system installed (State whether 32 or 64 bit) and the processor as one product AMD or Intel

    Not showing information as requested could delay our responses and troubleshooting slow the question that led you to create a thread. We want to help you, so please help us help you.

    Have you gone to your laptop's web support portal and tried the HP software box software?

    This would certainly be a good starting point.

    Removing and reinstalling the software HP Connection manager is also a good plan. It is also located on the web portal of support for your laptop.

    Best regards

    ERICO

  • Management of data access Client pulling the registry instead of Web.config settings

    I have an ASP.NET 4.0 application configured with the managed provider of ODP (32 bit) via the customer install the production. It is configured with the following text in the root web.config file:

    <oracle.manageddataaccess.client>
      <version number="4.121.1.0">
        <settings>
          <setting name="TraceLevel" value="127"/>  
          <setting name="TraceOption" value="0"/>
          <setting name="TraceFileLocation" value="c:\temp\odpnet66.trc"/>
        </settings>
        <onsConfig mode="remote"></onsConfig>
      </version>
    </oracle.manageddataaccess.client>
    

    When I look for the trace file, however, I realize that it is written to a location set to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\ODP.NET\4.121.1.0.

    What needs to be done to make the provider read its settings from the web.config file?

    Additional information:

    <system.data>
        <DbProviderFactories>
        <remove invariant="Oracle.ManagedDataAccess.Client" />
        <add name="ODP.NET, Managed Driver"
             invariant="Oracle.ManagedDataAccess.Client"
             description="Oracle Data Provider for .NET, Managed Driver"
             type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess,Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
      </DbProviderFactories>
      </system.data>
    

    You probably ODP.NET, pilot managed, also installed on your machine, if the registry entry, HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\ODP.NET\4.121.1.0, has been created. This registry entry is not created by managed ODP.NET. Any tracing would flow from the ODP.NET, to use unmanaged driver.

    Some recommendations to try to allow managed ODP.NET tracing:

    (1) value TraceLevel 7 or reduce its value.  Managed and unmanaged trace level values are different. What are managed.

    • TraceLevel: 1 = Public API; 2 = private API; 4 = API/data network. These values can be OR ed. To enable all, set TraceLevel to 7 . Errors will be always drawn.

    (2) set the TraceFileLocation on a directory name, not the file name. Make sure that the location of the directory exists.

  • Access to the data after the managed service VOImpl in bean method call

    I use JDeveloper 11.1.2.4.

    I created a method to Interface customer and he calls you a managed bean.

    The method is exposed in the control of data and I have a links to it through links on the page.

    The method runs just a view of criteria for a row of data in the database.

    But, because the method does not have a return value, how could access the View object data.

    Here's the Service method and the method of the bean management;

    The service method: in PersonVOImpl.java - should result in 1 row:

    public void getPersonByCnViewCriteria (String cn)

    {

    ViewCriteria viewCriteria = this.getViewCriteria ("PersonVOCriteriaByCn");

    Reset a display criteria of values that may was resolved at design time

    viewCriteria.resetCriteria ();

    this.setCnBind (cn);

    this.applyViewCriteria (viewCriteria);

    this.executeQuery ();

    }

    Method in managed Bean: I have a linking operation method to access the Service method.


    It seems that the Service method is executed successfully.  But, how to access the data after the call?


    protected void getPersonByCn (String cn)

    {

    BindingContainer bindingContainer = this.getBindings ();

    OperationBinding operationBinding = bindingContainer.getOperationBinding("getPersonByCn");

    Map operationsParamsMap = operationBinding.getParamsMap ();

    operationsParamsMap.put (WorkFlowBean.PROPERTY_CN, NC);

    Object result = operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ())

    {

    }


        // How to access data after the call?

    }

    You should never use a class VOImpl or VORowImpl in a managed bean. If you have to use them, create Interfaces and use.

    I'm not too sure if it's good to return a view in a method object.

  • Include the expected start Date and end Date for the management of SSHRC-Absence

    Is it possible to include the scheduled Start Date and end Date of project to SSHRC, management of absences with the type of leave is confirmed?

    Thanks in advance

    Hello

    In this case, you should disable the option the absence request, so that by default all sheets are confirmed and the user do not have to apply once leave as planned and then comply.

    You can see the id metalink - "How do I disable the State of Absence of R12 Absence Management Page [ID 786691.1]" to understand how to disable "Planned" option to request authorization for simple customization.

    It will be useful.

    Thank you
    Sanjay

  • Managed provider: the operation of data protection has failed.

    We just tried deploy a .net web 4 with the supplier managed to beta. When you try to open a new connection, we reached this exception:

    The operation of data protection has failed. This may be due to not having no user profile not loaded for the user context of the current thread, which may be the case if the thread borrows.

    Is there an app pool IIS framework that we need to change to make it work? Locally, it works fine, so I guess it's a certain type of permissions issue.

    You are able to check if 'Load user profile' is set to true or false for the identities that do not work?

    If necessary, you can find the value in the following way in the IIS Manager:

    -Select the Application Pools in the tree view under the name of server
    -Under the Application Pools listed, right click on the pool of interest and select Advanced settings... from the context menu
    -Scroll up to the process model section and check the value "load user profile.

    I think you may encounter this situation if "Load user profile" is set to "false".

    As always, additions, corrections, clarifications etc are welcome.

  • Get surveys using filtered with the ID (space) data control manager surveys

    Hi all

    I need to get surveys using surveys Manager DataControl a space specific webcenter. I did not find any function under the control of data for surveys Manager for passing the scopeId as argument parameter.

    Is it possible to filter the polls based on the id of the scope?

    Can someone help me?

    Kind regards
    Suma

    According to the documentation.

    http://docs.Oracle.com/CD/E17904_01/WebCenter.1111/e10148/jpsdg_polls.htm#CIHIIJHG

    There is no scope ID to filter the polls based on spaces.

    But in any case, to achieve your desired goal, I would say that...

    Create surveys Mutiple (surveys) and on each Survey (Polls) you can have questions to take the poll.

    Thus,.

    Space 1-> 1-> Question 1 survey

    Space2-> eurobarometre2-> issue 1

    Space3-> poll3-> Question 1.

    All by posting the question you can use take survey taskflow or datacontrol where you will need to provide a SURVEY_ID in the pollId parameter.

    I hope that clarfiies your request.

    Kind regards
    Hoque

  • Need help for managed bean - to the values of the extraction of data loading of jsf is

    Hello
    in the construction of managed bean, I wrote code to extract values from database.

    but for each action (such as button clicks, drop-down list changes etc...) this constructor is called I don't want.

    I tried to over come this using beforePhase event of the jsf. but sometimes it doesn't property.

    Someone please help me to retrieve the values of data base loading of jsf is.

    Thank you
    Veera

    Veera
    If you want to execute a method in a method beforePhase only once (when loading the page) then you can check the expression #{adfFacesContext.initialRender} before running all you want.

    import javax.el.ELContext;
    import javax.el.ExpressionFactory;
    import javax.el.ValueExpression;
    import javax.faces.application.Application;
    import javax.faces.context.FacesContext;
    import javax.faces.event.PhaseEvent;
    
    public class Test {
    
        public boolean isInitialrender() {
            FacesContext fctx = FacesContext.getCurrentInstance();
            Application application = fctx.getApplication();
            ExpressionFactory expressionFactory =
                application.getExpressionFactory();
            ELContext context = fctx.getELContext();
            ValueExpression createValueExpression =
                expressionFactory.createValueExpression(context,
                                                        "#{adfFacesContext.initialRender}",
                                                        Object.class);
            Boolean isInitialrender =
                (Boolean)createValueExpression.getValue(context);
            return isInitialrender;
    
        }
    
        public void beforePhaseMethod(PhaseEvent phaseEvent) {
            // Add event code here...
            if (isInitialrender()) {
                System.out.println("This statement is shown once... when the page is loaded");
            }
        }
    }
    
  • Process to get Performance data for the managed entity c#

    Could someone please describe the process for pulling data from the API performance?  The documentation seems a bit muddled.

    Qustions:

    Should you create a custom interval perf or you can use the default settings?

    If I have a performanceManager MOR and a hostSystem MOR what methods should I call on the PerformanceManger object to retrieve the performance counters on the managed entity? I'm trying to get ready time % of a host.  Looks like I need to use the QueryAvailablePerfMetric method to draw the MetricID and then use the QueryPerf to shoot the actual static...

    Any help is appreciated.

    VirtualFisk

    You can use available perfIntervals to extract data.

    You have reason to extract performance data, you must first call QueryAvailablePerfMetric to get metricIds and then pass them in the appeal of QueryPerf.

    Also to check whether or not real-time data are available on the entity you must first call QueryPerfProviderSummary on entity and check the PerfProviderSummary currentSupported property. If she defined as true, real-time data are available and you can pass PerfProviderSummary refreshRate as intervalID in your QueryAvailablePerfMetric call and still pass this refreshRate as intervalID PerfQuerySpec for QueryPerf appeal.

    Please see following code snippet to retrieve data for the managed entity HostSystem (hostMoRef), you can replace it with a managed object of an entity reference





    int counterID;

    int key;

    String group;

    String name;

    String rollup;

    ManagedObjectReference pmRef = _sic.perfManager;

    PerfCounterInfo[] cInfo = (PerfCounterInfo[])getObjectProperty(pmRef, "perfCounter");

    Hashtable PerfByID = new Hashtable();

    for (int i = 0; i < cInfo.Length; i++)

    {

    key = cInfo[i].key;

    group = cInfo[i].groupInfo.key;

    name = cInfo[i].nameInfo.key;

    rollup = cInfo[i].rollupType.ToString();

    Console.WriteLine("ID: " + key + " group: " + group + "." + name + "." + rollup);

    PerfByID.Add(key, group + "." + name + "." + rollup);

    }





    Console.WriteLine("\n---------------------------------------------");

    Console.WriteLine("Entity: " + hostMoRef.Value);

    PerfProviderSummary perfSum = _service.QueryPerfProviderSummary(pmRef, hostMoRef);

    Console.WriteLine("Refresh Rate" + perfSum.refreshRate + "\nCurrentSupported :"

    + perfSum.currentSupported + "\nisSummarySupported :" + perfSum.summarySupported);

    Console.WriteLine("Fetching Perf Metric Ids");

    DateTime curTime = _service.CurrentTime(_svcRef);

    DateTime beginTime = curTime.Subtract(new TimeSpan(1, 0, 0));

    DateTime endTime = curTime;

    int intervalID;



    if (perfSum.refreshRate < 0) {

    intervalID = 300;

    } else {

    intervalID = perfSum.refreshRate;

    }

    intervalID = 300;

    PerfMetricId[] Ids = _service.QueryAvailablePerfMetric(pmRef, hostMoRef, beginTime, false, endTime, false, intervalID, true);

    if (Ids != null && Ids.Length > 0)

    {

    Console.WriteLine("Ids fetched from QueryAvailablePerfMetric API are:");

    for (int k = 0; k < Ids.Length; k++) {

    Console.WriteLine("ID is: " + Ids[k].counterId + " Instance is: " + Ids[k].instance + "Name is: " + PerfByID[Ids[http://k].counterId|http://k].counterId]);

    }

    PerfQuerySpec qSpec = new PerfQuerySpec();

    qSpec.entity = hostMoRef;

    qSpec.metricId = Ids;

    qSpec.format = "csv";

    qSpec.intervalId = intervalID;

    qSpec.startTime = beginTime;

    qSpec.startTimeSpecified = true;

    qSpec.endTime = endTime;

    qSpec.endTimeSpecified = true;

    qSpec.maxSample = 1;

    qSpec.maxSampleSpecified = true;

    PerfQuerySpec[] qSpecs = new PerfQuerySpec[] { qSpec };

    if (hostMoRef != null)

    {

    PerfEntityMetricBase[] perfEntity = null;

    perfEntity = _service.QueryPerf(pmRef, qSpecs);

    if (perfEntity != null && perfEntity.Length > 0)

    {

    for (int i = 0; i < perfEntity.Length; i++)

    {

    PerfEntityMetricCSV pms = (PerfEntityMetricCSV)perfEntity[i];

    PerfMetricSeriesCSV[] vals = pms.value;

    if (vals != null)

    {

    Console.WriteLine("Perf Counters fetched");

    for (int vi = 0; vi < vals.Length; vi++)

    {

    PerfMetricSeriesCSV pmCSV = vals[vi];

    if (PerfByID[vals[http://vi].id.counterId|http://vi].id.counterId].ToString().StartsWith("mem.vmmemctl")) {

    Console.WriteLine("CounterId: " + vals[vi].id.counterId + " Name: " + PerfByID[vals[http://vi].id.counterId|http://vi].id.counterId] + " Instance: " + vals[vi].id.instance + " ----- ");

    counterID = vals[vi].id.counterId;

    //Console.WriteLine("Value in Map: " + PerfByID.get(counterID));

    Console.WriteLine("-------- Value : " + pmCSV.value);

    }

    }

    }

    }

    }

    else

    {

    Console.WriteLine("Performance statistics not available for this entity!");

    }

    }

    }

    else

    {

    Console.WriteLine("Perf Metrics not fetched");

    }

Maybe you are looking for

  • Failure of the BIOS Lenovo M90

    Hello. I would like to know is there a method to recover the BIOS of Lenovo M90 5474? As for the AMIBOOT will. ROM method with CTRL + HOME runs on this Machine? Or is the a recovery method of block startup that don't need to unscew the machine? We ho

  • Windows the files got crushed

    Hello from South of the Australia! About 2 weeks ago McAffe, automatically updated to update itself, but I got a message saying that want to overwrite some files of Windows. Assuming that McAffe was a source of confidence, I have let that happen. But

  • SYNTAX (OBJECT EXPECTED) SCRIPT ERROR

    I get this error for several weeks now. Syntax Script (WHEREAS OBJECT) error only when I connect to Rhapsody.  I get it on my xp and windows 7 Home premium.  I have already disabled the debugging and error messages and nothing seems to work.  Help, p

  • You think a1 storage

    Where should I keep a few tones I want to use on my A1? I downloaded them and they play, just need to know where to put them so I can use them. Or is it possible?

  • HP DV7 - 3065dx notebook computer connect to Internet with crazy upgrade hardware!

    Hello I want to know if I can upgrade my laptop to connect to Internet. My unit ~ DV7-3065dx I would like to add: 4G WiMAX chipset mobile broadband (and pay for the service contract to have internet service) My unit has been improved to 8 GB of Ram.