Question about custom components States

Hi all.

I have a question that I can't find an answer to any place.

I created a screen edition, with two States, "view" and "Edit".  For 'view', the fields are not editable.  If the user presses the button "Edit", all fields become editable, as 'Edit' passes to the State of 'Edit' and all the fields to say "editable.edit = 'true'". "  It works very well.

My question is a custom component that is contained in this form.  There is also two States, with the same names.  I want to spend the custom also editing mode component.  But I can't seem to do.  If I access the field by "component.state ='edit" "", which generates an error.

This must be a fairly common thing to do.  I'll use this custom as well as screens component (I hope) so I don't want to lose him if I can avoid it.

Or maybe that I approach the problem correctly?

Any help or insight would be appreciated.

Thank you

Tom

You should be able to define the State through the currentState property:

If your custom component has all the same States as the Application then you may find it useful to link the current component State to the current state of the application:

Tags: Flex

Similar Questions

  • Question about custom stores

    I implement a custom in my app Store... I want to welcome the code on a server to show the information dynamically so that I will not need to update the application whenever I need to make a change...

    The Question is... If I want to show the leaflets that are controlled by a server (using a Login and a password) right on my custom sotre, it is possible to do it with the current custom Adobe API or I can show only folios that could purchases on the Apple Store?  I ask this question because a folio that isn't from Apple Store (say an In - App purchase) shows me a sign of error because I control access to it my system of law.

    I enclose a photo if you can help me with this.

    Thanks for your help

    photo.PNG

    Yes, it is possible. You just hide the folios where State = FolioState.INVALID or FolioState.UNAVAILABLE. After that the person logs in, folio.updatedSignal will be triggered if the State has changed. If the State is > FolioState.UNAVAILABLE then show the folio.

  • More questions about custom asynchronous device

    I am trying to create a custom asynchronous device for VeriStand and have the following questions:

    (a) at what rate entered in the course of analysis and data channel pushed into the FIFO of the custom device entry? The scanning speed depends on if the input channel is mapped to a control of workspace object or if it is mapped to an output of the simulation model (.dll file)?

    (b) at what rate the VI real-time asynchronous custome device running? Is it at the same rate as the primary control loop rate? Can I change the rate of implementation of a custom device and how?

    (c) I have a quad-core PXI time real platform. How can I connect the device customized to a specific processor, like what you do with a simulation model (.dll file) in the definition of system file?

    Thank you in advance.

    Data FIFO

    The rate at which data are pumped on your meter is static and has nothing to do with the question of whether the workspace is connected, or if a model is mapped to one of your channels. By default, data are pushed in input of your Custom FIFO each iteration of the loop of primary control. If the FIFO is full, the oldest data packet is crushed. In addition, by default, outings THAT FIFO is controlled ever iteration of the loop of primary control. You can, however, use the NI VeriStand - Set custom decimation of device to mark a property on your customized device that will tell the system its decimation expected in the. If you set a decimation of 10, for example, the primary control loop will be send every 10 iterations of new data and check for new data out FIFO only every 10 iterations. This can help reduce the load of the processor in your system if you do not need updates that often.

    Similarly, you can use the NI VeriStand - Set of deep FIFO to control the depths of the FIFO of your entries and exits FIFO respectively. By default, both have depth 1.

    Delivery rate

    The rate at which your custom device runs depends on how set you up. You can for example, having your Custom asynchronous device uses its own schedule and run at a pace totally independent of the system. Your VI could have regular while loop with a 10ms timer, for example, or it could be based off some hardware device timing.

    Alternatively, you can choose yourself closely synchronize with the primary control loop. This by registering using a property that your Custom device has a timed loop that will use the clock of the device. The unit's clock is a source of synchronization that is checked each iteration of the loop of primary regulation after Custom peripheral FIFO have been updated. You sign up for this simply by calling the NI VeriStand - Set loop property Type specifying Timed loop to loop type and use peripheral clock be true. Then, as the VI model, thread just the clock of the camera in your calendar input source for the timed loop. If you have specified a decimation factor, as mentioned above, you should probably also to use this factor as your dt. This means that if you have a decimation of 10, you only run your timed loop 10 all the graduations of the source of synchronization clock of the device.

    Another simple way to synchronize closely with the primary control with a few problems loop is simply base your timing off the coast of the availability of new data in your entries or exits FIFO. To do this, you can simply use regularly to loop and then just wire - 1 for FIFO wait times. Then your custom device will run as soon as the data are produced and consumed by the system.

    Specification of a processor

    There is no property integrated for the allocation of the processor, but it will be very easy for you to implement yourself. You can specify the processor to run on in the Explorer system by creating a custom using NI VeriStand - property set the property of the element. For example, you could define a property of I32 entitled 'Treatment', with-2 meaning auto-affectation and any non-negative value indicating an index of specific processor. Set this property in one of your device in System Explorer configuration pages and then read the property in VI of pilot in the engine using NI VeriStand - get the property of the element. Then just wire up the value of the property at the entrance of affinity processor on your timed loop. However, you should always check that this processor is on target. Otherwise the timed loop will report an error and abort. It's exactly what we do for models in-house.

  • Question about the MERGE statement

    Hi all

    I have a small question... I can post code, table creation, etc... but I think this question can be able to be simply answered, if I explain it. If you want me to zip codes, etc... then just ask and I'll do it.

    Here it goes:

    I have a set up merge statement, and I have two columns. One is named ADD_DT, and the other is called LST_UPD_DT.

    Update in the merge statement, the LST_UPD_DT column is updated with the SYSDATE.
    When it is inserted in the merge statement, the ADD_DT column is updated with the SYSDATE.

    So, here is my question:

    Regardless of whether or not the information is updated, the LST_UPD_DT updates the SYSDATE every time. Any advice on how to update the LST_UPD_DT column only if information is changed/updated, so that the information is not changed would be not updated by the SYSDATE? I hope that this question was not too complicated.

    Thank you all and if you want to see the code or examples of table... Please ask and I'll post one. I just thought that this may be able to meet without it.

    Hello

    991769 wrote:
    OK, here's what the table looks like:

    Thank you.

    CREATE TABLE TBL_SUPPLIERS
    (
    SUPP_CD                 VARCHAR2(40 CHAR),
    SUPP_NM                 VARCHAR2(255 CHAR),
    ADD_DT                  VARCHAR2(50 CHAR),
    LST_UPD_DT              VARCHAR2(50 CHAR))
    

    Do not use a VARCHAR2 column for date information. Use a DATE column.

    CREATE TABLE D_SUPPLIERS
    (
    SUPP_CD                 VARCHAR2(40 CHAR),
    SUPP_NM                 VARCHAR2(255 CHAR))
    
    INSERT INTO TBL_SUPPLIERS VALUES (1234, MINING, '03-26-2013 3:33:49 PM', '04-02-2013 9:04:52 AM');
    INSERT INTO TBL_SUPPLIERS VALUES (2345, ELECTRIC, '03-26-2013 3:33:49 PM', '04-02-2013 9:04:52 AM');
    INSERT INTO TBL_SUPPLIERS VALUES (3456, COAL, '03-26-2013 3:33:49 PM', '04-02-2013 9:04:52 AM');
    

    You want people to view the solutions that actually work? Please make sure that your own instructions will actually work. Test and fix your code before posting.
    All INSERT statements you posted fail; You seem to be missing single quotes around string literals. I think you meant:

    INSERT INTO TBL_SUPPLIERS VALUES (1234, 'MINING', '03-26-2013 3:33:49 PM', '04-02-2013 9:04:52 AM');
    ...
    

    Here's one way:

    MERGE INTO  tbl_suppliers     sm
    USING  (
               SELECT  d.*
            FROM              d_suppliers        d
            LEFT OUTER JOIN  tbl_suppliers  t  ON  t.supp_cd  = d.supp_cd
            WHERE   t.supp_cd                            IS NULL
            OR        DECODE (t.supp_nm, d.supp_nm, 0, 1) = 1
           )                       ds
    ON     (sm.supp_cd = ds.supp_cd)
        WHEN MATCHED THEN
            UPDATE SET
                sm.supp_nm = ds.supp_nm,
                sm.lst_upd_dt = SYSDATE
        WHEN NOT MATCHED THEN
            INSERT (sm.supp_cd, sm.supp_nm, sm.add_dt)
            VALUES
            (ds.supp_cd, ds.supp_nm, SYSDATE);
    
    SELECT     *
    FROM     tbl_suppliers
    ORDER BY     SUPP_CD;
    

    This can be more efficient, because it does not generate redo, or triggers, when two tables have exactly the same line.

  • question about custom classes

    I am new to AS3, as well as Flash in general, so forgive me if this seems very basic.  All I'm trying to do is create a custom class that extends the MovieClip class and contains a custom property for 'marker '.  I want to be able to use and change the value of the custom property on the timeline of an instance of this class and have it behave exactly like any other (Ex: this.x == > this.marker).

    Then, my main script, I want to launch certain circumstances according to the value of 'marker '.

    EXAMPLE: if (myCustomClassInstance.marker == 'string')

    {

    doSomething();

    }

    In any case, I checked my classpath and my extenal AS file communicates with my FLA; I know that the problem lies in my custom class, I've pasted below:

    package myClasses
    {
    import flash.display.MovieClip;

    SerializableAttribute public class extends MovieClip PageClass
    {
    public var marker: String;

    public void PageClass()
    {
    }
    }
    }

    I would be extremely grateful for any help.  Sorry for my ignorance.

    I may be forgetting the scenario, but I think that my discussion of event expedition was addressing the wrong event.  If I remember correctly, the buttons of your main timeline would generate menu of wedge activities.  Your sections would be enough to release a 'allowMenu' event when they settle in their display frame.

    I'm going on memory here (too lazy to look back), but I think I mentioned that you can use as a conditional currentLabel property to prohibit the use of a button while you are in the section.  And if you use AS3 and real SimpleButton symbols (aka buttons homemade), AS3 allows you to control the States of the buttons, which means that you can assign btn.upState = btn.downState to have the button appears in its inactive state when it is to the top/intact. Previous versions of actionscript has failed to do this.  You don't end up having to do a bit of juggling to make things that whenever a new item is selected, a single shared function can do this for all, function sense resets all buttons to the upState = condition out of town, before to set the newly selected on his downState.

  • Question about customizing the OAAttrValException

    I have coded in EO validateEntity() validations.

    They work properly with my custom exceptions message.

    OT validation code:
        if (getObjectCode().length() < 4)
        {
          MessageToken[] ObjectCodetokens = { new MessageToken("DIGIT", "4") };
          throw new OAAttrValException (
                OAException.TYP_ENTITY_OBJECT,
                getEntityDef().getFullName(), // EO name
                getPrimaryKey(), // EO PK
                "ObjectCode", //attribute name
                getObjectCode(), // bad attribute value
                "XX", //message application short name
                "XX_FWK_DIGIT_REQUIRED",
                ObjectCodetokens); // message name
        }
    The exception indicates as follows: at the top of the page, if the entry of object code is less then 4 digits
    Row 1 ObjectCode - 4 digit numeric required.
    My question is, is there a way to get rid of the 'line 1 ObjectCode -' and just show "4-digit digital required."?
    (Note: ' Row 1 ObjectCode - ' is no not part of my custom exception message.)

    Thank you.

    Yes, it's give and take only... :)

    Thank you
    -Anil
    http://oracleanil.blogspot.com/

  • Question about 'Customer of Toshiba online product information'

    Hello
    my computer (Satellite A100) asks me to download "the new version of Toshiba Online product information Client", asks me to follow the www.toshiba-tro.de link but I can't find anything like that here.
    I just have no idea how do it, could you help me please.

    Hello

    Never heard of him, and it doesn't look like it s important for your machine. I think that it s just a piece of software that wants to learn about the new features.

    If you have the opportunity then go to "Add/Remove software" in the "Control Panel", and then delete. Believe me: Don t you need...

    Otherwise, you can also try the [European drivers download page | http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_drivers_bios.jsp] to check if you can get the latest version of this application.

    See you soon

  • Question about customizing the content form of Check-In Info page

    Is it possible to customize this page outside of a component? I know that the page is auto generated and I was wondering if it was possible to use as iDoc stuff on the rules page.

    as long you have defined to include it in a componet and using the right name to "Include personal use", there should not be any problems.
    what you could try is...
    set include "my_custom_include" as follows...
    <@dynamichtml my_custom_include@="">
    <$if not="" isuploadfieldscript$="">
    My custom label


    <$endif$>
    <@end@>

    Create a check-in and in the content server hcst file containing the following lines of code...


    <$include my_custom_include$="">

    Watch the web rendering of the above check-in and see if the html in your include code is displayed.

    If all good, you can add my_custom_include 'Use Custom include' to your domain in profile rules.

  • Questions about custom DataGridColumn component converter

    Hey guys,.

    I am very new to flex, but he really likes.

    Part of my task is to display data with the DataGrid control. Sounds very simple, isn't? However, the data themselves are a mess, and he needs a custom code to make it presentable. My problem is the following:

    one of the columns is supposed to be a positive number. If the number is less than 0, then do not display or display an empty cell. I tried in several ways:

    1 tried to use < mx:Text text = "{((data. TotalGFA < 0)? "": data. " TotalGFA)}"/ >. He complains unmatched ' > '.

    2 tried to use a function < mx:Text text = "{getPositiveNumber (data." TotalGFA)}"/ >. He complained of function not defined

    3 tried extending mx:Text and the substitution of the text box. But I couldn't find any help.

    Is this possible? How to make it work?

    Thank you

    C

    You can simply use the DataGridColumn labelFunction.

    You have problems with your second appearance being itemRenderers

    scope differently from the parent app.

  • Question about the update statement

    Hi all


    UPDATE table_name
    SET Column1 = value, column2 = value2
    WHERE condition;

    I have an update like this statement. What happens when I run the above statement, when there is no column named Column2 in the table? If it creates a column named column2 and value2 using?

    Instead should first create a new column named Column2 in the table first and then run this update statement?

    Please, someone good to explain.

    Hi, this statement (it is a dml statement) will give an error, because the Column2 does not exist in the table. You must add the Column2 by an alter (ddl statement) statement. Then, you can try to execute your statement.

    Kind regards
    Saby

    Published by: 793420 on September 7, 2010 14:48

    Published by: 793420 on September 7, 2010 14:48

  • Questions about Failver customer and rapid failover

    have some questions about customer and quick Faiolver of Oracle Database HA failover. Before asking these questions, I want to explain my environment. Here are the details.



    -We have two physical locations called "ABC" and "PQR".
    -ABC is the main site.
    -PQR is the backup site.
    -In ABC, we have the database to Oracle RAC (11.2.0.2) with two nodes.
    -In the PQR, we have only one stand-alone server (11.2.0.2) database with ASM. This isn't a RAC.
    -Data Guard has been configured between ABC and PQR and it works as expected.
    -Please note that we have a license for Active Data Guard.
    -We have products of Oracle Identity Management to ABC and PQR and they will use the RAC database as a primary database that is in the CBA.
    -We have not yet set up a Data Guard Broker.

    We want to achieve under objectives:


    Objective 1:
    -------

    Whenever primary CARS down completely, standby database becomes a primary database AUTOMATICALLY and it should allow the read/write operation.
    I guess it's called 'Fast Failover'. Please let me know if I'm wrong.

    Issues related to the:

    -To do this, I need to set up Data Guard Broker so that this standy database becomes primary when CARS go down completely with a power outage, planned or not.
    -Let's say that CARS falls does completely, how long take Data Guard Broker do standby db as primary.
    -What the client application / which is already connected to the CARS.
    -Let's DB standby became as primary and after some time if RAC comes back, keep data automatically becomes the primary role of RAC?


    Objective 2:
    --------

    As I explained above, all products Oracle IDM and applications to speak to the RAC database, what do know only on the RAC database, which is the main. They are not aware of the pending database.

    -Whenever a client session is underway with the primary database of CARS if CARS completely falls down, we would like to wait until the client session should get transferred datbase standby without losing session information. However before that happens, standby database should become primary because the client session can perform write operations.

    -Whenever a client attempts to connect to the primary CARS and assumes that the cab is completely down, we would like to expect from any client connections should are transferred pending database.
    However before that happens, standby database should become primary because the client session can perform write operations.

    According to my knowledge, above scenarios are called "client failver." Please let me know if I'm wrong.



    Issues related to the:
    ----------

    1. Please throw some light to reach above features.
    2. According to my understanding, before customer failover happens, fast failover expected has already occurred and ensure should get the switch for the main role. I guess that all this happens thanks to timeout settings. What are those.


    Could you please help?

    Thank you

    I didn't say that clients cannot reconnect automatically when primary fails: I meant that client sessions can generally reconnect and also keep any session state.

    Yes, they can reconnect but only to keep the session state for a SELECT statement. It is also possible with Data Guard, not only in the CARS I wrote: here's a demo with 10 g
    http://uhesse.WordPress.com/2009/08/19/connect-time-failover-transparent-application-failover-for-Data-Guard/.
    What is not possible is to maintain a session state: (INSERT/UPDATE/DELETE) pending transactions must be cancelled.

    Edited by: P. Forstmann on Dec 8. 2011 20:30

  • Question about the connection of a customer VPN ASA

    Hi guys,.

    I have a question about Tunneling VPN. I have an ASA 5505 with static PPPoE address external and local 192.168.202.0/24 network, operates as an EasyVPN server. On the other side is an another ASA 5505 without dynamic PPPoE outside interface acting as EasyVPN customer in customer ode. The internal network is 192.168.1.0/24

    It works very well! But now, I created another user who uses EasyVPN client software to connect to the EasyVPN server. This works as well.

    But how am I able to connect customer network 192.168.1.0/24 on the connections of the ASA?

    Please give me a hint.

    "But how am I able to connect customer network 192.168.1.0/24 on the connections of the ASA?

    Yes, if you set the ACL of split tunnel correctly you should be able to connect to the remote client ASA.

    Please follow the method of configuration of Cisco doc split tunnel, at the bottom of the link.

    http://www.Cisco.com/en/us/products/HW/vpndevc/ps2030/products_configuration_example09186a00808a61f4.shtml

    Evaluate the useful ticket.

    Thank you

    Rizwan James

  • Question about to go to a State.

    Hello, I have a question about to go to a State. Is there a property that I can apply to objects that is executed when you visit a State?

    For example, I have a button that switches the State "Biography" and "Biography" contains an Image. How can I make the "glow" image or add effects to it whenever the State is visited?

    Thank you!

    Hello

    You can add effects to your buttons and elements of user interface on your condition by listening for the event onEnterState States. When your switces State of the current state of your particular State where you will like to add effects on its user interface elements so you can add in this event related to the event onEnterState handler.

  • A Question about debugging...

    Hi all

    I have a question about debugging - specific probes. Is it possible to link and save the values on a wire (with a probe) which is a loop for the loop counter (or even a secondary value)?

    When I'm debugging code to a state machine that I often more easy to wire to the top of the State and the value, I am interested in a cluster, and then use 'generation antenna' and a registry change to add this element to each loop. I could also do this by indexing just out of the loop too.

    Once execution completes etc that I can look at the table (either using an indicator or a problem) to see what has happened to the value to each State/loop. And often, I know exactly where my code was wrong.

    My question is: is there a way to do this using regular probes without having to build an array? So, for example, I probe a digital wire and get a table of responses rather than just the last value on the wire?

    Thank you

    Dave

    I found this nugget that does exactly what I want - it's a custom probe developed by Darren.

    This post on the Exchange of ideas gives to think it should be at least provided with the package LV either integrated in the dev environment. Well worth voting for!

  • Questions about support

    Dear community of cloud!

    I have a few questions about the service of adobe support.

    First of all, I would ask which includes the support service. I am also curious about the length of the reaction and the way they treat the problem can occur. Receive problem reports directly into the program I use, or do I have to write a separate message in a service address or Skype etc are decent ways to communicate with them?

    Thanks in advance for your answer!

    Service varies down the line insofar as this support is provided and when/how quickly it is provided.  Some people are very satisfied with the support that they get and others are not.  These user forums are one of the support options and usually you will get a response fairly quickly, and if you provide a detailed problem statement you can usually get a solution.  If a solution is to contact Adobe customer service, there is not much anyone can do here in the forums except to the provide information to contact. To contact Adobe Customer Support...

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

Maybe you are looking for

  • Cannot install macOS imed

    Been to the App store, saw macOS Sierra, clicked on "Download", but get an error message "we could not complete your purchase that this version of macOS 10.12 cannot be installed on this computer. I have one using macOS El Capitan 10.11.6 at the mome

  • Vista slow boot / stalled since resettlement on Equium L40 - 17M

    After working on the programme which had caused some performance issues *.with my laptop Toshiba Equiuum L40 - 17 M - Kontiki, used with a tv on demandprogram for Channel 4 in the United Kingdom - I reinstalled Windows. Unlike alast chance to get rid

  • Pavilion dm4 1006tu: SSD installation on dm4 1006tu

    HelloI want to install the SSD drive on my laptop (pavilion dm4 1006 YOU.)Before installing, I want to confirm by experts which makes my system configuration supports the SSDS?I heard that SSDS have backward compatibility with legacy systems.And my H

  • Available for Blackberry vulnerability testing tools

    There are tools and techniques available for testing blackberry applications to assess their performance and problems of vulnerability?

  • How can I change the edict and fields of association of open files

    Programs\Set default associations open edit Under default Programs\Set Associations, I can only indicate a program to open a document with the specified file type. I need to be able to distinguish between open and edit. How can I specify a different