Dynamic Repeater Data

I constructed a small search box, and am using flash remoting
to get the
data that fills a grid - and that works great.
I'm trying to show phone numbers for the selected person from
the grid, and
thought a repeater would work well for this.
When someone clicks on a contact my grid, it does a flash
remote query
to pull back all the telephone numbers a person has (voice,
fax, mobile etc).
I get the query back, but can't figure out how to get the
repeater to change
to show the results (they could have multiple voice, and no
fax number so the
repeater portion is supposed to be dynamic).
I've got a handler setup, and it executes when my data comes
back, and I've
tried to do something like this:
q1.dataProvider = results;
q1 being the query holding the telephone number data. This
does not give me
any error, but the repeater does not update.
What am I missing?

Thank you for the reply ScareCrow.
The repeater I'm referring to is actually the flash cfform
element. For example:
<cfformgroup type="repeater" query="q1">
<cfinput type="text" name="edit_phone"
bind="{(grid.selectedItem!=undefined)?q1.currentItem.phone:''}"
/>
</cfformgroup>
I am trying to have the repeater refresh, so I was trying to
stuff the results of the flash remote call (a query) into the data
provider for the repeater.
q1.dataProvider = results;
That does not give me any error, but it does not update the
screen either to show the results pulled back from the server.
Any idea? It should be possible, as it is client side
correct?

Similar Messages

  • Dynamic Query Data issue...Apex Charts

    Database version and APEX version are in the tags...11g  and4.1.2
      I have data in this format
    NODE_NAME
    REPORT_DATE
    STORAGE_AMOUNT_ALLOC
    Anole
    01/01/2013
    3175
    Fiji
    01/01/2013
    0
    Anole
    02/01/2013
    3175
    Fiji
    02/01/2013
    0
    Anole
    04/01/2013
    3276
    Fiji
    04/01/2013
    0
    Anole
    05/01/2013
    3276
    Fiji
    05/01/2013
    0
    Anole
    06/01/2013
    3276
    Fiji
    06/01/2013
    0
    I've build a Dynamic query which returns:
    SELECT NULL LINK,report_date DATIME,decode(NODE_NAME,'Anole',STORAGE_AMOUNT_ALLOC)"Anole",decode(NODE_NAME,'Fiji',STORAGE_AMOUNT_ALLOC)"Fiji" FROM STORAGE_REPORTS WHERE report_date between to_date('01-JAN-2013','DD-MON-YYYY') and to_date('01-JUN-2013','DD-MON-YYYY') and (INSTR(':Anole:Fiji:', ':'||NODE_NAME||':') > 0) ORDER BY report_date ASC
    The resultant data is
    LINK
    DATIME
    Anole
    Fiji
    01/01/2013
    3175
    01/01/2013
    0
    02/01/2013
    3175
    02/01/2013
    0
    04/01/2013
    3276
    04/01/2013
    0
    05/01/2013
    0
    05/01/2013
    3276
    06/01/2013
    3276
    06/01/2013
    0
    When I put the above query to the chart it give me accurate series with one..however when I add a second NODE to the query it completly hacks the chart. I have a feeling this is because I have repeating dates and it doesn' know how to handle this. So I'm wondering how I get rid of the repeating dates. and make them all one row with columns for each series.
    Thanks
    Rob

    apex version?  database version?
    if you're on 11g, it sounds like you want the PIVOT command.
    you should also post a simple CREATE TABLE and a few INSERT statements so others can test.
    select null link
      ,report_date as datime
      ,"Anole", "Fiji"
    from ( select REPORT_DATE, NODE_NAME, STORAGE_AMOUNT_ALLOC
      from STORAGE_REPORTS
    PIVOT (
      sum( storage_amount_alloc )
      for (node_name)
      in ( 'Anole' "Anole", 'Fiji' "Fiji" ) -- rename columns here
    where report_date between to_date('01-JAN-2013','DD-MON-YYYY') and to_date('01-JUN-2013','DD-MON-YYYY')
    order by report_date asc

  • Dynamically Set date not changing in schedule Job

    Hi,
    I have created a report with "Order Date" as one of the parameters on the selection screen. I have created a variant, say 'X' , to set this date parameter dynamiccaly as "Current date - 31 days".
    I have scheduled this program to run in background with the 'X' variant daily at certain time.
    Now, for the day on which I created this job , the Order Date is set to correct date . For ex if I am scheduling the job tdy it will be set to 06/10/08. However, for next day , that is tom this date is not getting changed. i.e Tommorrow again Order date is 06/10/08 but it should have been 07/10/08.
    So basically this dynamically set date is not chaning in the scheduled job.
    Any idea why this is happening and what is the corrective measure for this.
    Thanks!

    There is an INITIALIZATION event in the program.......
    Do the processing your date in that event only....
    for ex....
    select-options: date for order-date.
    INITIALIZATION.
    date-low = sy-datum or wat ever.
    Thanks
    Saurabh

  • How to not repeat data in XSL-FO

    Hello, All,
    Thank you for taking the time to read this.  Hopefully, I can adequately convey to you what the problem is.
    XSL-FO is 1.0
    APEX Listener is 2.0.5
    APEX 4.2.4
    Altova StyleVision 2014 EE
    Using Altova StyleVision, I have created an XSL-FO file that gets uploaded to APEX to create a Report Layout for a Report Query.  It runs okay in that data is returned.  However, formatting the data is the problem.  Here is plain representation of how the data appears in the report now:
    PRINT#  TITLE  DATE       TEXT
    23      Job1   01-JAN-14  Text line 1
    23      Job1   05-FEB-14  Text line 2
    23      Job1   02-APR-14  Text line 3
    47      JobQ   22-MAR-14  Other text line 1
    47      JobQ   15-JUL-15  Other text line 2
    I need it to look like this:
    PRINT#  TITLE  DATE       TEXT
    23      Job1   01-JAN-14  Text line 1
                   05-FEB-14  Text line 2
                   02-APR-14  Text line 3
    47      JobQ   22-MAR-14  Other text line 1
                   15-JUL-15  Other text line 2
    For some reason, I can't seem to get the repeating data to be hidden.  Keep in mind, grouping was not available until 2.0, and I need to use 1.0.  This is, overall, a complex report, so coding by hand is probably not possible.  How can I get Altova StyleVision to do this?  I understand this isn't an Altova forum.  I tried that resource already with no luck.  What I'm wondering is what concepts or syntax in XSL-FO do I need to understand to get this to work?  And going to W3 Schools didn't work for me, either.  I just can't seem to get my mind wrapped around this for some reason.
    -Seth.

    Is an XSLT used? Remove duplicate values using XSLT.
    http://www.dpawson.co.uk/xsl/sect2/N2696.html

  • How to Highlight Fields in a dynamically repeatable subform?

    Hi team ,
    I have Problem in highlighting the fields in a dynamically repeatable subform. Sub form will have min count = 1 and max Count =20 and subform is flow able.each subform is flow able .
    I have to check only two fields in a subform whether they are null or empty . If the fields are empty or null then i have to highlight the fields .
    Below scripting is not working as per the requirement .
    I have written the below scripting  on click event of a button.
    function Test()
    var cnt = subform1.subform2.subform3.instanceManager.count;
    for(var i =0;i <= cnt;i++)
                    var vAccnt = subform1.subform2.resolveNode("subform3["+ i +"]").txtfldAccnt.rawValue;
                    var vAmount= subform1.subform2.resolveNode("subform3["+ i +"]").txtfldAmount.rawValue;
                    if(vAccnt == "" || vAccnt == null)
                                    var vName = Page1.WorkArea.GLDistribution.sfrmGLDistribution.sfrmDistribution.txtfldGLAccnt.somExpres sion;
                                    var fieldObj = xfa.resolveNode(vName + ".ui.#textEdit.border.fill.color");
                                    fieldObj.value = "255,0,0"; 
    Please help me How i can solve this problem.

    There is a space in the expression "somExpres sion".
    Just remove the space and try. I don't see any other problem in your logic.
    -Nith

  • SSRS 2008 R2 - Dynamic header data stays the same when exporting

    Background:
    I have a SSRS 2008 R2 report with a single Tablix.
    The data is grouped by InvoiceID, with each appearing on a separate page.
    I'm displaying some of the detail data in the group header row using Expressions similar to the following:
    ="Invoice # "  & ReportItems!InvoiceID.Value"
    The data referred to by my ReportItems statements are all hidden in the detail row (Advanced Mode, the Hidden Value for the Static Row Group is set to false).
    Problem:
    When I Preview the report in Visual Studio, everything looks as it should - the dynamic header data changes correctly with each group.
    However, whenever I export the results (I've tried all the formats), the header data is the same for every group - its taking the values from the first group and using it in all the groups.
    I've copied the same expressions into my Totals row, and the data is correct when exported; its only happening in my header rows.
    Any help in resolving this is greatly appreciated, thank you.

    Hi Alex,
    According to your description, you have a header with expression contains ReportItems. Now you find it shows incorrect result when exporting to a file. Right?
    In Reporting Services, it has reported some similar issue that the ReportItem returns unexpected result when exporting.  In this scenario, since you just want to show the group name in each page as a header for detail rows. So you can make the
    detail rows group on the Group. Then delete the Group column but still keep the group. After that add a row above detail row (Out side of group) and put in "=Fields!InvoiceID.Value". Now it will show the corresponding Group name
    when you set page break between each group instance. We have tested this case in our local environment. Here are screenshots for your reference:
    Reference:
    SSRS
    field expressions using ReportItem refrences have unexpected results when exporting
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • RE: Dynamically mapping data to widgets

    One quick and dirty solution would be something like this (though not
    terribly efficient):
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);for childWidget in newPanel.children do
    -- check if the childWidget field name matches field name to be
    set
    if childWidget.name.isEqual(source=<..FieldNameToSet..>,
    ignoreCase=TRUE) then
    dataWidget : dataField = dataField(childWidget);
    if dataWidget.textvalue = NIL then
    dataWidget.textvalue = new;
    end if;
    -- set the textvalue of the childWidget to required
    value
    dataWidget.textvalue.setvalue('WORKS !');
    end if;
    end for;
    Your problem would have been directly solved if the Forte library class
    CompoundField provided a SetDataObject( ) method corresponding to the
    GetDataObject( ) method.
    According to Forte Help - "The GetDataObject method returns the object
    that the compound field is mapped to. If the compound field is not
    mapped to an object, this method returns NIL."
    Maybe Forte could consider providing this in a future release.
    Another option would have been to use the GetFieldByName( ) method on
    the newly created panel to get at the child widgets directly.
    According to Forte help - "GetFieldByName is designed for use in dynamic
    applications. For example, you can use GetFieldByName to retrieve the
    names of dynamically created fields for immediate use in dynamic
    applications."
    This works fine for compile-time named widgets, but I couldn't get it to
    work for the newPanel child widgets using the code below, or maybe I am
    missing something here.
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);newPanel.name.setvalue('newPanel');
    newPanel.parent = <aGridField>;
    dataWidget : dataField = dataField(newPanel.getFieldByName('age'));
    (OR)
    dataWidget : dataField =
    dataField(<aGridField>.getFieldByName('newPanel.age'));
    (OR)
    dataWidget : dataField =
    dataField(self.window.getFieldByName('newPanel.age'));
    In all cases the return value was NIL.
    Maybe someone from Forte could shed more light on this.
    Hope this helps.
    Prashant.
    From: Richard Finegan[SMTP:[email protected]]
    Reply To: Richard Finegan
    Sent: Thursday, August 13, 1998 2:27 PM
    To: 'Forte Users Mailing List'
    Subject: Dynamically mapping data to widgets
    Here's what I'm trying to do:
    I have a panel with a bunch of data fields that I've mapped to an
    object.
    I want to replicate the panel several times to programmatically
    populate a
    TabFolder (although the TabFolder bit isn't really relevant here, I
    think).
    But I can't figure out how to get at the mapped data in the replicas
    of my
    object...
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);
    panelCreatedFromWindowWorkshop.anAttributeOfObjMappedToPanel =
    something;
    // tada! "something" appears in a data field of the original panel
    newPanel.? = something; // how to do the same thing with the new
    panel?
    How do I map an object to the replicated panel? I've experimented
    with
    assigning "Widget.AppData" to a new object, but I can't seem to get it
    to
    do anything...
    Thanks in advance for your help.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Michael,
    did you find any solution?
    I've the same problem.

  • Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i

    Hi there -
    I have one interesting requirement in Oracle Forms.
    This is what I wanted to do.
    1. Have a LOV and Go button on Form.
    2. From LOV, I will select a pre-defined custom table and click Go.
    3. Based on the selected custom table, I have to populate the Block (Tabular Format).
    4. User should be able to do update, delete, insert on this block.
    5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
    6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
    You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
    This is what I have planned for this so far but I have some major questions before I can move on with this design:
    1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
    2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
    3. Perform insert, update, delete using PL/SQL package.
    So far it looks okay.
    Now my real question is,
    Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
    Also, I am not really sure whether user will be able to save these "folder" queries?
    Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
    Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
    For more info on that thread see this link...
    Re: setUserCustomizable issue!
    Thanks in advance for the help.

    Any suggestion anyone?

  • 10g Grouping and  Hide Repeating Data

    I need to return a sales rep's accounts assigned to him. But, a customer can have several sub account records,
    because a new transaction will create a new record in the subacct table. Here's the query but it returns
    all of the rows for the customer assigned to the Salesperson and really not a great format.
    All I want is the customer's last record. It would also be great to eliminate any repeating data in columns:ssn
    sb.salesperonid, acctid. It's easier to view the data when there's just 1 ssn, 1 salespersonid,acctid but
    multiple subaccbal balances.
    SELECT sb.ssn,
    sb.salespersonid,
    sb.acctid,
    sb.subacctbal
    FROM subaccbal_current sb,
    sysusr_salesperson1,
    product p
    WHERE sb.subacctbal > 1
    AND sysusr_salesperson1.usrid = sb.salespersonid
    AND sb.prodid = p.prodid (+)
    AND sysusr_salesperson1.usrid = 2007
    order BY sb.ssn,sb.subacctbal
    sb.ssn sb.salespersonid    acctid             subaccbal    
    16x67 2007                8x41                 3840.1447436467236765             southwestern burger
    16x67 2007                8x41                3999.53760824202520962         chips and salsa
    16x67 2007                8x41                   4001.49146206932217968            chips
    31x34 2007                8x47                 3940.7899999999823942          chipotle meal
    31x34 2007                8x47                 4019.660000000200747           coke
    31x34 2007                8x47                 4110.8599999999692953          speakers
    31x34 2007                8x47                 8216.30999999995797296         phone
    31x34 2007                8x47                 8671.1099999999555424           table cloth
    31x34 2007                8x47                 8743.079704290217582865      pickles
    32x76 2007                8x10               117756.91                           juice      
    32x59 2007                1x004               52116.229999999969462937         fish n chip
    32x59 2007                1x004               64675.1499999994542136           paper
    32x59 2007                1x004               64959.1799999998650161           markerss
    33x58 2007                8x37                44334.3858770048316717           paint
    33x58 2007                8x37                45016.1826601808917375           beer
    33x58 2007                8x37                71637.165562261602140981      fruit
    Preferred report format:
    Salesperson:2007
    sb.ssn      acctid             subaccbal    
    16x67      8x41            4001.49146206932217968      chips
    31x34       8x47           8743.079704290217582865       pickles
    32x76       8x10        117756.91                             juice
    32x59       1x004        64959.1799999998650161            markerss
    33x58       8x37          71637.165562261602140981      fruit
    2nd report format:
    sb.ssn sb.salespersonid    acctid             subaccbal    
    16x67 2007                8x41                 3840.1447436467236765             southwestern burger
                                                           3999.53760824202520962         chips and salsa
                                                           4001.49146206932217968            chips
    31x34                        8x47                 3940.7899999999823942          chipotle meal
                                                           4019.660000000200747           coke
                                                           4110.8599999999692953          speakers
                                                            8216.30999999995797296         phone
                                                           8671.1099999999555424           table cloth
                                                           8743.079704290217582865      pickles
    32x76                       8x10              117756.91                           juice      
                                                          52116.229999999969462937         fish n chip
    32x59                                               64675.1499999994542136           paper
                                                          64959.1799999998650161           markerss
    33x58                       8x37                44334.3858770048316717           paint
                                                          45016.1826601808917375           beer
                                                          71637.165562261602140981      fruitthanks for any help.
    Edited by: achtung on Jan 6, 2010 1:12 PM

    Hi,
    Your 'Preferred report format" is an example of a +Top-N Query+ , which you can do using the analytic ROW_NUMBER function:
    {code}
    WITH     got_rnum     AS
         SELECT     sb.ssn,
              sb.salespersonid,
              sb.acctid,
              sb.subacctbal,
              ROW_NUMBER () OVER ( PARTITION BY sb.ssn
                        ORDER BY      sb.subacccbal          DESC
                        ) AS rnum
         FROM subaccbal_current sb,
              sysusr_salesperson1,
              product p
         WHERE      sb.subacctbal               > 1
         AND      sysusr_salesperson1.usrid      = sb.salespersonid
         AND      sb.prodid                = p.prodid (+)
         AND      sysusr_salesperson1.usrid      = 2007
    SELECT     *     -- or list all columns except rnum
    FROM     got_rnum
    WHERE     rnum          = 1
    ORDER BY ssn
    {code}
    This assumes that subaccbal_current.ssn is unique, and that the "last" row for any ssn is the one with the greatest subacctbal.
    Notice that the sub-query got_rnum is just your original query, with one more column in the SELECT clause.
    Output like your "2nd report format" is best done by your front-end tool. If SQL*Plus is your front end, you can use the BREAK command to suppress display of certain columns if the value is the same as the preceding row.
    If you must do it in pure SQL, you can get the ROW_NUMBER like I did above. In the main query, you could use rnum in a CASE expressions to determine whether you show the value or NULL:
    {code}
    SELECT     CASE
              WHEN rnum = 1
              THEN ssn
         END     AS ssn
    {code}
    Edited by: Frank Kulash on Jan 6, 2010 4:31 PM
    Added example of "2nd report format"

  • Bind repeating data to multiple fields

    I am a livecycle numpty and I need some help! I am developing a readonly report. This report is using sample xml for databinding. Within the xml I have a repeating group - example:
    <group>
         <groupItem>
              <addres>parp</address>
         </groupItem>
          <groupItem>
              <addres>parp</address>
    In my report I have two sections that need to reference this repeating data. One section works and the other doesn't. I've read that you can't bind repeating data to multiple fields. How do I get around around this? I can't seem to get the global binding to work (is this purely for user entered data???)
    Please help!
    Cheers,
    Rich

    one way to do this is, in the Initialize event of the field in second repeating section, assign the rawValue from the first repeating section..
    For example..
    initialize event of Field2..
         Field2.rawValue = Field1.rawValue;
    Other way is to read the XML tags and assign the value to the fields..
    You need to loop thru the group element and read each group item value and assign the value to the field..
    Field2.rawValue = xfa.resolveNode("$record.group.groupItem").value; //this command will only read the first occurance of the groupItem value.
    Thanks
    Srini

  • How to create a multipage PDF with same template but dynamically varying data?

    Hello,
    I need to create a multi-page PDF where I need to use the same template but dynamically varying data.
    Eg Scenario:
    1. I have data for 5 material in my ABAP program.
    2. I have a PDF template in SFP which has a 2 page structure.
    3. Based on the number of materials (5 in this case), I need to generate a PDF which will have 10 pages (2 for each material).
    4. the generated PDF should be like the one shown below:
    e.g.  MATERIAL_PDF (pdf name)  
          |  Page1(Mat1[View1].data)
          |  Page2(Mat1[View2].data)
          |  Page3(Mat2[View1].data)
          |  Page4(Mat2[View2].data)
          |  Page5(Mat3[View1].data)
          |  Page6(Mat3[View2].data)
             .. and so on...
    Thanks,
    Aniket

    Isn't it just by setting the two pages into a form ( like an subform in the content ) and put the settings in a proper way?
    There is this setting, that the masterpage comes up everytime the pagecount is done.
    Example
    Page 1 3 5 --> Masterpage 1
    Page 2 4 6 --> Masterpage 2
    And the designview with the flowing data, you can do it by scripting to get to the next page after the pos is finished.
    Unfortunaly I do not got a system atm, so I hope the explaination give you a clue, where to search.
    Regards
    Florian

  • How do i dynamically add data to a JTabel?

    Hey
    How do i add the data to a JTabel dynamically from a HashMap?
    I tried the following:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package test;
    import java.util.HashMap;
    import java.util.ArrayList;
    import java.util.Set;
    import javax.swing.JTable;
    * @author Jesper
    public class Players {
        HashMap<String, Stats> players;
        public Players(){
            players = new HashMap<String, Stats>();
            addPlayer();
        public void addPlayer(){
            players.put("Martin ?rnskov", new Stats(19, 3, 1));
            players.put("Thomas Raun", new Stats(23, 6, 0));
            players.put("Jimmy Mayasi", new Stats(26, 26, 3));
            players.put("Lasse J?rgensen", new Stats(33, 0, 0));
        public JTable showPlayers(){
            String[] columnames = {"Spiller", "Kampe", "M?l", "R?de kort"};
            Object[][] data;
            Set<String> key = players.keySet();
            for(String player : key){
               data = {{player, players.get(player).getMatches(), players.get(player).getGoals(), players.get(player).getRedCards()}};          
            final JTable table = new JTable(data, columnames);
            return table;
    but on this line Netbeans says that variable is allready defined:
       data = {{player, players.get(player).getMatches(), players.get(player).getGoals(), players.get(player).getRedCards()}};          
    I can see the problem is this, but when it cant be done this way, how can i do it then?

    Instead of creating the table directly with data values, use a DefaultTableModel whose constructor is very similar. But DefaultTableModel has interesting method as addRow, removeRow... for dynamically handling data (and visually to table).
    Set<String> keys = players.keySet();
    Object[][] data = new Object[keys.size()][columNames.length];
    for(i=0; i<keys.size(); i++) {
       String key = keys.next();
       data[0] = player;
    data[i][[1] = players.get(player).getMatches();
    data[i][[2] = players.get(player).getGoals();
    data[i][[3] = players.get(player).getRedCards();
    DefaultTableModel model = new DefaultTableModel(data, columNames );
    JTable table = new JTable(model);
    Later in your code, as you want to dynamically update the table, work with the model instead of the table to add , remove, change cell values of the table.
    +PS : your code loop is probably wrong. You are setting data variable for each value of the set. I suppose you want to add a row to data array. data is a two dimension array+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Dynamically read data from a txt document

    I try to dynamically read data from a txt document
    in swf
    stop ();
    var pafh=this;
    import flash.events.*;
    var Araray_id:Array =new Array();
    var v_length:Number;
    var myTextLoader:URLLoader = new URLLoader();
    myTextLoader.dataFormat=URLLoaderDataFormat.VARIABLES;
    myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
    function onLoaded(e:Event):void {
            Araray_id = e.target.data.araray_id.split(",");
            trace("Araray_id: "+Araray_id);
            v_length=Araray_id.length;
            trace("v_length: "+v_length);
            for (var i:Number=0;i<v_length;i++){
                pafh["Id_"+i]=new Array();
                trace("pafh[Id_+i]: "+pafh["Id_"+i]);
                var v_help:Object="id_"+i;
                trace("v_help: "+v_help);
                //pafh["Id_"+i]= e.target.data.v_help.split(",");????? Here stops the script
                //pafh["Id_"+i]= e.target.data.(v_help).split(",");????Here stops the script
                //pafh["Id_"+i]= e.target.data.[v_help].split(","); ????Here stops the script
            play();
    myTextLoader.load(new URLRequest("myText1.txt"));
    in text
    araray_id=aa,bb,cc,dd,ee,ff
    &id_0=aa1,aa2,aa3,aa4
    &id_1=bb1,bb2,bb3,bb4,bb5
    &id_2=cc1,cc2,cc3
    &id_3=dd1,dd2,dd3,dd4,dd5,dd6
    &id_4=ee1,ee2
    &id_5=ff1,ff2
    output
    Araray_id: aa,bb,cc,dd,ee,ff
    v_length: 6
    pafh[Id_+i]:
    v_help: id_0
    TypeError: Error #1010: A term is undefined and has no properties.
        at skuskaceatarraybiforas3fromtext_fla::MainTimeline/onLoaded()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()
    Can you help me with this problem

    More suggestions.
    1. If you align naming conventions between data and your application - reading data could be practically a one-liner.
    If you write pafh["id_" + i] (with small case i) instead of pafh["Id_" + i] (with capital case I) the function can be just:
    function onLoaded(e:Event):void
              for (var prop:String in e.target.data)
                        pafh[prop] = e.target.data[prop].split(",");
              play();
    2. If changing conventions is not feasible, here is another thing you can do:
    function onLoaded(e:Event):void
              for (var prop:String in e.target.data)
                        pafh[prop.replace(/^\w/, String(prop.match(/^\w/)).toUpperCase())] = e.target.data[prop].split(",");
              play();

  • Dynamically passing data into a running while loop from a DAQ assist. in an ouside while loop

    Hello,  I'm currently a student working on a senior project and I'm trying to do a state machine that will turn off and turn on a compressor depending on time and coprocessor failure. 
    In the run state, wich is #1 on the case structure box I placed the DAQ assist.  Which takes in data from an accelerometer.  If the accelerometer's value is above the limit four times it will end the loop or if the time runs out it will end the loop. 
    The problem I am having is that i need to run four compressors.   I was thinking about having four case structures all within the outside loop, but I can only have the DAQ assist in one location.  This means that I now have to move the DAQ assist out of the run loop or run all four compressors in the one case structure.  If i remove the DAQ assist.  I can only get it take in data once when the loop starts and never again.  I understand why, but is there a way to dynamically pass data froma  DAQ assist.  into a running loop? 
    Also on a side note, i can't find a tutorial on how to really create a state machine using Enums.  Does any one know where to find this. 
    I have attached my curent program.
    Thank you for your help,
    Ryan
    Attachments:
    TEST STAND STATE MACHINE 2-28-07.vi ‏288 KB

    in labview choose file->new... then pick standard state machine and there are instructions.
    you can create a custom control and either use an enum, text ring or menu ring.  Edit the values and then save the control and drop into your vi and you can wire this to your case structure
    - James
    Using LV 2012 on Windows 7 64 bit

  • How to dynamically load data from DB in an HTML control present in jsp

    Hi Friends,
    Can anyone help me with this problem:
    I am working on a portal application. My requirement is to dynamically load data in an HTML control present in my JSPs. The controls are combo-boxes, text-fields, list-boxes etc. . Also, the events to load the data are like On Form load, On selecting a value from the combo-box, on clicking on a text-field etc.
    If any one can help me with a code snippet, than that would be highly appreciable. If not then the approach to achieve this will also be helpful.
    Thanks and Regards,
    Gaive.

    Refer
    http://www.developer.com/db/article.php/3384201
    http://www.developer.com/db/article.php/10920_3399331_1

Maybe you are looking for

  • Error while trying to export with Preview:  'unable to convert NSNamedColorSpace System controlColor to Device RGB colorspace'

    When I try to export a PDF with preview, the dialog doesn't show and this error appears in the system log. 11/2/13 2:01:01.684 PM Preview[828]: -[NSRemoteView viewDidMoveToWindow] caught non-fatal NSInternalInconsistencyException 'unable to convert N

  • OIM 11g R1: Recon Archival Utility

    Reference: http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/archival_utilities.htm#CHDJBFEA I am using OIM 11.1.1.5.7. I am trying to archive all the recon events. In the documentation, there is an option to choose all statuses (Closed, linked, ev

  • How can I find out which vi's are dynamic?

    I am working on a project made up of hundreds of VIs. I have to make an standalone executable version of it. I was not the original developer. Is there a way I can scan the vi's to find out which of them are dynamic? What should I be looking for as a

  • Uploading photos from an iphoto album

    Could someone help me with this because it is driving me mad!! I will try and make sense! I am trying to upload my holiday photos onto the truprint website so that i can order some prints. I am having trouble as when you browse to select the photos y

  • Kernal Panic Need Analysing

    Hi, I have the 13-inch Mid 2007 MacBook (running 10.6.7) and recently I'm getting a ton of Kernal Panics. Rember seems to think my RAM is fine. Any help would be appreciated. Thanks in advance, Mr. KernelPanic 1st Fri Apr 29 16:43:55 2011 panic(cpu 1