How to store data when it is dynamically generated

Hi,
I am designing a page in that dates get auto populated based on the selection of two dates.
if start date = 1-Jan-2011 and end date = 4-Jan-2011.
4 columns get generated based on the dates selected. columns like 1-Jan-2011, 2-Jan-2011. 3-Jan-2011, 4-Jan-2011. these are the columns generated. If dates are changed again dates will populated based on the start and end date.
Below these dates 3 rows are generated
Columns 1-jan-2011 2-jan-2011 3-jan-2011 4-jan-2011
rows null null null null
How can i store these data please suggest me
Thanks
Sudhir

Sudhir, Pls enclose your code within <b>&#123;code&#125;</b> tags, this makes it readable.
Some observations:
<li>1. SELECT ROWNUM,
..FROM STUDY S, COHART C WHERE S.ID = C.S_ID ORDER BY S.NAME would lead to errors since the rownum would be fetched before ordering and hence your rows will not be correct row number sequence.
Due to this f01(1) might fetch the 4th row's column instead of the first as u have wanted it.One method to avoid this, is by
SELECT ROWNUM,A.*
..FROM (SELECT * FROM STUDY S, COHART C WHERE S.ID = C.S_ID ORDER BY S.NAME ) A<li>2. I don't see any primary column which would used to identify the row in the DB
<li>3. The difference between 2 dates need not always be a perfect integer, So i hope u have kept this in mind while writing the code.
<li>Now to your question of accessing the dates for selected rows.(fix the issues mentioned above first)
Iterating over the F01 array(using i)
APEX_APPLICATION.G_f01(i) would contain the rownum of each checked row.
As per your code you can have multiple date columns in the same row with the array index(4)
I am not sure how to obtain the number of dynamic date columns in every row.
Anyway while processing u would have to do this calculation and suppose the variable l_no_of_days has this value.
So ur j'th date column(u can have j=1..l_no_of_days) for the i'th row can be obtained as
APEX_APPLICATION.G_f01(i) = actual row number
APEXAPPLICATION.G_f01(i) -1 )*l_no_of_days + j = column index of j'th column for this row_
APEX_APPLICATION.G_f04(APEX_APPLICATION.G_f01(i) -1 )*l_no_of_days + j) would have the date column value
As an example
<1> texxt <1> <2> <3> <4>..
<2> texxt <5> <6> <7> <8>..
<3> texxt <9> <10> <11> <12>..
<4> texxt <> <> <> <>..
<5> texxt <17> <18> <19> <20>..
In this case,l_no_of_days would be obtained as 4
If 2 and 4 was checked, i =1..2
f01(1) = 2
1st checked row's, 1st dynamic column = f04( (2 -1)*4 + 1 ) = f04(5)
1st checked row's, 3st dynamic column = f04( (2 -1)*4 + 3 ) = f04(7)
2nd checked row's 5th column = f04( (5 -1)*4 + 5 ) = f04(24)
Phew !!, feels like college mathematics ;) .
Hope it was clear.

Similar Messages

  • How to store data (in tdm files)

    I'm looking for advice on how to store data in tdm/tdx files.
    The main challenge is like this: At regular time intervals there is new data available (say every 10 minutes there are 10 minutes of new data available). All data is time based. So every ten minutes I may create a new tdm/tdx file containing this data segment. However, when i want to analyze the data i dont necessarily want to view 10 minutes of data from all channels, but maybe 20 hours of data from one particular channel.
    The way I've achieved this so far is to manually load each 10 minute segment of this particular channel and then add these parts together. This is both time consuming and cumbersome. Is there a better way to do this that I've simply not discovered yet? Is there a better way to store data to simplify this process?
    One solution is of course to save data from several 10-minute frames in one file, but seeing as there is a never ending supply of data i cant simply save all data in one giant file, it has to be split up at some point, and the problem will still remain.
    One factor to have in mind here is that this is rather large amounts of data (maybe 10GB each day), so the option to simply load all the data into memory goes out the window rather quickly.
    Feel free to ask if I've not made myself very clear

    Hi salte,
    If your test ever ended, and if you had LabVIEW 8.20 or higher, I would recommend using a TDMS file, which handles data appeands flawlessly.  DIAdem 10.1 now also does data reduction and index windowing during file loading for TDM / TDMS / DataPlugin files, so that you could easily load out only the part of the file you wanted to look at.  But since you describe your data acquisition as never stopping and amassing 10 GB per day, I agree that it would be impractical to use only 1 data file.  So we are stuck with some number of files which each contain a part of your measurement.  This approach can have advantages, since you can save operational properties for each "buffer" such as average value, dominant frequency, ambient room temperature, etc., and later on you can use the DataFinder to query out only the data buffers which meet specific conditions based on these properties.  The problem remains to load and assemble data based on multiple files.  This is an old problem in DIAdem, and one for which I have an efficient and I hope satisfactory workaround application.  It does what you describe already doing in the minimum amount of time and with the minimum amount of user interaction, and it can be highly parametrized to suit your particular situation.  The ideal way to start the application would be as part of a ResultsList custom menu.  This would enable you to query out the buffers you wanted, highlight those rows in the ResultsList, right-click and choose your custom menu, and WHAM! the selected buffers for your queried channel(s) are automatically appended together in the DataPortal.  Launching from a ResultsList custom menu would mean that you could skip the file dialog and just read out the data sources directly from the ResultsList selection.
    Let me know what you think,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Importing Data from Multiple DataPlugin Files.zip ‏198 KB

  • How to decrypt data when you can't get the private key in Windows?

    I'm very confuse. My english is poor, but I try to say my question clearly.
    When browser connects to a https website which needs client certificate to authenticate the identity, the browser will send client certificate to web server.
    Then the web server will use the certificate to encrypt some data and send it to browser.
    Then broswer should have private key to decrypt that.
    But as I know, if I install a pfx format personal certificate, I can set can't export private key, which means you can't get the private key to use it. So how can
    the browser decrypt the data without private key?
    By the way, what is CSP, use CSP's interface can we use CryptoAPI
    to decrypt data without private key?

    Answer for question is  "you cant".. 
    "How to decrypt data when you can't get the private key in Windows?"
    Read more 
    http://msdn.microsoft.com/en-us/library/windows/desktop/aa387460(v=vs.85).aspx
    http://msdn.microsoft.com/en-us/library/windows/desktop/bb427432(v=vs.85).aspx
    http://technet.microsoft.com/en-us/library/dd277320.aspx
    http://en.wikipedia.org/wiki/Public-key_cryptography

  • What is a cube? how we store data in that? how we fetch data from cube?

    Hi,
    What is a cube? how we store data in that? how we fetch data from cube?
    Regards.
    venkat

    >
    venkey B wrote:
    > Hi,
    >
    >
    > What is a cube? how we store data in that? how we fetch data from cube?
    >
    >
    > Regards.
    >
    > venkat
    Hi Venkat,
    I guess you mean an infocube from the SAP BI product. I propose to look at the forum for Business Intelligence to find your answers.
    E.g. SAP POS DM writes the sales data in infocubes.....

  • How to store data from textfile to vector and delete a selected row.

    Can someone teach me how to store data from textfile to vector and delete a selected row. And after deleting, i want to write the changes in my textfile.
    Do someone has an idea? :)

    nemesisjava wrote:
    Can someone teach me how to store data from textfile to vector and delete a selected row. And after deleting, i want to write the changes in my textfile.
    Do someone has an idea? :)What's the problem? What have you done so far? What failed?
    What you described should be pretty easy to do.

  • How to store data in ipad from computer

    please explain me how to store data (music video & pictures) in  ipad from any personal computer...kindly explain me in simple steps...

    The iPad can only sync with one computer.  To do this you need to have iTunes installed on the computer and have it associated with your Apple ID.  you can then use iTunes to transfer music, movies and pictures from that computer, and that computer only.
    iOS: Syncing your data with iTunes
    http://support.apple.com/kb/ht1386
    If you need to get files from other computers, you would need a 3rd party App that can handle the formats you wish to transfer, and possibly transfer them either through iTunes file sharing or Wifi transfer depending on what the App supports.
    iOS: About File Sharing
    http://support.apple.com/kb/ht4094

  • How LDAP stores data?

    What is the diff bet. LDAP & Data base?
    How LDAP stores data?

    LDAP uses a hierarchical tree structure. This is why LDAP queries are formed like ldap://mydomain.com/...

  • How to store data in chinese from oracle and show it to jsp?

    hi, please help.
    i have design a jsp page for registeration of a website in chinese,
    but after the user have enter the chinses data throught the jsp~
    the jsp have shown some monster code~
    it can't show the valid date in chinese!!! how can i fix it????
    when i select data from SQL PLUS, monster code is showed. how to show the chinese data in the oracle.
    i am using tomcat 5.0 ~servlet 2.2 and oracle 9i for database~~
    thx thx thx~~~~~pls help me!!

    The how to at following url shows how to store, retrieve and display characters of different languages from Oracle database onto a JSP page.
    http://otn.oracle.com/sample_code/tech/java/codesnippet/jdbc/nls/Globalization.html
    HTH
    Chandar

  • How to store data from Host.vi in cRIO-9074

    TejasKumar Patel
    I implemented a advance Measurement and Control system using cRIO-9074
    with c-Series I/O cards( NI 9217, 9411, 9264)
    I have some questions about it,
    (1)- Data rate from FPGA targate to host vi is too low. how can I increase
    it, when I run my host VI, sometimes all temperature sensor update at
    same time and sometimes one by one, can you please give me some hint, how
    can I correct it, I used two FIFOs for NI-9411 digital pulses, I put all
    Digital input and all analog output and input in a seperate while loop in
    FPGA targate VI.
    (2)- I have to write that data to analyse for further result. I tried all
    possible way to write data including wite to spreadsheet.vi, write to
    text.vi, Data storage.vi, Write to measurement.vi. All this VI work
    efficientlywhen it run individualy, But when I connect this VI to
    writedata from FPGA host VI. than it always give empty file.
    I saw your post in NI discussion forum about how to write data from
    Host.vi, But still I am confuse that how can I creat a protocol between
    host VI and Fpga target vi. to write the data in a file. I have nearabout
    38 channel to write data.
    (3)- I have to measure time difference between two digital pulses, to find
    a flow rate. I am using counter for it with risisng edge shot.vi, but when
    i get a timestemp when there is risisng edge for the second rising edge
    how can I get timestemp. Its like i have to measure time between two
    pulses, I triend waveform measurement.vi to find cycle period. but it not
    worked. any other was to measure it.
    I am stuck in this question since from last one month. I already followed
    NI-discussion forum solution but it doesnt work. I think the way I applied
    is may be wrong. 
    Looking forward to hear from you soon.
    Plese send an additional email copy to [email protected]
    Thank you and Best Regards, 

    Thanks Joseph for your support,
    1-      If I count the ticks between the pulses it always seems different ….because this method I already tried, but it does not work,  like some times it shows 9099 tick and at the second pulse it shows like some more or less ticks not the same ticks every time. To complete my project, the biggest problem is the data storage.
    2-      As you gives the solution in NI forum, “low level file I/O Vis such as Write to text file” FPGA target not support this VI. And mainly I want to write data from HOST.vi, because I am process those data …and I need to store it. For to figure out my result.
    3-      If I use “Write to text file. VI (Sub-VI ) to FPGA.vi, it not support because it support string data and I have FIXpoint data. And can you explain me what is low level file IO, and how can I use in fpga.vi??
    4-      Yes, for my project time stamp it really necessary, for data analysis.
    5-      I need the time stamp to find out what was the system response at the time.  As our project based on weather temperature, I need time stamp.
    Waiting for your reply,
    Thanks and Regards,
    Patel

  • How to store data in class?

    I have a problem urgent to slove...anybody pro can help me?
    I use a method in main program type a input data and pass to the class, than when i call another method in main program print out the data which retrive form class...than all data print out become null. what is my problem? can i know how i store all my input data in class permanence and how can i retrive the data and use by main program method anytime when i needed...?

    skydestinyz wrote:
    I have a problem urgent to slove...anybody pro can help me?
    I use a method in main program type a input data and pass to the class, than when i call another method in main program print out the data which retrive form class...than all data print out become null. what is my problem? You have a bug.
    can i know how i store all my input data in class permanence and how can i retrive the data and use by main program method anytime when i needed...?Use a database. Or write data to a file.

  • How to store data in the text line by line?

    when i write the data into *.txt, the data I wrote before is deleted.
    how can wrote the data into the txt following the existing data?
    how to write data line by line? many thanks!
    my code is like:
    private String text = "i am yanbo du, i am a boy.";
    public BufferWriteMultiKey( ) {         
         try {
              StringTokenizer st = new StringTokenizer(text, " ,.");
              File fil =new File("f.txt");
         //FileWriter fw = new FileWriter(fil);
         //BufferedWriter bw= new BufferedWriter(fw);
         DataOutputStream out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(fil)));
    while(st.hasMoreTokens())
    String s = st.nextToken();
         //bw.newLine();
         out.writeChars(s);
    out.writeChars("\n");
    out.close();

    use a random access file and append text at the end.
    read the file in line by line using a BufferedReader and store each line in a List of Strings, of course.
    %

  • How to store data from a complex query and only fresh hourly or daily?

    We have a report which runs quite slow (1-2 minutes) because the query is quite complicate, so we would like to run this query daily only and store in a table so for those procedures that need to use this complex query as a subquery, can just join to this table directly to get results.
    However, I am not sure what kind of object I should use to store data for this complex query. Is data in global temp table only persist within transaction? I need something that can persist the data and be access by procedures.
    Any suggestions are welcome,
    Cheers

    Thank you for your reply. I looked at the materialized view earlier on, but have some difficulties to use it. So I have some questions here:
    1.The complex query is not a sum or aggregate functions, it just need to get data from different tables based on different conditions, in this case is it still appropriate to use meterialized view?
    2.If it is, I created one, but how to use it in my procedure? From the articles I read, it seems I can't just query from this view directly. So do I need to keep the complex query in my procedure and how the procedure will use the meterialized view instead?
    3. I also put the complex query in a normal view, then create a materialized view for this normal view (I expect the data from the complex query will be cache here), then in the procedure I just select * from my_NormalView, but it takes the same time to run even when I set the QUERY_REWRITE_ENABLED to true in the alter session. So I am not sure what else I need to do to make sure the procedure use the materialized view instead of the normal view. Can I query from the Materialized View directly?
    Below in the code I copied from one of the article to create the materialized view based on my normal view:
    CREATE MATERIALIZED VIEW HK3ControlDB.MW_RIRating
    PCTFREE 5 PCTUSED 60
    TABLESPACE "USERS"
    STORAGE (INITIAL 50K NEXT 50K)
    USING INDEX STORAGE (INITIAL 25K NEXT 25K)
    REFRESH START WITH ROUND(SYSDATE + 1) + 11/24
    NEXT NEXT_DAY(TRUNC(SYSDATE), 'MONDAY') + 15/24
    enable query rewrite
    AS SELECT * FROM HK3ControlDB.VW_RIRating;
    Cheers

  • How to store data in JavaFX 1.2 Mobile with Storage and Resource API

    I'm need to store some numbers and strings in an application that will be deployed in a HTC HD2 device with JavaFX 1.2 When run on desktop, everything works perfectly. But after being installed in the device, the application won't store data in files. I thought JavaFX was able to do that, according to its documentation (http://download.oracle.com/docs/cd/E17802_01/javafx/javafx/1.2/docs/api/javafx.io/javafx.io.Storage.html)
    I do it like this (just the part that stores integers)
    public var availableGifts : Integer[] = [0,0,0];
    var highscoresFile = Storage {
    source: "AvailableGifts.txt"
    public function writeConfiguration() {
    try {
    var resource : Resource = configurationFile.resource;
    var outputStream : DataOutputStream = new DataOutputStream(resource.openOutputStream(true));
    outputStream.writeInt(availableGifts[0]);
    outputStream.writeInt(availableGifts[1]);
    outputStream.writeInt(availableGifts[2]);
    outputStream.flush();
    outputStream.close();
    println("Data stored!");
    } catch(ex : IOException) {
    ex.printStackTrace();
    The application is self-signed, just in case. But it won't store data in the mobile device... I need some help with this!

    Agh, the problem is not in how data is stored, because it IS being stored. The problem is that inputstream.available() seems to always return 0 in the mobile device, so the file seems to be empty.
    But that's a different problem.

  • How to store data

    Our problem is the following !
    We are working with a Fluke 45 multimeter, and we would like to put the data that we measure into a table !
    So, we first have to read the data, with a read diagram ( VI's ) !
    And then put the data in a table, one by one, so when all the measurement are taken, they are all in a table,
    So that we can look at them later.
    How do we do this ?
    Does anybody has some diagram's (VI's ) for this read, and how
    do we put these measurements in a table, under each other ?
    Thanks in advance !!

    Check out the examples that come with LabVIEW, they are full of plenty of examples of how to do data acquisition and save to disk. Be sure to look at data acquisition VI examples.
    What you are looking for is an array, not a table. A table is simply a method of displaying an array, usually indexed with certain items such as times, etc. This data is stored in an array. Think about using arrays to store your data. The examples will point you in the right direction.

  • How to store, data of hierarchical in nature?

    Hi,
    We are designing a database for our office. Part of our data is
    hierarchical in nature, and I am not sure how to store that data in relational tables.
    we have many training courses, each belongs to many groups, sub-groups. Depth of this tree is not pre-determined and it may grow to maximum five to six levels.
    For Example:
    1. Consider five training courses A,B,C,D,E
    2. A,B,C belongs to Group G1 and D,E belongs to Group G2
    3. Group G1, G2 are part of Group GG1
    4. and this grouping is dynamic in nature.
    Is there any standard way to store this kind of group information
    in relational model.
    natrajv
    mumbai

    CREATE TABLE O_GROUP
    (id number,
    name varchar2(100),
    father_id number,
    constraint pk_o_group primary key(id),
    constraint fk_o_group foreign key(father_id)
    references o_group(id))
    -- father_id builds a hierarchical tree
    CREATE TABLE O_COURSE
    (id number,
    name varchar2(100),
    o_group_id number,
    constraint pk_o_course primary key(id),
    constraint fk_o_course_grp foreign Key(o_group_id)
    references O_GROUP(id))
    insert into 0_GROUP
    values(1,'GG1',NULL);
    insert into O_GROUP
    values(2,'G1',1);
    insert into O_GROUP
    values(3,'G2',1);
    insert into O_COURSE
    values(1,'A',2);
    insert into O_COURSE
    values(2,'B',2);
    insert into O_COURSE
    values(3,'C',2);
    insert into O_COURSE
    values(4,'D',3);
    insert into O_COURSE
    values(5,'E',3);
    commit;

Maybe you are looking for

  • I have still empty Notes in iCloud

    When I open iCloud on my PC, Notes are still empty not synchronized. On my iPhone and iPad is everything okay. What should I do?

  • Iweb 3.0.3 upload issue

    Hi Guys, I have tried to upload iweb to mobile me since last night. But I always got the " an unknown error occurred" response. Does anyone know how to fix this problem?

  • Materialized views with GROUP by ROLLUP

    I am trying to created Materialized view (snapshot) using group by rollup functionality. The idea is to use snapshot with all subtotals already calculated in place. For example average group by rollup (columns of the time dimension). The idea is to u

  • Error during extraction with UD Connect

    Hi All, I established connection to my source system through UD conenct and it is successful. The check on Source systems is fine and SM59 check is fine. However when I try to create a datasource and in the Extraction tab, click on the Source Object

  • Ow do I open a .wmv file in mail?

    How do I open a .wmv file in Mail. I have tried iPhoto and iMovie and get message:Unreadable file: could not import (may be an unrecognized file type or file may not contain valid data).