getting and setting dynamic o-zone for flex graphics

I am pulling data from an amfphp service for

a series of charts. My client wants now to the fields of the chart and display data dynamically so that they can change the service with to break the charts.

For example {month: "January", Flex: 39, Flash: 71.8, Photoshop:23.7},

They would like to be able to change the names of software and cards would continue to operate without having to go into the code and change the yfield property.

An example of code would be great. Thanks in advance.

You can declare a string variable can be bound that you can use as a title in your axis:

[Bindable]

private var labelForAxis:String ="";


               
           

Whenever you change the string variable you label will also change.

Tags: Flex

Similar Questions

  • How to manage the getter and setter in flex?

    I want to create getter and setter for a shared variable ways. How to create aid may be related?

    and how to call the accessor get and Set of a class of model?

    for ex:

    (1) in the IDMLEditor.mxml file

    [Bindable] public var currentDoc:IdmlDocument = null;

    private var _currentDoc:String;

    [Bindable]

    public function get currentDoc (): {IdmlDocument}

    return currentDoc;

    }

    public function set currentDoc (idmlDoc:IdmlDocument) {}

    this.currentDoc = idmlDoc;

    }

    (2) how to get from EditorModel.as?

    public class {EditorModel}

    [Bindable] public var currentDoc:IdmlDocument = null;

    You don't need to use underscore (_) to access the variable in the getter, setter class. You can immediately access the variable by using the name of the method

    myClass.currentDoc

    That's all

  • How to get and set values a HSlider

    Hello

    I haven't used flex for a while and I'm a little slow today.  My question is simple: how to get and set my HSlider values in a class.  My HSlider lives in an mxml file and class lives in a separate actionscript file.  First of all, I want to get the value of the hslider.  I use property change in the hslider to call a method in my class called Update(. ) In my class, I have the function called Update() and Interior using the id of the cursor to get the value of it.  The compiler is complainiing of 1120: access of undefined property hslider. I gave an example of pseudocode below:

    MXML

    < mx:HSlider id = minimum "hslider" = "0" maximum = "100" value = "100" dataTipPlacement = 'top' tickColor = '0 x 323232 '.
    snapInterval = "1" tickInterval = '10' allowTrackClick = "true".
    liveDragging = "true" change = "aClass.Update ()" / > "

    as file

    public void Update (): void {}
    myVar = hslider.value / 100.0;
    }

    Think how and then set the value of the hslider?

    Maybe the update to this other file function must accept a parameter of the event and then you can probably get this value from the event

    or maybe give the function a parameter of the cursor

    change = "AClass.Update (hslider.value)" "

    public void Update(value:int):void {}
    myVar = value / 100.0;
    }

  • Get and set the value to allow selected rolling Shuffle and facing page

    Hello world

    I work with the page and spread,

    For now, I want to value page spead shuffle and type of document.

    but I just find the function to get and set the value for the Document Pages allow Shuffle using the

    InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))

    It has no function to set and get the value of enable selected rolling Shuffle and facing page

    No one knows about it?

    I thank in advance

    There is no code for this example in the SDK or internet. Just understand and apply the concept.

    Find the code for the shuffle spread and together following spread shuffle...

    // Get active spread
    UIDRef GetActiveSpread() {
        UIDRef spreadRef = UIDRef::gNull;
    
        InterfacePtr layoutData(Utils()->QueryFrontLayoutData());
        if(layoutData) {
      spreadRef = layoutData->GetSpreadRef();
      }
    
      return spreadRef;
    }
    
    // Get spread shuffle of passed in spread
    bool16 GetSpreadShuffle(UIDRef& spreadRef) {
        InterfacePtr spread(spreadRef, UseDefaultIID());
        if(!spread)
      return kFalse;
    
      InterfacePtr iBoolData(spread, IID_IISLANDSPREAD);
        if(iBoolData) {
            return iBoolData->GetBool();
        }
    
        return kFalse;
    }
    
    // Set spread shuffle of passed in spread
    // @param bValue: kTrue = no shuffle, kFalse = allow shuffle
    ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) {
        ErrorCode status = kFailure;
    
        InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss));
        if(!spreadCmd)
            return status;
    
        spreadCmd->SetItemList(UIDList(spreadRef));
    
        InterfacePtr iBoolData(spreadCmd, UseDefaultIID());
        if(iBoolData) {
            iBoolData->Set(bValue);
        }
    
        status = CmdUtils::ProcessCommand(spreadCmd);
        return status;
    }
    
  • How to get and set permissions of VM

    Hello

    I'm trying the new powershell CLI for VMWare ESX.

    Y at - it a way to get and set permission on a Virtual Machine, not host.

    Get - VM, I get my VM, but I do not see effective permissions on this object.

    Thanks for your help!

    No, that would be a little different.

    To create a new permission on a virtual machine, you will need using the New-VIPermission cmdlet.

    You can do the following:

    Get-VM-name MyVM | New-VIPermssion-role (Get-ferrule-name 'Admin') - main "ADDomain\ADGroup."

  • get and set methods: use or not

    Hello

    I am student upward throughout the atcionscript and happened to get and set methods.

    I can't see how they are used, but you can also make custom methods get and set as follows:

    public void getName)

    {

    return name;

    }

    setName (newName) of the public service

    {

    name = newName;

    }

    So my question is which is the best method to use - is there a difference at all.

    ALSO - they seemed very redundant for me at the time that they simply receive a variable, you can get much faster by going directly to a variable.

    Do they have any real use?

    In addition, some schools of coding very strictly apply accessors. This does not mean that this app is really convenient, but it has little reasonable basis.

    Theoretically, it is very safe to just anyone allow direct access to the property. Once again, in theory, we can do much harm to a bare ownership. Of course, most of us do not write shields of industrial strength that an application requires, but in environments where the code is released - it is important to protect the integrity of the code, its encapsulation and impose an extra layer of armor.

    Note that not a single property in full classes AS3 has direct access - all properties are getters/setters or one of them.

    This brings me to another advantage.

    Say, you want the variable value to be read, but not set. If you do the public variable - outside the object can BOTH set and get its value and there NO WAY to stop the value parameter. But, if you provide ONLY getter - nothing can set the value. It becomes read-ONLY.

  • getter and setter...  How does it work?

    Hi, I am currently studying oriented Actionscript object for flash.

    I have a little trouble understanding the get and Set accessor functions.

    Why do they use it? And is there a usable sample somewhere?

    -Updated: 11:14... I found something useful on the web:

    http://livedocs.Adobe.com/Flash/MX2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext = Flash_MX_2004 & file = 00001074.html


    Hi, I am currently studying oriented Actionscript object for flash.

    I have a little trouble understanding the get and Set accessor functions.

    Why do they use it? And is there a usable sample somewhere?

    -Updated: 11:14... I found something useful on the web:

    http://livedocs.Adobe.com/Flash/MX2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext = Flash_MX_2004 & file = 00001074.html

  • PANTONE + does not match the previous Pantone spot color chart. I have several customers who are using spot colors in logos etc and now these colors are a mess. Can I get and use the old color for Illustrator books?

    PANTONE + does not match the previous Pantone spot color chart. I have several customers who are using spot colors in logos etc and now these colors are a mess. Can I get and use the old color for Illustrator books?

    Well, the spot color has not changed, but the way they were simulated four-color changed, they now use color management to get to the nearest ink possible task.

    Here is some info:

    https://helpx.Adobe.com/Illustrator/KB/PANTONE-plus.html

  • How to get and set the length and the width of the content of the layer?

    How to get and set the length and the width of the content of the layer

    All layers are packed not equal. a layer as adjustment have no limits. Layer to smart object can have two different sizes. The size of the object and the size of the object may be transformed. All smart object layers have an associated transform. To transform a smart object layers you need to work with the size of the object the generated pixels fot the layer. Text layer can be resized with a transform or by changing the font size. Pixelated layers are resize via a transformation.  The script method is resize.  When you resize the number of pixelsits made by interpolation. You can specify what method to use or set Photoshop interpolation preferably by default.

    There is also a bug in Photoshop scripts if you pause the story said make a selection and use resize. Photoshop will properly support up to a State before where you suspended history. This bug seems to be in all versions of Photoshop.

    If you look ate the script in my bug report, you should get a good idea of how to resize a layer.

    Photoshop: Bug Script resize the rear paper folded to a history State

  • Get and Set of dynamic Type via the Script output

    I am running vRO 6.0.1. I built a dynamic type to Veeam. I can see the items in the inventory and can select them as attributes in workflows. I'm looking to get the dynamic Type via a script object and set it as a variable in the script output, but its does not work. I created the dynamic type using the type dynamic plug-in generator v2.

    I have 'Veeam' namespace with types:

    VeeamHost

    jobFolder

    job

    I put an output with the 'DynamicTypes:Veeam.job' type attribute and the name jobOut

    My script is just:

    jobOut = Server.findForType ('DynamicTypes:Veeam.job' '29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae');

    System.log ("Job found:" + jobOut "'); 

    After the execution of the jobOut variable is empty. In the newspapers, I see:

    Found job: DynamicWrapper (Instance): [DynamicTypesDynamicObject]-[class com.vmware.o11n.plugin.dynamictypes.model.DynamicObject] - VALUE: dynobj: [__ns:Veeam __id:29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae __tp:DynamicTypes:Veeam.job]

    Does anyone have an idea of how complete the release of DynamicTypes:Veeam.job with the actual work of veeam I got via the script?

    Could check you what happens if you replace the line

    jobOut = Server.findForType("DynamicTypes:Veeam.job","29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae");

    with

    jobOut is DynamicTypesManager.getObject ("Veeam", "task", "29714267-f517-4f76-a621-902b3e789772/urn:veeam:Job:26eddcda-ea52-469b-b4c9-0b80fec098ae");.

  • Setting of time zones for those imported for integration AD

    We are setting up integration of ads for VSM9 to import customers and agents.  We hit a roadblock with the time zones.  People are imported based on their membership in a group AD.  Members within each group can be of several regions with different time zones.  Therefore, it is not practical set the timezone in the model of the person.  Within resource maps, there is a timezone field, but I don't see any reference to the time zone in the AD resource that could be associated with the time zone field.  He also doesn't seem to be an option to create a resolution rule as you would for an organization or a location.  We have rules of resolution in place for the Organization and the location, the time zone which is getting applied to the person is not based on the Organization, but instead, it is to be set to 'undefined', which is the option selected in the model of the person.

    The idea has already crossed your mind that I could create a recurring SQL task that runs a query to update with terms such as "If the time zone is set to undefined, then set the time zone to match the organization."  However, I prefer not to do this way and use the system as it was designed, and using the SQL task would mean that those imported would have a time zone is not defined until the SQL job runs.  Someone at - it suggestions on how I can get around this by using standard parameters within the system?

    Untitled.png

    Hello

    Few things currently comes in my mind:

    * If it is possible to store the zone information in AD (to use any unused property or extend the schema with a custom). You can then map this property in your integration with field tz people rule. The worst thing - you need to manage updates (for example, script) of your users AD setting the values of the source (maybe the one you use for synchronization of organization vsm) tz.

    * You can create the SQL update for the AR_CLIENT_COMPANY table trigger to replicate the TIME_ZONE_REF value for all users in the current organization.

    I always have the feeling that it is possible to manage that with vsm rules of integration, but we should go deeper into your infrastructure, for example maybe you can update vsm people of the source you use for organizations.

    G

  • get and set model and rotation positions

    Hello!
    I have two different moddels in a scene. I choose to hide one of the model at the beginning. If the user can interact with one of the modells, rotatet to be precise. Now, I want to hide the first model, which is not a problem, but when the second model is unhided I wish he was the same transformation as the first model.

    Any ideas? I m all.

    Happy to help - he made me to build an IKEA Dresser for a
    While ;)

    There were some small problems - rather than explaining how to solve every step
    I just did and downloaded a new file for you
    http://www.kinelco.com/temp/director2.dir - it should hopefully get all
    sense with the notes below:

    1. the sofas did not indicate changes just because you put their
    upside - down setting ie the white couch in the transformation of the
    Black before turning the black one-should be the opposite

    2. the reset button was breaking the Director because you run a
    resetWorld() - a resetWorld() is really necessary when a sprite
    Initializes then you usually put in first beginSprite behavior. The
    Reset button now calls a script in the Script of the movie called resetSofas which
    Resets the two sofas originally and resets the Flash sprite so your
    the buttons are in the correct state

    3. the couch wasn't answering clicks every time because the invisible couch
    a that is clicked instead of the visible. To overcome this I move the
    sofas on the large screen as well as make it invisible

    4. you had several Scripts to movie - not necessary - I have put all your global
    functions in a movie Script--makes it much easier to deal with.

  • Get and set a Position of the pre-numbered WPF legend

    I'm creating a WPF application that displays a chart of data (several courses) and adds several annotations programmatically. The user has the ability to drag the annotation (InteractionMode = AnnotationInteractionModes.DragLabel) labels. I need to be able to record the new position of the label and load it later.

    I use the NationalInstruments.Controls.PointAnnotation a NationalInstruments.Controls.Graph object.

    I thought it would be reflected in the LabelAlignment, but that does not change the value that I set when I initially create the annotation of.

    Here's how I add the annotations on the graph:

    /// 
            /// Add the annotations to the graph
            /// 
            /// 
            /// 
            /// 
            private void DisplayAnnotations(DataHandler dataHandler, DateTime StartDate, DateTime EndDate)
            {
                PointAnnotation tmpAnnotation = new PointAnnotation();
                //Iterate through all the annotations in the source data set
                foreach (Post_Job_Charting.Annotation dataPointAnnotation in dataHandler.Annotations)
                {
                    TimeSpan DateDiff = EndDate - StartDate;
                    TimeSpan HalfWay = new TimeSpan(StartDate.AddSeconds(DateDiff.TotalSeconds / 2.0).Ticks);
    
                    //Only add annotations that are in the visible data range
                    if (dataPointAnnotation.Date >= StartDate && dataPointAnnotation.Date <= EndDate)
                    {
                        tmpAnnotation = new PointAnnotation();
                        tmpAnnotation.HorizontalPosition = dataPointAnnotation.Date;
                        tmpAnnotation.VerticalPosition = dataPointAnnotation.Value;
                        tmpAnnotation.Label = dataPointAnnotation.Text;
    
                        if (dataPointAnnotation.Date.Ticks < HalfWay.Ticks) { tmpAnnotation.LabelAlignment = new AnnotationLabelAlignment(BoundsAlignment.None, 0, -25); }
                        else { tmpAnnotation.LabelAlignment = new AnnotationLabelAlignment(BoundsAlignment.None, -75, -25); }
                        tmpAnnotation.InteractionMode = AnnotationInteractionModes.DragLabel;
    
                        //Show/Hide the annotation
                        if (dataPointAnnotation.Display) { tmpAnnotation.Visibility = System.Windows.Visibility.Visible; }
                        else { tmpAnnotation.Visibility = System.Windows.Visibility.Hidden; }
    
                        //Tag the annotation so I can find it later
                        tmpAnnotation.Tag = dataPointAnnotation.ID;
    
                        //Display annotation on the graph
                        niGraph.Children.Add(tmpAnnotation);
                    }
                }
            }
    

    Once I have the position of the label, I need to be able to reset the label to this post, but let's start first of all, I need to get this job.

    Any help you can offer would be greatly appreciated.

    Best regards

    -Marcel

    There is no property on the annotation of point that sets the position of the label. I created a task to look by adding this.

    However, you can monitor the changes using a custom BoundsAlignment application that registers the new offset as it is updated:

    public sealed class RecordingBoundsAlignment : BoundsAlignment {
            public Vector LastOffset { get; private set; }

    public override Point AdjustPosition( AlignmentArgs args ) {
                LastOffset = new Vector( args.XOffset, args.YOffset );

    return None.AdjustPosition( args );
            }
        }

    When you create the annotation, you use an instance of the alignment of the record, and when you want to store the position you will be able to read the value of the recorder:

    tmpAnnotation.LabelAlignment = new AnnotationLabelAlignment(
            new RecordingBoundsAlignment( ),
            initialXOffset,
            initialYOffset );

    // ...

    var recorder = (RecordingBoundsAlignment)tmpAnnotation.LabelAlignment.Alignment;
        Save( recorder.LastOffset );

  • How to get and set the size of the pool AM in life

    Hi, I want to get and programmatically, set the following parameters:


    ------------------------------------------------------------------------------

    Size of the initial Pool (jbo.ampool.initpoolsize)

    Maximum Pool size ( jbo.ampool.maxpoolsize )

    Referenced Pool size ( jbo.recyclethreshold )

    The maximum lifetime of Instance ( jbo.ampool.timetolive )

    --------------------------------------------


    In AMImpl or other place?


    Is it methods?


    Thank you.

    To get information about the pool, you can use code like this in your applicationModuleImpl

    help to dump pool statistics to log

    private void dumpAMPoolStatistics() {}

    Download the pool manager

    PoolMgr poolMgr = PoolMgr.getInstance ();

    get the managed pools

    Key of the poolMgr = enumeration. getResourcePoolKeys();

    If (key! = null) {}

    If (keys.hasMoreElements ()) {}

    can handle several pools, we will get the name of first successful

    String poolname = (String) keys.nextElement ();

    System.out.println ("pool of AM name:" + poolname);

    get the AM pool

    ApplicationPool pool =

    PoolMgr (ApplicationPool). getResourcePool (poolname);

    Journal of diagnostic AM pool

    PrintWriter out = new PrintWriter (System.out, true);

    pool. dumpPoolStatistics (new PrintWriter (out));

    out. Flush();

    }

    }

    }

    Or read Getting Application Module pool statistics to help with setting the size

    I'm not sure you can change the settings at run time. As far as I know, the pool bed settings only when it is first created.

    Timo

  • Very Urgent: Setting dynamic where clause for Popup list VO

    Hello world


    It is a very urgent requirement please help as soon as possible.


    I have a custom page in iSupplier. I created two supplier site, number of PO fields.

    Site of beg - choice of Message and PO number - Message LOV of entry


    I have a named VO under xxisupplier.oracle.apps.pos.home.poplist.server for site begging and xxisupplier.oracle.apps.pos.home.lov.server for PO number.

    I have joined these two VO AM homepage.




    Now the question is

    1. I want to restrict these VO vendor_id-based so I'll put dynamically where clause for these two VO of in my CO


    VO SITE PROVIDER QUERY


    SELECT POVs.vendor_site_code site, pov.vendor_id
    OF po_vendors pov, povs po_vendor_sites_all
    WHERE pov.vendor_id = povs.vendor_id
    AND TRUNC (povs.inactive_date) IS NULL


    PO NUMBER LOV QUERY VO


    SELECT DISTINCT ai.invoice_num, ai.vendor_id, ai.invoice_date, poh.segment1
    AI ap_invoices_all,.
    help ap_invoice_distributions_all,
    po_headers_all poh,
    po_distributions_all pda,
    Al ap_lookup_codes
    WHERE aid.po_distribution_id = pda.po_distribution_id
    AND ai.invoice_id = aid.invoice_id
    AND poh.po_header_id = pda.po_header_id
    AND ai.invoice_type_lookup_code = al.lookup_code
    AND al.lookup_type = 'INVOICE TYPE'


    I am creating where cluase as below in CO



    If (vendor_id1! = null)
    {
    System.out.println ("vendor_id:" + vendor_id1);
    OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject ("PO_LOV_VO");
    if(vo!=null)
    {
    vo.clearCache ();
    VO. Reset();
    System.out.println ("inside IN. VO:" + vendor_id1);
    vo.setWhereClause (null);
    vo.setWhereClause ("vendor_id =: 1");
    vo.setWhereClauseParams (null);
    vo.setWhereClauseParam(0,vendor_id1);
    vo.setOrderByClause ("invoice_date DESC");
    String INVQRY = vo.getQuery ();
    System.out.println ("INVQRY:" + INVQRY);
    vo.executeQuery ();
    VO. First();
    System.out.println ("after the query appear" + vo.getRowCount ());
    }

    OAViewObjectImpl sitevo1 = (OAViewObjectImpl) am.findViewObject ("SUPPLIER_SITE_VO1");
    if(sitevo1!=null)
    {
    sitevo1.clearcache ();
    sitevo1. Reset();
    System.out.println ("Interior site:" + vendor_id1);
    sitevo1.setWhereClause (null);
    sitevo1.setWhereClause ("vendor_id =: 1");
    sitevo1.setWhereClauseParams (null);
    sitevo1.setWhereClauseParam(0,vendor_id1);
    String SITEQRY = sitevo1.getQuery ();
    System.out.println ("SITEQRY:" + SITEQRY);
    sitevo1. ExecuteQuery();
    sitevo1. First();
    System.out.println ("after the query appear" + sitevo1.getRowCount ());
    }



    Here he works for the purchase order number but the where cluase does not work for Supplier Site. Please help as soon as possible.


    2 and also if supplier site to return multiple values then this field should show as messagechoice. If it returns a single value, then it should be the style text message
    How can I achieve this.



    Thank you
    CSK

    Try

    vo.setWhereClause ("IN vendor_id (" + vendor_id_qry + ")" ");

    vendor_id_qry is the query that retrieves the list of provider IDS. You don't need to put the vendor column id as whereClauseParam unless you want to have IN the clause in your query of VO and pass the list as 1,2,3 values to the parameter.

    Thank you
    Shree

Maybe you are looking for