How to divide a line into several posts based on the period.

Hello

I have data from the table like this:

Project EMP_ID Date_Assignment Date_Expiry EMP_TYP

P001 1000 1 JUNE 2015 30 JUNE 2015 D

P001 1001 1 JULY 2015 31 JULY 2015 D

1002 1 AUGUST 2015 31 AUGUST P001 2015 D

P001 2000 01 - JUN - 2015 31-DEC-9999 M

The report of three developers to the Manager during their own lifetime. I want the corresponding duration of Manager for each of them:

Project EMP_ID Date_Assignment Date_Expiry EMP_TYP

P001 1000 1 JUNE 2015 30 JUNE 2015 D

P001 1001 1 JULY 2015 31 JULY 2015 D

1002 1 AUGUST 2015 31 AUGUST P001 2015 D

P001 2000 1 June 2015 M June 30, 2015

P001 2000 July 1, 2015 M July 31, 2015

P001 2000 31 August 1, 2015-AUG - 2015 M

P001 2000 M 01-SEP-2015 31-DEC-9999

For the last span (01-SEPT.-15 to 31 - DEC-9999) there is no developer reporting to the Manager.

How in Oracle 11 g?

Post edited by: 2808486

The date ranges developers will never overlap? If so, what would happen?

Your desired results can be achieved like this, but I don't think it makes a lot of sense:

SELECT emp_id, date_assignment, date_expiry, emp_typ

WCP

WHERE emp_typ = '

UNION ALL

SELECT em.emp_id, ed.date_assignment, ed.date_expiry, em.emp_typ

Ed, em emp EMP

WHERE ed.emp_typ = '

AND em.emp_typ = am'

UNION ALL

SELECT em.emp_id, MAX (ed.date_expiry) + 1, TO_DATE (31-DEC-9999 ',' mon-dd-yyyy ""), em.emp_typ

EMP ed, emd em

WHERE ed.emp_typ = '

AND em.emp_typ = am'

GROUP BY em.emp_id

ORDER BY 4.2

Tags: Database

Similar Questions

  • Divide a line into several points

    I see that I can use SDO_LRS. SPLIT_GEOM_SEGMENT to divide a line into one only point (and get 2 lines resulting).

    However, someone at - it an idea how can I split a line, at several points, in several segments? I need to do for the number of lines, so a function or procedure would be nice as appropriate.

    Thank you

    Published by: ronnie-m on April 22, 2013 04:43

    Sorry for pasting quick and dirty, was a minimum on time and problems with my dev env.

    Perhaps still not the best outline but hoping there more explanaition should be ok.

    Concerning

    Luke

    select l.line_id,                                                                                                                                         -- line line_id
            ROW_NUMBER() OVER (PARTITION BY l.line_id order by l.rowid )                                                                              -- optional sub id, to make submains unique in combination with line_id (guess this will be ordered
            sdo_lrs.CLIP_GEOM_SEGMENT(SDO_LRS.CONVERT_TO_LRS_GEOM(l.geometry ), branch_measure, branch_next_measure, 0.05)              -- actual clipping, needs convert to LRS apparently, start end end branch measure
            from
                   line l,                                                                                                                                            -- rejoin mainly to get the geometry again
                             (
                             select line_id,                                                                                             -- line_id
                                     branch_measure,                                                                                                              -- measure of the branches (from CASE WHEN
                                     LEAD(branch_measure, 1, 0) OVER (PARTITION BY line_id order by branch_measure) branch_next_measure   -- Analytical function LEAD will get the next branch measure form the following ordered records per line_id
                             from
                                  (
                                  select a.line_id,                                                                                                              -- line_id
                                          CASE when                                                                                                              -- CASE (assuming branch will touch only at one point) it will be either the start or the endpoint
                                                      sdo_lrs.find_offset(                                                                    -- of the branch that will TOUCH, we are checking this based on the offset which one is closest
                                                                               SDO_LRS.CONVERT_TO_LRS_GEOM(a.geometry),                                   -- requires convert to LRS geom
                                                                               sdo_lrs.geom_segment_start_pt(b.geometry),                                   -- if it is neccessary to deal with multiple possibilities we might better use a temp table to evalute better
                                                                               0.05                                                                                -- TOLERANCE (all tolereance should be seen with respect to resolution of the data
                                                                               )                                                                   -- IF feasible, let spatial take care of the snapping
                                                      <
                                                      sdo_lrs.find_offset(
                                                                               SDO_LRS.CONVERT_TO_LRS_GEOM(a.geometry),
                                                                               sdo_lrs.geom_segment_end_pt(b.geometry),
                                                                               0.05
                                                                               )
                                            THEN
                                                 sdo_lrs.find_measure(
                                                                           SDO_LRS.CONVERT_TO_LRS_GEOM(a.geometry),
                                                                           sdo_lrs.geom_segment_start_pt(b.geometry),
                                                                           0.05
                                                                           )
                                            ELSE sdo_lrs.find_measure(
                                                                            SDO_LRS.CONVERT_TO_LRS_GEOM(a.geometry),
                                                                            sdo_lrs.geom_segment_end_pt(b.geometry),
                                                                            0.05)
                                              END branch_measure
                                  from line a, line b                                                                                                      -- self join using main and branch that touches
                                       WHERE sdo_relate(b.geometry, a.geometry, 'mask=TOUCH') = 'TRUE'                                     -- Should be replaceable with sdo_join + self join optimsation
                                       AND a.line_type = 'main'
                                       AND b.line_type = 'branch'
                                  union all                                                                                                                        -- union all to get the 0 measure (startpoint) in the subquery as the beginning of the first clipping segment
                                       select line_id, 0 as branch_measure
                                       from line
                                  union all                                                                                                                         -- union all to get the last measure (endpoint) in the subquery as the beginning of the first clipping segment
                                       select line_id,
                                                 sdo_geom.sdo_length(geometry, 0.05) as branch_measure                                                  -- maybe better to use actual get measure form lrs endpoint but is the same if no spaecial measure are used
                                       from line
                                  )
                             ) b
                             where
                             branch_measure < branch_next_measure                                                                                          -- avoid duplicates (2 branches at same location on main (but also the last + 1 segment with last measure and default value 0 from LEAD
                             and
                             l.line_id = b.line_id                                                                                                              -- join on line-id to reuse the geom (or potential other attributes from original lines
                             ;
    
  • divide a line into several columns

    Hi all

    I have a csv file with the information that looks like

    Dispatch_id/vendor_id

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

    1234/111

    1234/333

    1234\222

    1 234 111

    1234 111

    "1234/111.

    1234/111

    I want the output to be

    Vendor_id Dispatch_id

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

    1234 111

    333 1234

    222 1234

    1234 111

    1234 111

    1234 111

    1234 111

    I tried to use REGEXP_SUBSTR like this:

    SELECT REGEXP_SUBSTR('1234/111','[^/]+') DISPATCH_ID,

    VENDOR_ID REGEXP_SUBSTR('1234/111','[^/]+',1,2)

    BY DOUBLE D

    and I got the output

    Vendor_id Dispatch_id

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

    1234 111

    What is good!

    But my problem is that I have different delimiters in each line (example: ' \ ',' ',' ', "',)

    How can I mention all these delimiters in query REGEXP_SUBSTR?

    Or

    Is there another way I can write a simple query?

    Please help me!

    1058268 wrote:

    Hi all

    I have a csv file with the information that looks like

    Dispatch_id/vendor_id

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

    1234/111

    1234/333

    1234\222

    1 234 111

    1234 111

    "1234/111.

    1234/111

    I want the output to be

    Vendor_id Dispatch_id

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

    1234 111

    333 1234

    222 1234

    1234 111

    1234 111

    1234 111

    1234 111

    I tried to use REGEXP_SUBSTR like this:

    SELECT REGEXP_SUBSTR('1234/111','[^/]+') DISPATCH_ID,

    VENDOR_ID REGEXP_SUBSTR('1234/111','[^/]+',1,2)

    BY DOUBLE D

    and I got the output

    Vendor_id Dispatch_id

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

    1234 111

    What is good!

    But my problem is that I have different delimiters in each line (example: ' \ ',' ',' ', "',)

    How can I mention all these delimiters in query REGEXP_SUBSTR?

    ...

    Sure.

    "[^ /]" refers to all characters except ' / ' "

    ' [^ /------"]': the set of all characters except" / ', ' \' "' (single quote) or" "(space).  So, if you can list all the possible delimiters, just put them all inside square brackets, like this:

    SELECT REGEXP_SUBSTR (combined_id, "[^ / \"]' 1, 1 ") AS dispatch_id - omit the last 2 arguments, if you want

    , REGEXP_SUBSTR (combined_id, "[^ / \"]', 1, 2 ") AS vendor_id

    FROM table_x;

    If you would care to post CREATE TABLE and INSERT instructions for some examples of data, then I could test it.

    If it's easier to display the characters which may not be delimiters, then lose the ^ right after ' ['.]  For example

    "[0123456789]" which is equivalent to

    '[0-9]' and is also equivalent to

    "[[: digit:]]"

  • How to divide a file into several files pdf

    How to split a pdf file into separate files?

    You can also use Split Document command. It allows you to split a document by number of pages (for example, you can choose a page to every page in a separate PDF document).

    Acrobat X, this located in tools > Pages > Split Document. In Acrobat 9, it is found in Documents > Document from Split.

  • Divide a line into several lines based on the amount

    Dear all,

    Please provide a solution for this scenario.

    The query...

    Select line_id, component, sizes, quantity of sales_tab;

    and the result...

    LINE_IDCOMPONENTSIZESQUANTITY
    8BODYSMALL214.33
    4BODYMEDIUM187.89
    1BODYLARGE230.87
    7BODYEXTRA LARGE205.03
    3BODYXX LARGE148,52
    2SLEEVESMALL197.57
    6SLEEVEMEDIUM176.4
    5SLEEVELARGE193.8
    10SLEEVEEXTRA LARGE184.87
    9SLEEVEXX LARGE138.53

    Business rule: for all rows where the quantity is greater than 200, generate a new identical line with quantity = quantity - 200 like - we. This is the quantity of each line must not exceed 200.

    The required result is...

    LINE_IDCOMPONENTSIZESQUANTITY
    8BODYSMALL200
    8BODYSMALL14.33
    4BODYMEDIUM187.89
    1BODYLARGE200
    1BODYLARGE30,87
    7BODYEXTRA LARGE200
    7BODYEXTRA LARGE5.03
    3BODYXX LARGE148,52
    2SLEEVESMALL197.57
    6SLEEVEMEDIUM176.4
    5SLEEVELARGE193.8
    10SLEEVEEXTRA LARGE184.87
    9SLEEVEXX LARGE138.53

    Thank you

    Usman

    Use:

    Select line_id,

    component,

    sizes,

    amount of column_value

    of sales_tab.

    table)

    cast)

    MultiSet)

    Select less (200, - 200 quantity * (level - 1))

    of the double

    connect in quantity > 200 * (level - 1)

    )

    as sys. OdciNumberList

    )

    )

    order of line_id,

    amount desc

    /

    For example:

    SQL > with sales_tab like)
    2 Select line_id 8, component 'Body', 'SMALL' amount 214.33 of all sizes the double union
    3. Select 4, 'BODY', 'WAY', 187.89 double Union all
    4 Select 1, 'BODY', 'LARGE', 230.87 double Union all
    5. Select 7, 'BODY', 'EXTRA LARGE', 205.03 double Union all
    6 select 3, 'BODY', 'XX-LARGE', 148,52 of double union all
    7. Select 2, 'CHANNEL', 'SMALL', 197.57 double Union all
    8. Select 6, 'CHANNEL', 'WAY', 176.4 from dual union all
    9. Select 5, 'ROUND', 'BIG', 193.8 double Union all
    10. Select 10, 'ROUND', 'EXTRA LARGE', 184.87 double Union all
    11. Select 9, 'ROUND', 'XX-LARGE', double 138.53
    12                  )
    13. Select line_id,
    14 components,
    15 sizes,
    amount of 16 column_value
    sales_tab 17,
    Table 18)
    19 mount)
    (20) type multiset
    21 select less (200, - 200 quantity * (level - 1))
    22 double
    23 connect quantity > 200 * (level - 1)
    24                            )
    25 as sys. OdciNumberList
    26                    )
    27              )
    28 order of line_id,
    29 quantity desc
    30.

    LINE_ID COMPON QUANTITY SIZES
    ---------- ------ ----------- ----------
    1 BODY 200 GRAND
    1 BODY GRAND 30,87
    2 SLEEVES SMALL 197.57
    3 BODY XX LARGE 148,52
    4 WAY 187.89 BODY
    5 SLEEVES 193.8 GRAND
    SLEEVE 6 MEANS 176.4
    7 BODY 200 EXTRA-LARGE
    7 BODYWORK 5.03 EXTRA-LARGE
    8 200 SMALL BODY
    8 BODY SMALL 14.33

    LINE_ID COMPON QUANTITY SIZES
    ---------- ------ ----------- ----------
    CHANNEL 9 XX GRAND 138.53
    10 SLEEVES EXTRA-LARGE 184.87

    13 selected lines.

    SQL >

    SY.

  • Divide the line into several columns

    Hi all

    I have a question where I want to divide the line into multiple columns based on the delimiter ' |'.

    Staging of Table structure: People_STG, I have people in it.

    Create table People_STG(col1 varchar2(4000));


    Insert into People_STG(Emp_id|) User name | FirstName. LastName. JobTitle | hire_date | Location_id)


    SELECT REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 1) EMP_ID,
           REGEXP_SUBSTR ( COL1, '[^|]+', 1, 2) USERNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 3) FIRSTNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 4) LASTNAME,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 5) JOBTITLE,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 6) HIRE_DATE,
           REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 7) LOCATION_ID
    FROM PEOPLE_STG
    WHERE length(regexp_replace(COL1, '[^|]', '')) = 14;
    

    But I am facing a problem here, as in some lines, function is null, but when I run the above query, it is not recognizing the empty element and inserting Hire_date values of function and location_id in Hire_date where function is null.

    for example: 1 | akash51 | Akaksh | C | 22/11/14 | 15

    Here the function is null, so when I run top to divide query it will insert 11/22/14 in the function column and 15 in Hire_Date.

    Please need help on this one.

    Oracle Version: 11.2 g

    Thanks in advance,

    Akash.

    There are different techniques to cope with this.  Is a simple...

    SQL > ed
    A written file afiedt.buf

    1 with t as (select 1 | akash51 |) Akaksh | C | 22/11/14 | 15' as col1 of union double all the
    2 Select 2 | akash52 | Akaksh | C | Jobs jobs | 23/11/14 | 15' of the double
    3            )
    4  --
    5. end of test data
    6  --
    7 select trim (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 1)) EMP_ID,.
    8 toppings (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 2)) USERNAME,.
    9 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 3)) FIRSTNAME,
    10 pads (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 4)) LASTNAME,.
    11 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 5)) JOBTITLE,.
    12 pads (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 6)) HIRE_DATE,.
    13 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 7)) location_id
    14 * from (select replace (col1, ' |)) ',' | as col1 of t)
    SQL > /.

    EMP_ID USERNAME FIRSTNAME LASTNAME, JOBTITLE HIRE_DATE LOCATION_I
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
    1 akash51 Akaksh C 22/11/14 15
    2 akash52 Akaksh C Job 23/11/14 15

  • How to scan multiple pages into a single document using the CanoScan LiDE 200?

    How to scan multiple pages into a single document using the CanoScan LiDE 200?

    I can't find a way to get them to analyze all the time, or a way to put together them later.

    Hi dagda24,

    You can scan multiple pages into a single document with the scan PDF option.  Use the following steps to do:

    1. open MP Navigator.

    2. click on a Clcik.

    3. click Save to PC.

    4. change the Type of PDF file to PDF (multiple pages).

    5 other changes, as needed, and then click Scan.

  • my computer screen goes off for a few seconds and the lights without turning off the unit. This has happened several times, regardless of the period in which stays on.

    My computer operating system Mac Pro OS X EL Capitan 10.10.3, ink 13"early 2015 screen off for a few seconds and back on without turning off the unit.

    This has happened several times, regardless of the period in which stays on.

    Don't know what is happening with your publication details.  You posted in space of the Macbook Pro forum & even your profile indicates: ' MacBook Pro (retina, 13-inch, early 2015), OS X Yosemite (10.10.3)..

    Your post indicates you are using a Mac Pro, which is a desktop computer and with the help of El Capitan who is 10.11.2 not 10.10.3 which is Yosemite - 'my computer operating system Mac Pro OS X EL Capitan 10.10.3.

  • How to split a string into several substrings parent using a delimiter

    Hello

    I am forced to split a string into several substrings parent using a delimiter.

    And insert these substrings in variuou of the columns of a table in a row.

    For example. The sting is: ABC * DEF * GHI * JKH *.

    where ' *' is the separator.

    Desired output:

    Col1 Col2 Col3 Col4 Col5

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

    JKH GHI ABC DEF (null)

    Could you please guide me how can I achieve this.

    Thank you

    Bogoss

    Hello Salim,

    Leave the thread for reference... got this excerpt:

    with t as

    (

    Select "c: its: hgfd:1:23" Str

    )

    Select

    REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 1, null, 1) col1

    , REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 2, null, 1) col2

    , REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 3, null, 1) col3

    , REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 4, null, 1) col4

    , REGEXP_SUBSTR (str, ' ([^:] *)(:|$)', 1, 5, null, 1) col5

    t;

    This code snippet works well, but for the fixed columns. Here are 5 predefined columns.

    But I need to have a logic that I can browse the string any No.. sometimes.

    For example. If I get 3 secondary channels of the parent chain... I need to insert into 3 columns.

    And if I get 6 strings under... I need to insert into 6 columns.

    Could you please help me develop a logic like that.

    I use Oracle database 10g.

    And the data are currently being collected on external table... but I can store in a variable or a column of a database table.

    Thank you

    Bogoss

  • 1 line into several lines

    I have a table time_entries
    create table time_entries 
    (employee_id integer, 
    start_date date, 
    end_date date, 
    CONSTRAINT pk_time_entries PRIMARY KEY (employee_id, start_date))
    Suppose I have a line in this table (date in the format yyyy-mm-dd):

    Employee_ID, start_date, end_date
    -------------------------
    1, 2012-08-27, 2012-09-02


    As you can see the difference between dates is 7 days. I want to write a query so that each day has its own line, that is, I want to write a query that translates into 1 line above 7 rows. This is the result set, I want:

    Employee_ID, start_date, end_date
    -------------------------
    1, 2012-08-27, 2012-08-27
    1, 2012-08-28, 28-08-2012
    1, 2012-08-29, 2012-08-29
    1, 2012-08-30, 2012-08-30
    1, 2012-08-31, 2012-08-31
    1, 2012-09-01, 2012-09-01
    1, 2012-09-02, 2012-09-02

    Is it possible to do it in a select statement?

    Published by: srhcan on August 17, 2012 16:26

    Published by: srhcan on August 17, 2012 16:26

    srhcan wrote:

    BluShadow wrote:

    srhcan wrote:
    I expect a generic SQL solution that can run on databases other suppliers as well.

    This is not good design. Different databases have different ways of doing things for the best performance, etc. You are advised to use the best data, you write the query and does not focus on making things way 'generic '. This way you could design a "database layer" (aka the database layer) specific to each database.

    I agree with your point of view. But the system, I'm currently train do not have a DAO layer for each type of database. All SQLs are coded in the business layer, and this is why all these SQLs are generic SQLs.

    Then you must accept this run of things in this code will be more difficult to do, probably more code involved and may not be as effective as it could be. As they say... sh! design t = sh! application of t.

  • How to tune a myself to several files/folders at the same time?

    • I have a lot of music and video files that have suddenly become unresponsive to any media player after a connection Xbox Media Center (music/videos appear, but no action follows after that as they are accessible, media players and the Xbox Media Center don't always work correctly).
    • I can play one song/video after changing its properties (security permissions), which gives full control to me, the administrator manually. -Too much work for 4000 + files.
    • My current media player is iTunes, but also Windows Media Player fails to play the music/videos.

    Thanks for the reply, but I need to know how to proceed for several files/folders at the same time.  This particular set of directions only explain how to set permissions to a single.

    In Windows Explorer, select all the folders that you want to change the property on, then right click on ONE of these folders (your selections will remain)
    Choose Properties > Security > advanced > owner > edit
    Make your changes and do not forget to check the "Replace owner...". "downstairs.

    With thousands of files, it may take a few minutes. VP Tech Services

  • Is it possible to import the same JavaScript document into several PDF documents at the same time

    I have a recurring project where I disable advance click into individual PDF by using a JavaScript document. Is it possible to import this script into several PDF files at once rather than having to manage it at the same time?

    You can create an Action that adds the script. Curiously, the Action would be a JavaScript that uses the doc.addScript () method.

  • How to remove a line empty after an anchor of the table?

    We use FrameMaker 12 on Windows 7 (64-bit) platform.

    I'm working my way down to a chapter in the content of the training. I'm at halfway in the chapter, and - as fate would have - I need start a table at the top of a page.

    When I insert a table (with a caption/title at the top), FM creates an anchor at the top of the page. The space to the right of the anchor is a blank line.  In fact, I want the table to start at the top of the page without the white line to the right of the anchor.

    That's what I tried, with results:

    I put the cursor after the anchor and press DELETE.

    Result: The text * under * the table is set up above the table.

    I put the cursor after the last piece of text on the previous page and press DELETE.

    Result: The paragraph on the previous page Stoops to the next page on the top of the table, leaving a large empty space on the previous page.

    I change the start option (Table Designer) at the top of the column (or the top of the Page).

    Result: FM leaves the anchor where she was, move the table until the next page and leaves a completely blank page where the table used to be.

    Is it possible to just go up the table so that it is on the same line as the anchor?

    (And as a design tool problem, is there ALWAYS a reason why a content developer wants a complete line of vacuum over a table?)

    Thank you in advance,


    Tim

    Assuming that your para anchor has a spacing of X:

    • In the Paragraph Designer set it for tea by anchor, base: space: below the FMP: -x
    • In the table designer for the table, set the base: space: above: -x

    >... it NEVER is a reason why a content developer wants a complete line of vacuum over a table?

    A series of tables not run-together, sure. But the hack of negative space above there are quite often do suggests a design control.

  • SQL script to insert values into a table based on the type of user

    Hello

    I have a requirement where I need to insert (username, groupname) in a table based on the user name.

    We have two types of user accounts:

    (1) user name, which starts with "DV" example: "DVPATM."

    regular user 2) example: 'PATM '.

    If the user name begins with "DV" under instruction insert should kick in

    insert into < tablename > (username, groupname) VALUES (< username > ' < groupname1 >).

    otherwise below insert statement should kick in

    insert into < tablename > (username, groupname) VALUES (< username > ' < groupname2 >).

    I need to use SQL or stored only procedure.

    Please suggest

    Thanks in advance

    All things being constant, you could use decode/case just for groupname by examining the first character t the user name, for example

    insert into (username, groupname) VALUES (, (substr ( , 1, 2) the case when "DV" then else end));

    Fixed edit: value for OTHERS, as noted by Frank

  • How to create a dependent list of values based on the relationship master detail

    Hello

    I'm on jdev 11.1.2.4.

    1. I have a table main 'Reception' with the columns receipt_id and student_id (ReceiptVO)

    2. as well as an array of details 'Receipt_Detail' with the columns receipt_id, course_id (ReceiptDetailVO)

    (There are some othere columns in the two tables, but I've only mentioned those which is relevant to this example.)

    3. the two tables are related with receipt_id.

    I want to create a dependent class LOV that filter courses related to the student selected in the main table. (There is a student_course table that holds student_id, relationship of course_id, StudentCourseVO)

    to do this, I have

    1 created VO based on the student_course table

    2 Add a view that filters based on the id of the student

    3 assigned this VO to receipt_detail tables course_id

    It comes

    in the accessor receipt_details VO view, I do not show the ability to select the student_id of the main table (IE ReceiptVO). It only shows the columns in the ReceiptDetailVO.

    Please can you help me?

    Thank you

    What you need in your ReceiptDetailVO is the StudentId of master ReceiptVO attribute.

    To do this, you can:

    1. for your ViewLink (between ReceiptVO and ReceiptDetailVO), you must generate the Source accessor:

    In this way, in the VoRowImpl Java to ReceiptDetailVO class, you will get a way to access master ReceiptVO line (you can find a new method with the name that you gave the name of the accessor in the top of the dialog box)

    2. then, in the ReceiptDetailVO, create Transient attribute, say, MasterStudentId. Access Java's VORowImpl class, within the get for this new attribute accessor method, use the previous step name accessor method to get the line main and finally master StudentId.

    3. the rest is easy - use this new attribute transitional to filter LOV about the student teacher ID...

Maybe you are looking for

  • Folders of bookmarks in Safari in the Favorites bar not open click when you access one after another

    Question: The records of Safari bookmarks in the bookmarks bar not open click when you access one after another Diagnostic steps: (1) create 2 or more folders in the bookmarks with the individual sites in their breast.  (Examples of folder name: care

  • my iphone does not I want to change it

    my phone I stop work from6 6 months ago I tried meny things and does not and ii asked apple care thay told me that his good change for 5000 l.e so I asked apple care in daubi and told me that his change of 1800 d.h so I do not have yseying it is bad

  • Uninstall failure

    I can't uninstall PCmightymax2011. Add/Remove does not uninstall the program. It blocks all programs and cannot retrieve earlier dates.

  • pc Windows vista restore mirror image problems

    I have windows vista and make regularly a full image backup of my pc. Have reinstalled before and it worked. I now need to reinstall the backup mirror but having booted from the windows vista disc and selected repair etc pc means that it cannot find

  • Network and sharing residential group Center

    Bad for a some time now thanks to the homegroup in Win 7 PC. I have two PCs I want to do the networking. Both are running Windows 7. I want to set up the homegroup on MainPC and have LapPC to join the homegroup. It won't work. Tried several times. I