Dynamically Add Fields?

Hi Guys,
Hopefully someone can point me in the right direct with this and confirm it's achievable?
I have an SQL stored procedure that returns names and their age eg:
Joe    Jon    James   Katy
10      21      14         9
I then use crystal reports an add the fields:
Joe
Jon
James
Katy
to the report  which is then run and displayed as:
Joe    Jon    James   Katy
10      21      14         9
Great works fine. But here comes the tricky bit the name field in the stored procedure is dynamic so today it can contain:
Joe
Jon
James
Katy
But tomorrow can contain
Joe
Jon
James
Katy
Dave
Paul
Fred
If i run the report again these additonal fields arent available.
How can i dynamically insert all fields into the report?  Is it even possible?
Many Thanks for any advice!!!
Slash.

Hi,
I'm not sure that i understand.  The fieldnames are the names of the student eg:
"Jon "    "Paul "     "Katy "
   1             2              3
so Jon is Field1  Paul is Field2 and Katy is Field3  but tomorrow i could have more than 3 fields.
" Jon "     " Paul "     " Katy "   " Steve "
   1             2              3              4
How can i dynamically tell the report that there is an extra field and to include it in the report?
Many Thanks,
Slash.
Edited by: Slash85 on Apr 17, 2009 10:58 AM
Edited by: Slash85 on Apr 17, 2009 11:01 AM

Similar Messages

  • How to dynamically add field name in where clause of select query in web dynpro?

    Hello,
    Can any body tell me how i can use select query with dynamic wheere condition.
    i have a requirement like there are multiple input fields  and i want to select data from two database
    and condition may vary .

    Hi
    In the where clause you need to write like
    WHERE NAME LIKE 'DE%'
    Regards
    Sudheer

  • How to add dynamic jquery fields into DB

    I am using the script from: http://www.coldfusionjedi.com/index.cfm/2009/2/19/Using-jQuery-to-add-form-fields to dynamically add fields to a form.  I am having trouble actually inserting the fields into a DB.  It seems that the field name is the same each time so they just get combined into one variable.  For instance, if field 1 is "John" and they add another person and his name is "Frank" field1 becomes, "John, Frank".
    I have a few more fields then that, so I am unsure how to proceed.  Anyone have any ideas or code samples that have worked for them?  Essentially I am trying to loop through the form and insert each additional field seperately.
    Any ideas?
    Thanks a ton

    Thanks for the help!  I am still stuck as to exactly how this will be done. My form is as follows:
    Type:
    Price:
    Unite:
    Name:
    and users can add another product etc so there will be more fields for each additional product (which all seem to get truncated as a comma seperated list in the form value)
    Here is what I have so far, after the form is submitted:
    <cfloop item="key" collection="#form#">
    <cfquery name="insertnote">
    INSERT INTO Deals (type, price, unit, name) VALUES ('#form.type#', #form.price#, '#form.unit#', '#form.name#'  )
      </cfquery>
    </cfloop>
    I honestly don't use loops like this very often so I apologize for having a lack of understanding.  I know you mentioned making them nested loops but I dont' know how to do it and have it successfully insert the appropriate data.  Everytime I try it doesnt come out right.

  • How to Add fields in dynamic selection LDB BRF

    Hi All,
    I have requirement to add a field BSEG-ZLSCH in Logical Database BRF dynamic selection.
    I have tried doing the same by using below mentioned link but its not appearing in the report dynamic selection screen
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e0039a-0d79-2c10-0aaf-9f6c062c0ffb?quicklink=index&overridelayout=true
    Could you please help me a Legal change delivery is pending due to this issue.
    Thanks and best regards,
    Niteesh Rai

    Dear Niteesh,
    The Logical Data Base BRF reads table BKPF and BSEG, but there is no
    option to include fields from BSEG in the dynamic selection.
    You can display all the tables included in BRF, but only fields from
    BKPF could be included in the dynamic selection. You cannot add
    entries from BSEG, BSET, KNB1, KNBK, and so on that are listed here.
    You are right, there is not note that explains this behaviour, but I
    inform you what is the system design. This has been confirmed by my
    Development colleagues.
    Regarding to note 832997, this is valid for releases 500 and 600 when
    New G/L is available. The system functionality has been enhanced in
    release 500 so you can add fields from FAGLFREESEL that is similar
    to BSEG with New G/L.
    BR, Hana

  • Add field dynamically in ABAP Query Report.

    Hi All,
    Can we add fields dynamically in the ABAP Query Report?
    There is a field in my report which should occupy the line only if it has value. But if we drag-drop the filed in the report it automatically occupy the line though it doesn't have value.
    Thanks in Advance!!!

    hi rohini,
    we can add fields dynamically in the ABAP Query Report,in this way we can to,
    first of all u create ur selection-screen with all the fields and make the field invisible i.e the one which u want to add dynamically. and based on ur requirement change that invisible to visible and use modify screen.
    in this way we can solve.
    search for invisible and modify screen in sdn u can get better information and u can understand what i am saying.

  • How we create dynamic add form field in web form

    How we create dynamic add form field in web form?

    Hi,
    Thanks for reply.
    I need to create a form in which "add more" input field dynamically. For
    example sometime we need field on or more. Please look at the demo, I need
    to create form as per demo in business catalyst:
    http://www.openjs.com/scripts/examples/addfield.php

  • Add Dynamic Input field

    Hi...Experts am new in ABAP Webdynpro. Actually my application is Add Dynamic Input Field in webdynpro. Already One lable, one Input field is there and I add one more button. When I click that button Dynamically Adding same like existing lable and inputfield.Can anyone tel me how to resolve my problem.

    Hi..Yugesh
    U will try this,Definitly Ul get Answer.
    For Dynamically creating Attribute
    DATA : rootnode_info TYPE REF TO if_wd_context_node_info,
    dyn_node_info TYPE REF TO if_wd_context_node_info,
    dyn_node TYPE REF TO if_wd_context_node.
    DATA : dyn_attr_info TYPE wdr_context_attribute_info.
    dyn_attr_info-name = 'NAME'. Attribute Name
    dyn_attr_info-DEFAULT_VALUE = 'Prakash'. +Iam Setting Default value of attribute,u can change as per ur requirement +
    dyn_attr_info-type_name = 'ZDE_NAME' . Data Element(CHAR20) ( Type Of Attribute )
    rootnode_info = wd_context->get_node_info( ).
    CALL METHOD rootnode_info->add_attribute
    EXPORTING
    attribute_info = dyn_attr_info.
    This will create a attribute at run time...
    For Dynamically creating Input Field
    DATA lr_container TYPE REF TO cl_wd_uielement_container.
    DATA lr_input TYPE REF TO cl_wd_input_field.
    DATA lr_table TYPE REF TO cl_wd_table.
    DATA lo_nd_sflight TYPE REF TO if_wd_context_node.
    DATA lr_button TYPE REF TO cl_wd_button.
    DATA lr_grid_data TYPE REF TO cl_wd_grid_data.
    DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
    DATA lr_matrix TYPE REF TO cl_wd_matrix_head_data.
    +Note : Before that change the Layout of ROOTUIELEMENTCONTAINER to MATRIX LAYOUT +
    navigate from <CONTEXT> to <SFLIGHT> via lead selection
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    CALL METHOD cl_wd_input_field=>new_input_field
    EXPORTING
    bind_value = 'NAME' + attribute which i created above+
    id = 'INPUT1'
    RECEIVING
    control = lr_input.
    lr_matrix = cl_wd_matrix_head_data=>new_matrix_head_data( lr_input ).
    lr_input->set_layout_data( lr_matrix ).
    CALL METHOD lr_container->add_child
    EXPORTING
    index = 1
    the_child = lr_input.
    ENDIF.
    Code it in WDDOMODIFYVIEW...

  • Add fields to Standard Purchase Order

    How can I change the standard order data definition. I need to add some fields that are not in the standard po definition.
    Must i add fields to po_headers_xml.
    But i think I also have to change the .xsd file. But how can I change them ?

    Nike,
    That is indeed the way of working but what I find strange is when you download the Standard Purchase order XSL-FO.
    You see that Oracle uses Boilerplate messages to fill up the labels on there PO
    print.
    These messages are hard coded in the procedure for generating the xml that is
    used for filling up the data of the database.
    For my customer it is useful to change the messages (labels) in the database
    and not in the template. Now why does the standard PO support this. It is build
    up with boilerplate messages ! And why can you not use these way of programming
    for your custom messages. Or will be this supported in the future?
    Maybe it is usefull to build up the part where the messages are selected in the
    PO_COMMUNICATION_PVT.POXMLGEN not hard coded but dynamicly. So you can set up
    which messages are used.Alse the part wich language the xml is generated based
    upon the language of the supplier. So that you can do View > Document in PO
    summary screen with the language of the supplier.
    These are the problems I have, it seems logical to me that the way the standard
    PO is presented, it also can be used in customisations.
    But these customisations are not supported.

  • Dynamically adding fields to the form when button pressed

    Hi all,
    In my application, there is a form from which I need to be able to insert data into 7 to 8 tables...
    Creating a view and inserting data into 5 table sis fine but there are 2 table whose structure is as follows.
    server_app_rel : server_id, app_id
    server_jack_rel : server_id, jack_id
    Here each server can have any number of applications and any number of jacks...
    I am not able to create a view ( to create a form on this view).. since the number of appllication and jack columns are not fixed. The user should be able to associate all the applications and jacks to the server in the same form...How can I insert multiple rows into tables from a single form when I dont know how many application and jacks(app/jack columns) the user will associate to the server..
    Also, How can we add fields dynamically to the form?
    Our requirement is by default we have to show only one application field and one jack field in the form..And when the user clicks on 'Add more Jacks' or 'Add more Apps' button, respective fields should appear on the form to add data..( this is like 'Add column' button when we create table)..
    Can someone please give me inputs on how to proceed..Am stuck with this from 2 days..It would be really very helpful if someone can give me atleast the links where i can find this info..
    Thanks,
    Nehal

    Here is what I mean
    http://www.drinknation.com/barbook.php?op=multi

  • Dynamic Text Field Wont Wrap Text

    I have a Dynamic Text field in my movie clip. This text field has embedded fonts and Behavior is set to Multiline.  When I add text to it, it wont display the text that wraps beyond the first line.
    var textField:TextField = tip_txt; // text field inside my movie clip
    trace("before textField.numLines = " + textField.numLines);
    textField.text = "test a verrrrry looooooooong striiiinnnnnnnnnnnggggggg";
    trace("after textField.numLines = " + textField.numLines);
    The trace commands show that the number of lines are increasing but Flash doesn't display the text beyond the first line.  Does anyone have any idea whats going on?
    Thanks!

    textField.autoSize = TextFieldAutoSize.LEFT;
    This fixed the issue : )

  • Dynamic Text Field Scrolling

    I have a dynamic text field that I want to add a UIScrollBar
    to. The dynamic text field has an rssreader attatched to it so it
    is reading from an xml file on the same server. When I attatch it
    and go to preview my movie, it doesn't work. There is just a white
    rectangle on the right side of the box with no arrows or thumb box.
    I can drag my mouse over the text and highlight everything, but I
    cannot get the scrollbar to work at all. I've checked to make sure
    that my scrollbar is connected to my text instance. Is there
    something special about dynamic text that I don't know about? Will
    it only work at runtime?

    I found this:
    http://www.kirupa.com/developer/mx/dynamic_scroller.htm
    I copied the actual scroller and put it in my .fla and it
    worked! Now if I can only figure out links in XML...

  • How to Add field to Selection screen of Tx. FBL5N

    Hi All,
    In Tx. FBL5N, there is a field Customer number (on Customer selection screen).
    In addition to the above we need to add field Customer name in Selection screen.
    How do we go about it ?
    PS :- We have found steps to add fields to FBL5N output. But, we dont want it on output, we want to add it on Selection screen.
    Regards,
    Ashish

    Hi,
    Only certain table fields are allowed in dynamic selection, please see this sap note for detail :
    Sap Note 310886 - Line items: Dynamic selections ignored
    Permitted tables:
    SKA1: all fields
    SKB1: all fields
    BSIS: all fields
    So BKPF-CPUDT field is not allowed for dynamic selection.
    check this thread Add new Fields to Dynamic Selection FBL5n
    Or
    Enhancing Selection Views in the dynamic selection of some SAP transactions like FB03, FBL3N, FBL5N
    This enhancing related to SAP OSS Note: 188663 and 832997
    Requirement: The business requires the Doc. Header Text be added in the dynamic selection in SAP transactions FB03
    ■Execute Transaction code SE36. Click F4. Enter the SAP table name wherein you think the field could be found. In this case the SAP table is BKPF and the logical database is BRF
    ■From the initial screen of SE36, Choose from the path EXTRAS >> Selection Views
    ■Copy Selection View u201CSAPu201D to u201CCUSu201D
    ■Change the selection views u201CCUSu201D
    ■In the right corner, double click your table BKPF.
    ■In the right corner, check whether what functional groups does your field belong. If it is 01 then input it beside your field name.
    ■Then Save it afterwards.
    Prabhudas

  • Autopopulate Dynamic Dropdown Field LC Designer

    I am trying to autopopulate dynamically created dropdown fields within another section of a form.
    Here is what I am trying to do:
    I have a report (home inspection) that is also an estimate for repairs.  I have several section of the report that have a button to add additional items (e.g. Kitchen, Living Room, ect).  The button dynamically adds new items for each area (e.g. Kitchen, Living Room, ect). Code is below, what I want to do is have all of the dynamically created items appear in the estimate section of the report but am not able to figure out the best way to do this.  Basically, all of the items that appear in the report also need to be in the estimate and I need to figure out a way to have the items duplicated from the report to the estimate.  Any help would be greatly appreciated.  Thank you
    <subform name="GoExterior" w="203.2mm" layout="tb">
    <draw name="GoExteriorTextHead" w="64.834mm" h="7.62mm">
    <ui>
    <textEdit/>
    </ui>
    <value>
    <text>General Observations - Exterior</text>
    </value>
    <font size="14pt" typeface="Myriad Pro" baselineShift="0pt"/>
    <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
    <para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
    </draw>
    <subform w="203.2mm" name="ItemsSubFormCrawlSpace" layout="tb">
    <draw name="Text3" w="29.2864mm" h="5.2331mm">
    <ui>
    <textEdit/>
    </ui>
    <value>
    <text>Crawl Space</text>
    </value>
    <font size="12pt" typeface="Myriad Pro" baselineShift="0pt" weight="bold" posture="italic" underline="1"/>
    <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
    <para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
    </draw>
    <subform name="DropdownGOCrawl" w="203.2mm" layout="tb">
    <occur max="-1"/>
    <subform w="203.2mm" name="DDCrawl">
    <keep intact="none"/>
    <field name="DropDownCrawl" w="171.45mm" h="9mm">
    <ui>
    <choiceList textEntry="1">
    <border presence="hidden"/>
    <margin/>
    </choiceList>
    </ui>
    <font typeface="Myriad Pro" weight="bold" size="11pt"/>
    <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
    <para vAlign="middle"/>
    <caption reserve="25mm">
    <para vAlign="middle"/>
    <value>
    <text>Item:</text>
    </value>
    </caption>
    <items save="1">
    <text>Debris was observed at crawl space.</text>
    <text>This structure lacks proper and adequate earthquake retrofitting hardware.</text>
    <text>Anchor bolts at exposed sill plate framing structure are loose and inadequate.</text>
    <text>Existing sewer line is not secured or strapped at crawl space.</text>
    <text>All insulations at crawl space must be faced and secured utilizing wires or staples.</text>
    <text>Sub-floors must have R-19 insulation properly installed.</text>
    <text>Crawl space areas must have minimum 18” overhead clearance.</text>
    <text>There was only one crawl space access panel to the rear addition.  We were unable to inspect the main original crawl space due to lack of access.  We highly recommend providing one access panel for the original structure.</text>
    </items>
    <bind match="none"/>
    </field>
    <subform w="28.575mm" name="DropdownAddGOexterior" relevant="-print" x="174.625mm">
    <field h="6mm" name="AddDropdownGOExterior" w="28.575mm" relevant="-print">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Arial"/>
    <caption>
    <value>
    <text>Add Comment</text>
    </value>
    <para hAlign="center" vAlign="middle"/>
    </caption>
    <border hand="right">
    <edge stroke="raised"/>
    <fill>
    <color value="212,208,200"/>
    </fill>
    <corner/>
    </border>
    <bind match="none"/>
    <event name="event__click" activity="click">
    <script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:182C1B80-8D7F-46A2-B893-6A7B250C972E CRC:1996671831)
    //+ Type: Action
    //+ Result1: AddInstance("$Node2")
    //+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0].CommentFiel d[0]
    //+ Node1: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0].DDCrawl[0]. DropdownAddGOexterior[0].AddDropdownGOExterior[0]
    //+ Condition1: Button("$Node1","click")
    //+ ActionName: AddDropdownGOExterior.click
    this.resolveNode('DropdownGOCrawl._CommentField').addInstance(1);
    if (xfa.host.version &lt; 8) {
    xfa.form.recalculate(1);
    /* This button will Add one instance of the repeating subform or table row.
       sSubformSOM: SOM expression of the repeating subform or table row.
       bCalc:  
    Flag - true if the new instance might be referenced by other calculations, otherwise false.
       message:
    The error message displayed.
       These variables must be assigned for this script to run correctly.
       Replace &lt;value&gt; with the correct value.
    var sSubformSOM = "&lt;value&gt;";
    // Example: var sSubformSOM = "xfa.form.form1.Subform1";
    var bCalc = true;
    // Example: var bCalc = false;
    var message = "You have reached the maximum number of items allowed.";
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
    // Build the SOM expression of the Instance Manager using the 'underscore' syntax.
    var oSubform = xfa.resolveNode(sSubformSOM);
    // Evaluate the SOM expression.
    var sParentSOM = oSubform.parent.somExpression; 
    // Get the parent SOM expression.
    var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
    var oManager = xfa.resolveNode(sManagerSOM);
    // Evaluate the SOM expression.
     var nMaxCount = oManager.occur.max;
    // Get the maximum number of subform occurrences allowed.
    var nSubCount = oManager.count;
    // Get the current number of instances.
    // Proceed if the maximum number of subform occurrences has not been reached.
    if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
    // Invoke the Instance Manager.
    var oNewInstance = oManager.addInstance(1);
    // Fire the form calculations.
    if (bCalc == true) {
    // Execute all the form calculations.
    xfa.form.recalculate(1);
    } else {
    xfa.host.messageBox(message,"Add Item", 3);
    // END OF DO NOT MODIFY
    </script>
    </event>
    <assist>
    <toolTip>Add an item</toolTip>
    </assist>
    </field>
    <margin topInset="2.54mm" bottomInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <occur max="-1"/>
    <?templateDesigner expand 0?></subform>
    <subform w="203.2mm" name="CommentField" layout="tb">
    <field name="CommentFieldCrawl" minH="8.453mm" w="203.2mm">
    <ui>
    <textEdit multiLine="1">
    <border presence="hidden"/>
    <margin/>
    </textEdit>
    </ui>
    <font typeface="Myriad Pro" weight="bold" size="11pt"/>
    <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
    <para vAlign="middle"/>
    <caption reserve="25mm">
    <para vAlign="middle"/>
    <value>
    <text>Comment:</text>
    </value>
    </caption>
    <bind match="none"/>
    </field>
    <occur min="0" max="-1"/>
    <?templateDesigner expand 1?></subform>
    <?templateDesigner expand 1?></subform>
    <margin topInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <subform w="28.575mm" h="11.218mm" name="DropdownAddGOexterior" relevant="-print">
    <field h="6mm" name="AddDropdownGOExterior" w="28.575mm" y="0.138mm" relevant="-print">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Arial"/>
    <caption>
    <value>
    <text>Add Item</text>
    </value>
    <para hAlign="center" vAlign="middle"/>
    </caption>
    <border hand="right">
    <edge stroke="raised"/>
    <fill>
    <color value="212,208,200"/>
    </fill>
    <corner/>
    </border>
    <bind match="none"/>
    <event name="event__click" activity="click">
    <script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:85B19E00-052E-47D6-A49E-4675131292BE CRC:2010014197)
    //+ Type: Action
    //+ Result1: AddInstance("$Node2")
    //+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0]
    //+ Node1: form1[0].Report[0].GoExterior[0].DropdownAddGOexterior[0].AddDropdownGOExterior[0]
    //+ Condition1: Button("$Node1","click")
    //+ ActionName: AddDropdownGOExterior.click
    this.resolveNode('ItemsSubFormCrawlSpace._DropdownGOCrawl').addInstance(1);
    if (xfa.host.version &lt; 8) {
    xfa.form.recalculate(1);
    /* This button will Add one instance of the repeating subform or table row.
       sSubformSOM: SOM expression of the repeating subform or table row.
       bCalc:  
    Flag - true if the new instance might be referenced by other calculations, otherwise false.
       message:
    The error message displayed.
       These variables must be assigned for this script to run correctly.
       Replace &lt;value&gt; with the correct value.
    var sSubformSOM = "&lt;value&gt;";
    // Example: var sSubformSOM = "xfa.form.form1.Subform1";
    var bCalc = true;
    // Example: var bCalc = false;
    var message = "You have reached the maximum number of items allowed.";
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
    // Build the SOM expression of the Instance Manager using the 'underscore' syntax.
    var oSubform = xfa.resolveNode(sSubformSOM);
    // Evaluate the SOM expression.
    var sParentSOM = oSubform.parent.somExpression; 
    // Get the parent SOM expression.
    var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
    var oManager = xfa.resolveNode(sManagerSOM);
    // Evaluate the SOM expression.
     var nMaxCount = oManager.occur.max;
    // Get the maximum number of subform occurrences allowed.
    var nSubCount = oManager.count;
    // Get the current number of instances.
    // Proceed if the maximum number of subform occurrences has not been reached.
    if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
    // Invoke the Instance Manager.
    var oNewInstance = oManager.addInstance(1);
    // Fire the form calculations.
    if (bCalc == true) {
    // Execute all the form calculations.
    xfa.form.recalculate(1);
    } else {
    xfa.host.messageBox(message,"Add Item", 3);
    // END OF DO NOT MODIFY
    </script>
    </event>
    <assist>
    <toolTip>Add an item</toolTip>
    </assist>
    </field>
    <margin topInset="2.54mm" bottomInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <subform w="203.2mm" name="ItemsSubFormDoorsWindows" layout="tb">
    <draw name="Text3" w="1.471014in" h="5.2331mm">
    <ui>
    <textEdit/>
    </ui>
    <value>
    <text>Doors and Windows</text>
    </value>
    <font size="12pt" typeface="Myriad Pro" baselineShift="0pt" weight="bold" posture="italic" underline="1"/>
    <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
    <para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
    </draw>
    <subform name="DropdownGODoors" w="203.2mm" layout="tb">
    <occur max="-1"/>
    <subform w="203.2mm" name="DDCommentBtnDoors">
    <keep intact="none"/>
    <occur max="-1"/>
    <field name="DropDownDroors" w="171.45mm" h="9mm" y="0mm">
    <ui>
    <choiceList textEntry="1">
    <border presence="hidden"/>
    <margin/>
    </choiceList>
    </ui>
    <font typeface="Myriad Pro" weight="bold" size="11pt"/>
    <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
    <para vAlign="middle"/>
    <caption reserve="25mm">
    <para vAlign="middle"/>
    <value>
    <text>Item:</text>
    </value>
    </caption>
    <items save="1">
    <text>Some windows are original single glazed windows which do not operate properly.  Some have been replaced by wooden windows which are not installed properly.</text>
    <text>Existing wooden patio doors are installed with the hinges exposed at exterior which will allow easy access to intruders.  It also does not allow any space for screen doors at exterior.  Special roll in screen doors should be ordered at interior or reverse the</text>
    <text>Out of plumb windows were observed around the dwelling.  Some windows are plumb on one side and out of plumb on the other side.  We believe it is caused by a combination of sloppy workmanship and structural movements.  Since we were unable to access the cra</text>
    <text>We did not perform a wet test at windows due to lack of permission.</text>
    <text>Window and door trims at siding connections are not installed properly.</text>
    <text>Most wooden windows sustain water damage and are inoperable.</text>
    <text>Broken windows were observed at this dwelling.</text>
    <text>Interior use doors were utilized at exterior.</text>
    <text>Rear door to the laundry area is installed with hinges exposed at exterior which will allow easy access to intruders. </text>
    <text>Missing screens were observed at existing windows.</text>
    </items>
    </field>
    <subform w="203.2mm" name="DropdownAddGOexterior" relevant="-print" y="0mm">
    <field h="6mm" name="AddDropdownGOExterior" w="28.575mm" relevant="-print" x="174.625mm" y="0mm">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Arial"/>
    <caption>
    <value>
    <text>Add Comment</text>
    </value>
    <para hAlign="center" vAlign="middle"/>
    </caption>
    <border hand="right">
    <edge stroke="raised"/>
    <fill>
    <color value="212,208,200"/>
    </fill>
    <corner/>
    </border>
    <bind match="none"/>
    <event name="event__click" activity="click">
    <script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:DA5FCB9C-4F98-4657-9C14-49E032341848 CRC:3943787667)
    //+ Type: Action
    //+ Result1: AddInstance("$Node2")
    //+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0].CommentFi eld[0]
    //+ Node1: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0].DDComment BtnDoors[0].DropdownAddGOexterior[0].AddDropdownGOExterior[0]
    //+ Condition1: Button("$Node1","click")
    //+ ActionName: AddDropdownGOExterior.click
    this.resolveNode('DropdownGODoors._CommentField').addInstance(1);
    if (xfa.host.version &lt; 8) {
    xfa.form.recalculate(1);
    /* This button will Add one instance of the repeating subform or table row.
       sSubformSOM: SOM expression of the repeating subform or table row.
       bCalc:  
    Flag - true if the new instance might be referenced by other calculations, otherwise false.
       message:
    The error message displayed.
       These variables must be assigned for this script to run correctly.
       Replace &lt;value&gt; with the correct value.
    var sSubformSOM = "&lt;value&gt;";
    // Example: var sSubformSOM = "xfa.form.form1.Subform1";
    var bCalc = true;
    // Example: var bCalc = false;
    var message = "You have reached the maximum number of items allowed.";
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
    // Build the SOM expression of the Instance Manager using the 'underscore' syntax.
    var oSubform = xfa.resolveNode(sSubformSOM);
    // Evaluate the SOM expression.
    var sParentSOM = oSubform.parent.somExpression; 
    // Get the parent SOM expression.
    var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
    var oManager = xfa.resolveNode(sManagerSOM);
    // Evaluate the SOM expression.
     var nMaxCount = oManager.occur.max;
    // Get the maximum number of subform occurrences allowed.
    var nSubCount = oManager.count;
    // Get the current number of instances.
    // Proceed if the maximum number of subform occurrences has not been reached.
    if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
    // Invoke the Instance Manager.
    var oNewInstance = oManager.addInstance(1);
    // Fire the form calculations.
    if (bCalc == true) {
    // Execute all the form calculations.
    xfa.form.recalculate(1);
    } else {
    xfa.host.messageBox(message,"Add Item", 3);
    // END OF DO NOT MODIFY
    </script>
    </event>
    <assist>
    <toolTip>Add an item</toolTip>
    </assist>
    </field>
    <margin topInset="2.54mm" bottomInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <?templateDesigner expand 1?></subform>
    <subform w="203.2mm" name="CommentField" layout="tb">
    <field name="CommentField" minH="8.453mm" w="203.2mm">
    <ui>
    <textEdit multiLine="1">
    <border presence="hidden"/>
    <margin/>
    </textEdit>
    </ui>
    <font typeface="Myriad Pro" weight="bold" size="11pt"/>
    <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
    <para vAlign="middle"/>
    <caption reserve="25mm">
    <para vAlign="middle"/>
    <value>
    <text>Comment</text>
    </value>
    </caption>
    </field>
    <occur max="-1" min="0"/>
    <?templateDesigner expand 0?></subform>
    <?templateDesigner expand 1?></subform>
    <?templateDesigner expand 0?></subform>
    <subform w="28.575mm" h="11.218mm" name="DropdownAddGOexterior" relevant="-print">
    <field h="6mm" name="AddDropdownGOExterior" w="28.575mm" y="0.138mm" relevant="-print">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Arial"/>
    <caption>
    <value>
    <text>Add Item</text>
    </value>
    <para hAlign="center" vAlign="middle"/>
    </caption>
    <border hand="right">
    <edge stroke="raised"/>
    <fill>
    <color value="212,208,200"/>
    </fill>
    <corner/>
    </border>
    <bind match="none"/>
    <event name="event__click" activity="click">
    <script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:23EFDB6C-2F4B-4F54-A6AC-CD20621C6CE2 CRC:1796082201)
    //+ Type: Action
    //+ Result1: AddInstance("$Node2")
    //+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0]
    //+ Node1: form1[0].Report[0].GoExterior[0].DropdownAddGOexterior[1].AddDropdownGOExterior[0]
    //+ Condition1: Button("$Node1","click")
    //+ ActionName: AddDropdownGOExterior.click
    this.resolveNode('ItemsSubFormDoorsWindows._DropdownGODoors').addInstance(1);
    if (xfa.host.version &lt; 8) {
    xfa.form.recalculate(1);
    /* This button will Add one instance of the repeating subform or table row.
       sSubformSOM: SOM expression of the repeating subform or table row.
       bCalc:  
    Flag - true if the new instance might be referenced by other calculations, otherwise false.
       message:
    The error message displayed.
       These variables must be assigned for this script to run correctly.
       Replace &lt;value&gt; with the correct value.
    var sSubformSOM = "&lt;value&gt;";
    // Example: var sSubformSOM = "xfa.form.form1.Subform1";
    var bCalc = true;
    // Example: var bCalc = false;
    var message = "You have reached the maximum number of items allowed.";
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
    // Build the SOM expression of the Instance Manager using the 'underscore' syntax.
    var oSubform = xfa.resolveNode(sSubformSOM);
    // Evaluate the SOM expression.
    var sParentSOM = oSubform.parent.somExpression; 
    // Get the parent SOM expression.
    var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
    var oManager = xfa.resolveNode(sManagerSOM);
    // Evaluate the SOM expression.
     var nMaxCount = oManager.occur.max;
    // Get the maximum number of subform occurrences allowed.
    var nSubCount = oManager.count;
    // Get the current number of instances.
    // Proceed if the maximum number of subform occurrences has not been reached.
    if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
    // Invoke the Instance Manager.
    var oNewInstance = oManager.addInstance(1);
    // Fire the form calculations.
    if (bCalc == true) {
    // Execute all the form calculations.
    xfa.form.recalculate(1);
    } else {
    xfa.host.messageBox(message,"Add Item", 3);
    // END OF DO NOT MODIFY
    </script>
    </event>
    <assist>
    <toolTip>Add an item</toolTip>
    </assist>
    </field>
    <margin topInset="2.54mm" bottomInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <subform w="203.2mm" name="ItemsSubFormDriveWay" layout="tb">
    <draw name="Text3" w="29.2864mm" h="5.2331mm">
    <ui>
    <textEdit/>
    </ui>
    <value>

    Hi guys,
    I don't think, that it is possible to change the values of the dropdown by changing only the xml-file.
    I found another solution:
    1. open the form in Acrobat Pro
    2. select in the menu bar Form->Manage Form Data->Import Data
    3. choose your current xml-file
    4. save the form
    Now the values are available.
    To change the values, you have to repeat these 4 steps with a new xml-file.
    regards
    Martin

  • Dynamically add an in memory Bitmap to a List

    I'm trying to dynamically add an in memory Bitmap to a List
    control. I'm trying to create a thumbnail
    from a larger bmp image and display the thumbnail in the
    list. The thumbnail images are being created ok
    but the bitmaps are not displaying in the List control. The
    code I'm using is shown below. Apparently I can't
    use a collection of bitmaps in the List. Previously I had a
    collection of pathnames as strings that pointed to
    jpgs on disk and it displayed ok. Does anyone know how I can
    get the Bitmaps to display?
    <mx:List id="fileList" x="10"y="10" width="231"
    height="648" rowHeight="160" columnWidth="120 enabled="true"
    click="loadImage()" itemRenderer="mx.controls.Image"
    dataProvider="{myProvider}"></mx:List>
    public var anArray:Array = new Array();
    public var myProvider:ArrayCollection = new
    ArrayCollection(anArray);
    var thumbnail:Bitmap = new Bitmap(new
    BitmapData(thumbSize,thumbSize,true,0));
    thumbnail.bitmapData.draw(bmp,matrix);
    myProvider.addItem(thumbnail);

    without looking at what tables you are using and and how you built the query this is what I can think of:
    Please write this in record processing section:
    fields material/stock/req are the running variables in meaning database field names.
    lv_ava is the new field that needs to be created.
    data lv_stock type INSME.
    data lv_req type insme.
    at new material.
      lv_stock = stock.
      clear :lv_req, req.
    end at.
      lv_req = lv_req + req.
      lv_ava = stock-lv_req.

  • Adding a progress loader to a dynamic text field / scrollPane

    I have a dynamic text field which is loading images from an external html.  This text is named scrollPaneImage and is a child of a movieClip called scrollPaneContent.  I then load scrollPaneContent into a scroll pane named scrollPane
    When the user interacts with my swf different images are loaded into scrollPaneImage.  Since some of the images take a few seconds to load, I'd like there to be a progress loader displayed in the scrollpane.
    I have tried adding the progress event listner to the dynamic text, the movie clip and the scrollpane and cannot get it to respond or track the loading.
    scrollPaneContent.addEventListener(ProgressEvent.PROGRESS,reportProgress);
    function reportProgress(e:ProgressEvent):void {
        trace(e.bytesLoaded + " loaded out of " + e.bytesTotal);
         trace("LOADED");
    Can anyone suggest what I might be doing wrong or of another approach?
    thanks in advance,
    Josh

    Hi KGLAD.  Thanks for the response.  Yes my code is a little messy.  Here I have included everything and tried to do a little cleaning.  Is there enough code here for you to get an idea of how/when things are firing?
    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    import com.distriqt.gmaps.kml.utils.*;
    import com.greensock.*;
    import com.greensock.easing.*;
    import com.greensock.TweenLite;
    import flash.geom.Point;
    import com.greensock.plugins.*;
    TweenPlugin.activate([AutoAlphaPlugin]);
    import com.google.maps.controls.NavigationControl;
    import com.google.maps.controls.MapTypeControl;
    import com.google.maps.controls.OverviewMapControl;
    import com.google.maps.overlays.GroundOverlay;
    import com.google.maps.overlays.GroundOverlayOptions;
    import com.google.maps.LatLng;
    import com.google.maps.LatLngBounds;
    import com.google.maps.MapMouseEvent;
    import com.google.maps.controls.*;
    import com.google.maps.overlays.Marker;
    import com.google.maps.InfoWindowOptions;
    import com.google.maps.overlays.MarkerOptions;
    import com.anttikupila.utils.JPGSizeExtractor;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.net.URLLoader;
    import fl.controls.UIScrollBar;
    import flash.events.Event;
    import fl.events.ScrollEvent;
    import flash.sampler.NewObjectSample;
    [Embed(source="ICONS/PHOTO_BLACK.png")]var photoIcon:Class;
    [Embed(source="ICONS/BLOG_BLACK.png")]var blogIcon:Class;
    scrollPane
    // GMAP PARAMETERS
    var map:Map = new Map();
    map.key = "map key";
    //map.key = "api key";
    //define the size of the map extent....
    map.sensor = "false";
    map.setSize(new Point(stage.stageWidth, stage.stageHeight));
    map.addEventListener(MapEvent.MAP_READY, onMapReady);
    map.addEventListener(MapEvent.MAP_READY, createmarkers);
    map.addEventListener(MapEvent.MAP_READY, createMarkerArrays);
    map.addEventListener(MapEvent.MAP_READY, createPhotoPingers);
    this.addChild(map);
    map.setSize(new Point(stage.stageWidth, stage.stageHeight));
    //on map ready params
    function onMapReady(event:Event):void
    map.setCenter(new LatLng(48,-113.5), 8, MapType.PHYSICAL_MAP_TYPE);
    map.enableScrollWheelZoom();
    map.disableContinuousZoom();
    //Marker options for a photo piece
    var photoMarkerOptions:MarkerOptions = new MarkerOptions();
    photoMarkerOptions.icon = new photoIcon();
    photoMarkerOptions.hasShadow=false;
    //Marker options for a blog piece
    var blogMarkerOptions:MarkerOptions = new MarkerOptions();
    blogMarkerOptions.icon = new photoIcon();
    blogMarkerOptions.hasShadow=false;
    //load xml tester
    var pntloader:URLLoader = new URLLoader();
    var pntxml:XML = new XML();
    pntloader.addEventListener(Event.COMPLETE, loadpntXML);
    pntloader.load(new URLRequest("map_feed.xml"));
    // create an array of jpgs to index
    var JPGIndexArray:Array = new Array();
    //Create array that will be populated with points
    var pointsArray:Array = new Array();
    //Load the XML
    function loadpntXML(e:Event):void {
        pntxml=new XML(e.target.data);
        pntxml.ignoreWhite = true;
         for (var i:int = 0; i< pntxml.row.length(); i++){
         pointsArray[i]="mrk"+i;
         JPGIndexArray[i]="JPG"+i;
         //trace(pntxml);
    //Create the markers and add them to the map
    function createmarkers(event:Event):void
         for (var i:Number = 0; i < pntxml.row.length(); i++) {
         var markerOptions:MarkerOptions = new MarkerOptions();
          if (pntxml.row[i].TYPE=="PHOTO")
               markerOptions.icon = new photoIcon();
               markerOptions.tooltip = "Photo";
               markerOptions.hasShadow=false;
          else if(pntxml.row[i].TYPE=="BLOG")
               markerOptions.icon = new blogIcon();
               markerOptions.tooltip = "Blog Entry";
               markerOptions.hasShadow=false;
          else
               null     
          pointsArray[i] = new Marker(new LatLng(pntxml.row[i].LAT,pntxml.row[i].LONG),markerOptions);
         markerA.push(pointsArray[i]);
          map.addOverlay(pointsArray[i]);
          pointsArray[i].addEventListener(MapMouseEvent.CLICK,indexCalledMarkerRecord);
          pointsArray[i].addEventListener(MapMouseEvent.CLICK,scrollPanePopulate);
    // PING PHOTO DIMENSIONS BEFORE LOADING //
    var je : JPGSizeExtractor = new JPGSizeExtractor( );
    je.addEventListener( JPGSizeExtractor.PARSE_COMPLETE, jeLoadHandler );
    je.addEventListener( JPGSizeExtractor.PARSE_FAILED, jeParseFailed );
    function createPhotoPingers(event:Event):void{
         for (var k:Number=0; k <pntxml.row.length(); k++){
         JPGIndexArray[k]=new JPGSizeExtractor();
         JPGIndexArray[k].debug = false;
         JPGIndexArray[k].addEventListener(JPGSizeExtractor.PARSE_COMPLETE, jeLoadHandler );
         trace("madeit");
         pingPhotoUrls();
    function pingPhotoUrls():void
         for (var i:Number = 0; i < pntxml.row.length(); i++) {     
          var calledMarkerUrl=pntxml.row[i].URL_OF_CONTENT;
          JPGIndexArray[i].extractSize(calledMarkerUrl);     
    var JPG1=null;
    function jeLoadHandler(e:Event) : void {
         trace(e.currentTarget.width + "x" + e.currentTarget.height );
         imageWidths.push(e.currentTarget.width);
    function jeParseFailed( event : Event ) : void {
         trace( "Parse failed" );
    var imageWidths = new Array;
    // FUNCTIONS FOR INDEXING CALLED MARKERS//
    //Create blank array for use in indexing
    var markerA:Array=[];
    //VAR FOR USE IN INDEXING CALLED MARKER
    var pointindex=null;
    //INDEX CALLED MARKER POINT XML RECORD
    function indexCalledMarkerRecord(e:MapMouseEvent):void{
         pointindex=genIndexPos(markerA,Marker(e.currentTarget));
         //trace(pntxml.row[pointindex].DESC);
    //FUNCTION FOR INDEXING CALLED MARKER
    function genIndexPos(a:Array,e:Marker):uint{
         for(var i:uint=0;i<a.length;i++){
              if(a[i]==e){
                   return i;               
                   return null;
    //           SCROLLPANE FUNCTIONS              //
    this.addChild(scrollPane);
    scrollPane.setSize(255,300);
    scrollPane.x=-200;
    scrollPane.y=-200;
    scrollPane.alpha=0;
    scrollPaneContent.mouseEnabled=false;
    spHeader.closeBox.addEventListener(MouseEvent.CLICK, function(eMouseEvent):void
                                                                TweenLite.to(scrollPane, .5,{autoAlpha:0,overwrite:true});                                                            
    spHeader.forDrag.addEventListener(MouseEvent.MOUSE_DOWN, function (e:MouseEvent):void
              scrollPane.startDrag();          
    spHeader.forDrag.addEventListener(MouseEvent.MOUSE_UP, function (e:MouseEvent):void
              scrollPane.stopDrag();
    spHeader.forDrag.buttonMode=true;
    spHeader.forDrag.useHandCursor=true;
    spHeader.width=300;
    scrollPane.source = scrollPaneContent;
    scrollPaneContent.scrollPaneText.autoSize='left';
    scrollPaneContent.scrollPaneImage.autoSize='center';
    scrollPaneContent.scrollPaneImage.autoSize=TextFieldAutoSize.CENTER;
    scrollPaneContent.mouseEnabled=false;
    scrollPaneContent.scrollPaneText.condenseWhite = true;
    // Add listener.
    scrollPane.addEventListener(Event.COMPLETE, completeListener);
    scrollPaneContent.addEventListener(ProgressEvent.PROGRESS,reportProgress);
    function completeListener(event:Event):void {
    trace('Scrollpane content loaded');
    function reportProgress(e:ProgressEvent):void {
        trace(e.bytesLoaded + " loaded out of " + e.bytesTotal);
        trace("LOADED");
    function scrollPanePopulate(event:Event){     
         //show scroll pane
         scrollPane.x=33;
         scrollPane.y=33;
         TweenLite.to(scrollPane, .5,{autoAlpha:1,overwrite:true});
         TweenLite.to(spHeader, .5,{autoAlpha:1,overwrite:true});
         //create the temp variables
         var calledMarkerIndex=pntxml.row[pointindex].ID;
         var calledMarkerDate=pntxml.row[pointindex].DATE;
         var calledMarkerDescription=pntxml.row[pointindex].DESC;
         var calledMarkerContent=pntxml.row[pointindex].URL_OF_CONTENT;     
         var imgWidth=JPGIndexArray[pointindex].width;
         var imgHeight=JPGIndexArray[pointindex].height;
         scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription;
         var imgBoxHeight=scrollPaneContent.scrollPaneImage.height;
        var txtHeight=scrollPaneContent.scrollPaneText.height;
        var contentHeight=(imgBoxHeight+txtHeight);
        scrollPane.setSize(300,(contentHeight+15));     
         //size the text box
         scrollPaneContent.scrollPaneText.width=270;
         //if image is wide or tall, scale accordingly and create a string that will be used
         if(imgWidth>=imgHeight){          
              var imgSource:String = "<img src="+"'"+calledMarkerContent+"'"+"width='"+250+"'"+"height='"+150+"'"+"/>";                    
              var calledImgHgh=160;          
         else
              var imgSource:String = "<img src="+"'"+calledMarkerContent+"'"+"width='"+110+"'"+"height='"+167+"'"+"/>";          
              var calledImgHgh=177;          
         //fill in the text
         scrollPaneContent.scrollPaneImage.htmlText=imgSource;
         //scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription;     
         //pan the map to the called position
         map.panTo(pointsArray[calledMarkerIndex-1].getLatLng())
         //add the header to the SP and scale accordingly
         scrollPane.addChild(spHeader);
         spHeader.x=-1;
         spHeader.y=1;
         spHeader.width=299;
         if (txtHeight>=250){          
              scrollPane.setSize(300,275);          
              scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription+"<br><br>";
         if (txtHeight<=5){
              scrollPane.setSize(300,200);
              scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription;
         if (txtHeight>=5){
              scrollPane.setSize(300,275);
              scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription+"<br><br>";
         // CREATE TEMP VARIABLES FOR POSITIONING AND PLACE DYNAMIC TEXT
         var scTextY=scrollPaneContent.scrollPaneText.y;
         var scImageY=scrollPaneContent.scrollPaneImage.y;
         var scTextHeight=scrollPaneContent.scrollPaneText.height;
         scrollPaneContent.scrollPaneText.y=scImageY+calledImgHgh;
         //update the scrollpane and reset the scrollbar
         scrollPane.update();
         scrollPane.verticalScrollPosition=(0);
         scrollPane.verticalScrollBar.height=270;
         scrollPane.verticalScrollBar.x=281;
         scrollPane.verticalScrollBar.y=3;
    spHeader.alpha=0;
    this.addChild(spHeader);
    var photoMarkersArray=new Array();
    var photoMarkersIndexArray=new Array();
    //CREATE ARRAY OF PHOTO MARKERS
    function createMarkerArrays(e:Event):void{
    for (var j:int=0; j<pntxml.row.(TYPE=="PHOTO").ID.length(); j++){
              var tempMarkerIndex=pntxml.row.(TYPE=="PHOTO").ID[j];
              var tempMarkerRef="mrk"+tempMarkerIndex;
              photoMarkersArray.push(tempMarkerRef);
              photoMarkersIndexArray.push(tempMarkerIndex);

Maybe you are looking for