Want to learn more about shift registers and formula nodes

I am new to Labview and have looked at the example files and help files regarding shift registers and formula nodes. I was hoping that someone has a simple and detailed VI expaining how each of them(shift registers and formula nodes) works.

Formula nodes are not one of the first things you will need to be looking at. look at the help files (press ctrl-H) for some syntax examples. Shift registers are easy: they carry the value from the end of the loop back into the start of the loop. The great power of shift registers is to use them without initializing. In that case they will retain their last value as long as the vi is in memory. This is a little more advanced topic, though.
I included a simple example that illustrates what a shift register does. Requires Labview 7.1
Good luck,
aartjan
Attachments:
shift (LV7.1).vi ‏19 KB

Similar Messages

  • Want to learn more about BDC.

    Hi all,
             I am new to BDC and want o learn more about it and how it works. Can you please help me out in these.
             Please send any docs if any in [email protected]
          With regards,
            Abir.

    Hi,
       Have a look at these links-
    BDC
    http://www.sap-img.com/bdc.htm
    www.sappoint.com/abap/bdcconcept.pdf
    www.sap-img.com/abap/learning-bdc-programming.htm
    www.sap-img.com/abap/question-about-bdc-program.htm
    www.sapdevelopment.co.uk/bdc/bdchome.htm
    www.planetsap.com/bdc_main_page.htm
    Re: bdc mm01
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    Mark helpful answers.
    Regards,
    Tanuja.

  • Want to learn more about the command line for Mac OS X

    Hi, I'm kind of new here...I've been using my MacBook since last summer, however I want to really get a feel of the command line and would like some recommendations on how to learn more about it.
    Looks like it is based off of BSD, and I've been using Linux for about 10 years now and also have a CompTIA Linux+ cert, however some of the commands aren't the same.
    So, if anyone can post some websites/recommendations that would be great.
    thanks

    Buy any one or more of the many books available at Amazon.com about Unix under OS X. Linux and Unix are related but not the same. Even FreeBSD Unix is not the same as what's implemented under the OS X hood.
    And you will find other good books at PeachPit.com.
    There also is a separate Unix forum here.

  • I want to learn more about linux

    So, I started off with Ubuntu about 5 months ago. It was spring break and I got bored of Ubuntu so I decided to install Arch. Things went well and I have never looked back. After about a month of really customizing and figuring stuff out I felt smarter, but when I put things into perspective I still feel as though I am lacking knowledge.
    I have currently come to a point where I love my setup and don't want to change stuff in case I mess it up. Don't worry I have good news. I will be receiving a laptop soon and that is going to be my guinea pig for the summer.
    Some of my ideas so far:
    1) learn vim - I tried it back in my Ubuntu days, but it was too hard so I just used nano. I now feel as though I should know how to use it...
    2) try a tiling window manager - With Arch came openbox, and although it was very different from gnome / explorer.exe it has grown on me and I could never go back.
    3) learn to program - I know some very basic stuff, but I could never make a functional program. Considering I am going into "computer engineering" next year it may be a good idea.
    any suggestions on other things (chances are I haven't done it), or how to do the ones already on my list would be awesome.

    1) learn vim - I tried it back in my Ubuntu days, but it was too hard so I just used nano. I now feel as though I should know how to use it...
    Why bother? Just learn the deleat comands, the input comands, the save commands, and paste commands. Don't let the editor rule you, it is ment to be used.
    2) try a tiling window manager - With Arch came openbox, and although it was very different from gnome / explorer.exe it has grown on me and I could never go back.
    I wouldn't bother. I tried a tiling WM, but I'm on KDE mod atm, and while I miss cirtain things, I think I found most of them in non tiling WM. I especialy recoment JWM, it's funny at first, but I grew to love it, and my KDEmod works very similarly now
    3) learn to program - I know some very basic stuff, but I could never make a functional program. Considering I am going into "computer engineering" next year it may be a good idea.
    I suggest Python, as it has many great resorces (I suggest "Learning Python", by O'Reilly) and is commenly used. It also gets you into many good habits (forced indentation, easy documentation strings, and general good code manners), and the syntax is very clean.
    any suggestions on other things (chances are I haven't done it), or how to do the ones already on my list would be awesome.
    Learn how to use bash properly. By that I mean being able to use almost all of bash's features. It's an incredibly powerfull tool, and you do it a disservice if you do not learn it fully.

  • I want to learn more about oracle seibel, hrms, and oracle's financials

    hello everyone;
    i have some experiance in oracle 10g, sql and programming;
    i would like to learn about:
    1) oracle seibel
    2) oracle human resource managment system
    3) oracle financials
    please advice me on a useful documentation that might help,
    and i wanna know if it is possible to download them on my laptop for free?
    thanks alot;

    Hi user;
    i would like to learn about:
    1) oracle seibelSiebel Installation Guide for Microsoft Windows
    http://download.oracle.com/docs/cd/B40099_02/books/PDF/SiebInstWIN.pdf
    Siebel CRM 8.0 Deployment Guide
    http://www.citrix.com/site/resources/dynamic/partnerDocs/CTX_Siebel_ANG_Guide.pdf
    Siebel Business Applications Documentation
    http://www.oracle.com/technology/documentation/siebel.html
    2) oracle human resource managment system
    3) oracle financials All note are avaliable below links, check and read what you need from below links please
    For r12.1.1:
    http://download.oracle.com/docs/cd/B53825_01/current/html/docset.html
    For r12:
    http://download.oracle.com/docs/cd/B40089_10/current/html/docset.html
    For r11:
    http://download.oracle.com/docs/cd/A60725_05/r11_doc.htm
    Regard
    Helios

  • Want to Know more about Views, Viewset and Viewarea.

    Dear all,
    We are into IC Webclient configuration. I want to know that,  what are views, viewsets and viewarea with examples.
    What is the relation between them?
    How can I add or modify a view, viewset or viewarea in IC Webclient?
    Where these views, viewsets and viewareas are getting stored? How system calling these views on presentation layer?
    Should I know ABAP to create and display a view in IC Webclient?
    Kindly help me to understand the scenarios in a better way. Your suggestion will be highly appreciated.
    Best regards
    Raghu ram

    Hello!
    Here is a very good cookbook about new WebUI CRM 2007 WebClient Cookcook available!
    Best regards,
    Artur Litvinov.

  • Want to know more about tables used and mapping detail

    HELLO THERE
    I actually have to develop a report in which i able to see all information about from GR to excise to quality testing to bill Passing .
    we are using t.code MIGO to J1IEX to QA32 to MIRO RESPECTIVELY .
    so i want to know tables used in the respective t.code and how they are mapped .give me a detail sketch plz.so that by entering PO no. in the initial screen we can get all the detail about gr to excise to quality to bill passing detail .My mailid is  prabhupad.sap at gmail dot com
    Thanking you
    neon

    hi,
    EKEB - History per purchasing doc..
    EKPO - PO doc item..
    MSEG - GR: Doc segment material...
    BSEG - Accounting doc Segment...
    hope it helps...
    Regards
    Priyanka.P

  • I want to learn more about OOABAP(Object Oriented ABAP)

    Hi All,
    Please could anybody help me in sending some of material or suggestion in learning(Exploring) the Object Oriented ABAP. Right now I am an ABAP/4 Developer.
    Please if anybody having any such material please send it to my mail-id i.e <u>[email protected]</u> or else please tell me the resources to learn the OOABAP please.
    Now I have to work on that project. Thanks in advance.
    By
    ASHOK
    If anything PDF format material please could you upload to my mail ID <u>[email protected]</u>
    Message was edited by: ashok vanga

    Hi ashok,
    check this link....
    http://www.intelligententerprise.com/channels/applications/feature/archive/heymann.jhtml?_requestid=304802
    http://www.henrikfrank.dk/abapuk.html
    http://sap.ittoolbox.com/documents/document.asp?i=982
    reward points for helpfull answers and close the thread if your question is solved.
    regards,
    venu.

  • Learning more about OS X and Terminal

    I have owned a MacBook Pro (Lion - 10.7.5) for a year now, and realise that I still know little about the actual workings of OS X as an operating system. I am my families go to guy for all things relating to electricity, so while I take an active interest in the workings of computers I'm hardly an expert. I'm wondering if anyone can suggest a good book or website for introducing some behind the scenes information on OS X and making use of Terminal to customise my Mac experience.

    Start with one of these:  http://search.oreilly.com/?q=terminal&x=0&y=0 for Terminal and http://www.amazon.com/Apple-Pro-Training-Essentials-Troubleshooting/dp/032177507 4/ref=sr_1_1?s=books&ie=UTF8&qid=1351288060&sr=1-1&keywords=Mac+OS+X+Support+Ess entials+v10.7  for the OS.

  • I want to learn more about "Servlet".Where can I find that document.

    Hi ! all.
    I am really need to know about Servlet technology programming.
    Please! anyone can tell me.
    Thank you very much!

    for basics go to "JAVA How to program"
    visit dietel & dietel website
    regards
    Amar(india)

  • Learn More About JQuary and Apex

    Hi Jari,
    i want to learn more about JQuary
    [http://actionet.homelinux.net/htmldb/f?p=100:90|http://actionet.homelinux.net/htmldb/f?p=100:90]
    i have seen that demo application, there are more features to learn more about apex ,could you please give me login details .
    i want to see how to use Code and JQuary in APEX.
    Thanks

    Hi Jari,
    when i run Packages_procedure then show me error
    URL Enclosed SQL length exceeds allowed 32k limit.
    CREATE OR REPLACE PACKAGE "CSV_UTIL"
    as
    By Oleg Lihvoinen:
    Parse and de_quote procedures are taken from AskTom and modified
        type vcArray is table of varchar2(32767) index by binary_integer;
        g_words            vcArray;
        g_empty            vcArray;
        g_last_string    varchar2(32767); 
      procedure parse( p_str      in varchar2,
                       p_enc_by in varchar2,
                       p_sep   in varchar2 );
      procedure upload(p_file_name VARCHAR2, p_collection_name VARCHAR2, p_enc_by IN VARCHAR2, p_sep_by IN VARCHAR2, p_rows NUMBER);
      function de_quote( p_str in varchar2, 
                           p_enc_by in varchar2 )
        return varchar2;
    end;
      CREATE OR REPLACE PACKAGE BODY "CSV_UTIL"
    AS
       FUNCTION de_quote (p_str IN VARCHAR2, p_enc_by IN VARCHAR2)
          RETURN VARCHAR2
       IS
       v_str VARCHAR2(32767) := p_str;
       BEGIN
          IF (p_enc_by IS NULL)
          THEN
             RETURN p_str;
          ELSE
            IF SUBSTR(p_str,-1) = p_enc_by THEN
               v_str := SUBSTR(p_str,1,LENGTH(p_str)-1);
            END IF;
            IF SUBSTR(p_str,1,1) = p_enc_by THEN
               v_str := SUBSTR(v_str,2);
            END IF; 
            RETURN REPLACE (v_str,
                             p_enc_by || p_enc_by,
                             p_enc_by
          END IF;
       END de_quote;
       PROCEDURE parse (p_str IN VARCHAR2, p_enc_by IN VARCHAR2, p_sep IN VARCHAR2)
       IS
          l_n          NUMBER   DEFAULT 1;
          l_in_quote   BOOLEAN  DEFAULT FALSE;
          l_ch         NCHAR (1);
          l_len        NUMBER   DEFAULT NVL (LENGTH (p_str), 0);
       BEGIN
          IF (l_len = 0)
          THEN
             RETURN;
          END IF;
          g_words := g_empty;
          g_words (1) := NULL;
          FOR i IN 1 .. l_len
          LOOP
             l_ch := SUBSTR (p_str, i, 1);
             IF (l_ch = p_enc_by)
             THEN
                l_in_quote := NOT l_in_quote;
             END IF;
             IF (l_ch = p_sep AND NOT l_in_quote)
             THEN
                l_n := l_n + 1;
                g_words (l_n) := NULL;
             ELSE
                g_words (l_n) := g_words (l_n) || l_ch;
             END IF;
          END LOOP;
          g_words (l_n) := de_quote (g_words (l_n), CHR(10));
          g_words (l_n) := de_quote (g_words (l_n), CHR(13));
          FOR i IN 1 .. l_n
          LOOP
             g_words (i) := de_quote (g_words (i), p_enc_by);
          END LOOP;
       END parse;
    Author: Oleg Lihvoinen
    Company: DbSWH
       PROCEDURE upload (p_file_name VARCHAR2, p_collection_name VARCHAR2, p_enc_by IN VARCHAR2, p_sep_by IN VARCHAR2, p_rows NUMBER)
       IS
          v_blob_data    BLOB;
          v_clob_data    CLOB;
          v_clob_len     NUMBER;
          v_position     NUMBER;
          v_char         NCHAR (1);
          c_chunk_len    NUMBER           := 1;
          v_line         VARCHAR2 (32767) := NULL;
          v_data_array   vcarray;
          v_rows         NUMBER           := 0;
          n_seq          NUMBER           := 1;
          dest_offset    NUMBER           := 1;
          src_offset     NUMBER           := 1;
          amount         INTEGER          := DBMS_LOB.lobmaxsize;
          blob_csid      NUMBER           := DBMS_LOB.default_csid;
          lang_ctx       INTEGER          := DBMS_LOB.default_lang_ctx;
          warning        INTEGER;
          l_sep          VARCHAR2(100)    := CASE WHEN p_sep_by = '\t' THEN chr(9) ELSE p_sep_by END;
       BEGIN
          htmldb_collection.create_or_truncate_collection
                                          (p_collection_name      => p_collection_name);
          -- Read blob from wwv_flow_files
          SELECT blob_content
            INTO v_blob_data
            FROM wwv_flow_files
           WHERE NAME = p_file_name;
          v_position := 1;
          DBMS_LOB.createtemporary (lob_loc      => v_clob_data,
                                    CACHE        => TRUE,
                                    dur          => DBMS_LOB.SESSION
          DBMS_LOB.converttoclob (v_clob_data,
                                  v_blob_data,
                                  amount,
                                  dest_offset,
                                  src_offset,
                                  blob_csid,
                                  lang_ctx,
                                  warning
          v_clob_len := DBMS_LOB.getlength (v_clob_data);
          IF v_clob_len = 0 THEN
             RETURN;
          END IF;
          WHILE (v_position <= v_clob_len)
          LOOP
             v_char := DBMS_LOB.SUBSTR (v_clob_data, c_chunk_len, v_position);
             v_line := v_line || v_char;
             v_position := v_position + c_chunk_len;
             -- When the whole line is retrieved and not end of file or end of file
             IF v_char = CHR (10) AND v_position < v_clob_len OR v_position = v_clob_len
             THEN
                parse (p_str => v_line, p_enc_by => p_enc_by, p_sep => l_sep);
                v_data_array := g_words;
                FOR i IN 1..g_words.count LOOP
                   IF i <= 50 THEN
                      v_data_array(i) := g_words(i);
                   ELSE
                      exit;
                   END IF;
                END LOOP;
                FOR i IN g_words.count + 1..50 LOOP
                   v_data_array(i) := null;
                END LOOP;           
                v_rows := v_rows + 1;
                -- exit if uploaded specified number of rows
                IF p_rows IS NOT NULL AND v_rows > p_rows THEN
                   EXIT;
                END IF;
                -- Store data to collection
                n_seq :=
                   htmldb_collection.add_member
                                         (p_collection_name      => p_collection_name,
                                          p_c001                 => v_data_array
                                                                               (1),
                                          p_c002                 => v_data_array
                                                                               (2),
                                          p_c003                 => v_data_array
                                                                               (3),
                                          p_c004                 => v_data_array
                                                                               (4),
                                          p_c005                 => v_data_array
                                                                               (5),
                                          p_c006                 => v_data_array
                                                                               (6),
                                          p_c007                 => v_data_array
                                                                               (7),
                                          p_c008                 => v_data_array
                                                                               (8),
                                          p_c009                 => v_data_array
                                                                               (9),
                                          p_c010                 => v_data_array
                                                                               (10),
                                          p_c011                 => v_data_array
                                                                               (11),
                                          p_c012                 => v_data_array
                                                                               (12),
                                          p_c013                 => v_data_array
                                                                               (13),
                                          p_c014                 => v_data_array
                                                                               (14),
                                          p_c015                 => v_data_array
                                                                               (15),
                                          p_c016                 => v_data_array
                                                                               (16),
                                          p_c017                 => v_data_array
                                                                               (17),
                                          p_c018                 => v_data_array
                                                                               (18),
                                          p_c019                 => v_data_array
                                                                               (19),
                                          p_c020                 => v_data_array
                                                                               (20),
                                          p_c021                 => v_data_array
                                                                               (21),
                                          p_c022                 => v_data_array
                                                                               (22),
                                          p_c023                 => v_data_array
                                                                               (23),
                                          p_c024                 => v_data_array
                                                                               (24),
                                          p_c025                 => v_data_array
                                                                               (25),
                                          p_c026                 => v_data_array
                                                                               (26),
                                          p_c027                 => v_data_array
                                                                               (27),
                                          p_c028                 => v_data_array
                                                                               (28),
                                          p_c029                 => v_data_array
                                                                               (29),
                                          p_c030                 => v_data_array
                                                                               (30),
                                          p_c031                 => v_data_array
                                                                               (31),
                                          p_c032                 => v_data_array
                                                                               (32),
                                          p_c033                 => v_data_array
                                                                               (33),
                                          p_c034                 => v_data_array
                                                                               (34),
                                          p_c035                 => v_data_array
                                                                               (35),
                                          p_c036                 => v_data_array
                                                                               (36),
                                          p_c037                 => v_data_array
                                                                               (37),
                                          p_c038                 => v_data_array
                                                                               (38),
                                          p_c039                 => v_data_array
                                                                               (39),
                                          p_c040                 => v_data_array
                                                                               (40),
                                          p_c041                 => v_data_array
                                                                               (41),
                                          p_c042                 => v_data_array
                                                                               (42),
                                          p_c043                 => v_data_array
                                                                               (43),
                                          p_c044                 => v_data_array
                                                                               (44),
                                          p_c045                 => v_data_array
                                                                               (45),
                                          p_c046                 => v_data_array
                                                                               (46),
                                          p_c047                 => v_data_array
                                                                               (47),
                                          p_c048                 => v_data_array
                                                                               (48),
                                          p_c049                 => v_data_array
                                                                               (49),
                                          p_c050                 => v_data_array
                                                                               (50)                                                                          
                -- Clear the line
                v_line := NULL;
             END IF;
          END LOOP;
       END;
    END;
    This package is from AskTom web site.
    Modified a bit.
      CREATE OR REPLACE PACKAGE "OLS_PRINT_SYLK_FORMAT" as
      type owaSylkArray is table of varchar2(2000);
      procedure show(
          p_query         in varchar2,
          p_parm_names    in owaSylkArray default owaSylkArray(),
          p_parm_values   in owaSylkArray default owaSylkArray(),
          p_sum_column    in owaSylkArray default owaSylkArray(),
          p_max_rows      in number     default 10000,
          p_show_null_as  in varchar2   default null,
          p_show_grid     in varchar2   default 'YES',
          p_show_col_headers in varchar2 default 'YES',
          p_font_name     in varchar2   default 'Courier New',
          p_widths        in owaSylkArray default owaSylkArray(),
          p_titles        in owaSylkArray default owaSylkArray(),
          p_strip_html    in varchar2   default 'YES' );
      procedure show(
          p_cursor        in integer,
          p_sum_column    in owaSylkArray  default owaSylkArray(),
          p_max_rows      in number     default 10000,
          p_show_null_as  in varchar2   default null,
          p_show_grid     in varchar2   default 'YES',
          p_show_col_headers in varchar2 default 'YES',
          p_font_name     in varchar2   default 'Courier New',
          p_widths        in owaSylkArray default owaSylkArray(),
          p_titles        in owaSylkArray default owaSylkArray(),
          p_strip_html    in varchar2   default 'YES' );
      PROCEDURE get_usable_sql (p_sql_in IN VARCHAR2, p_sql_out OUT VARCHAR2);
    end ols_print_sylk_format;
      CREATE OR REPLACE PACKAGE BODY "OLS_PRINT_SYLK_FORMAT" as
      g_cvalue  varchar2(32767);
      g_desc_t dbms_sql.desc_tab2;
      type vc_arr is table of varchar2(2000) index by binary_integer;
      g_lengths vc_arr;
      g_sums vc_arr;
      procedure p( p_str in varchar2 )
      is
      len NUMBER;
      begin
        htp.p(p_str);
        --dbms_output.put_line(p_str);
      exception
        when others then null;
      end;
      function build_cursor(
          q in varchar2,
          n in owaSylkArray,
          v in owaSylkArray ) return integer is
        c integer := dbms_sql.open_cursor;
        i number := 1;
      begin
        dbms_sql.parse (c, q, dbms_sql.native);
        loop
          dbms_sql.bind_variable( c, n(i), v(i) );
          i := i + 1;
        end loop;
        return c;
      exception
        when others then
          return c;
      end build_cursor;
      function str_html ( line in varchar2 ) return varchar2 is
        x       varchar2(32767) := null;
        in_html boolean         := FALSE;
        s       varchar2(3);
      begin
        if line is null then
          return line;
        end if;
        for i in 1 .. length( line ) loop
          s := substr( line, i, 1 );
          if in_html then
            if s = '>' then
              in_html := FALSE;
            end if;
          else
            if s = '<' then
              in_html := TRUE;
            end if;
          end if;
          if not in_html and s != '>' then
            x := x || s;
          end if;
        end loop;
        return x;
      end str_html;
      function ite( b boolean,
                    t varchar2,
                    f varchar2 ) return varchar2 is
      begin
        if b then
          return t;
        else
          return f;
        end if;
      end ite;
      procedure print_comment( p_comment varchar2 ) is
      begin
        return;
        p( ';' || chr(10) || '; ' || p_comment || chr(10) || ';' );
      end print_comment;
      procedure print_heading( font in varchar2,
                               grid in varchar2,
                               col_heading in varchar2,
                               titles in owaSylkArray )
      is
        l_title varchar2(2000);
      begin
        p( 'ID;DBSWHWEBSHOP' );
        print_comment( 'Fonts' );
        p( 'P;F' || font || ';M200' );
        p( 'P;F' || font || ';M200;SB' );
        p( 'P;F' || font || ';M200;SUB' );
        print_comment( 'Global Formatting' );
        --p( 'F;C1;FG0R;SM1' ||
        p( 'F;C1;FG0L;SM0' ||
               ite( upper(grid)='YES', '', ';G' ) ||
               ite( upper(col_heading)='YES', '', ';H' )  );
        for i in 1 .. g_desc_t.count loop
          --p( 'F;C' || to_char(i+1) || ';FG0R;SM0' );
          p( 'F;C' || to_char(i+1) || ';FG0L;SM0' );
        end loop;
        print_comment( 'Title Row' );
        p( 'F;R1;FG0C;SM2' );
        for i in 1 .. g_desc_t.count loop
          g_lengths(i) := g_desc_t(i).col_name_len;
          g_sums(i) := 0;
          begin
            l_title := titles(i);
          exception
            when others then
              l_title := g_desc_t(i).col_name;
          end;
          if i = 1 then
            --p( 'C;Y1;X2;K"' || l_title || '"' );
            p( 'C;Y1;X1;K"' || l_title || '"' );
          else
            --p( 'C;X' || to_char(i+1) || ';K"' || l_title || '"' );
            p( 'C;X' || to_char(i) || ';K"' || l_title || '"' );
          end if;
        end loop;
      end print_heading;
      function print_rows(
          c            in integer,
          max_rows     in number,
          sum_columns  in owaSylkArray,
          show_null_as in varchar2,
          strip_html   in varchar2 ) return number is
        row_cnt number          := 0;
        line    varchar2(32767) := null;
        n       number;
      begin
        loop
          exit when ( row_cnt >= max_rows or
                      dbms_sql.fetch_rows( c ) <= 0 );
          row_cnt := row_cnt + 1;
          print_comment( 'Row ' || row_cnt );
          p( 'C;Y' || to_char(row_cnt+1) );
          for i in 1 .. g_desc_t.count loop
            dbms_sql.column_value( c, i, g_cvalue );
            g_cvalue := trim( both chr(10) from g_cvalue );
            g_cvalue := trim( both chr(13) from g_cvalue );       
            g_cvalue := translate( g_cvalue,
                                chr(13)||chr(10)||chr(9)||';', '    ' );
            g_cvalue := ite( upper( strip_html ) = 'YES',
                                 str_html( g_cvalue ),
                                 g_cvalue );
            g_lengths(i) := greatest( nvl(length(g_cvalue),
                                      nvl(length(show_null_as),0)),
                                      g_lengths(i) );
            line := 'C;X' || to_char(i);
            line := line || ';K';
            begin
              n := to_number( g_cvalue );
              if upper( sum_columns(i)) = 'Y' then
                g_sums(i) := g_sums(i) + nvl(n,0);
              end if;
            exception
              when others then
                n := null;
            end;
            line := line ||
                     ite( n is null,
                          ite( g_cvalue is null,
                                   '"'||show_null_as||
                                      '"', '"'||g_cvalue||'"' ),
                                 n );
            p( line );
          end loop;
        end loop;
        return row_cnt;
      end print_rows;
      procedure print_sums(
          sum_columns  in owaSylkArray,
          row_cnt      in number ) is
      begin
        if sum_columns.count = 0 then
          return;
        end if;
        print_comment( 'Totals Row' );
        p( 'C;Y' || to_char(row_cnt + 4) );
        p( 'C;X1;K"Totals:"' );
        for i in 1 .. g_desc_t.count loop
          begin
            if upper(sum_columns(i)) = 'Y' then
              p( 'C;X' || to_char(i+1) || ';ESUM(R3C:R' ||
                      to_char(row_cnt+2) || 'C)' );
            end if;
          exception
            when others then
              null;
          end;
        end loop;
      end print_sums;
      procedure print_widths( widths owaSylkArray ) is
      begin
        print_comment( 'Format Column Widths' );
        --p( 'F;W1 1 7' );
        for i in 1 .. g_desc_t.count loop
          begin
            --p( 'F;W' || to_char(i+1) || ' ' ||
                --to_char(i+1) || ' ' ||
            p( 'F;W' || to_char(i) || ' ' ||
                to_char(i) || ' ' ||
                to_char(to_number(widths(i))) );
          exception
            when others then
              --p( 'F;W' || to_char(i+1) || ' ' ||
                   --to_char(i+1) || ' ' ||
              p( 'F;W' || to_char(i) || ' ' ||
                   to_char(i) || ' ' || 
                   greatest( g_lengths(i), length( g_sums(i) )));
          end;
        end loop;
        p( 'E' );
      end print_widths;
      procedure show(
          p_cursor        in integer,
          p_sum_column    in owaSylkArray default owaSylkArray(),
          p_max_rows      in number     default 10000,
          p_show_null_as  in varchar2   default null,
          p_show_grid     in varchar2   default 'YES',
          p_show_col_headers in varchar2 default 'YES',
          p_font_name     in varchar2   default 'Courier New',
          p_widths        in owaSylkArray default owaSylkArray(),
          p_titles        in owaSylkArray default owaSylkArray(),
          p_strip_html    in varchar2   default 'YES' ) is
        l_row_cnt number;
        l_col_cnt number;
        l_status  number;
      begin
        dbms_sql.describe_columns2( p_cursor, l_col_cnt, g_desc_t );
        for i in 1 .. g_desc_t.count loop
          dbms_sql.define_column( p_cursor, i, g_cvalue, 32765);
        end loop;
        print_heading( p_font_name,
                       p_show_grid,
                       p_show_col_headers,
                       p_titles );
        l_status := dbms_sql.execute( p_cursor );
        l_row_cnt := print_rows(
                       p_cursor,
                       p_max_rows,
                       p_sum_column,
                       p_show_null_as,
                       p_strip_html );
        print_sums( p_sum_column, l_row_cnt );
        print_widths( p_widths );
      end show;
      procedure show(
          p_query         in varchar2,
          p_parm_names    in owaSylkArray default owaSylkArray(),
          p_parm_values   in owaSylkArray default owaSylkArray(),
          p_sum_column    in owaSylkArray default owaSylkArray(),
          p_max_rows      in number     default 10000,
          p_show_null_as  in varchar2   default null,
          p_show_grid     in varchar2   default 'YES',
          p_show_col_headers in varchar2 default 'YES',
          p_font_name     in varchar2   default 'Courier New',
          p_widths        in owaSylkArray default owaSylkArray(),
          p_titles        in owaSylkArray default owaSylkArray(),
          p_strip_html    in varchar2   default 'YES' ) is
      begin
        show( p_cursor => build_cursor( p_query,
                                        p_parm_names,
                                        p_parm_values ),
              p_sum_column => p_sum_column,
              p_max_rows => p_max_rows,
              p_show_null_as => p_show_null_as,
              p_show_grid => p_show_grid,
              p_show_col_headers => p_show_col_headers,
              p_font_name => p_font_name,
              p_widths => p_widths,
              p_titles => p_titles,
              p_strip_html => p_strip_html );
      end show;
       PROCEDURE get_usable_sql (p_sql_in IN VARCHAR2, p_sql_out OUT VARCHAR2)
       IS
          v_sql      VARCHAR2 (32767);
          v_names    DBMS_SQL.varchar2_table;
          v_pos      NUMBER;
          v_length   NUMBER;
          v_exit     NUMBER;
       BEGIN
          v_sql := p_sql_in;
          v_names := wwv_flow_utilities.get_binds (v_sql);
          FOR i IN 1 .. v_names.COUNT
          LOOP
             <<do_it_again>>
             v_pos := INSTR (LOWER (v_sql), LOWER (v_names (i)));
             v_length := LENGTH (LOWER (v_names (i)));
             v_sql :=
                   SUBSTR (v_sql, 1, v_pos - 1)
                || v_names (i)
                || SUBSTR (v_sql, v_pos + v_length);
             v_sql :=
                REPLACE (v_sql,
                         UPPER (v_names (i)),
                            '(SELECT v('''
                         || LTRIM (v_names (i), ':')
                         || ''') FROM DUAL)'
             IF INSTR (LOWER (v_sql), LOWER (v_names (i))) > 0
             THEN
                GOTO do_it_again;
             END IF;
          END LOOP;
          p_sql_out := v_sql;
       END get_usable_sql;
    end ols_print_sylk_format;
      CREATE OR REPLACE PROCEDURE "PRINT_SYLK" AS
    v_region_sql VARCHAR2(32767);
    v_plug_source_type VARCHAR2(32767);
    v_filenm VARCHAR2(2000);
    l_cursor NUMBER := dbms_sql.open_cursor;
    BEGIN
         SELECT region_source, source_type
         INTO  v_region_sql, v_plug_source_type
         FROM  apex_application_page_regions
         WHERE region_id      = to_number(LTRIM(v('REGIONID'),   'R'))
         AND   page_id = v('APP_PAGE_ID');
      -- Apex 2.1 if v_plug_source_type like 'SQL%' then
      if v_plug_source_type like 'Report' then -- Apex 3.2.1
         ols_print_sylk_format.get_usable_sql(v_region_sql,   v_region_sql);
      else
         v_region_sql := upper(v_region_sql);
         v_region_sql := replace(v_region_sql,'BEGIN',' ');
         v_region_sql := replace(v_region_sql,'RETURN ',' ');
         v_region_sql := replace(v_region_sql,';',' ');
         v_region_sql := replace(v_region_sql,'END',' ');
         execute immediate 'select ' || v_region_sql ||
                           ' from dual ' into v_region_sql;
      end if;
      v_filenm := v('EXCELNAME') || '.xls';
      owa_util.mime_header('application/vnd.ms-excel',   FALSE);
       -- Set up HTTP header
      htp.p('Content-Disposition: attachment; filename="' || v_filenm || '"');
          -- Close the headers
       owa_util.http_header_close;
       dbms_sql.parse(l_cursor,   v_region_sql,   dbms_sql.native);
       ols_print_sylk_format.SHOW(p_cursor => l_cursor,   p_max_rows => 60000);
       dbms_sql.close_cursor(l_cursor);                               
       HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;     
    END PRINT_SYLK;
    How can i remove it.
    Thanks

  • Where can I learn more about Siri?

    Siri works pretty well for me (for a Beta component) since I do not have a strong regional accent,  but I want to learn more about what it can do, how best to pose questions for successful interactions and follow its progress as it is updated by Apple. Any suggestions for good resources?

    Here's a place to start: Learn more about Siri

  • To the left are 3 balls, red, yello, green, that go around in a circle. when i click on them it says download helper, what is that for and how do I learn more about them?

    to the left of the URL are 3 balls, red, yellow, green, that go around in a circle. when i click on them it says download helper, what is that for and how do I learn more about them?

    Thanks, this is very helpful, and resolved my question
    dan

  • I would like to learn more about the API associated with contract and  pric

    Hi
    I would like to learn more about the API associated with contract and pricing agreements in advanced pricing modules os Oracle 11i and also get functional knowledge.
    Please note that, I have almost no knowledge about oracle oracle ERP system.
    Please advice, where do I start.
    thanks
    siva

    Please read Oracle Applications Developer's Guide .

  • Considering FileVault usage on an iMac with OSX 10.6.7. Wanting to know more about strengths and weaknesses of Filevault with Time Machine, Parallels and Carbon Copy Cloner. Any negatives to consider before flipping the switch?

    I'm considering FileVault usage on an iMac with OSX 10.6.7. Wanting to know more about strengths and weaknesses of Filevault with Time Machine, Parallels and Carbon Copy Cloner. Any negatives to consider before flipping the switch? Any information ?
    Would specifically like to know:
    Filevault impact on performance and application usability.
    TIme machine impacts, and whether TIme Machine volume will also be secure?
    Will a Cloned copy made with CCC be  bootable, or usable?
    Any other negatives to consider before turning this thing on?
    Thanks,

    Filevault impact on performance and application usability.
    FileVault encrypts the user's home directory only - it is basically an encrypted disk image that is automatically opened when you log in and closed when you log out. It does cause disk accesses to be a bit slower so it isn't a good idea to use an encrypted account with sound or video or large graphics files. I have no experience with it with Parallels Desktop but suspect that you'd notice a bit of a slowdown. Note: in the User's directory you'll see a Shared Folder. Since FV only encrypts the user's directory you can put data you don't need encrypted in this shared folder which won't be encrypted.
    TIme machine impacts, and whether TIme Machine volume will also be secure?
    There are issues with TM and FV but how extensive they are with Snow Leopard I can't say, once I realized that TM and FV hadn't substantially changed between 10.5 and 10.6 I stopped dealing with it. When FV and TM were first introduced my testing led me to recommend using CCC or SuperDuper! for backing up.
    Will a Cloned copy made with CCC be  bootable, or usable?
    Yes
    Any other negatives to consider before turning this thing on?
    Since FV is nothing more than a disk image - and disk images can fail - there are several problems with FV in my opinion. If an encrypted disk image fails it isn't possible to access any of that data. If you don't have a recent (undamaged) backup of the disk image and/or recent backup of the data within the disk image you are in a world of hurt. This isn't just a warning of possibility - this is a real danger that I've seen all too often at the shop where I have worked part time for a number of years.
    At this time I strongly recommend that people who have sensitive data keep that sensitive data segregated from their general data and encrypt only the sensitive data or use other methods of locking it down such as saving on an external drive that is kept in a safe. Call me paranoid but I don't even keep all my sensitive data in one encrypted disk image. I use multiple disk images and keep multiple sequential backups. That way I might someday find that my up-to-date investments disk image won't mount but (a) I can go back a week to a backup and (b) that won't impact my up-to-date business records because those are in a different disk image

Maybe you are looking for

  • Error when generating the report in Production Server

    Hi, I have created one infoset query in Development server of my client. It is working fine there. I had transported the request containg this query to Production server. But whenever I am trying to generate report using this query in Production serv

  • Error: An error occurred while preparing the query in openquery on ServiceNow ODBC Link Server

    Hi Team, Greetings of the Day!!!!! I have a created a link server on SQL Server 2008 R2 databse of Service Now ODBC driver. And written a stored procedure using openquery to get the data from link server. Now problem is that, when i have scheduled th

  • Windows 7 and HP Laserjet 1000

    We've been using an HP Laserjet 1000 just fine with our Windows Vista Home Premium.  So I just assume it would work with WIndows 7. So I was startled that the WIndows 7 Upgrade Advisor says the HP Laserjet 1000 isn't compatible with Windows 7. Is tha

  • K7N2G and XP 2400+ (cpu speed wrong)

    Can someone tell me how to get the K7N2G Board to display the correct processor speed? I have a AMD XP 2400+ that the board shows on post as an XP 1800+ I've updated the bios to the most recent, but anytime I changed the Jumper on the board or try to

  • Radio stations audible on telephone line

    Have had phone service (landline) with Verizon at this same location for years, and  was working well until about one month ago, when Internet connection was lost, followed by telephone box not receiving power. Repairman replaced external boxes and p