random data in JTable model

Hi all:
I'm testing a JTable example, I create a test as data model below:
class MyDataModel extends AbstractTableModel{
          private String columns[] = {"col1","col2","col3","col4","col5","col6","col7","col8","col9"};
          @Override
          public int getRowCount(){return 10;}
          @Override
          public int getColumnCount(){return columns.length;}
          @Override
          public Object getValueAt(int row, int col){
               Integer i = (new Random()).nextInt(100);
               return i;
          }
          @Override
          public String getColumnName(int col){ return columns[col];}

     }                    
You can see that I filled the cell with varying random number between 0 and 100.

The table has been created and the number displayed as expected. However, when I click on one of the cells, its data is changed, as well as in other cells, that too. It seems that the data model is reloaded again, and random numbers change dynamically.
SetValue is called a bit? That really intrigued me.

Thank you
Johnny

You do not fill the model with random values, on the other hand back you a new random value whenever getValueAt() is called. This is called whenever the table will redraw (for example because the editing stops - note that you don't actually saved the value changed, see the AbstractTableModel setValueAt implementation which is empty).

Tags: Java

Similar Questions

  • Random date - combining forms

    Numbers ' 09-

    We will generate a random date between 1752 and 2099!

    A line, three columns over a single column as space reserved.

    A1 - C1 and E1 (or other) for the placeholder that will be hidden at any given time.

    A1 Gets the with year = HAZARD (1752, 2099).

    B1 Gets the using month = MONTHNAME (ALEA (1: 12).

    E1 determines if A1 is a leap year using = IF (OR (MOD(A1,400) = 0, AND (MOD(A1,4) = 0, MOD(A1,100) <>0)), "LY", "NOT of LY").

    It was easy... now the fun part...

    Here are the options I can not understand how to combine.

    C1 Gets the date. We are not concerned by the day of the week because the point is to understand that mentally.

    Very well. Then... 30 days has September, April, June and November. All the rest have 31. . .

    = IF (OR (B1 = "September", B1 = "April", B1 = "June", B1 = "November"), ALEA (1, 30), ALEA (1: 31))

    Except February which has 28, unless it's a leap year and then is 29, and interprets the above formula February which have 31 days.

    We will temporarily to paste the formula down in C3 and change of B1 to the constant "February" for testing.

    = IF ((ET (B1 = "Février", E1 = «LY»)), ALEA (1, 29), ALEA (1: 28))

    During the test I also changed the true and false constants functions to see if it is working properly, and he does.

    Somehow, I need to combine the two so that a single number that satisfies all the arguments appear in C1. To do this, I have to 'trap' of February by nesting it perfectly in there. It seems that it should fall after the months of 30 days trial with the other seven months with 31 days. In other words: IF cell B1 is not one of the 04:30 day month THEN assess February and if it isn't wouldn't that be, SO it's a thirty and one day months.

    Thoughts. Alternatives.

    Thank you

    -Joe

    I think you can simplify the solution with something like this:

    This adds a random number of days between 0 and 127104 to the start date.

    You can get the number of days between two days simply by subtracting B2 - A2, here.  Or you can use = DATEDIFF (A2, B2, "D")

    SG

  • Foreign key constraint, not recognized during the synchronization of data with the model dictionary

    Hello

    Data Modeler is a foreign key constraints do not recognize when synchronizing data with the model dictionary, although the foreign key is there (in the database that a data dictionary is read). I can't find any criterion when a foreign key is not recognized by the Data Modeler. Are there limits to the length of the attribute, or the number of columns in a foreign key, or other limitations which may lead to this behavior not to recognize a fk by Data Modeler? I have columns more than 32 characters. I compared with the fk is recognized by DM, but I can't find anything that indicates why it is not recognized.

    I wonder if someone also has constraints of foreign keys that are not recognized in the comparison of data bases and model?

    Thank you

    Robert

    Hi Robert,.

    Thanks for the comments, I logged a bug.

    Philippe

  • Use SQL statements to roll a calendar forward to a random date

    Hello

    Oracle 10.2.0.4 Linux

    We have two tables largeish (10 ^ 5 rows each) who follow our planned workforce hours.  The first table created generic programs that show the days, at that each must have Schedule 1-n lines in this document, one for every day of the cycle.  The majority of our workforce is on a 8 day cycle.  In the example below, I have two shifts

    Sched_4d it is a cycle of four days from the day - the day pairs off.

    Sched_3d cycle this is a full day off, half day, day off.

    According the information below you can see that in 1990, the sched_4d went to a day of 8 hours to 9 hours a day.  There is no guarantee that SCHED_4D will not win suddenly 2 additional days in this years union negotiations.

    The second table is a simple assignment table when a person goes on a calendar.

    To determine the schedule for the day a datum, you look at the table EMP_SHIFT to determine which calendar is 'in progress', then you look at the date at which the person has been assigned to the planning and guess that's SHIFT_ID 1, the next day is SHIFT_ID 2 until complete you the cycle and try again.

    CREATE TABLE SCHED_DATA

    (

    SCHED_ID VARCHAR2 (8 CHAR) NOT NULL,

    ASOFDATE DATE NOT NULL,

    SHIFT_ID NUMBER (3) NOT NULL,

    SCHED_HRS NUMBER (4,2) NOT NULL

    )

    ;

    CREATE UNIQUE INDEX SCHED_DATA on SCHED_DATA (SCHED_ID, ASOFDATE, SHIFT_ID)

    ;

    CREATE TABLE EMP_SHIFT

    (

    EMPID VARCHAR2 (15 CHAR) NOT NULL,

    ASOFDATE DATE NOT NULL,

    SCHED_ID VARCHAR2 (8 CHAR) NOT NULL

    )

    ;

    CREATE UNIQUE INDEX EMP_SHIFT on EMP_SHIFT (EMPID, ASOFDATE, SCHED_ID)

    ;

    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', 1 JANUARY 1980 ', 1, 8);

    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', 1 JANUARY 1980 ', 2, 0);

    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', 1 JANUARY 1980 ', 3, 8);

    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', 1 JANUARY 1980 ', 4, 0);

    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', 1 JANUARY 1990 ', 1, 9);

    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', 1 JANUARY 1990 ', 2, 0);

    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', 1 JANUARY 1990 ', 3, 9);

    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', 1 JANUARY 1990 ', 4, 0);

    INSERT INTO SCHED_DATA VALUES ('SCHED_3D', 1 JANUARY 1990 ', 1, 8);

    INSERT INTO SCHED_DATA VALUES ('SCHED_3D', 1 JANUARY 1990 ', 2, 4);

    INSERT INTO SCHED_DATA VALUES ('SCHED_3D', 1 JANUARY 1990 ', 3, 0);

    INSERT INTO EMP_SHIFT VALUES ('001', 20 DECEMBER 1989', 'SCHED_4D');

    INSERT INTO EMP_SHIFT VALUES ('001', 1 JANUARY 1990', 'SCHED_4D');

    INSERT INTO EMP_SHIFT VALUES ('001', 3 JANUARY 1990', 'SCHED_3D');

    In view of the above, I need to write a select statement receives 2 dates (: of and: to) and for all employees of EMP_SHIFT returns one row for each day and the hours for that day.

    Thus, the data above with one and from 21 December 1989 ': 5 January 1990 ' should return

    EMPID, DATE, SCHED_HOURS

    001, 21 - DEC, 0

    001, 22 - DEC 8

    001, 23 - DEC, 0

    001, 24 - DEC 8

    001, 25 - DEC, 0

    001, 26 - DEC 8

    001, 27 - DEC, 0

    001, 28 - DEC 8

    001, 29 - DEC, 0

    001, 30 - DEC 8

    001, 31 - DEC, 0

    001, 01 - JAN 9

    001, 02 - JAN, 0

    001, 03 - JAN 8

    001, 04 - JAN 4

    001, 05 - JAN, 0

    The employee began thir mission to sched_4d the 20 - DEC, then it would be SHIFT_ID 1.  DEC 21 - Therefore SHIFT ID 2, which is 0 hours.  Cycle until the next event which is 01 - JAN, when they are assigned to the new sched_4d who work 9 hours on day 1.  03 - JAN they pass to the new cycle and go to the 8:4:0 rotation.

    I can see how I could

    SELECT EMPID, DAY_OF_INTEREST, SCHED_ID

    EMP_SHIFT a, (SELECT 1 January 1979 ' + rownum 'DAY_OF_INTEREST' from dual connect by level < = 10000)

    WHERE A.ASOFDATE = (SELECT MAX (A1. ASOFDATE) OF A1 EMP_SHIFT WHERE A1. EMPID = A.EMPID AND A1. ASOFDATE < = DAY_OF_INTEREST)

    AND DAY_OF_INTEREST BETWEEN: FROM_DT AND: TO_DT

    And I guess I need to use some kind of MOD ((DAY_OF_INTEREST - EMP_SHIFT. ASOFDATE), (#number of days of shift)) which shift_id applies to a given Day_of_interest

    But I'm struggling to do this in a way that could evolve to more than one employee,

    The analytical functions achieve neatly?

    Hello

    There are several analytical functions that might help here.  Two tables include only; departure dates we need to know the end dates of both employee assignments regarding schedules.  I used the analytical functions MIN and LEAD to get these in the query below.  In addition, the following query needs to know how many days is in each Annex.  I used the analytical COUNT function for that.

    WITH params AS

    (

    SELECT TO_DATE (December 21, 1989 ","DD_MON-YYYY"") AS start_date

    , TO_DATE (5 January 1990 ', 'DD_MON-YYYY') AS end_date

    OF the double

    )

    all_dates AS

    (

    SELECT the LEVEL - 1 AS a_date + start_date

    OF params

    CONNECT BY LEVEL<= (end_date="" +="" 1)="" -="">

    )

    sched_data_plus AS

    (

    SELECT sched_id, asofdate, shift_id, sched_hrs

    NVL (MIN (asofdate) over (PARTITION BY sched_id

    ORDER BY asofdate

    RANGING FROM 1 TO MORE

    AND UNBOUNDED FOLLOWING

    ) - 1

    , TO_DATE (31-DEC-9999', 'DD-MON-YYYY')

    ) AS uptodate

    , COUNT (*) OVER (PARTITION BY sched_id

    asofdate

    ) AS days_in_sched

    OF sched_data

    )

    emp_shift_plus AS

    (

    SELECT empid, asofdate, sched_id

    NVL (in ADVANCE (asofdate) OVER (PARTITION BY empid

    ORDER BY asofdate

    ) - 1

    , TO_DATE (31-DEC-9999', 'DD-MON-YYYY')

    ) AS uptodate

    Of emp_shift

    )

    SELECT e.empid

    d.a_date

    s.sched_hrs

    Of all_dates d

    JOIN the s sched_data_plus WE d.a_date BETWEEN s.asofdate

    AND s.uptodate

    JOIN e-emp_shift_plus WE d.a_date BETWEEN e.asofdate

    AND e.uptodate

    AND e.sched_id = s.sched_id

    AND MOD (d.a_date - e.asofdate)

    s.days_in_sched

    ) + 1 = s.shift_id

    ORDER BY e.empid

    d.a_date

    ;

    This request is started by getting daily interest, that is, every day between the given - start and end dates.  (When you said "random date", I assume you meant 'a date', data which may not involve any random element.)

    Once we have a list of all the dates of interest, to get the results you want is just a matter of inner join to get the schedules were in effect on these dates, and which employees were assigned to these annexes to these dates.

    If you are worried about having more than 1 employee, maybe you should post the sample data that has more than 1 employee.

    How do you manage the endings of the employee?  For example, what happens if the employee 001 had left on January 4, 1990?  I guess that you would like the output for this employee stop January 4, rather than continue to the end of the period that interests us.

    If you have dates of termination in an employee table not shown here, then you can use this date of termination instead of December 31, 9999 as the end date by default of the assignments.  If you have a special schedule for endings (or leave, by the way) you'll probably want to include a WHERE clause in the main query does not display dates after the employee left (or when the employee was on leave).

  • Several data definition EBS models

    Hello
    My problem is the following;
    I have a definition of data with 2 models in EBS 11i, say T1 and T2. I want to do is display the output of the T1 when I run my program simultaneously and burst T2 in a file. The problem is, there seems to be no way to define T1 as the model by default for the program to use display T2 and bursts T2.
    I feel I'm missing something. Notice to lovers?
    Kofi

    You can try.

    Access
    -Concurrent-> programs > system administration
    Ask the program. Choose update-> setting-> T1 choose and register on-site

    Now, when you run this CP you should have by default like T1 only.

  • Data problem whith model number data type

    Hi all

    Here's a strange thing with the data model of the Editor (Oracle Business Intelligence 11.1.1.7.0 / windows 7 / Firefox).

    Create a data set of sql query with this statement "select 1.23 double." The data type of the column is whole and cannot be changed.

    So I use the cast function "select cast (1.23 v number (16.2)) double ' and now it's OK the data type is double.

    Now add a second line, change the statement like this:

    Select cast (1.23 v number (16.2)) double

    Union of all the

    Select cast (4.56 v number (16.2)) double

    If you save the template, and charge it, the type of data has changed in full!

    Anyone know why this is happening?

    The patch should be applied, but is a temporary solution:

    Select cast (d.v number (12,2)) v

    de)

    Select v 1.23 double

    Union of all the

    Select 2.34 double v

    ) d

    Thank you

  • Get the exact name of the folder on the data of a model store

    All,

    So pretty much miss me it there only a few items.  I want to specify a specific data store and get the names of models and their folder on the data store locations.

    I have this command and it gives me the info of the HD, but is not correlated with the virtual computer name.  Question: How can I format this to get VM name mapped to the location of the data store?

    Get-data center-name 'main data center 1 | Get-data store 'templates_isos ' | Get-model | Get-hard drive

    That is, look at the Parent property

    Get-data center-name 'main data center 1 | Get-data store 'templates_isos ' | Get-model | Get-hard drive | Select Name, Parent

    In the default view you see not all the preoperties that are there.

    You can use the Get-Member cmdlet to see the available properties

    Get-data center-name 'main data center 1 | Get-data store 'templates_isos ' | Get-model | Get-hard drive | Get-Member

  • Generate random data by using lookup tables

    I have 2 tables. Student_subject table contains the list of the students and they are enrolled in subjects.
    Table Subjent_mark contains valid degrees, a student can have for a topic.
    I want to generate data for all students with valid marks randomly.

    Examples of data include:


    with student_subject as
    (select '111' student_id
    'rea' subj_id
    of the double
    Union
    Select '111' student_id
    subj_id 'wri '.
    of the double
    UNION
    Select '111' student_id
    subj_id 'ss '.
    of the double
    Union
    Select '111' student_id
    "sci" subj_id
    of the double
    Union
    Select '222' student_id
    'rea' subj_id
    of the double
    Union
    Select '222' student_id
    subj_id 'wri '.
    of the double
    UNION
    Select '222' student_id
    subj_id 'ss '.
    of the double
    Union
    Select '222' student_id
    "sci" subj_id
    of the double
    Union
    Select '333' student_id
    'rea' subj_id
    of the double
    Union
    Select '333' student_id
    subj_id 'wri '.
    of the double
    UNION
    Select '333' student_id
    subj_id 'ss '.
    of the double
    Union
    Select '333' student_id
    'mus' subj_id
    of the double
    Union
    Select '444' student_id
    'rea' subj_id
    of the double
    Union
    Select '444' student_id
    subj_id 'wri '.
    of the double
    Union
    Select '444' student_id
    subj_id 'ss '.
    of the double
    Union
    Select '444' student_id
    'mus' subj_id
    of the double
    Union
    Select '444' student_id
    "sci" subj_id
    the double)
    subject_mark as
    (
    Select
    'rea' subj_id,
    ' O '
    of the double
    Union
    Select
    'rea' subj_id,
    THE OF '
    of the double
    Union
    Select
    'rea' subj_id,
    « N »
    of the double
    Union
    Select
    'rea' subj_id,
    « P »
    of the double
    Union
    Select
    subj_id "wri"
    ' O '
    of the double
    Union
    Select
    'rea' subj_id,
    THE OF '
    of the double
    Union
    Select
    'rea' subj_id,
    « N »
    of the double
    Union
    Select
    subj_id "ss."
    « A »
    of the double
    Union
    Select
    subj_id "ss."
    « B »
    of the double
    Union
    Select
    subj_id "ss."
    « C »
    of the double
    Union
    Select
    subj_id "ss."
    A '
    of the double
    Union
    Select
    subj_id "ss."
    « E »
    of the double
    Union
    Select
    "sci" subj_id,
    « A »
    of the double
    Union
    Select
    "sci" subj_id,
    « B »
    of the double
    Union
    Select
    "sci" subj_id,
    « C »
    of the double
    Union
    Select
    "sci" subj_id,
    A '
    of the double
    Union
    Select
    "sci" subj_id,
    « E »
    of the double
    Union
    Select
    'mus' subj_id,
    « A »
    of the double
    Union
    Select
    'mus' subj_id,
    « P »
    of the double
    Union
    Select
    'mus' subj_id,
    "NA".
    the double)
    SELECT * FROM subject_mark has.
    student_subject b
    where
    a.subj_id = b.subj_id

    Something like that...?

    SELECT student_id, SUBJ_ID, subj_mark
    from (
    SELECT b.student_id, b.SUBJ_ID, a.subj_mark
    , row_number() over(partition by b.student_id, b.subj_id order by dbms_random.value) as mark_num
    FROM subject_mark a, student_subject b
    WHERE a.subj_id = b.subj_id
    )
    where mark_num = 1
    order by student_id, subj_id
    ;
    STUDENT_ID SUBJ_ID SUBJ_MARK
    ---------- ------- ---------
    111        rea     O
    111        sci     A
    111        ss      D
    111        wri     O
    222        rea     P
    222        sci     D
    222        ss      B
    222        wri     O
    333        mus     A
    333        rea     P
    333        ss      C
    333        wri     O
    444        mus     A
    444        rea     N
    444        sci     B
    444        ss      E
    444        wri     O         
    
     17 rows selected 
    

    ... (assuming that you add subj_mark as an alias in your query of subject_mark)

    Kind regards
    Bob

  • Columns of REF Modeler 3.0 data in relational model

    Hello

    Anyone know how in Data Modeler 3.0 (Production), create a column in a relational table that reference (REF) an object table and then brought this REF to the table of the object?

    Thank you

    Technically this is not a problem however what kind of line you expect to see. Clause of "Scope" is not obliged referential, so we cannot use the FK line. We need another type of line - probably it will increase the complexity and decrease the understanding for large diagrams. The same concerns the functional dependencies.

    Philippe

  • Cannot see the data of the model within inline ItemRenderer in Spark DataGrid

    I'm having a problem displaying the model data in an ItemRenderer, online in a Spark DataGrid

    Here is the code for the DataGrid control

    < s:DataGrid id = "moduleDG" includeIn = "HomeRequired" x = "20" y = "116" width = "764" height = "404".

    " click =" DGchangeHandler (event) "dataProvider =" {model.items} ">

    < s:columns >

    < s:ArrayList >

    < s:GridColumn id = "myModuleName" dataField = "moduleName" headerText = "{model.ui_nameColumn_str}" / > "

    < s:GridColumn id = "myEnterColumn" dataField = headerText = "{model.ui_actionColumn_str"launchActionText"}" >

    < s:itemRenderer >

    < fx:Component >

    < s:GridItemRenderer >

    < s:Button label = "{parentDocument.model.ui_nameColumn_str}" / > "

    < / s:GridItemRenderer >

    < / fx:Component >

    < / s:itemRenderer >

    < / s:GridColumn >

    < / s:ArrayList >

    < / s:columns >

    < / s:DataGrid >

    In the "inline" without the parentDocument reference ItemRendered, I get an 1120: access of undefined property error model. If I use outerDocument I get 1178: any attempt to access the property model inaccessible through a reference with static type error. I don't know what I should use here...

    The next column has no difficulty to display the property of model.ui_nameColumn_str - I understand the issue around scope and view the correct instance, I don't know how to get the model of the inline ItemRenderer. (We use simplemvc)

    Thank you

    Model must be a public variable, then outerDocument should work.

  • Sort Date in string model

    My xml data:
    <? XML version = "1.0" encoding = "UTF-8"? >
    < p0 >
    < p1 > < d2 > 11 March 09 < / d2 > < / p1 >
    < p1 > < d2 > 4 August 09 < / d2 > < / p1 >
    < p1 > < d2 > 3 March 09 < / d2 > < / p1 >
    < p1 > < d2 > 22 March 09 < / d2 > < / p1 >
    < / p0 >

    I want to sort the data according to the date, but the xml data in d2 are of type string that I can't change in the source of data due to some restrictions.
    so all that I can to sort out the model only, pls tell me a way to do this.
    I tried the following, but it does not work.


    <?-foreach: p1? > <? fate: to_date(d2,'dd-mon-yy');' ascending '; data-type = "text"? >
    <? D2? > <? end foreach? >

    Clues here?

    Thank you
    Mouly
    
    
    
    
    
  • Notify the ListView data in the model have changed

    Hello!

    I know this question has been asked several times, but I have yet to find anything satisfactory.

    I have a ListView, filled with a QListDataModel.

    After some time I update an element of the model. So far, the only way I found to the ListView so that this change is to delete the model and then reappend all elements. But the problem with this approach is that ListView Flash and scroll to the top of the page. Is there anything better to just say ListView that it should update the visible elements?

    Thank you

    Well, I just signal myself in the WRITE method and it works.

  • Inspiron 14 3420 - crashes and random horizontal lines poster model

    I bought the Laptop Inspiron 14 3420 in December 2012. I am facing some problems of display on this laptop, it hangs and displays patterns of horizontal lines (like: http://www.youtube.com/watch?v=zOjTK4ic1E8) and it happens randomly and not always.
    It happened a few months before and then automatically slipped, I thought that this could have happened due some application installation. But now its past very frequently, I don't know what is the cause.
    I tried to change and update drivers display for both integrated Intel card graphics and Nvidia graphics card, but the problem is still there.
    I tried Googling this problem and found that this could be the problem of Nvidia graphics card, so I have disabled this card from the Device Manager, but it does not solve the problem.
    Can you please help me solve this problem

    Hi mominbilal,

    Try to release the residual charge of the system. Here are the steps:

    • Disconnect all external devices (printers, external hard drives, flash drives) on the computer, including the battery and the AC adapter / CC.
    • Press and hold the power button for 20 seconds.
    • Reconnect the battery and the AC adapter / CC. Try to restart the computer and check.

    In addition, run 'Diagnostics' on the system to confirm the operation of the equipment. Here are the steps:

    • Restart the system and immediately start typing on the "F12" key to enter the "Boot Menu".
    • Press the "Down arrow" to select the option 'Diagnostics '. Press the enter"" key.
    • The diagnostics begin. Please note the exact error message / code, if everything appears on the screen.
    • You can also view the video on the link http://dell.to/17DCL0R for more information.

    Check also if there is no problem with the LCD display by running LCD BIST (Built in self test). To run the LCD BIST, press in and hold the D key on the keyboard while pressing the power button, then release both buttons at the same time. This will launch a screen gray, then red, then blue, then green then white, to allow you to inspect the entire LCD to the purity of the color on each screen and to better identify defects such as cracks on the LCD screen or stuck pixels which is perhaps not obvious in normal display mode.

    Try to connect the system to an external monitor when the issue appears to happen again if the issue reappeared on screen external source or not. This will help us to further isolate the issue.

    Please answer with the information, I'll be happy to help you further.

  • Concatinate date and time models

    Hello

    I have a problem.

    In forms 6i, I have two columns of data base no:

    1st is the Date format (exact)

    2nd is the time format (HH24:MI:SS)

    Now, I want to combine these two in 3rd fild who is date/time format (exact HH24:MI:SS).

    I tried this approach:

    Select to_date (to_char(:field1,'dd.mm.yyyy'): double to_char(:field2,'HH24:MI:SS');)

    ORA: 01850

    I also tried various other optios I found on the net but all I get are variations to errors ora 01850.

    Help, please!

    Thank you!

    994543 wrote:

    The two responses gives always the error: ora-01858

    Is there another way... I mean I didn't event know what to post here to help solve this problem.

    When I tried the solution answer was almost identical to what you guys posted here.

    You must post the values of Field1 and Field2. If they contain the values in the format that you specified then the solution should work without any fault. Here is an example

    SQL > var field1 varchar2 (10)

    SQL > varchar2 (8) var field2

    "SQL > exec: field1: = October 30, 2013.

    PL/SQL procedure successfully completed.

    "SQL > exec: field2: = 23:59 min 59 s.

    PL/SQL procedure successfully completed.

    SQL > alter session set nls_date_format = ' DD. MM YYYY HH24:MI:SS';

    Modified session.

    SQL > select to_date(:field1 ||) ' ' || : field2, ' JJ. MM YYYY HH24:MI:SS) double dt;

    DT
    -------------------
    30.10.2013 23:59:59

    SQL >

  • How to complete the data sorted with Model Driven Development

    Hello

    I use a model based development. I use count with all the Fill method. But the results are not be returned sorted by a field that interests me. How can I tell the filling to sort by a field. Is there an annotation that I provided in the model...

    Thank you

    RK

    You should be able to achieve what you want with a filter of explicit criteria on your entity.

    In the Design of Modeler view, select your entity and add a filter. You will see that there is an "Order By" field in the properties view.

    Enter the value that you want there, and then save and transfer your model. When you do not enter anything in the 'Criteria' field, you create a fill count with all.

    Here is an example of an entity created with this type of filter. they are sorted by price in ascending order:

     

Maybe you are looking for

  • ActiveTouch general Plugin Container breaks down, there is no solution for this?

    I am trying to access a session of WbEx who use this plugin "ActiveTouch General Plugin Container" version 105Tried with both versions 28.12.2013.820 & 29.1.2014.722 With the latest version of Firefox: ESR 31.3.0 & 34.0.5 In both cases the plugin fre

  • Cipher.exe to overwrite the data deleted in Windows works with Windows Vista?

    Cipher.exe to overwrite the data deleted in Windows works with Windows Vista? He worked under Windows 2000, but not sure about Vista!  Otherwise Vista contains a command to clean free space HDD?

  • DIFxAPI error b/c Vista is 64 bit?

    I recently had my old computer crash and I needed a new computer for my studio recording (Pro Tools 7.4 THE), so I had to get another Vista. This new Vista is 64 bit. I had the SAME problem installing Pro Tools and all the Plugins - Antares Auto-Tune

  • Cannot access the services of the Xbox

    I bought Windows 8 on October 26. Since purchasing, I have not been able to access all Xbox services are available through Windows 8. When I try to look at account information, I get the error message "sorry, the Xbox service is not available right n

  • PROD vs MINK of database

    Hi allEBS R12.2.4RHEL6.5The number of objects in PROD vs database equal VISION?For example the number of objects in PROD.apps.objects = VISION.apps.objects?Thank you very muchJC