Open ended data structure for retrieving SQL data

I have a flex project that reads data from a database and
sends it to my flex app to display in a chart. I need to do this in
Actionscript since I have to dynamically create different charts
based on the database definitions. Up til now, I have inserted the
data for each series into a separate
ArrayList(java)/ArrayCollection(flex) in this way:
BindingUtils.bindProperty(lineSeries, "dataProvider", series,
"pointList");
lineSeries.xField="point1";
lineSeries.yField="point2";
The series variable is a custom Actionscript/Java object
which contains an ArrayCollection called pointList. And the array
is made up of custom DataObjects with two fields, point1 &
point2.
But in the new paradigm, I'd basically like to create a big
array of arrays similar to a database table and then just point the
xField to one column, and the yField to another column. Anyway, it
seems like the problem is that my point1 and point2 in the current
implementation are variable names, but with this new dynamic
structure, I won't be able to create variables on the fly. So how
do I let flex know to look at column 3, for example for the yField?
The attached code is from the Flex documentation and is an example
of what I'd like to emulate (except I need to do it in
actionscript). I'd like to be able to select "month" or "amount",
etc. But coming from the Java side, there is no way for me to name
the array contained in each column.

I guess I wasn't clear enough. I am actually serializing a
java object and mapping it to an actionscript object via blazeDS. I
know about how the objects translate, for example for
ArrayCollections in flex, I use ArrayLists in java. The problem is
that I'm not sure how to get the associative aspects of the arrays
in flex into my java data structures in a way that will translate
to the way flex can define arrays, such as Month:"January".
It seems that in flex, you can create an Array and assign it
an element like {month:"January", amount:"450"} and it will create
an Object with variables for month and amount. But I don't know how
to do this on the fly in Java (or in Actionscript for that matter)
when I have no way of knowing beforehand how many variables my
object will need. Each series will need an x and y, though usually
the x will be dates which are the same for each series. So if I had
10 series sharing an axis, I'd need 11 variables in my object-
date, series1, series 2...series 10.

Similar Messages

  • Sql queries for retrieving setups data for functional modules

    Hi,
    Can anyone give me the sql queries for retrieving setups data for functional modules (GL, AP, AR, FA, and CM) from Database.

    Hi,
    Can anyone give me the sql queries for retrieving setups data for functional modules (GL, AP, AR, FA, and CM) from Database.

  • Report for Validity Start and End Date in PO

    Dear All
    Is there any report where I can get PO validity start and end date which user input in addtional data header tab of PO?
    Regards
    Satish Kumar

    Hi,
    Yes, It is available standard report using T-code ME2N - Purchasing Document (PO) Per Document Number, enter the T-code and provide the following input data's are as follows.
    Scope of List                 :  ALV ( for Ms-Excel format report)
    Plant                               :   __________ to __________ (if required)
    Document Date              : ____________ to ___________ (if Required)
    Execute the report shown by default in excel format and if required PO validity start and end data, you have to select Change Layout button and open new window options screen right side field option as Validity Per.Start, Validity Period End, Commutative number field data's are selected and click <--- arrow button and then click bottom tick marked button. Now, the report shown your requirement.
    Hope, it is useful for you,
    Regards,
    K.Rajendran

  • Bapi/function module to get opening or closing stock for a posting date

    I am creating a report where i need to get the opening stock value and closing stock value  for the given starting date and ending date respectively for the PP report.
    The T-code for that is MB5B.
    So,can any1 plzz tell me how i can get the stock value for a starting date/ending date...
    Is there any BAPI or function module to find this out..
    or any logic?
    Thanks.

    Hi Kiran,
    You would like to findout opening and closing stock of a particular period and of a particular period....
    If we would like to findout opening and closing stock of material A as of 18 / 8 / 2008,
    then do like this.
    go to MBEW table .. there u get opening stock as on today. Today the date is 20/8/2008. from today's opening stock if we add / subtract the movements which have happened on 19/8/2008 and 18/8/2008 u'll get opening and closing stock as on 18/8/2008.
    U get the movements from MKPF ( material doc header) and MSEG (material doc item ) based on posting date. In MSEG u get movement type.
    If the movement type is 101, it means the stock is added.
    If the movement type is 102, it means the added stock is reversed.
    from today's opening stock deduct the stock with moverment type 101 and add the stock with movement type 102.
    This will give u opening stock as on 18/8/2008.
    To get closing stock of 18/8/2008 ..... the opening stock of 19/8/2008 is 18/8/2008's closing stock.

  • Default Data Server for Hypersonic SQL in ODI 11g

    Hi All,
    I installed ODI 11g 11.1.1.6.0 for Win 7 with 10g DB R2 and WLS 10.3.5 successfully without any issues.
    Created DEV_ODI_REPO Repository also without any issues.
    Created Master Repository snpm1 and Work Repository as snpw1.
    Created the Agents (Physical and Logical) and tested successfully.
    Created the data servers for respective technologies
    1) Technology Oracle -
        Data Server - ORACLE_ORCL_LOCAL 
        Physical Schemas - SALES_DEV & SALES_PROD and
        Logical Schema as ORACLE_ORCL_LOCAL_SALES
    2) Technology FILE -
        Data Server - FILE_GENERIC
        Physical Schema - FILE_GENERIC.E:/oracle/Middleware/Oracle_ODI1/oracledi/demo/file
        Logical Schema - FILE_DEMO_SRC
    3) Technology - XML
         Data Server - XML FILE
         Physical Schema - GEO_D
        Logical Schema - GEO_DIM
    4) Technology - Hypersonic SQL
         Data Server - HSQL   (Is this the correct name or some other name is recommended ? )
         Physical Schema - HSQL_LOCALHOST_20001_Default and HSQL_LOCALHOST_20001_Default
        Logical Schema - HSQL_DEMO_SRC and HSQL_DEMO_TARG
    All the Mappings are done properly using Development & Production context for Physical and Logical Schemas.
    I am able to create the Models for Oracle, FIle and XML with successful Reverse Engineering (standard with development context )
    with all the data displayed correctly.
    The issue starts here
    The Main issue is for Hypersonic SQL where I am not able to get the Reverse Engineering.
    Technology - Hypersonic SQL  I have defined the data server as HSQL
    Is this correct data server or some other name for data server is suggested ?
    I am able to start the startdemo.bat file successfully opening the 3 dos prompt windows as
    a) Oracle DI Demo - Repository Server
    b) Oracle DI Demo - Source Server
    c) Oracle DI Demo - Target Server
    Later I make  entries on the JDBC tab od HSQL - Data Server as
    JDBC Driver : org.hsqldb.jdbc.JDBCDriver
    JDBC Url : jdbc:hsqldb:hsql://localhost
    Test Connection - ok with successful connection.
    Prior to this I already run the script created schemas and inserted data to the SRC_ tables in my 10g Database as
    ORDERS - containing the Tables as SRC_CITY, SRC_CUSTOMER, SRC_PRODUCT, SRC_REGION.....
    In the Designer I create a new Model as HSQL_SRC
    Technology - Hypersonic SQL
    Logical Schema - HSQL_DEMO_SRC as defined earlier in logical schema.
    Reverse Engineer Tab - Selected as Standard   Context selected as Development from drop down list.
    When I right click on HSQL_SRC model for reverse engineer, it executes, however it does not display any tables inserted
    as shown for ORDERS Schema.
    Please correct me where I am wrong in giving the name for data server ? or some other place.
    Thanks
    Ajaz

    Hi,
    according to docs
    http://docs.oracle.com/cd/E23943_01/integrate.1111/e12644/hypersonic_sql.htm#ODIKM590
    i see
    JDBC Driver: org.hsqldb.jdbcDriver
    JDBC URL: jdbc:hsqldb:hsql://<host>:<port>
    could you modify
    JDBC Driver : org.hsqldb.jdbc.JDBCDriver
    JDBC Url : jdbc:hsqldb:hsql://localhost
    according to docs?
    Thanks

  • BAPI Contract, input structure for "Contract data" ?

    Hi All,
    I am trying to create contract using BAPI:BAPI_CONTRACT_CREATEFROMDATA. But I am not able to find the structure to fill Header tab "Contract data" like
    - contract start date
    - contract end date
    - Val.period.category
    - Contractval.period and soo on ?
    Could anyone kindly help..as to how these data could be uploaded ?
    Thanks,
    Kushi

    Hi Kushi
    Try these links
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    bapis
    http://www.planetsap.com/list_all_bapis.htm
    BTW, are you the same Kushi I think you are? Did you do your ABAP certification in Hyd in Aug'05? Just asking as I had a class mate with the same name
    If you find my answer useful, please reward me for the same.
    Good luck
    Karthik Potharaju

  • Validity End Date for A012 relation not updated

    Hi All,
    I am working on SRM5.0 and the HR org structure is replicated from ECC to SRM via idocs. Now, for one particular user, who holds position in 2 org units, the HRP1001 table data is incorrect.
    For one of the relations A012 between S-O, the end date shown is in the past. I checked the ECC tables for this employee and the A012 relation is valid till 31/12/9999. But, in the SRM system, this date does not get updated.
    Due to this employee is not shown as an approver for that particular org unit.
    Does anyone know how I can update this date?
    Regards,
    Ancy

    One of the Org unit is under the other org unit. So, I updated the position with the relation to the higher org unit only. So in the SRM system, by default, the supervisor for this org unit is the supervisor for the lower org unit too, unless there is a new supervisor for the lower org unit.

  • Addition of  Start & end date fields in the View 'My team's open leads' .

    Dear all,
                 I want to add Lead Sart date & Expected  End date in the personalize list of view 'My team's open Leads' in the Overview page of Lead management
      I tried it by changing the field name in PDVField as                                           LEAD_DATE_START/visibility=false ' for start date in the detailed view of I view ' 'My team's open leads'.But it is not reflecting in Personalize list of fields.
    Can any body give solution to this ASAP as it is high priority requirement.
    Maximum points would be rewarded for solution.
    Regards,
    Basavaraj V.Patil

    Hi,
    I have a similar problem.  There appear to be some configurable attributes in the iview such as 'PDVField' and 'Column'. The PDVField attribute contains values such as 'QUAL_LEVEL_MAN_TXT/visibility=true'. When running the iview, this field is visible. However when I change this setting to false, the field is still visible. There is a PDVCachingOn field and this I have set to false however this also seems to make no difference.
    Regarding the 'column' field, I have no idea what can be done here as the initial value is blank.
    The suggestion in the post above requires customising the standard iView. That may be the case, but clearly the purpose of these 'configurable' attributes does not seem to be very clear.
    Mr.T

  • To implement a hash structure for multidimensional data

    hi
    I have to implement a hash structure (multidimensional data) i.e., like
    a Grid file. I have to find data points in the given range of the grid file.
    Any one could help me ....
    Thanks

    hello
    Thanks for your quick reply and sorry for the bad
    explanation. What I meant was a 2-dimensional graphI'm still not sure I know what you're after. I assume what you're saying here is that you have a collection of vertices and edges, and they all lie in the same plane. Is that right?
    which was divided into some fragments.So, does this mean you have a collection of subgraphs of your main graph?
    We can insert
    some points dynamically, based on their coordinate
    axes, into one of the fragments.And here do you mean that you have some rule that allows you to add another vertex and associated edge list to a given fragment at runtime?
    >
    It is similar to the implementation in the links that
    you had sent me.
    Could you give me some outline to implement it ...I don't have enough information to do that.
    You could define a data structure to represent one Vertex/Edge-List pair. But then, maybe you don't need to work with vertices so much as Edges? Then you could define a data structure to represent a Vertex, then another to represent an Edge, which would be two vertices. And you might want to think of your "main" Graph as a single entitity, in which case you will need a field to show what fragment this vertex (or edge) belongs to. But then it might make more sense to have seperate data structures for all fragments in which case you wouldn't.
    Too many open questions. What, exactly, do you want to do with this thing?
    Good Luck
    Lee

  • End-date for EBS account for Re-hires

    Hi Guys,
    I am facing a weird issue.
    We have configured EBS connector which is working fine for all new users. But in case of new hires, the END-DATE on EBS account is not getting changed. But it is getting changed on EBS process form. I did not see any errors in the log to trace the issue.
    Please help me out.

    locate the EBSUM jar,java class and method being called for this task and extract jar to verify the OOTB code, I don't remember exactly but this code issue. verify this using decompiler.
    If you check the ootb updateuser method(ORCL_EBS_UM_9.1.0.7.0\lib\EBSUM\oracle\iam\connectors\ebs\usermgmt\integration\EBSUserManagement.jar), enddate pass as s7 and this is not being considered for update. this is bug with connector you can raise SR to oracle or try below( which I applied earlier)
    write a java code to update end date directly into ebs database.
    1. remove the existing adapter and attach your custom adapter where pass username,effective date to, ebs database login detail( already you have in the itresource pass the same here.
    2. now write a java code and do below step
    a) connect to database using normal sql connection
    b) executeUpdate method to update end date ( update fnd_user where set eff_date_to=to_date(enddate,'format') where username=user) something like this.
    before doing above login to ebs db using apps user and describe the fnd_user table and see the exact attribute name.
    --nayan
    Edited by: Nishith Nayan on Mar 16, 2012 1:51 AM

  • Previous month end data for report

    Hi expert,
    I have to calculate previous month end data for my report.
    let say if user select 15 oct then he should be able to see 30 sept data.
    I have calander prompt.
    Thanks,

    Hi,
    Use presentation variable in date prompt.
    Apply sql filter(covert to sql) on report as date_column= TIMESTAMPADD(SQL_TSI_DAY,-DAYOFMONTH(date 'presntation_variable'),date 'presentation_variable')
    Refer : How to get LAST_DAY in obiee
    Regards,
    Srikanth

  • SQL 2012 Express end date of distribution

    For SQL Server Express 2012 is there an end date for when a customer is no longer allowed to distribute it?
    If so, what is that date? And where can we find it posted on a MS web page?
    Does the customer need to register for SQL 2012 Express to get the redistribution rights as well?
    Thanks

    Hi Nikki,
    As is mentioned in the article
    Microsoft Support Lifecycle, SQL Server 2012 Express is supported until 2017, and the extended support end date of SQL Server 2012 Express is 12/07/2022.
    However, SQL Server Express exists as a free SQL Server edition, fully compatible with and easily upgradeable to higher SQL Server editions. You can download SQL Server 2012 Express directly from below link and install it on your computer.
    http://www.microsoft.com/en-us/download/details.aspx?id=29062
    Thanks,
    Lydia Zhang

  • Design ideas for retrieving Data for Read Only

    Hi All,
    Currently I am in the process of evaluating different design ideas for the search functionality of my application. I am looking for a best option for retrieving the data by executing some complex sql queries with huge query criteria and showing the single or multiple records to the user. But the data is read only. This may involve pagination if the number of records exceeds the page limit.
    There are various options to implement this like JDBC and JDO or using some persistance framework to retrieve the data objects. Please suggest me about a good option for this.
    Thanks in Advance
    Durga

    Currently I am in the process of evaluating different
    design ideas for the search functionality of my
    application. I am looking for a best option for
    retrieving the data by executing some complex sql
    queries with huge query criteria and showing the
    single or multiple records to the user. But the data
    is read only. This may involve pagination if the
    number of records exceeds the page limit. This can typically be handled with a Fast Reader, though this is a coding ideom rather than a true design pattern.
    http://java.sun.com/blueprints/patterns/FastLaneReader.html
    Please suggest me about a
    good option for this.Apache Lucene is worth considering,
    http://lucene.apache.org/java/docs/

  • Query for month start and end date

    Hi,
    I want to pick every month Start date and End Date. could anybody suggest what is the query for this.
    I need output
    Start Date End Date
    01/01/2011 31/01/2011
    01/02/2011 28/02/2011
    01/03/2011 31/03/2011
    01/04/2011 30/04/2011
    01/05/2011 .......

    Hi,
    SQL> select sysdate from dual;
    SYSDATE
    24-FEB-11
    SQL> select last_day(sysdate) from dual;
    LAST_DAY(
    28-FEB-11
    SQL> select last_day(sysdate),last_day(add_months(sysdate,-1))+1 from dual;
    LAST_DAY( LAST_DAY(
    28-FEB-11 01-FEB-11
    SQL> select last_day(sysdate),last_day(add_months(sysdate,-2))+1 from dual;
    LAST_DAY( LAST_DAY(
    28-FEB-11 01-JAN-11Try to refer to Oracle documentation and try to experiments the functions, you will get results on your hand.
    - Pavan Kumar N
    Edited by: Pavan Kumar on Feb 24, 2011 12:51 PM
    Edited by: Pavan Kumar on Feb 24, 2011 12:52 PM

  • How to retrieve start and end date values from sharepoint 2013

    Hi,
    How to retrieve start and end date values from new event form of calendar in SharePoint foundation2013
    Thanks
    Gowri Balaguru

    Hi Srini
    Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
    Thanks
    Tripple k

Maybe you are looking for

  • How to dynamically build where clause in Linq

    Hello everyone, Oracle DB:11gR2 Oracle Client: 11.2.0.3.0 (ODP.NET) Oracle Developer Tools for Visual Studio VS 2010 (C#) In a Windows Form, we need to query the data based on the values of dropdown listboxes, which user will select. Let's say, two c

  • Need to auto populate Field based on Partner Function in UI

    Hello Experts , Currently we have a requirement in Opportunity Management in UI . We are working on "Territory Management "  in UI . While creating the Opportunity in Web UI , when we put employee code the Territory ID is auto populated. Now we dont

  • SORT KEY- Create a new one

    I have to create 2 new account sort keys KNB1-ZUAWA. One would be for Customer Purchase Order # (VBKD-BSTKD) and another one would be fore the sales order # (VBAK-VBELN). Please give suggestions how to do the same. Thanks

  • Multiple systems backups to one Volume

    Hi all folks, a question only, today I use one volume (external FW Drive) to backup some macs too, but I think this is a bad idea? It seems to be, the only limit for the used backup space is the space available on the volume. Also my question, is it

  • Download BLOB column giving page cannot be displayed

    I have a table with a blob column on a page. The record gets saved fine and I can open the blob up in a report using: DOWNLOAD:REPORT_SCHEDULER_JOB_OUTPUT:REPORT_OUTPUT:PK_ID::MIMETYPE:FILENAME:::attachment:[Open] For some reson it doesn't work on a