creation of sequences on fly

Dear Experts,

This script works very well


declare
       v_seq_name varchar2(30);
       v_var_name varchar2(10) := 'TEST';
        v_curr_value number := -1;
          v_dummy number;
          l_MaxVal  number :=6;
begin
        v_seq_name := 'SEQ_' ||  v_var_name;

     dbms_output.put_line(' value of l_MaxVal : ');
     dbms_output.put_line(l_MaxVal );




   SELECT count(*)
  INTO v_dummy
  FROM user_sequences
  WHERE sequence_name = 'SEQ_TEST';
  dbms_output.put_line(v_dummy);
  IF v_dummy = 0 THEN
     --   DBMS_UTILITY.EXEC_DDL_STATEMENT('CREATE SEQUENCE SEQ_TEST');
      execute immediate 'CREATE SEQUENCE ' || v_seq_name ||
       ' MINVALUE 1 MAXVALUE 999999999999999999999999999 START WITH 1 increment by 1 cache 20';
  END IF;


  IF v_dummy = 1 THEN
     dbms_output.put_line('else');
       loop
         execute immediate 'select ' || v_seq_name || '.nextval from dual' into v_curr_value;
         dbms_output.put_line(v_curr_value);
         dbms_output.put_line('<');
         dbms_output.put_line(l_Maxval);
          exit when v_curr_value > l_Maxval;
         end loop;
  END IF;
 end;
/

It will not work

DECLARE
   v_dummy NUMBER;
   l_MaxVal  pls_integer default 6;
   l_Currval pls_integer default - 1;
 BEGIN


   SELECT count(*)
   INTO v_dummy
   FROM user_sequences
   WHERE sequence_name = 'SEQ_TEST';


 if(v_dummy =0 ) THEN
     EXECUTE IMMEDIATE 'create sequence SEQ_TEST';
 ELSIf(v_dummy =1 ) THEN


      
   while l_Currval < l_Maxval
   Loop
   select SEQ_TEST.nextval into l_Currval FROM dual;
   END loop;
 END IF;
 END; 

Can you please have your ideas, why the code above won't work.

No, the answer is not to create clips dynamically.  It should not be a reason to do such a thing, if the database and the application is designed correctly.

A sequence must be created once as part of the initial design of the database, has NOT created on the fly.  It goes same for tables and most of the other objects in the database.

Tags: Database

Similar Questions

  • The creation of sequence error. Help, please

    I use following script to create the sequence but in error
    Error report:
    SQL error: ORA-01722: invalid number
    01722 00000 - "invalid number."


    CREATE SEQUENCES BL_BTN_MASTER_SEQ
    MINVALUE 1
    MAXVALUE 999999999999999999
    INCREMENT BY 1
    START WITH (SELECT MAX (BULLETIN_MASTER_ID) + 1
    OF BL_BTN_MASTER)
    NOCACHE;

    FYI... The bulletin_master_id column data type is NUMBER (22.0)
    Help, please.

    Published by: user11228834 on May 29, 2013 10:22

    Published by: user11228834 on May 29, 2013 10:23

    Published by: user11228834 on May 29, 2013 10:25

    Oracle doesn't like the ' (select max (bulletin_master_id) + 1 bl_btn_master)' statement incorporated in the CREATE SEQUENCE statement because if you look at the syntax it expects an acual number.» You can use run immediately to create the sequence in this way:

    {code}
    declare
    number of v_seq;
    v_statement varchar2 (200);
    Start
    SELECT max (bulletin_master_id) + 1
    in v_seq
    of bl_btn_master;

    v_statement: = 'CREATE the SEQUENCE BL_BTN_MASTER_SEQ |
    "MINVALUE 1' |
    "MAXVALUE 999999999999999999' |
    ' INCREMENT OF 1' |
    'START WITH ' | v_seq |
    "NOCACHE";

    execute immediate (v_statement);
    end;
    {code}

  • With regard to the creation of sequence and relaxation

    Hello!!
    I use oracle 10g and I have tried to create a sequence of a table called 'emp' I need to autoincrement column 'emp_id' which has a varchar2 data type. How do I?
    Help, please!

    1 sequence cannot be linked to any specific table. They generate only sequential numbers and like [url http://asktom.oracle.com/pls/asktom/f?p=100:11:0:NO:P11_QUESTION_ID:2985886242221] Tom says: there is a 100% guarantee that the values generated by the sequence will have some gaps.
    2 sequence cannot be auto incremented. You must use Sequence.Nextval (). Either use directly in your insert statement or write a trigger for this.
    3. If the emp_id column is supposed to contain sequence values (which are numbers), why are you define as VARCHAR2? Keep in a number only.

    Vivek L

  • Creation next sequence

    I need to insert a record into a table that is not a sequence object. The table contains types of user of the system.
    USER_TYPE DESC
    Name                           Null     Type                                                                                                                                                                                          
    ------------------------------ -------- ----------------
    USER_TYPE_ID                   NOT NULL NUMBER                                                                                                                                                                                        
    USER_TYPE                               VARCHAR2(100)                                                                                                                                                                                 
    USER_TYPE_PID                           NUMBER                                                                                                                                                                                        
    ABBR                                    VARCHAR2(15) 
    There are 100,000 records.
    An error appears when I try the following:
    CREATE SEQUENCES USER_TYPE_ID_SEQ
    INSERT INTO user_type (USER_TYPE_ID, USER_TYPE, USER_TYPE_PID, ABBR) VALUES (USER_TYPE_ID_SEQ.nextval, 'UNASSIGNED', NULL, NULL)
    Error report:
    SQL error: ORA-00001: unique constraint (DEV_FIRM_CCB. USER_TYPE_USER_TYPE_ID_PK) violated
    00001 00000 - "forced single (s.%s) violated."
    What the USER_TYPE_USER_TYPE_ID_PK about USER_TYPE_ID column.

    How to start the next sequence of the max value of USER_TYPE_ID (100,000).
    Something like this:
    CREATE THE USER_TYPE_ID_SEQ SEQUENCE WITH (SELECT INTEGER (MAX (USER_TYPE_ID) + 1) OF USER_TYPE)
    But it does not work. Any help is appreciated.

    Achtung wrote:

    Assuming that nobody is insert in user_type table while you run the code:

    declare
        v_stmt varchar2(1000);
    begin
        select  'create sequence user_type_id_seq start with ' || max(user_type_id)
          into  v_stmt
          from  user_type;
        execute immediate v_stmt;
    end;
    /
    

    SY.
    PS The name of the Table USER_TYPE is a bad choice - too close to display name of data dictionary USER_TYPES.

  • Creation of sequences in oracle

    I know how to create the sequence. But ever-increasing sequence is created. If I want to create a top-down sequence and then how to build?
    INCREMENT BY -1
    

    Max
    http://oracleitalia.WordPress.com

  • automatic creation of navigation sequences does not

    I'm having the same problem with the TCS that PaulB1234 described in the General Discussion forum, except that I'm generating HTML output and I did only one book of FM in the project. When I click on "auto-create browse sequences of TOC", the list of sequences of exploration remains empty. Assistance of HR says to click "Yes" to the dialog box "to browse sequences", but no dialog box is displayed.

    PaulB1234 wrote:
    "I use RoboHelp 7 and FrameMaker 8 in the Technical Communication Suite. I added three FrameMaker 8 files based on my RH 7 project and I converted table of contents for each book. I then added three TOC TOC placeholder by default for the FrameMaker TOCs so that all three tables of contents would be generated in WebHelp output. Everything works well.

    "But when I choose" tools > sequence editor to browse ", click on the 'create automatically using TOC' button and choose the default table of contents to the"automatic creation of sequences to browse Using TOC"dialog box, some sequences don't appear in the list of browse sequences.". I tried selecting other TOCs also who were converted from the FrameMaker TOC and that no longer works.

    "What I am doing wrong? Or is there another step before that? Or is this a bug in HR? »

    Thank you! After doing a Force update, I was able to generate automatically the sequence to browse the table of contents.

    I'm not familiar with the sequences of travel as such. We are trying to replace a WWP default feature that allows the user to scroll through all the sections in order. The order to browse automatically created by HR provides similar functionality, but you can pass only through topics in a single chapter. There is a dropdown of the chapters so that you can select a different, but they are in alphabetical order, not sequential order. Therefore, it is difficult to go through aid 'page by page' somehow.

    Is it possible to put in place-to-end navigation? During this time I'll take a look at the available commands.

  • Synchronization of four cameras with gaps in the timeline for multi cameras sequence

    I use Premiere Pro Trial CC to edit a multi camera concert. (The trial is just to see if the multi-came thing will work better than CS5) Since there is a limit of 30 minutes on four of my SLR, I have gaps in each of my deadlines of four cameras. All of these tracks were synchronized manually upward with a master audio track.

    In order to create a multi-cam sequence, I need to synchronize the video tracks 1-4, but so far have not been able to do. I tried to clips from each camera of nesting (so video 1-4 are all separate nested clips.)   I turn on the targeting of track for four channels of video and an audio track. Then I press 'I' to select a Point for the selected tracks. Not sure if this is how it works - just guess here.

    I then tries to 'Create Source Multi camera sequences' and tracks synchronization to aid 'In Points' on the nested five (4 video and 1 audio).   When I double click on the sequence of Source Multi camera to preview, I get four video windows appear, but the timing isn't right. It's as if they all were associated with at the beginning of the clip, not the markers that I put in front.

    So that's my problem. I can't synchronize these titles before creating a sequence of Source Multi cameras. I tried the synchronization of audio track, but it fails - too gaps to make it work, I think. I have no timecode. The only way I can think to do is to clip markers. Are some of these features disabled in the trial version?   Thanks for any help on this!

    MacBook Pro

    10.10.5

    Intel Core i7 2.8 GHz

    16 GB 1600 MHz DDR3

    NVIDIA GeForce GT 750M 2048 MB

    All of these tracks were synchronized manually upward with a master audio track.

    Then, with all your video tracks manually synchronize would with your audio master, you are ready. It would be a sequence with audio and 4 video layers. Now that nest, activate multi-cameras and turn on the multiple camera monitor in the program monitor and start your editing.

    --------------------------

    and if you want to try the other route-

    as for the creation of sequence of Source Multi cameras with points, place your points on your clips 4 source using the source monitor, you will only be able to get one on your audio files. That you establish for the created Premiere Pro sequence camera multiple source.

  • How to get the max sequence number when some record exists in the database table

    Hello

    I need to create the sequence that he should leave value max already exists in the table.

    Example:
    I have a table as below:

    ID NAME
    1A
    1 a
    3 C
    4 D


    Now, during the creation of sequence it should start from 5 but I should ' t START WITH 5 hard-code in the sequence to create. Is it possible to do without Hardcoding the max value in the sequence. It automatically brings the value max + 1 for the next data when I insert.


    CREATE THE TEST_SEQ SEQUENCE. NEXTVAL
    START WITH [Max + 1 val of the table]
    MAXVALUE 9999999999999999999999999999
    MINVALUE 1
    NOCYCLE
    CACHE 20
    ALL;


    Thank you...

    Published by: 998976 on April 18, 2013 04:37

    Published by: 998976 on April 18, 2013 04:38

    Hello

    All the numbers in a CREATE SEQUENCE statement are literals; no other types of numeric expressions are allowed.
    You need dynamic SQL statements to do something like what you want. For example:

    COLUMN     seq_start_col     NEW_VALUE  seq_start
    
    SELECT     1 + MAX (val)     AS seq_start_col
    FROM     table_x;
    
    CCREATE SEQUENCE TEST_SEQ.NEXTVAL
    START WITH  &seq_start
    MAXVALUE 9999999999999999999999999999
    MINVALUE 1
    NOCYCLE
    CACHE 20
    NOORDER;
    
  • Clause ORDER of NORDER sequencing

    DB version: 11.2.0.3

    Discover the clause ORDER of ALL creation of sequence in literature 11.2

    http://docs.Oracle.com/CD/E14072_01/server.112/e10592/statements_6015.htm

    Can anyone show me an example on how sequence behaves differently with ORDER and NORDER?

    >
    DB version: 11.2.0.3

    Discover the clause ORDER of ALL creation of sequence in literature 11.2

    http://docs.Oracle.com/CD/E14072_01/server.112/e10592/statements_6015.htm

    Can anyone show me an example on how sequence behaves differently with ORDER and NORDER?
    >
    Using CARS? If this isn't the case, then your sequences will be generated in the order that you use the COMMAND or the default ALL.

    As this link text doc says
    >
    The ORDER is necessary only to guarantee ordered generation if you use Oracle Real Application Clusters. If you are using exclusive mode, the sequence numbers are always generated in order.
    >
    You can easily imagine your own example.

    Have you ever seen a roll of numbered tickets? You know, the kind of ticket they give to people when they offer a drawing prize at a meeting or event? You enter the event, pay your money and someone hands you a ticket with a number on it.

    Is there is only a SINGLE roll of tickets and distributing tickets then tickets will be, of course, ONLY one distributed in the order.

    But if there is that a SINGLE roll of tickets, but TWO people who need to get out them you have a problem. Then you pull a series of 50 or 100, and give the second person to distribute. So no #1 has a roll of bills that now begin with number 101 and #2 nobody 100 tickets numbered from 1 to 100.

    Each of them give their tickets to people in their line. Today, 200 people appear, put it online and begin to enter.

    Will the tickets get delivered in the order of 1 to 200? Of course not, line #2 can exceed the speed of line #1 because an old lady in line #1 let fall her purse and made everyone behind her wait until she picked it up. During this time nobody #2 distributed ALL their tickets. Once the Lady picked up his bag and went out the way #1 person distributed the rest of their tickets.

    Welcome to the RAC! Each node of the CARS gets their own "cache" tickets (sequence numbers). If you create a sequence using CACHE 100 each node gets a block of 100 numbers in sequence. When they have more than 100 numbers, they go back and get another block of 100 numbers.

    As each node is different things, they use their numbers upward at different rates. The numbers will NOT appear in the order.

    If you use the COMMAND force you each RAC node use the SAME cache of 100 numbers. Of course, this is NOT a good thing.

    This example helps explain the difference between the ORDER and ALL? And it does not explain why you do NOT want to use the COMMAND unless absolutely necessary? It serializes the use of sequence numbers. Serialization is not scalable.

  • Line number SQLLoader

    Hello

    I have a requirement to load a huge number of data files using SQL Loader. My requirement is to load the records sequentially with the line number that can be achieved using Oracle sequence object.

    But I want to start the sequence with 1 whenever I start with the new file. Little research offers 2 options to achieve this:

    • Drop & re-creation of sequence
    • Change the sequence and set it to 1

    Since this is the current process, not sure if two options above affect DB.

    Experts, is there a better way to do this?

    Thank you and best regards,

    Matrat

    RECNUM

    http://docs.Oracle.com/CD/B28359_01/server.111/b28319/ldr_field_list.htm#i1008287

  • Problem of return of lines

    Hi all
    I have a table

    Table T1
    EmpNo Number (5)
    date of jobdate
    INOUT number 4

    The data in the table are like that

    1 August 11 10 121014
    1 August 11 10 142500
    1 August 11 10 161000
    2 11 August 10 101554
    2 11 August 10 112350
    August 3 11 10 171230
    4 August 11 10 152350
    5 August 11 10 111230


    Now, I want to get all the lines in this combination of table T1 having even occurrence of Empno & jobdate twice or more than twice. So in the above case I should get output

    1 August 11 10 121014
    1 August 11 10 142500
    1 August 11 10 161000
    2 11 August 10 101554
    2 11 August 10 112350

    I tried to use having clause with count (empno) > = 2, but it returns only
    1 Aug 11, 10
    2 Aug 11, 10

    I want to get all matching rows.
    Thanks in advance

    Concerning
    Percy
    SQL> ed
    Wrote file afiedt.buf
    
      1  with t1 as
      2  ---creating sample data
      3  (
      4  select 1 Empno,  to_date('11-Aug-10','DD-Mon-YYYY') jobdate , 121014 inout from dual union  all
      5  select 1, to_date('11-Aug-10','DD-Mon-YYYY'), 142500 from dual union  all
      6  select 1, to_date('11-Aug-10','DD-Mon-YYYY'), 161000 from dual union  all
      7  select 2, to_date('11-Aug-10','DD-Mon-YYYY'), 101554 from dual union  all
      8  select 2, to_date('11-Aug-10','DD-Mon-YYYY'), 112350 from dual union  all
      9  select 3, to_date('11-Aug-10','DD-Mon-YYYY'), 171230 from dual union  all
     10  select 4, to_date('11-Aug-10','DD-Mon-YYYY'), 152350 from dual union  all
     11  select 5, to_date('11-Aug-10','DD-Mon-YYYY'), 111230 from dual
     12  )
     13  --end of creation of on the fly sample data
     14  SELECT a.empno,
     15         a.jobdate,
     16         a.inout
     17  FROM   (SELECT t1.*,
     18                 COUNT(empno) OVER(PARTITION BY empno, jobdate ORDER BY empno) cnt
     19          FROM   t1) a
     20* WHERE  cnt >= 2
     21  /
    
         EMPNO JOBDATE        INOUT
    ---------- --------- ----------
             1 11-AUG-10     121014
             1 11-AUG-10     142500
             1 11-AUG-10     161000
             2 11-AUG-10     101554
             2 11-AUG-10     112350
    
  • Strange, Neverending make Behavior in PProCS6

    Hi all

    I've known some behaviors strange rednering.  He started in a major project of the organization who knew another frequent problem, monitor source gel, but transferred him to a new project recently started base.

    If I select 'Rendering effects' or ' make all ', I get the same result.  Rendering starts and seems to proceed as normal, but if I look closely, the completion percentage starts to bounce back, same boucning between tenths and hundredths of point.  The total number of beign previews rendered also regularly develops being rendered.  When the percentage reached the end, 90% more, the bouncing back between the values seems to increase in frequency.  I decided to leave a project made overnight and it was still incomplete when I walked ten hours later.

    When one of these makes is cancelled, the entire work area remains unreturned in the timeline with a yellow or red bar.  Even though rendering is cancelled while that continues, the parts of the work that has been completed must appear as successfully made in the timeline panel.

    The rendering on the picture below, was "To make all the effects in the work area", made dissolves and the color correction.

    render_error.jpg

    Hide my location on disk support and zero was almost complete before rendering, I have done today, I went and cleaned the two locations before you start rendering.  Alas, which has not changed the result of the final.  I made 'without end' running right now...

    As a work around the issue, I was just export the 'final' product for let me examine carefully without a lag or stutter due to lack of rendering.

    The media in two projects where I have seen this problem ranged from Ikegami MXF P2 and XDCAM EX.  All media in the current project, pictured above, is XDCAM EX sitting on a SSD internal flash drive.

    Here, all my system chart.  Let me know if you need other information

    Adobe Premiere Pro Version 6.0.1

    Total Code for Adobe Premiere Pro Version 6.0.2

    Windows 7 Ultimate Service Pack 1 (64-bit)

    Processor Intel (r) Xeon (R) CPU X 5647 @ 2.93 GHz (2processors)

    Memory: 24 GB installed RAM

    Graphics NVidia Quadro 4000 card

    Thoughts anyone?

    HED

    Mystery solved!  Of course, after crossing the UN-installing/re-installing Adobe entire suite sentence, which proved to be of no consequence.

    All this boils down to the Total Code of third-party plug-ins for Adobe Premiere Pro Rovi.  I currently use version 6.0.2.  The plug-in is necessary for proeprly package our Ikegami MXF media as a clip with audio and video in improted in the body.  Any sequence based on a screening of Rovi Code Total will not be rendered successfully and tries to return to infinity.

    To create a sequence for a new project, I always determine which media type within the project will be dominant and then drag an item of this type to the 'New element' icon in the project window to create a sequence that must match the source element.  It seems with the Total Code in the mixture, any order created by this method of drag - move resulted in a Total of Code sequence function preset, which, in theory, is not a problem, but it is in reality.  Here are a few screenshots that add support to this description.

    Above are the parameters of the sequence from a sequence of Rovi Total Code created by a drag and drop of JVC HD media, which is structured the same XDCAM EX media.

    Above is a screenshot of a rendering of this sequence of Code Total that is described in the upper part of the image.  The number of images of X grows there permanently and the rendering will never reach an end point, but eventually fills all space available on the disk from Scratch.

    Before the rendering of the same video that was copied in a sequence created with a XDCAM EX sequence is pre-set.  The number of images to display fixed rest and make it reaches end as it should.  You may even notice that the sequence will update with the green line to ' complete ' being rendered.

    Above are the import settings that are currently enabled for the plugin Code Total.

    I tried the method of creation of sequence 'New element' drag and drop for our three main media types: XDCAM EX (JVC) and IKegami MXF P2 MXF.  Results a Total of Code "Preset" base sequence that will not be rendered.  I would avoid using this method for the creation of the sequence to avoid the problem.  I also intend ot inform Code Total of the bug in their package. Unless Adobe, you think he's on your side?

    Thanks to all those who have taken a look at this question and Jim Simon for his efforts to solve the problems.

    Lindsay

  • Parameters of mixed media at the start of a project?

    Hello:

    I want to add a regular DV and HDV to the same timeline sequence.  Possible?

    I've read the appropriate section in the "classroom in a book" for first CS5 and have searched the forum, but could not find an exact answer.  I will create a film with the help of a regular DV (640 X 480) camera with a 4:3 ratio, so a camera HDV (1280 X 720) with a 16:9 ratio.  Here are my assumptions.  Please correct me if I am not correct interpretation:

    (1) for the creation of sequence 1, I use HDV 720 p preset.  I then drag the HDV video on the timeline.  Then I'm going to slide HD video not on the SAME timeline after the first video (I'm still in the sequence 1).  Class notes say to match the settings of sequence at the entrance.  But how can I do if I want to have the DV video follow the HDV video in the same sequence?  First CS5 turns into a somewhat regular DV in the preformat HDV video?  Or do I need to create a sequence of 2 with lower video settings and somehow merge the two sequences?

    Thanks in advance,

    Rich Locus

    Logicwurks, LLC

    There are different ways to address the issue.

    You might start by thinking about what the end result...

    for example if you want to end up with a movie DV (S 4:3).  Create an SD sequence and change all that.  Means you will reduce your HDV to adapt.  Easy.

    If you want a 16:9 movie. Create a 16:9 sequence and edit in that... but you will have images 4:3 which requires up to scale.

    Your options are:

    Motion Scaling (you will get a quality hit on the DV film)

    Instant HD plugin (efficient but it costs $)

    Maybe high-end in After Effects (better method than upscaling in the BODY)

    FWIW. There is no problem mixing and editing of images on the same trmeline (outside the different image size)

  • Chronology of CS5

    Hi, just installed CS5, can not activate timeline to receive clips... any idea?

    If you do not have a timeline yet just press file new timeline.

    Caution - it is a nomenclature commonly misused, at least with respect to the first. It is a kind of 'potato/potato' of the thing.

    In the jargon of the creation, the sequence refers to the project item that contains media edited, while the timeline refers to the Panel that contains one or more sequences. In this case, the op has the open timeline, but are not created or loaded in. Instead of "New chronology" (which does not exist as a command in the interface), the OP needs of the' new' command, menu item or button...

    .. .and the help documentation: http://help.adobe.com/en_US/premierepro/cs/using/index.html

  • Creation of settings of variables / a module of code that persist when the sequence is complete

    I create parameters/variables programmatically in a module of code (c#) by passing the object to people of the country and calls the "NewSubProperty".

    I also tried SetValNumber with PropOption_InsertIfMissing.

    But it seems that they are only created in this instance of the sequence, because they left when the sequence is over. I really wanted to persist.

    I wanted to avoid creating the globals station dynamically like that, but maybe that's all I can do to make them last.

    Any ideas would be appreciated gratefully.

    Thank you

    Ronnie

    Hello

    Check out the links on this answer

    http://forums.NI.com/NI/board/message?board.ID=330&message.ID=11226&query.ID=267719#M11226

    It may be useful

    Concerning

    Ray Farmer

Maybe you are looking for

  • HP makes weird noises

    I had a desktop computer Pavilion a1720n and when I push the power button makes an internal beep sound.  It will beep for a few seconds and stops then beeps for 5 seconds, I don't know what happens after that, after the last beep I hold down the powe

  • When can we expect a fix for safari crashing on the IPad?

    When can we expect a fix for safari crashing on the IPad? This happens whenever I have try to type in the browser window. I have tried everything supposed to be suggestions and nothing works. I use this for work and it's really frustrating!

  • Loading of the DLL string using the Code Library function node

    I experience now with the element of Code Library function node... what I wanted to do are, for example, I have compiled a. DLL file... which has a function that returns the pointer to string... function looks like: / * This function returns a pointe

  • MFP scanning for send/network M475DW

    I don't know how to change the e-mail address and the password so that I can scan a doc directly to my email. I can't access it from printing or HP ePrint online interface. How can I do this? My printer is wireless and my WiFi at home. I also can't a

  • How to get the name of the file in the file dialog box

    Hi all I use the file dialog box to open a file and read the contents of it. However, I want to show the name of the opened file and do not know how to do it. Someone has an idea to display the name of the opened file? Thank you.