End of week date calculates dates in table questions

Hello all,.

I'm working on a document of LiveCycle Designer ES4 with a week ending the Date MM-DD-YYYY (which must always be a Saturday) selected in a subform.

I need this end Date to then calculate and display the selected week Saturday and the previous days in a subform with a table. Day wish to view in separate columns in the header.

sample.png

That's what I have so far:

  TopmostSubform.Page1.Requestor.WeekEndDate::exit - (FormCalc, client)
 
var endDate = Date2Num($,"MM-DD-YYYY")
var dayOfWeek = Num2Date(endDate, "E")
 
if (dayOfWeek <> 7) then
   xfa.host.messageBox("Ending date must be a Saturday")
   $ = null
   xfa.host.setFocus("$")
endif
 
Page1.#subform[1].InputTable.Row1[0].Date7 = Num2Date(endDate - 0, "DD")
Page1.#subform[1].InputTable.Row1[0].Date6 = Num2Date(endDate - 1, "DD")
Page1.#subform[1].InputTable.Row1[0].Date5 = Num2Date(endDate - 2, "DD")
Page1.#subform[1].InputTable.Row1[0].Date4 = Num2Date(endDate - 3, "DD")
Page1.#subform[1].InputTable.Row1[0].Date3 = Num2Date(endDate - 4, "DD")
Page1.#subform[1].InputTable.Row1[0].Date2 = Num2Date(endDate - 5, "DD")
Page1.#subform[1].InputTable.Row1[0].Date1 = Num2Date(endDate - 6, "DD")

However I get an error on the WeekEndDate when selecting a Saturday.

Someone has an idea what I am doing wrong?

Thanks for any help!

-Michelle

Well, I never got an answer on the forum here, but to help others - here's what I did:

All this was done FormCalc.

The Date/time of WeekEndDate field object has a set model date {MM/DD/YYYY} in the field object model in LiveCycle.

BUT, the script required the pattern to be YYYY-MM-DD

Why? I have no idea of reversal. Another way will not work for me.

This article also requires a Date Saturday to choose. Days of the week are identified by numbers (Sunday = 1, Monday = 2, etc.).

The line <> 7 means that if the day is Saturday (7), then the error message "end date must be a Saturday" is displayed.

It's the Exit Script event:

TopmostSubform.Page1.Requestor. WeekEndDate:output- (FormCalc, client)
var endDate = Date2Num ("$,"YYYY-MM-DD"")
var dayOfWeek = Num2Date (endDate, "E")

If (dayOfWeek <> 7) then
xfa.host.messageBox ("end date must be a Saturday")
$ = null
xfa.host.setFocus("$")
endif

The different elements of the Date are set to a Date/time field without cause defined in the configuration of the field object in LiveCycle.

Coding below means the form MM/DD .

Each field has it's own script, with any less calculation -#

This is the calculation for the Sunday cell script:

. TopmostSubform.Page1 #subform [1]. InputTable.Row1 [0]. Date1: calculate - (FormCalc, client)
dateNum var = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY") -6
$.rawValue = num2date (dateNum,"MM/DD" ")

And the cell Saturday, needed to display the Date of end of Saturday has the following Script, with NO less number:

. TopmostSubform.Page1 #subform [1]. InputTable.Row1 [0]. Date7: calculate - (FormCalc, client)

dateNum var = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY")

$.rawValue = num2date (dateNum,"MM/DD" ")

Why was it here?

Because this entire project was gawd-awful, and I hope that these ideas can help another designer of forms of struggle to understand the FormCalc scripting used.

M

Tags: Adobe LiveCycle

Similar Questions

  • sum of weekly data

    sum of weekly data.. from daily data.
    
     create table test3(tno number(10), tdate date);
    
    declare
    begin
    for i in 1..20 loop
    insert into test3 values(i,sysdate+i);
    end loop;
    end;
    
    
    SELECT * FROM test3;
    
    TNO                    TDATE                     
    ---------------------- ------------------------- 
    1                      21-APR-11                 
    2                      22-APR-11                 
    3                      23-APR-11                 
    4                      24-APR-11                 
    5                      25-APR-11                 
    6                      26-APR-11                 
    7                      27-APR-11                 
    8                      28-APR-11                 
    9                      29-APR-11                 
    10                     30-APR-11                 
    11                     01-MAY-11                 
    12                     02-MAY-11                 
    13                     03-MAY-11                 
    14                     04-MAY-11                 
    15                     05-MAY-11                 
    16                     06-MAY-11                 
    17                     07-MAY-11                 
    18                     08-MAY-11                 
    19                     09-MAY-11                 
    20                     10-MAY-11                 
    
    20 rows selected
    
    
    now i want sum of weekly datasum(tTNO).

    Something like...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select rownum as tno, sysdate+rownum as tdate from dual connect by rownum <= 20)
      2  --
      3  -- end of test data
      4  --
      5  select distinct trunc(tdate,'fmIW') as start_wk
      6        ,trunc(tdate,'fmIW')+6 as end_wk
      7        ,sum(tno) over (partition by trunc(tdate,'fmIW')) as sm
      8  from t
      9* order by 1
    SQL> /
    
    START_WK    END_WK              SM
    ----------- ----------- ----------
    18-APR-2011 24-APR-2011         10
    25-APR-2011 01-MAY-2011         56
    02-MAY-2011 08-MAY-2011        105
    09-MAY-2011 15-MAY-2011         39
    

    or just a SUM of basic rather than analytical...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select rownum as tno, sysdate+rownum as tdate from dual connect by rownum <= 20)
      2  --
      3  -- end of test data
      4  --
      5  select trunc(tdate,'fmIW') as start_wk
      6        ,trunc(tdate,'fmIW')+6 as end_wk
      7        ,sum(tno) as sm
      8  from t
      9  group by trunc(tdate,'fmIW')
     10* order by 1
    SQL> /
    
    START_WK    END_WK              SM
    ----------- ----------- ----------
    18-APR-2011 24-APR-2011         10
    25-APR-2011 01-MAY-2011         56
    02-MAY-2011 08-MAY-2011        105
    09-MAY-2011 15-MAY-2011         39
    

    Published by: BluShadow on April 20, 2011 13:56

  • Accelerated release of Firefox calendar is at the origin of the compatibility issues with our intranet applications - where can I find the terms of this annex, including the end of support dates?

    We are a University use an updated internal development of e-Learning applications which makes use of a framework rich client (ZK - www.zkoss.org). For reasons of compatibility with this application, as well as other general factors, we have standardized on FF 3.6 browser for all our desktop computers. Normally, we will review our browser selection once a year and make the changes/updates to compatibility level for 3 rd-party libraries we use and our own code, in order to address new developments in the browser market.

    However the FF of the new policy of difficult liberation our lives check. FF 6 came out just months after 5 FF. We perform an upgrade, we have to do a systematic series of tests, settings, changes etc. regression tests. The cost is not possible for us to do this every 3 months! So please can anyone point us to a clear release plan for FF that shows, for each version:

    a. Release date
    b. End-of-support date
    c. Release notes
    d. Compatibility in terms of HTML and Javascript/ECMAScript versions.
    

    https://wiki.Mozilla.org/RapidRelease/calendar

    https://wiki.Mozilla.org/releases

    New versions are will be released every 6 weeks, so until Mozilla announced they will do than support for a LTS version for business 'customers', you guys left to swing in the breeze as well as to be able to plan for the future with Firefox. I think that as long as the said decision is taken, support for Firefox 3.6 versions will continue. A 3.6.22 release is under development right now, probably for immediate release next week.

    As far as the end of support dates, as each new version is the version support ends for the previous version, with the exception of 3.6.x. currently Firefox 3.6.x and 6.0.x are the only versions that receive security updates. Firefox 4.0 and 5.0 is not 'supported' any longer.

  • Load the data from table to table index

    Hello

    We need to load index per table to table data. The code below works fine.

    declare
    query varchar2(200);
    Type l_emp is TABLE OF emp%rowtype INDEX BY Binary_Integer;
    rec_1 l_emp;
    
    begin
    query :=' SELECT * FROM emp';
     EXECUTE IMMEDIATE query BULK COLLECT INTO rec_1 ;
    
    For ALL  i   in rec_1 .First .. rec_1 .Last
    Insert Into emp_b
            values rec_1 (i);
    end;
    /
    

    But data from the source table and the target table are dynamic.

    Ex:

    In code, above table emp (source) and target is emp_b are static.

    But for our scenario is dependent on the source table, target would change as below.

    If source is emp target is emp_b

    If source is emp1 target is emp_b1...

    create or replace procedure p(source in varchar2, target in varchar2)
    as
    query varchar2(200);
    source varchar2(200);
    Type l_emp is TABLE OF emp%rowtype INDEX BY Binary_Integer;
    rec_1 l_emp;
    
    begin
    query :=' SELECT * FROM ' || source;
     EXECUTE IMMEDIATE query BULK COLLECT INTO rec_1 ;
    
    For ALL i   in rec_1 .First .. rec_1 .Last
     execute immediate 'INSERT INTO ' || target || ' values ' ||rec_1(i);
    end;
    /
    
    
    

    His throw. How to implement this scenario... Please help with that?

    No particular reason to use to COLLECT EVERYTHING & BULK here? Why not ordinary

    INSERT INTO target
    SELECT * FROM source;
    

    However if that's what you need you need a dynamic PLSQL block, which comes with additional side effects (code SQL injection). Dynamic SQL is not here.

    Kind regards

  • Can I use the data dictionary tables based on RLS policy?

    Hello guys, I use the package level security line to limit certain lines to some users.

    I created several roles, I want to just enable certain roles to see all the columns, but the other roles, I'm not that they see all the lines. I mean to do this I use the session_roles table data dictionary however it did not work.

    What to do in order to not allow rows of user roles?
    Can I use the data dictionary tables in RLS?


    Thank you very much.

    Polat says:
    What to do in order to not allow rows of user roles?
    Can I use the data dictionary tables in RLS?

    Ensure that:

    SQL> CREATE OR REPLACE
      2    FUNCTION no_sal_access(
      3                           p_owner IN VARCHAR2,
      4                           p_name IN VARCHAR2
      5                          )
      6      RETURN VARCHAR2 AS
      7      BEGIN
      8          RETURN '''NO_SAL_ACCESS'' NOT IN (SELECT * FROM SESSION_ROLES)';
      9  END;
     10  /
    
    Function created.
    
    SQL> BEGIN
      2    DBMS_RLS.ADD_POLICY (
      3                         object_schema         => 'scott',
      4                         object_name           => 'emp',
      5                         policy_name           => 'no_sal_access',
      6                         function_schema       => 'scott',
      7                         policy_function       => 'no_sal_access',
      8                         policy_type           => DBMS_RLS.STATIC,
      9                         sec_relevant_cols     => 'sal',
     10                         sec_relevant_cols_opt => DBMS_RLS.ALL_ROWS);
     11  END;
     12  /
    
    PL/SQL procedure successfully completed.
    
    SQL> GRANT EXECUTE ON no_sal_access TO PUBLIC
      2  /
    
    Grant succeeded.
    
    SQL> CREATE ROLE NO_SAL_ACCESS
      2  /
    
    Role created.
    
    SQL> GRANT SELECT ON EMP TO U1
      2  /
    
    Grant succeeded.
    
    SQL> CONNECT u1@orcl/u1
    Connected.
    SQL> select ename,sal FROM scott.emp
      2  /
    
    ENAME             SAL
    ---------- ----------
    SMITH             800
    ALLEN            1600
    WARD             1250
    JONES            2975
    MARTIN           1250
    BLAKE            2850
    CLARK            2450
    SCOTT            3000
    KING             5000
    TURNER           1500
    ADAMS            1100
    
    ENAME             SAL
    ---------- ----------
    JAMES             950
    FORD             3000
    MILLER           1300
    
    14 rows selected.
    
    SQL> connect scott@orcl
    Enter password: *****
    Connected.
    SQL> GRANT NO_SAL_ACCESS TO U1
      2  /
    
    Grant succeeded.
    
    SQL> connect u1@orcl/u1
    Connected.
    SQL> select ename,sal FROM scott.emp
      2  /
    
    ENAME             SAL
    ---------- ----------
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    
    ENAME             SAL
    ---------- ----------
    JAMES
    FORD
    MILLER
    
    14 rows selected.
    
    SQL> 
    

    SY.

  • procedure that will dynamically build the query data and table Medallion

    Hi people,

    I write a procedure that dynamically build the query data and insert in the table "dq_summary".
    enforcement procedure with success and data not inserted into the table 'dq_summary '.

    I have thin problem in code attached below
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOR rep IN cur_di_attr
          LOOP
            dbms_output.put_line ('d: ');   
            
            BEGIN
              EXECUTE IMMEDIATE 'SELECT table_name FROM ' || sum_tab || ' WHERE id = ' || rep.attribute_id INTO rep_tab;
              dbms_output.put_line ('rep_tab: '||rep_tab);
              run_query := run_query || ' ' || rep_tab || ' WHERE ' || nvl(wh_cond, '1 = 1');
              EXECUTE IMMEDIATE run_query INTO end_rslt;
            
              EXECUTE IMMEDIATE 'UPDATE dq_summary SET ' || prop || '_' || p_code || ' = ' || end_rslt || ' WHERE attribute_id = ' || rep.attribute_id;
              dbms_output.put_line ('e: ');      
              dbms_output.put_line ('rep_tab: '||rep_tab);
              dbms_output.put_line ('end_rslt: '||end_rslt);
              dbms_output.put_line ('f: '); 
            EXCEPTION
              WHEN no_data_found THEN
                rep_tab := '';
                sum_tab := '';
            END;  
          
          END LOOP;    
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    but in the procedure below must be run several times
    create or replace
    PROCEDURE DQ_REPORT_PROC
    AS
      prop                              di_proposition.pro_name%type;
      col_var                           VARCHAR2(100);
      p_code                            dq_parameter.para_code%type;
      sum_tab                           di_proposition.summary_table%type;
      run_query                         dq_parameter.run_query%type;
      wh_cond                           dq_parameter.where_cond%type;
      end_rslt                          VARCHAR2(20);
      rep_tab                           VARCHAR2(50);
      v_error_msg                       VARCHAR2(200);   
      v_error_code                      VARCHAR2(200);  
      v_object_name                     VARCHAR2(50)                          DEFAULT 'DQ_REPORT_PROC';
      v_iss_no                          VARCHAR2(20)                          DEFAULT NULL;
      CURSOR cur_di_prop IS 
        SELECT upper(replace(replace(pro_name, ' '),'-')) pro_name
          FROM di_proposition;
      
      CURSOR cur_di_para IS
        SELECT upper(para_code) para_code, run_query, where_cond
          FROM dq_parameter;
      
      CURSOR cur_di_attr IS 
        SELECT attribute_id
          FROM dq_summary;
    BEGIN
      
      DELETE FROM dq_summary;
    
      INSERT INTO dq_summary (attribute_id, entity_name, attribute_name, data_champ) 
        SELECT a.attribute_id, b.entity_name, a.attribute_name, a.data_champ
          FROM di_attribute_master a, di_entity_master b
         WHERE a.entity_id = b.entity_id;
    
      FOR c_prop IN cur_di_prop
      LOOP
        prop := c_prop.pro_name;
        
        BEGIN
          SELECT distinct SUBSTR(column_name, 1, INSTR(column_name, '_')-1), summary_table
            INTO col_var, sum_tab
            FROM user_tab_cols a, di_proposition b
           WHERE a.table_name = 'DQ_SUMMARY'
             AND upper(replace(replace(b.pro_name, ' '),'-')) = prop
             AND SUBSTR(a.column_name, 1, INSTR(a.column_name, '_')-1) = upper(replace(replace(b.pro_name, ' '),'-'))
             AND upper(b.status) = 'Y';
             
             dbms_output.put_line ('col_var: '||col_var);
             dbms_output.put_line ('sum_tab: '||sum_tab);
             
        EXCEPTION
          WHEN no_data_found THEN
            col_var := '';
            sum_tab := '';
        END;
    
        dbms_output.put_line ('a: ');
    
        FOR para IN cur_di_para
        LOOP
         dbms_output.put_line ('b: ');
          p_code := para.para_code;
          run_query := para.run_query;
          wh_cond := para.where_cond;
          dbms_output.put_line ('c: ');
          FOR rep IN cur_di_attr
          LOOP
            dbms_output.put_line ('d: ');   
            
            BEGIN
              EXECUTE IMMEDIATE 'SELECT table_name FROM ' || sum_tab || ' WHERE id = ' || rep.attribute_id INTO rep_tab;
              dbms_output.put_line ('rep_tab: '||rep_tab);
              run_query := run_query || ' ' || rep_tab || ' WHERE ' || nvl(wh_cond, '1 = 1');
              EXECUTE IMMEDIATE run_query INTO end_rslt;
            
              EXECUTE IMMEDIATE 'UPDATE dq_summary SET ' || prop || '_' || p_code || ' = ' || end_rslt || ' WHERE attribute_id = ' || rep.attribute_id;
              dbms_output.put_line ('e: ');      
              dbms_output.put_line ('rep_tab: '||rep_tab);
              dbms_output.put_line ('end_rslt: '||end_rslt);
              dbms_output.put_line ('f: '); 
            EXCEPTION
              WHEN no_data_found THEN
                rep_tab := '';
                sum_tab := '';
            END;  
          
          END LOOP;    
        END LOOP;
      END LOOP; 
      COMMIT;   
    EXCEPTION
          WHEN OTHERS THEN
             v_error_msg   := SQLERRM;
             v_error_code  := SQLCODE;  
             TRACKER_LOG_EXECEPTION(v_iss_no, v_object_name, CURRENT_TIMESTAMP, v_error_msg, v_error_code);
          COMMIT;        
      
    END DQ_REPORT_PROC;
    Published by: BluShadow on February 7, 2012 12:04
    addition of {noformat}
    {noformat} tags.  Please read {message:id=9360002} and learn to do this yourself in future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    903830 wrote:

    I write a procedure that dynamically build the query data and insert in the table "dq_summary".
    enforcement procedure with success and data not inserted into the table 'dq_summary '.

    I'm sorry. But there is no kind of say that way. The code is undesirable. The approach is wrong. This will not happen. This will cause the fragmentation of memory in the shared Pool. This will lead to another session being impossible to analyze the sliders because of the fragmented memory.

    Not only that. The underlying data model is questionable.

    All this seems a candidate perfect as an example of how NOT to design and code and use Oracle.

  • Script Insert statement to extract data from Table in Oracle 7i

    Hi all, I have an old Oracle legacy system that works for more than 15 years. Every now and then, we need to extract data from this table @ ORacle 7i to import to Oracle 10 G.

    My thoughts are to create a script to Insert statements in oracle 7 and that, to be deployed to Oracle 10 G.

    I found cela scripts in Google and don't know exactly how it works. No explanation on these scripts, would be greatly appreciated. I find that this format can help to produce a set of insert statements in this table to the last table to 10G.

    < pre >
    -Step 1: create this procedure:
    create or replace function ExtractData (v_table_name varchar2) return varchar2 as
    Boolean b_found: = false;
    v_tempa varchar2 (8000);
    v_tempb varchar2 (8000);
    v_tempc VARCHAR2 (255);
    Start
    for tab_rec in (select table_name from user_tables where table_name = upper (v_table_name))
    loop
    b_found: = true;
    v_tempa: =' select ' insert into ' | tab_rec.table_name |' (';
    for col_rec in (select * from user_tab_columns)
    where
    table_name = tab_rec.table_name
    order by
    column_id)
    loop
    If col_rec.column_id = 1 then
    v_tempa: = v_tempa | " ' || Chr (10) | " ' ;
    on the other
    v_tempa: = v_tempa |', ". Chr (10) | " ' ;
    v_tempb: = v_tempb |', ". Chr (10) | " ' ;
    end if;
    v_tempa: = v_tempa | col_rec.column_name;
    If instr(col_rec.data_type,'CHAR') > 0 then
    v_tempc: = "' |' | col_rec.column_name |'| " ' ;
    elsif instr (col_rec.data_type, 'DATE') > 0 then
    v_tempc: = "' to_date ("'| to_char('|| col_rec.column_name||',''mm/DD/YYYY HH24 '') | ") (', "' dd/mm/yyyy hh24"') "';
    on the other
    v_tempc: = col_rec.column_name;
    end if;
    v_tempb: = v_tempb | " ' || Decode('|| col_rec.column_name||',''Null'','||v_tempc||') | " ' ;
    end loop;
    v_tempa: = v_tempa |') values ('| v_tempb |'); "from ' |" tab_rec.table_name | « ; » ;
    end loop;
    If not b_found then
    v_tempa: ='-Table ' | v_table_name | 'not found ';
    on the other
    v_tempa: = v_tempa | Chr (10) | "select"-commit; "double;';
    end if;
    Return v_tempa;
    end;
    /
    display errors

    -STEP 2: run the following code to extract the data.
    Go head
    set pages 0
    game of stripes on
    fixed lines 2000
    the feeding off value
    trigger the echo
    var retline varchar2 (4000)
    coil c:\t1.sql
    Select 'set echo off' from dual;
    Select 'spool c:\recreatedata.sql' from dual;
    Select ' select "-these data was extracted on" | TO_CHAR (sysdate, "mm/dd/yyyy hh24" ") double;' double.

    -The following two lines as repeat as many times as the tables that you want to extract
    exec: retline: = ExtractData ('dept');
    print: retline;

    exec: retline: = ExtractData ('emp');
    print: retline;

    Select 'off spool' from dual;
    spool off
    @c:\t1

    -Step 3: run the updated c:\recreatedata.sql waiting for output to recreate the data.

    Source: http://www.idevelopment.info/data/Oracle/DBA_tips/PL_SQL/PLSQL_5.shtml




    < / pre >

    Hello

    Well what this script do.
    You will pass a table name as input to the function that will return varchar2 (string - insert statement). It will generate 2 t1.sql of sql script that contains the output sequence.

    Will use the first passed the user_tables scipt to check if the input table name exists and if there is the will reterive user_table_columns column names and generate the following sql script.
    Now, this t1.sql will run to generate a final sript formally orders insert that will run you on the target schema (make sure that the table exists).

    * #t1.sql*

    set echo off
    spool recreatedata.sql
    select '-- This data was extracted on '||to_char(sysdate,'mm/dd/yyyy hh24:mi') from dual;
    select 'insert into MY_OBJECT1 ('||chr(10)||'OWNER,'||chr(10)||'TOTAL) values ('||decode(OWNER,Null,'Null',''''||OWNER||'''')||','||chr(10)||''||decode(TOTAL,Null,'Null',TOTAL)||');' from MY_OBJECT1;
    select '-- commit;' from dual;
    spool off
    

    Then @t1.sql runs, and the general insert for the infeed table table.

    -- This data was extracted on 03/09/2009 23:39
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('MDSYS', 92800);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('TSMSYS', 256);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('DMSYS', 15104);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('TESTME', 128);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('PUBLIC', 2571392);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('OUTLN', 768);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('CTXSYS', 21888);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('OLAPSYS', 78336);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('KLONDIKE', 2432);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('SYSTEM', 51328);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('EXFSYS', 21504);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('DBSNMP', 4096);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('ORDSYS', 216192);
    
    INSERT INTO MY_OBJECT1 (OWNER, TOTAL)
      VALUES   ('SYSMAN', 111744);
    
    -- commit;
    

    Hope this helps
    Concerning

  • How to transfer data from the data in table 2D only once file?

    Attached file will write same data in table 4 times 2D file. Output must be in a table 2D.

    Someone will provide a solution or a reason to explain why the data are been ouputted 3 more times? Thank you

    I already told you a better and more effective method. The function of reading worksheet is on the exact same range as your text file and does everything for you. If you insist for some reason strange kernel to reinvent the wheel and write your own code, take the correct path. The use of 4 separate spreadsheet String to Array is the cause of your problem and I already said too much. Don't you think that get you 4 times the data is in correlation with the fact you are using 4 times the functions necessary at all? It is simply not true. Look at the diagram-writing block on a spreadsheet file.

  • Why do I get \09 at the end of the data file on a measure with timestamp file writable

    Hello everyone, I've been checking this article of knowledge...

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/3659

    and

    http://digital.NI.com/public.nsf/allkb/68806B93A21355E98625726F0064822B

    and I observed that I get \09 end of file data, all the world noted this? is there a u-turn for this?

    Thanks in advance

    Of course.

    Remove the tab constant and function of string concatenation.

  • How to save the data in table 1 d to Excel in continuous

    Mr President.

    How to save the data in table 1 d to Excel at all times, so that all the data of the first scan must be placed first thought and all the data from the second analysis must be placed on the second Board and continue on the street...

    Sy@m...

    Hi Sy@m

    Here is a vi that might give you a few ideas to try:

  • error when pass array 1 d by data in table pointer via Labview-built c++ dll

    I'm trying to generate a Labview VI to a DLL and let it be invoked by vc ++, by which a 1 d array is passed. However, I can't generate the DLL when you use the data pointer to the table, which gives the error like below:

    [ERROR]
    Code :-2147221480
    Strengthening of the DLL.
    Error when compiling the DLL as a function name or a parameter is illegal. Check function and parameter names are legal C identifiers and are not inconsistent with the LabVIEW headers.
    Additional information: 9 project link errors
    Type Library generate error. MIDL.exe failed during the compilation of the odl file used to create the type library.
    Note: The error indicates that the odl file has unknown types. This error is possible when
    works with non-standard types is exported using the method qualifier exporting files in
    release the configuration that have not been recompiled during the build process.

    The Prototype of VI define is as below

    But, if I use the pointer to manage through the table, the generation is successful, error-free. I write something to call the DLL built labview, which basically reads 1000 double the data of an instrument.

    #include "TestDQMaxDLL.h"
    #include 
    
    using namespace std;
    
    int main(int argc, char** argv) {
        cout << "Start testing DQMax DLL" << endl;
    
        int leng{ 1000 };
        DoubleArray rawDPData = AllocateDoubleArray(leng);
        test_dqmax_dll(&rawDPData);
        cout << "Successfully invoked the DLL!" << endl;
        cout << "DoubleArray.len: " << (*rawDPData)->dimSize << endl;
        for (int i = 0; i < leng; i++)
        {
            cout << (*(rawDPData + i))->elt[0] << "\t";
            if (0 == i % 10)
            cout << endl;
        }
    
        system("pause");
    
        DeAllocateDoubleArray(&rawDPData);
    }
    

    But the printed results are not correct.

    My questions are:

    1. why cannot generate DLLS with the data of table pointer. In this case, the argument of the function is as simple as a double array.

    2. for table handle pointer, when the resutls are incorrect and how to get the good ones.

    Any comments would be appreciated.

    BTW: I use Labview 2012 with Visual c ++ 2013 on Windows7 64 bit.

    I never needed to pass a table of LabVIEW handle external code. Search this forum for posts of RolfK, it is most likely to have posted such an example. I recommend that you keep things simple and remodelling your table a table 1 d 2D before moving on to external code and manage as a 1 d table (it's just a little extra math).

    Sorry I don't have a solution on why you can't build with a 1 d as a pointer of table table. If you post your project I'm happy to try to build (I'm on LabVIEW 2012, however), but as you said, it will rely on another machine, it seems more likely to be a problem with something on the specific computer where there is a problem.

  • What is the end of support date Windows XP SP3

    What is the end of support date Windows XP SP3

    End of extended support:

    April 8, 2014

  • Significance of the 'End of warranty' date on the Officejet printhead?

    I just bought a couple of HP 940 Officejet printheads via an online retailer.

    It indicates an 'end of warranty' date of July 2013.     The other shows "warranty ends" Jan 2012 (IE next month).

    I contacted the dealer as out of date, I was also unhappy that the print head was sent without a standard cardboard packaging.  Just the printhead in its tray plastic with the seal of white paper in place.

    The retailer said that the HP warranty "for the 18 months after the date on the box.

    I observed that on the box outside cardboar4d, thyere is only the date, while on the white sheet, it has the same date but includes the words "guarantee ends."

    My questions:

    -with an 'end of warranty' date Jan 2012, this means that it is an 'old' print head and that maybe it's not good to use, or may not give a full life?  for example, as an expiry date?

    -What is the significance of the date on the box and the phrase "warrany ends" on the sheet-seal on the plastic tray holding the print head?

    Thank you

    Colin

    Colin,

    The warranty on the box (or in this case paper) date is the last date where HP will cover the accessory as under warranty. In this case, there is no guarantee of 18 months after that date.

    The element can work perfectly for a while after the date, but it is not covered by the warranty if a problem should arise.

    The greater longevity of your supplies, you choose an item with an end of warranty date as far in the future.

    The official warranty statement is listed here.

    Thank you

  • Get the data in table of javafx

    Bat I can get the data in table as:

    [code]

    for (int i = 0; i < dtm.getRowCount (); i ++)

    {

    for (int j = 0; j < dtm.getColumnCount (); j ++)

    dtm.getValueAt (i, j);

    [/ code]

    But how can I do this with javafx table? I google and google and google and no luck.

    In JavaFX make data are stored on a basis per line. Each line contains an element of type T (where you have a TableView), and each column specifies a value using a callback function that determines the value of the column of the value of a particular line.

    You can browse the data simply by practice

    for (T item : table.getItems()) {
      // ...
    }
    

    And then get the value of each column for each element of the given line, since you "know" what each column represents.

    For example, in the example of JavaFX documentation, you could do:

    for (Person person : table.getItems()) {
      String firstName = person.getFirstName(); // value in firstName column
      String lastName = person.getLastName(); // value in lastName column
      String email = person.getEmail(); // value in email column
    }
    

    If you want something really generic, you can try

    for (T item : table.getItems()) {
      for (TableColumn col : table.getColumns()) {
        Callback, ObservableValue> cellValueFactory = col.getCellValueFactory();
        CellDataFeatures cdf = new CellDataFeatures(table, col, item);
        Object cellValue = cellValueFactory.call(cdf).get();
        // do something with cellValue...
      }
    }
    

    If you have little chance to this need, unless you write some kind of framework. (I just typed it here, you may have get dirty you with guys a little to make things).

  • Can someone advise on easy search by product for end of life dates?

    Can someone advise on easy search by product for end of life dates?

    Hello

    Please see this link Adobe and technical support periods covered under the new lifecycle policy.

    Kind regards

    Nicos

Maybe you are looking for

  • keyboard does not work on razr maxx

    Is there a way to make the keyboard to work more than once without having to exit firefox and restart every time. He's going to type once then after the first page load, or want to find something else that he type. The keyboard comes up, but when you

  • PROBLEM WITH XP MOVIE MAKER2 can't get work anymore

    Please see the error message constant of Movie Maker above - asking what I want to send the report, don't have followed to the letter the instructions of update of Microsoft/Repair etc. still no goodPROBLEM XP MovieMaker 2 version, since updated to S

  • Speed limit 90Mbit wrt320N?

    recently, my ISP upgraded to 120 MB... Wow When I connect directly to the modem (wired connection) I get my 120Mbit, but when I connect via my router wrt320N, also plugged, the speed is limited to 90Mbit. I updated firmware to 1.0.04)is, but no diffe

  • Does not install Windows SP 2 for Vista

    Installation of service pack 2 Windows was not successful, error code 80070490 x appears, I tried several times to include too many disable my Norton Antivirus

  • Emails in my Inbox are endangered.

    Windows Mail emails in my Inbox are endangered. Not even go to another file as deleted, but which disappears.