Data model binding with a "for in" loop

I've got a data model representing form items. An example
data model element and form item looks like this:
<data_model>
<item_1>{item1.text}</item_1>
</data_model>
<mx:DateField id="item1" text="{data_model.item1}"/>
I get data back from a database as an associative array and
convert it to an ArrayCollection like so:
formData = new ArrayCollection(ArrayUtil.toArray(re.result));
Now, if do this:
data_model.item_1 = formData['item_1'];
the text of form element item1 will be updated as I would
expect via the binding between the two. If I iterate through the
array as such:
for (var key:String in formData) {
data_model.key = formData[key];
the model is updated but the form element text field is not.
I'd love the convenience of iterating through the array as opposed
to having to type out all the model elements by hand. Ideas?

Figured it out. Instead of this:
data_model.key = formData[key];
do this:
data_model[key] = formData[key];
So silly

Similar Messages

  • SQL Developer Data Modeler - integration with subversion

    I just discovered the release of SQL Developer Data modeler, and found this to be very interesting.
    We are still using Oracle Designer for database design, but we are looking for a replacement (for several reasons).
    My question is quite simple:
    Given that the modeler uses a filebased repository, and also given that we have several developers potentially working on a data-model at the same time, how does Data Modeler integrate with subversion for source control etc.?
    Can the repository itself be under source control, and checked in/out directly from Data Modeler?
    Or will only the output files be candidates for version/source control?
    Let me admit right away that I have not read much of the data modeler docs, and I have also not downloaded/installed it (yet), but does anyone have pointers to docs on this , or general input/knowledge around it.
    On a side note, I must say that it puzzles me that a company like Oracle, that delivers one of the best databases doesn't use its database engine to host the repository, but instead chooses to go for files (I assume xml) "scattered all over the place"....
    Well, I guess they a have a reason for it..
    Anyway:
    Sql Developer Data Modeler and Subversion anyone?
    Jens

    Hi Jens,
    It's early days and the initial implementation is indeed file based. Though I'd say not xml files "all over the place", but in ordered folders. Yes, as a database company it does make sense that we'd have a repository for managing and versioning metadata. However the tool supports Oracle and other databases and many companies use open source version control tools, such as Subversion and so anyone using the Data Modeler today can use it with Subversion regardless of the database they are designing for.
    We do plan to have a repository, but in the 6+ months of the early adopter program found that many of the early adopters were happy to place the files under source code control using Subversion and in so doing also managed the multi-user development.
    Integrated Subversion support is planned for a future release.
    Sue

  • Data model 0G: No authorization for entity type Account (Company Code) - activity Display

    Hello Expert,
    I have a problem with authorization in MDG-F.
    I want to create Account with Collective processing. After, entered Entity type, Edition and Chart of account,  Blocking message "Data model 0G: No authorization for entity type Account (Company Code) - activity Display" is displayed.
    But, i checked in PFCG transaction, for this user profil, activity are : create or generate, Change and display. So, for me , it is correct.
    Please, check screen shot below :
    Blocking message :
    and in PFCG transaction
    Could you help me to solve this point?
    Kind regards,
    Heri RAOELISON

    Hi Heri,
    the system behavior is correct. The account in company code consists of three entity types:
    1) COA - Chart of Accounts (Type 3)
    2) ACCOUNT - Account (A-Segment, related to ECC table SKA1, Type 1)
    3) ACCCCDET - Account in Company Code (B-Segment, releated to ECC table SKB1, Type 1).
    3) includes 1) and 2) whereas 2) includes 1). If you grant authorization only for 3) but not for 1) and 2), you cannot do anything.
    Best regards
    Michael

  • Can SQL Developer Data Modeler work with OBIEE?

    Can SQL Developer Data Modeler work with OBIEE? Can we export the data model from the Data Modeler and import it into OBIEE? Or export the OBIEE metadata to the Data Modeler for Data Model defining?

    no
    Philip

  • How to install SQL Developer Data Modeler 3.1.1 for Mac OS X?

    How do I install SQL Developer Data Modeler 3.1.1 for Mac OS X? I downloaded the file "datamodeler-3.1.1-703-macosx.gz" from OTN, but there is only a single file inside this archive - "datamodeler-3.1.1-703-macosx". What am I missing here?
    Thanks in advance...

    Extract that file and then run it.
    Once you installed the tool to your Applications folder (if you choose to move it to Applications), you'll need to install Java (maybe).
    What version of OS X are you on?
    In a command window/terminal, type 'java -version'
    If you get something back like 'java version "1.6..." then you're all good.
    If you're on Mountain Lion, then type 'java' instead. That should download java for you.
    Once you've got java available, then launch SQL Developer Data Modeler.
    The installation notes are here if you want the official list of instructions
    http://www.oracle.com/technetwork/developer-tools/datamodeler/downloads/mac-installnotes-1716514.html

  • Data Modeler: Problems with importin from DDL and Designer

    I have a few problems with importing models from Designer and DDL:
    1. Can I import spatial indexes from Designer or DDL file? An index does appear in the model but it doesn’t seem to be a spatial index. When trying to import from database, the index doesn’t appear in the model at all.
    2. Is it possible to import sdo_geometry data types from DDL file? I haven’t succeeded with it, instead the column's data type appears unknown.
    3. Sometimes import from DDL files (that are generated with DM) failed with nothing appearing to the model. I haven’t figured out why that happens. I didn’t receive any error message, the model just opened empty.
    4. DM doesn’t seem to recognize public synonym creation from DDL. View log gives the following message:
    <<<<< Not Recognized >>>>>
    CREATE PUBLIC SYNONYM TABLE1
    FOR TABLE1
    5. Sequences lose their properties when importing from Designer. They only have a name but but start with, increment by and min/max values are empty in DM. Importin from DDL works fine.
    I’m using data modeler version 2.0.0 build 584

    Hi Alex,
    There is newer version of Data Modeler (3.0 EA2) and it is free
    You can download it from here
    http://www.oracle.com/technetwork/developer-tools/datamodeler/ea2-downloads-185792.html
    Regards
    Edited by: Dimitar Slavov on Dec 9, 2010 2:15 AM

  • Data modeler: Having Maintainable Query for View Creation

    Hi,
    I am using SQL Developer 4 and the data modeler. I typically create a view in SQL developer (from a SQL select statement). I then drag and drop the view to the data modeler in order to have it stored for the next time I regererate the database schema from the data modeler. This works and I can see the query for my view when I click Properties on the view in the data modeler. However, the query I see there is logically equivalent (and very similar) but it is hard to read for a programmer as carrier returns are added, the various elements of my where clause are not in the same order as I programmed them, comments (starting with '--') where not transfered with the drag and drop.
    I feel I cannot only rely on the version of the view stored in the data modeler to keep my DDL code that creates the view. Maintenance of that code would be too difficult. I feel I will need to keep a separate SQL script (in a separate version control tool) containing the select statement of my view. I would then always need to make my modifications in this select statement, update my view in the database and then drag and drop the result back in the data modeler. This is cumbersome.
    Do you have any solution for me? Thanks!

    Hi Jeff would you be able to help me in creating a data model  cause im really stuck with this one .Basically if been asked to create a survey application in oracle apex that use to excel based . So the info i was given was in a form of  excel sheet which looks like this
    USER'S                                                                                                                                                                    VENDORS                                                                                                                                  TOPICS
    NAME
    E-MAIL
    TSSA
    ORACLE
    HP
    IBM
    MS
    SAP
    INTERGRAPH
    CISCO
    Relationship
    Contracting
    Performance
    Architecture
    Supplier Feedback
    Comment
    jjjjjnn Bixxxxxff
    [email protected]
    Yes
    Yes
    Yes
    Yes
    x
    Added as requested by Sanet Mulder
    itha CCCniah
    [email protected]
    Yes
    Yes
    Yes
    x
    x
    Elliot dan
    [email protected]
    Yes
    x
    x
    x
    Ger que
    [email protected]
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    Yes
    x
    x
    x
    isha Per
    [email protected]
    Yes
    x
    John Rato
    [email protected]
    Yes
    x
    x
    So where it says yes thous are the vendors that people associated with them have to asses and where there's an X thous are the topics that the vendors have to be rated on . So if for example the first guy on the list  jjjjjnn Bixxxxxff will asses TSSA , ORACLE , HP , IBM , MS , SAP  on the topic of Architecture and if you look at the second user itha CCCniah he would rate TSSA , ORACLE , INTERGRAPH on the topics of Relationship and performance  . Any idea how i could data model this to get my table structures right .so that features like completion status could be displayed to the user through APEX which can only be done by a correct data-model i have tried normalization but  i did go anywhere becauce there are so many variations any idea on how you would go about data modeling this would be greatly appreciated thank you     If you would like a better copy of the table my email is    [email protected]    

  • Unable to see columns of Data Model in Template Builder for Word.

    Experts,
    My customer has defined Data Model,
    and when Ct is trying to insert fields into their documents,
    the columns in the Data Model can't been seen in Template Builder for Word.
    (in tool bar; Oracle BI Publisher > Insert > Field)
    The details is as follow;
    (Data Model)
    Name : TEST
    Type : SQL Query
    SQL Query : select case_id,case_name from TEST where case_id = :p_case_id and serious_flag = 'Y';
    'p_case_id' is taken from LOV.
    (sample data in TEST table)
    CASE_ID CASE_NAME SERIOUS_FLAG
    1 case1
    2 case2 N
    3 case3 Y
    In this case, CASE_ID and CASE_NAME can't be seen in Template Builder.
    But we can see the columns when the sample data is as follow;
    CASE_ID CASE_NAME SERIOUS_FLAG
    1 case1 Y <-(*)
    2 case2 N
    3 case3 Y
    I mean, the data of the first row (in this case, case_id=1) is hit by the SQL query,
    we can see the columns in Template Builder.
    I'd like to know whether it is an intended behavior.
    Regards.

    Hi,
    I reformed the sample data in TEST table.
    In this case,the columns in the Data Model can't been seen in Template Builder for Word.
    CASE_ID CASE_NAME SERIOUS_FLAG
    1     case1
    2     case2     N
    3     case3     Y
    But we can see the columns when the sample data is as follow;
    CASE_ID CASE_NAME SERIOUS_FLAG
    1     case1     Y     &lt;=(*)
    2     case2     N
    3     case3     Y
    In fact, when the data of the first row (in this case, case_id=1) is hit by the SQL query,
    we can see the columns in Template Builder.
    Any information would be appreciated.
    Thanks in advance.

  • SQL Agent Permssions With SSIS for each loop not looping through files

    Hi I am Having trouble getting a ssis package to iterate through a file directory using a proxy account set up in Sql Server.
    So I have a package that loops over csv files. If I run the package manually or set the sql agent job to run as Sysadmin the pakage runs fine all files are processed.
    However if I use the proxy account. the package completes but no files are processed. there are no failures, there is no error handling set up in the control flow. the for each loop container simply does not recognise any files when run under a proxy.
    Note: the proxy is set up with credentials to access the folder. the credential is also set up with the server admin server role... still nothing
    i'm not sure is this is a ssis or permissions problem?
    Any comments will be appreciated

    Can you check this and see if you've configured all the steps correctly
    http://www.mssqltips.com/sqlservertip/2163/running-a-ssis-package-from-sql-server-agent-using-a-proxy-account/
    Also enable logging in package and see if you're getting any error messages obtained in output table/file based on the logging option you chose.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • What version of Data Modeler comes with SQL Developer EA 3.1?

    Hi:
    I've looked but can't find what version of Data Modeler is shipped with SQL Developer 3.1 EA1. Is it Data Modeler EA 3.1 or the production Data Modeler 3.0 version?
    Thanks,
    Doc

    Hi:
    I ran an import and here's what the log showed...so it looks like SQL Developer EA 3.1 uses the production version of SQL Data Modeler...3.0.
    Oracle SQL Developer Data Modeler 3.0.0.665.2
    Oracle SQL Developer Data Modeler Import Log
    Date and Time: 2011-11-14 14:19:42 PST
    Design Name:
    RDBMS: Oracle Database 10g

  • 11g bi publisher data model generic columns names for obiee data source?

    I'm just trying to figure out if this is a bug, expected behavior or installation problem. When I select an Oracle BI Analysis to add to the data model diagram the column names are not copied over. Instead they are all renamed as Column0-ColumnNN.
    Thanks
    Edited by: user13087422 on Apr 7, 2011 9:49 AM

    I'm facing this same issue. Can you solve that? What's the problem with it?
    Regards,
    Ariel

  • Open Toad Data Modeler diagram with SQL Data Modeler

    hi, I've made a diagram with TOAD Data Modeler in Windows. Now I'm working with Linux, so I need a portable application to work with. Oracle SQL Data Modeler seems to be the solution to my problems, but I can't open/import my TOAD's diagrams into SQL Data Modeler.
    Anyone knows how to do it?
    Thanks in advance,
    Neuquino
    Edited by: Neuquino2 on Nov 1, 2010 1:30 PM

    Hi Neuquino,
    there is no import from TOAD Data Modeler. You can generate DDL script with TOAD DM and import that script.
    Philip

  • Latest PowerQuery issues with data load to data models built with older version + issue when query is changed

    We have a tool built in excel + Powerquery version 2.18.3874.242 - 32 Bit (No PowerPivot) using data load to data model (not to workbook). There are data filters linked to excel cells, inserted in OData query before data is pulled.
    The Excel tool uses organisational credentials to authenticate.
    System config: Win 8.1, Office 2013 (32 bit)
    The tool runs for all users as long as they do not upgrade to PowerQuery_2.20.3945.242 (32-bit).
    Once upgraded users can no longer get the data to load to the Model. Data still loads to the Workbook but the model breaks down. Resetting load to data model erases all measures.
    Here are the exact errors users get:
    1. [DataSource.Error] Cannot parse OData response result. Error: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
    2. The Data Model table could not be refreshed: There isn't enough memory to complete this action. Try using less data or closing other applications. To increase memory available, consider ......

    Hi Nitin,
    Is this still an issue? If so, can you kindly provide the details that Hadeel has asked for?
    Regards,
    Michael Amadi
    Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to vote it as helpful :)
    Website: http://www.nimblelearn.com, Twitter:
    @nimblelearn

  • Issue with XSLT For each loop in B2B Mapping

    Hi All,
    I am trying to map the inbound 997 Payload into Headers and Lines Table. I am using the For Each XSLT Construct to map the Loop AK2 of 997 into the 997 Lines Collection.
    Issue I am facing is that if the Loop AK2 is repeated for 33 times then for all the 33 times only its first element's value is getting passed into the target of mapping file.
    in coming payload
    <Loop-AK2>
    <Segment-AK2>
    <Element-143>810</Element-143>
    <Element-329>0001</Element-329>
    </Segment-AK2>
    <Segment-AK5>
    <Element-717>A</Element-717>
    </Segment-AK5>
    </Loop-AK2>
    <Loop-AK2>
    <Segment-AK2>
    <Element-143>810</Element-143>
    <Element-329>0002</Element-329>
    </Segment-AK2>
    <Segment-AK5>
    <Element-717>A</Element-717>
    </Segment-AK5>
    </Loop-AK2>
    <Loop-AK2>
    <Segment-AK2>
    <Element-143>810</Element-143>
    <Element-329>0003</Element-329>
    </Segment-AK2>
    <Segment-AK5>After transformation using XSLT file the payload looks like as follows
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>33</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>
    <ns0:segmentError/>
    <ns0:trxSetAckCode>A</ns0:trxSetAckCode>
    </ns0:XxmfiEdi997_AckLines>
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>34</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>
    <ns0:segmentError/>
    <ns0:trxSetAckCode>A</ns0:trxSetAckCode>
    </ns0:XxmfiEdi997_AckLines>
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>35</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>
    <ns0:segmentError/>
    <ns0:trxSetAckCode>A</ns0:trxSetAckCode>
    </ns0:XxmfiEdi997_AckLines>
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>36</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>
    <ns0:segmentError/>
    <ns0:trxSetAckCode>A</ns0:trxSetAckCode>
    </ns0:XxmfiEdi997_AckLines>
    <ns0:XxmfiEdi997_AckLines>
    <ns0:lineId>37</ns0:lineId>
    <ns0:trxSetIdentCode>810</ns0:trxSetIdentCode>
    <ns0:trxSetControlNumber>0001</ns0:trxSetControlNumber>
    <ns0:segmentCode/>
    <ns0:segmentPosition/>the Element-329 of incoming source payload is mapped to trxSetControlNumber of target payload, the issue is obvious from the above XML data that trxSetControlNumber is always having the value 0001 for every occurence where as its expected to fetch the value of the element of its corresponding occurence not the first elements value.
    Please find below the xslt file code i used for mapping
    <ns0:XxmfiEdi997_AckHeadersCollection>
          <ns0:XxmfiEdi997_AckHeaders>
            <ns0:headerId>
              <xsl:value-of select='oraext:sequence-next-val("XXMFI_EDI_997_ACK_HEADERS_S","jdbc/MTSI-apps")'/>
            </ns0:headerId>
            <ns0:processFlag>
              <xsl:text disable-output-escaping="no">I</xsl:text>
            </ns0:processFlag>
             <ns0:xxmfiEdi997_AckLinesCollection>
              <xsl:for-each select="/ns1:Transaction-997/ns1:Loop-AK2">
                <ns0:XxmfiEdi997_AckLines>
                  <ns0:lineId>
                    <xsl:value-of select='oraext:sequence-next-val("XXMFI_EDI_997_ACK_LINES_S","jdbc/MTSI-apps")'/>
                  </ns0:lineId>
                  <ns0:trxSetIdentCode>
                    <xsl:value-of select="/ns1:Transaction-997/ns1:Loop-AK2/ns1:Segment-AK2/ns1:Element-143"/>
                  </ns0:trxSetIdentCode>
                  <ns0:trxSetControlNumber>
                    <xsl:value-of select="ns1:Segment-AK2/ns1:Element-329"/>
                  </ns0:trxSetControlNumber>
                  <ns0:segmentError>
                    <xsl:value-of select="/ns1:Transaction-997/ns1:Loop-AK2/ns1:Loop-AK3/ns1:Segment-AK3/ns1:Element-720"/>
                  </ns0:segmentError>
                  <ns0:trxSetAckCode>
                    <xsl:value-of select="/ns1:Transaction-997/ns1:Loop-AK2/ns1:Segment-AK5/ns1:Element-717"/>
                  </ns0:trxSetAckCode>
                </ns0:XxmfiEdi997_AckLines>
              </xsl:for-each>
            </ns0:xxmfiEdi997_AckLinesCollection>
          </ns0:XxmfiEdi997_AckHeaders>Is there something I am doing wrong in mapping or am I missing something here. Please suggest .
    Thanks in advance
    ~TK.

    Hi,
    In your xslt code within the for loop, for the trxSetIdentCode why are you using the xpath "/ns1:Transaction-997/ns1:Loop-AK2/ns1:Segment-AK2/ns1:Element-143"? It should be just "ns1:Segment-AK2/ns1:Element-143". Similar changes for segmentError and trxSetAckCode also should be done. Remove the '/ns1:Transaction-997/ns1:Loop-AK2/' part from your xpath expressions inside the for loop and try it.
    Sahay

  • SQL Developer Data Modeling - Synchronization with database

    How to synchronize changes in the relational model with an existing database (as well as JDeveloper)?
    For example I added a column in a table of the relational model and then want to generate the changes against an existing database. Only a ALTER TABLE-Statement should be generated.
    Thanks,
    Holger

    Thanks for your answer.
    I tried this, but it is in comparison with Oracle JDeveloper or Oracle Designer much to complicated. I reported this in the osdm feedback application.
    Furthermore the Compare Models view is no more helpful, when I use domains in the updated model. Because every column is marked as different with a exclamation mark.
    Thanks,
    Holger

Maybe you are looking for

  • Safari repeatedly crashes after a few seconds

    Hi I have a new install of Safari (6.0.5) in a fresh install of OSX (10.8.5) on a new MBP 2.9 GHz i7 8GB e.g it's completely virgin and new It (Safari) repeatedly crashes after just a couple of seconds though. Would a clean install of Safari solve th

  • Microsoft wireless mobile mouse 4000 issue

    My wife has a 4-year old MacBook Pro running 10.6 (can't get her to change...).  We recently had to replace her MS Wireless Mobile Mouse 4000--we've both used these for years.  We're having an issue with hers...the left button won't go "back" in Safa

  • Xsan core dumping on volume start.

    Hey guys, I reciently upgraded to 10.4.7 (in hopes of fixing a kernel memory leak when hammering the san actualy) and now the xsan will not mount at all. I have applied all patches including the new xserver patch, and no love. When I try to start the

  • Should I seek a 3rd party for color/contrast?

    I installed Mountain Lion a couple months ago. Although there are a few feature I really like, Apple took away a lot of real basic stuff away for no apparent reason. One change in Mountain Lion is the lack of color in icons (like in the Mail SideBar,

  • Phone number

    I need a phone number to talk to a human being