master/detail relationship through two workflow

Hello world

I use jdev 11.1.1.7.0.

In my application, I created a relationship master-detail between departments and employees (departments is master and employees is detail). Then, I created two stubborn workflow.

Department-stream with a department.jsff and I drag / drop the departmentVO as a form.

dep.png

employee-stream with an employee.jsff, on this page I drag / drop employeeVO located under departmentVO in the control panel of data:

emp2.png

can I use these two TFs (Department-flow and employee-flow) through two different ways

1- I create a main.jspx page and I put two TFs as an area on main.jspx.

      <af:form id="f1">
        <af:region value="#{bindings.departmentflow1.regionModel}" id="r1"/>
        <af:region value="#{bindings.employeeflow1.regionModel}" id="r2"
                   partialTriggers="::r1"/>
      </af:form>

in this case when I run the homepage, two TFs are in sync with each other, I mean when I navigate between departments in the workflow Department, employees in the employee flows are discount

and also if I enlist in the workflow Department then changes in the flow of employee will be validated.

2- in this case first I create a master stream with an master.jsff and then I put two TFs as an area on master.jsff.

 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <af:region value="#{bindings.departmentflow1.regionModel}" id="r1"/>
  <af:region value="#{bindings.employeeflow1.regionModel}" id="r2"
             partialTriggers="::r1"/>
</jsp:root>

and finally I put flow master as a region on the page main.jspx.

       <af:form id="f1">
        <af:region value="#{bindings.masterflow1.regionModel}" id="r1"/>
      </af:form>

in this case, when I run the main.jspx , always the two page two TFs are in sync with each other (updating of employees when I navigate between departments)

but in this case the validation in the workflow Department commit not changes in the flow of employee.

Anyone know how I can I have this (validation cause Department-stream flow used as case 1)?

Habib

Concerning

Habib,

I just did what you said.

1. Ran the mainWithMasterFlow.jspx,

2. the Department rendered initially has only one employee.

3. has changed the salary. (Kept the emphasis placed in the same field)

4 click "Commit".

Above scenario failed, because the change in value has not been submitted. Try adding autoSubmit = true for the salary field and then repeat the procedure, you will see the file be saved.

Rambeau

Tags: Java

Similar Questions

  • How to create the column of the table for long-form Master detail relationship

    Apex 4.1

    Oracle 11g

    I created a form master detail and see the main table hotel_list and table hotel_mapping as detailed below.

    Hotel_list

    ID HOTEL_NAME

    1 Holiday Inn

    Hotel Hilton 2

    Hotel_mapping

    ID HOTEL_NAME MAPPING_NAME

    1 Inn Holiday Inn Select hotel

    2 holiday hotel Holiday Inn Select

    3 hotel Holiday Inn Holiday Inn Hotel

    4 Hilton Hotel Hilton Hotel chain

    Hotel Hilton 5 HiltonHotel

    Table Hotel_name Hotel_list is a linked table Hotel_mapping

    When I add a line to the Hotel_mapping table for the selected row in the hotel_list table, mapping_name of column is null, therefore impossible to create the relationship between the main table and the secondary table.

    I would like to know, how to create the relationship?

    Thank you very much

    Best regards

    Yong Huang,

    simple step see creating a form detailed master with APEX - Assistant Master retail

    and check how to maintain the relationship between two tables,

    simple return the packaged application «Sample of Masters details»

    and try to understand this concept...

    In your example, use Hotel_list.ID as a foreign key in the table Hotel_mapping

    and maintain the relationship with the column ID...

    and choose the display type of the column Hotel_list.ID in table Hotel_mapping as List(Query Based LOV) select.

    otherwise the best way is to create sample on oracle.apex.com

    I hope this helps...

    Leave.

  • ADF Faces 11, add where clause to the detail view in the master/detail relationship

    Hello

    I have two display objects only read connected by a link in a relationship master detail.

    They are displayed in a treetable in the form.

    I have a method on the java object impl view master class, I use to add custom where claused based on entries different user and then run the query.

    Works well, master and detail is interview properly.

    But I also want to further filter the detail view (view from destination in the display link). However, as soon as I add whereclause in the detail view against the master
    relationship of detail seems to have disappeared and are no detail record. I also tried to add a view criteria but with the same result.

    Your comments will be appreciated.

    ADF FACES 11g release 1.


    Jan

    You can get the ViewLinkAccessor, then the ViewObject and try to apply the ViewCriteria, followed by executeQuery... what you are already doing.
    Better to paste your code here...

  • Best structure for a master/detail relationship?

    Hello

    I would like to get some expert advice on the best architecture Oracle 11 g for a fairly simple storage situation: I have a table in a data warehouse with millions of records added every day. Each record can be associated with a (99.9% of the cases) or, more rarely, many under folders (up to 3 or 4).

    (1) the natural relational approach would require a relationship of the master / detail, with a key shared between the two tables. Some questions in the case:
    -Here, what would be the best structure? Because its lines are going to be quite small, the child table should probably be a table index. But consider a cluster?
    -Also what key will be used in the relationship? Master records are never accessible using full table scan, so that they have no primary key or an index. Is it possible to avoid creating a surrogate key only for reasons to join the master and detail tables, for example, by using a rowid any?

    (2) another reasonable approach, it seems, would be to use a nested table structure to store the detail records.
    -Is an interesting solution? It seems that he avoids the need for a surrogate key and looks "natural way" of doing things. But generally people seem not very keen on this feature, perhaps because of the lack of knowledge?
    -In this case, would it still possible to scan detailed records using pure SQL, as you would with a join in case 1?

    (3) although I have not yet studied the pb in detail, it seems that the right tools to populate two tables at the same time external tables would be to use PIPELINE and PL/SQL FORALL constructs, can anyone confirm?

    Thanks for your help,
    Chris

    In an environment of DW, things are generally modeled according to the fact dimension. The fact table would hold everything 'measurable' is a fact (in your case a call). It would be things like the date and time of the call, duration, charges total, possibly local/long distance/overseas etc. The dimension tables would provide additional information to the call and solve research etc. For example, you might have a date dimension which had every day, the year, month, day of the year, quarter, fiscal quarter (in my organization, they differ and we report both for different reasons) etc. You have also a time dimension indicating if the time if the call was during the day, evening, night, etc., depending on how you define them.

    Of course, all of this really depends on the types of questions you want to ask questions about the data you have.

    I'd be inclined to model along the lines of (note I guess anum and bnum are something like departure and destination phone numbers):

    CREATE TABLE calls (
       Call_Id      INTEGER PRIMARY KEY, -- this comes from a sequence
       Anum_key     NUMBER REFERENCES call_numbers,
       Bnum_key     NUMBER REFERENCES call_numbers,
       charging_key NUMBER REFERENCES charging
       Duration     NUMBER,
       charge       NUMBER,
       call_count   NUMBER);
    
    CREATE TABLE call_numbers (
       number_key    INTEGER PRIMARY KEY,
       phone_number  VARCHAR2(50),
       area_code?    VARCHAR2(50),
       country_code? VARCHAR2(50));
    
    CREATE TABLE charging (
       charging_key         INTEGER NOT NULL CHECK (counter BETWEEN 1 AND 19 or counter = -1),
       counter_description  VARCHAR2(50));
    

    with a line of calls for each combination of meter that must be loaded. The ETL code would assing a call unloaded (i.e. your first scenario a charge_key-1), and depending on how you want to count calls, 1 or 0 for call_count. For your second scenario, County of appeal would be 1 for the single record for this call. For the third scenario I would, more or less arbitrarily (i.e., max or min amount/meter) assign 1 in one of the recordings and 0 for the rest (which implies that even if the cost of a call to several counters, it's still only 1 call).
    Thus, in light of your three specimen he would look like:

    calls
    ID   Anum   Bnum   chg   Dur   amount   count
     1      1      2    -1     0        0       1
     2      3      2     1     2      610       1
     3      4      5     1     3      240       1
     4      5      6     6     3      520       0
    
    call_number
    key   number
    1     123456
    2     234567
    3     987655
    4     545678
    5     435467
    6     986234
    
    charging
    key   descr
    -1    Unanswered
     1    Counter 1
     2    Counter 2
     ...
    19    counter 19
    

    So, how many call where there?

    SELECT SUM(call_count) FROM calls WHERE ... 
    

    How much do we chanrge?

    SELECT SUM(charge_amt) FROM calls WHERE ... 
    

    How long they spoke?

    SELECT SUM(duration) FROM calls WHERE call_count = 1 and ... 
    

    How much we took in counter 6:

    SELECT SUM(charge_amt) FROM calls WHERE charging_key = 6 and... 
    

    How long was the 6 meter?

    SELECT SUM(duration) FROM calls WHERE charging_key = 6 and ... 
    

    As I said before, I'm not really fan of tables nested in the columns. :-)

    John

  • Master detail relationship with condition enforcement in the secondary table

    Hello

    I have two tables are Dept (Master), PMCs (Detail). I have to show emp details with somewhere condition.

    Ex;

    I have a "Dept_effect_date" field in the dept table. When I m showing PGE details in the Details view, it must the EMOS who are hired after the dept_effect_date.

    Sainaba.

    Hello

    The request of the employees table looks very good. Although it seems more logical to get the service id of the employeesEO instead of DepratmentsEO.

    The next step should be to create a viewLink between the DepartmentsVO and the EmployeesVO based on the service ID field.

    Once you have done this, add the EmployeesVO as a DepartmentsVO child in yout request module (and it will appear as such in the DataControl), so use these your to create master/detail table.

    Updating the data based on the selected master will be automatically managed by ADF.

    Kind regards

    Elias.

  • ADF:how update attribute of link seen in master-detail relationship.

    Hi all

    I use jdev 11.1.1.5.0 version.

    I created a form master / detail using view link. My requirement is the Key attribute update sacrificed on Master table and same attribute on table automatically put details far because it fits on the link attribute.

    but his past when I change attribute link view main table, detail line stop display table.



    Thanks in advance

    Manish

    Your link on the association and for this assoc basic display, check the key attributes of the Cascade Update:

    https://blogs.Oracle.com/raghuyadav/entry/adf_entities_association_-_Cas

  • Master detail relationship

    Hello

    I have reports such as the reports of details master and 1 2.

    I want to use the links in the action of dig detail data...

    In the report in detail, I have 2 views like the table, pivot view. Now, I want to use:

    Master1 - Table only see details

    Angle Pivot Master2 - only...

    Is it possible if so please help me in this...

    Thank you

    RAM

    Make sure you've got the specific channels.

    Check this http://docs.oracle.com/cd/E14571_01/bi.1111/e10544/creatingviews.htm#CHDGDEIC

  • How to display two dept details at the same time in the form of master-detail

    Hi Experts

    In Forms 6I, using the Scott schema, table DEPT & EMP has created a simple form of master-details relationships.

    Currently when user Dept Block shows all lines dept and EMP block display data based on the selection of deptno.

    It's only a deptno both.

    If the user in the No. 10, block EMP Dept will display all the data related to 10

    If the user moves to 20 Deptno, block EMP will display all the data related to 20.

    And so on.

    But our requirement, what happens if we want to see the 10 and 20 at once (both several deptno)

    Thank you

    Thanks for your information.

    In fact, our requirement is only to display data, he own be no matter what update of data/insertion.

    So below and working for our requirement

    • Remove relationship
    • Additional box on master block.
    • Write code cursor on the box selection - which will fill/clear data block information based on the checkbox selection on block Master.

    Oracle Apps training: how to display two Department employee details at the same time in the master/detail relationship

  • Cannot create relationship master detail for datablock

    Hi guys, my form currently has a relationship master detail for 1 datablock and everything works well. I now have a need to do a datablock different, based on the same table as the previous datablock but for some reason any that it won't let me create the same master-detail relationships, as I did on the 1st slice (and I need the same relationships to sort the block shows the same data as the previous datablock).

    Anyone know why it won't let me create the relationship?

    I encountered a similar problem before. When you say that you cannot create relationships is - it simply because you cannot select the master/detail through the wizard? If this is the case, you should be able to make the relationship manually, or at least I could when I had the same problem. Although I can't help, but wonder why it wouldn't let you select them in the wizard. There may be an underlying reason for this. But anyway, try and make the relationship manually and let me know if it works.

  • Display of a relationship master detail in an accordion panel or tabs

    Hello

    Is it possible to display a relationship master / detail in an accordion in the Panel, Panel tab or other component that visually separates the display?

    I have a Ministry - > employee master detail relationship and I want that every tab in my accordion to represent each
    departments and when I clicked on the tab, the list of employees related to this Ministry.

    I explore this idea, but I can't seem to find a resource on how to move forward. I use JDev 11.1.1.4. Thank you

    Hello

    I recently faced the same problem and did not find a solution either. So I set up a little more "dirty". :-)

    Instead of use the Department > employee link, I just created a new view (say EmployeesFromDept) object, which has a binding parameter called p_DeptId:

         SELECT ...
         FROM   EMPLOYEES e
         WHERE  e.DEPARTMENT_ID = :p_DeptId
    

    The data from that OV control will have an ExecuteWithParams operation that takes the id of service as input. Create a binding action in your definition of page that binds to this operation, called "RefreshEmployeesForDept":

         
          
        
    

    In your page, add the current DepartmentId to each showDetailItem using an attribute and add a disclosureListener:

         
                
    
                   
                   ...
                              
                   //Lots of mapping column here
                        
    
                
         
    

    Now, each showDetailItem which is generated knows the DepartmentId he "belongs to". In the toggleDisclosed(DisclosureEvent disclosureEvent) method, first get this attribute, so that you know the id dept of the showDetailItem that has been clicked. Then, call the action of RefreshEmployeesForDept programmatically binding if the current event is "disclosing the showDetailItem ':

         public void toggleDisclosed(DisclosureEvent disclosureEvent) {
              String currentDepartmentId = disclosureEvent.getComponent().getAttributes().get("currentDepartmentId").toString();
    
              if(disclosureEvent.isExpanded()){
                   DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    
                   OperationBinding operBinding = bindings.getOperationBinding("RefreshEmployeesForDept");
    
                   if(operBinding != null){
                        operBinding.getParamsMap().put("p_DeptId", currentDepartmentId);
                        operBinding.execute();
                   }
              }
        }
    

    Now, whenever a showDetailItem is open, the variable binding of the iterator belonging to your employee list will be updated with the correct DepartmentId. That is to say the Department that represents the showDetailItem.

    I hope this helps! If you find a solution cleaner, please let me know. :-)

    Kind regards

    Chris

  • Master-detail functionality between the regions of PL/SQL and IR possible?

    4.2.1

    THM 2

    Hi all

    We have two regions in a page. The upper region is a region of PL/SQL that lists the 5 best wages by Dept. This was not done using traditional reports because management wanted a "dashboard" as the look and feel that is already existing and what is happening in that it is a pl/sql block that has the sliders and the necessary HTML, CSS in there.

    Below that is an IR when the user clicks on the dept of region of PL/SQL, it will refresh the IR below to display all employees in this Department

    Top of the page shows region of PL/SQL

    EMP name Dept wage

    Emp1 10 10000

    EMP2 10 950

    Emp3 20 800

    The Dept field is a hyperlink.

    When we click on Dept on this region of PL/SQL

    The lower IR should be updated (without submit page)

    Output

    Emp1 10 10000

    EMP2 10 950

    It is a kind of master-detail relationship between PL/SQL and Report (Detail) (Master) area Interactive

    We can hyperlink in the SQL in pl/sql area, but you wonder how trap line and pass the dept id to the IR and get this region to refresh account?

    All suggestions from the experts?

    Thank you

    Ryan

    It is a way to pass the info in connection

    Perform the dynamic Action of the link column report

    The dynamic action can submit the session state value, and then refresh the IR.

    On either by the way, you must create dynamic PL/SQL region to solve this problem, see this

    APEX reports: layout custom with a column named (model line)

  • Total unique table (no master/detail, no accessors view)

    Hello
    ADF tutorials are full of sum of groovy accessor "wage Total employees of the current Department" showing master/detail.
    I need to make the sum of a column of unique view object and there is no master/detail relationship: object of a view, column, and footer Total.

    There are solutions, each with a downside.

    1. I can have a separate SumViewObject, select sum (attr) in the table. The downside is when I apply panelCollection filters to a table, the filters are not applied to the SumViewObject. So, I see the total value if no filter applied.
    2. I can calculate sum in a bean managed to access lines of the iterator. The disadvantage is that it might be enough number of rows in a table and I must RangeSize the value - 1 to seek what is not good for performance.
    3. I could try to calculate the amount in the same view as an additional line object. Not the best SQL query practice as well.

    So what is the solution of predered?

    Thank you.
    ADF 11.1.2.1

    Hi Ilya,
    define a transitional attribute in your view with the value expression:

    adf.object.findRowSetForRow("").sum ("LabourCostCurrency")

    LabourCostCurrency is the attribute that you want to calculate the total.

    Place this transitional attribute in the bottom of your column of LabourCostCurrency.

    Works for me

  • Master - detail

    I have a problem in forms

    IAM having a master detail kickbacks block
    ORDERMAIN (orderno - primary key, total, orderdate)
    ORDERDETAIL (orderno - foreign key, itemcode, amount, quantity, rate, tax)

    at the level of form, I created master detail block using two table on orderno above as a join key
    I created a vertical canvas (outside canvas for block master detail) where iam having keys in order to
    run record, search for records (F7), display (F8) records, delete records etc..

    I would be able to save and search for records
    but when iam trying to run display records it is not executed

    See my code below

    button (search records)
    ----------------------------
    clear_form;
    go_block ('ordermain');
    enter_query;

    button (see the records)
    ----------------------------

    GO_ITEM('ORDERMAIN.) ORDERNO');
    execute_query;

    I mean iam getting this message:

    Press F8 to run

    Try to make the property button FALSE navigable to keyboard and mouse navigable FAKE.

    Please check the answer if it helps

  • relationship master detail

    Hello
    We have 3 blocks the relationship-based master detail
    Block A - header block
    Block B - block (block A child) child - multi block
    Block C - child of block B - block multi

    Block A
    Block C is a unique display form which is accessible when the button is triggered by the table of contents that block A and B are present on

    The user will enter data in block A and B and thenwill record data both

    Question
    (1) for a record in the block B - multiple records that may be present in the C block.
    We try to use an insert statement before the block B and explicitly to insert records into the table of block C. This approach is appropriate.
    (2) what are other possible solutions. -in terms of ttrigers used and at what level.

    Please answer as soon as POSSIBLE.

    Concerning
    SR

    948611 wrote:
    Hi Andreas,

    For the first part, Yes, it can be more than one record in the B block. What might be the appropriate trigger / level in this scenario.

    Hi SR
    If you want to insert the record in another table (table block C) after laying on a table (table B block), you can use the trigger for INSERTION posterior to the level of the blocks (block B), it fires after each record insertion.

    Hope this helps

    Hamid

    Mark correct/good to help others to get the right answers. *

  • synchronization between two jsf master detail pages

    Hi guys,.

    I have two jsf pages, how do I synchronize the selected line (af:table) on the first page of a master detail (the secondary table) with the second page.

    In my case in the second page I can make changes in a Popup window, but the selected line (the secondary table) on the first page is displayed in the pop-up window

    I want the selected record from the table in detail in the second page will be displayed in the pop-up window


    Thanks for your help

    Published by: fakhri_tn on November 13, 2012 23:47

    Hello

    Always mention your JDev version.

    Watch this video. : http://www.youtube.com/watch?v=rv3NV4rz6Lo

    Arun-

Maybe you are looking for