redirect master / detail button Save

Hello

I use apex 4.2. I have a master form / retail and you want to change the button Save. When you use the button Save, I want to save the changes and redirect them to another page.

I tried to apply a dynamic action that is triggered when the backup is click on the button. Inside this dynamic action, I have the following code:

JavaScript:Save();

var href = ' f? p =' + $v ('pFlowId') + ': 19: "+ $v ('pInstance');

apex.navigation.Redirect (href);

The redirect works fine, but the save() function does not work.

Is there a way to do this?

Thanks in advance...

Tarek says:

Hello

I use apex 4.2. I have a master form / retail and you want to change the button Save. When you use the button Save, I want to save the changes and redirect them to another page.

I tried to apply a dynamic action that is triggered when the backup is click on the button. Inside this dynamic action, I have the following code:

JavaScript:Save();

var href = ' f? p =' + $v ('pFlowId') + ': 19: "+ $v ('pInstance');

apex.navigation.Redirect (href);

The redirect works fine, but the save() function does not work.

Unless your page defines a backup works then it will not: there is no such function in the JavaScript API, APEX.

Is there a way to do this?

Forget the dynamic actions. Just send the page and define a branch on page 19.

Tags: Database

Similar Questions

  • Delete the Message to save Oracle Forms in a block of master / detail

    Afternoon and Happy Friday people.

    I use Oracle form 6i.

    I have a master-detail block in my form. They both have several records. When I make changes to the block of retail and I navigates to another record of the block Master, he asks me "do you want to save the changes that you have made?" Yes/No/Cancel options. This is the message embedded in Oracle and not our custom save the message. I also noticed that when I say 'Yes' to this message, it does not in the trigger key - Commit who defeated the purpose of having the trigger key validation.

    Now, this message is coming due to a relationship of the master / detail? Also, what trigger I would seek to trap this message?

    Finally, I also noticed that this message (oracle save message) appears after our own custom message when I said 'No' to our personalized Message to register.

    Any help would be appreciated.

    I was wondering why forms brings the Message of the Oracle of inbulit when I'm sailing up to recording the Master block next

    The retail block must be erased when you navigate to another master to "make room" for the details of this new form of Basic. So, if there are changes in the retail block, forms asking the user what should happen with the changes. If you want to manage this situation yourself, put your own code in the WE-CLEAR-DETAIL-trigger before the call to CLEAR_ALL_MASTER_DETAILS;

  • Form master / detail apex 5 tries to update the lines of details without apparent change

    A form master / detail of Apex default 5.0 creates buttons back and forward on the main table. When you move between records, the detail region launches a message: update 0 row (s), 0 or the inserted rows.

    Glance in occasional of the user, it will look like a mistake: I, what has changed and why it has not been saved?

    If nothing has changed, why is a MRU statement update being generated?

    How do I remove this behavior? Is this a bug?

    You can see in https://apex.oracle.com/pls/apex/f?p=74308:LOGIN_DESKTOP:113903018138704:, the application of MasterDetail Claim_Charge. Credentials are of assistance/Viewer.

    Thank you!

    Hello

    Create a new hidden element Px_RUN_MRU and the value of

    Source used "Always replace the value that exists in the session state."

    Source of Type ' static assignment (the value corresponds to the source attribute) ' and

    Value of source or phrase "N".

    Then create new PL/SQL process for tabular and use the code

    if :Px_RUN_MRU = 'N' and :APEX$ROW_STATUS IN('C', 'U', 'D') then
      :Px_RUN_MRU := 'Y';
    end if;
    

    Make sure that this process is captured in the form of process MRU.

    Then change tabular MRU to love affection

    (:request like ('SAVE') or :request like 'GET_NEXT%' or :request like 'GET_PREV%')
    and :Px_RUN_MRU = 'Y'
    

    Kind regards

    Jari

  • Master-detail - page updated

    Hi all

    I implement updated for logic with master-detail page.

    My expectations:

    Both master Vo and Vo of detail is executed with Set whereclause and line master and detail gets displayed.

    The two actions are required in the application process.

    Result:

    Executing query (even after call run the query for master and detail VO), master line get appears. Detail line is not displayed,

    However when the form application process is called (by clicking on the button Save), detail lines gets displayed.

    My logic to query example: (your have VL and EOs have AO)

    PR:

    Configuration where clause;

    XXAM.getXxcfirIcfUpMasterVO1 () .executeQuery ();

    XXAM.getXxcfirIcfUpDetailVO1 () .executeQuery ();

    PFR:

    The logic of adding new line-to-line in detail.

    Save button.

    Is there a way to show line main and details while that Page gets loaded through the application process and still not break the relation ship master detail since must be made on the update page.

    Thank you and best regards,

    Gauthier

    Hello

    See my post on master / detail to OFA:

    http://anilaltunkan.com/en/Oracle-3/Oracle-application-framework-Oracle/OAF-master-detail-page/

    Kind regards

    Anil

  • Unique constraint in the form of master detail error

    Hi all

    I need help, the following requirement.

    I have a master detail form developed on master-child table. the tables have the composite key.

    Old masters has a composite key on columns (A, B)

    Children table has a composite key on columns (A, B, C)

    Child block look something like below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    30 CCC 1400

    40 DDD 1200

    Increments of column C with 10 for each record, and if a new record is insert in intermediaries the records it is incremented to 5.

    My requirement is when an end user attempts to insert record between 20 and 30 or 30 and 40 and clicks on save, the value of the C column must regenerate as shown below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    XXX 30 900

    40 CCC 1400

    50 DDD 1200

    Button Save I wrote the following code

    Declare
      ln_Count NUMBER :=0;
      ln_c number :=0
      cursor c1 is
      select c
      from child
      where a=:child.a
      and b=:child.b
    Begin
      Go_Block('Child');
      First_Record;
      LOOP
      ln_Count:= ln_Count+10;
      :child.C := ln_Count;
      EXIT When :System.Last_Record = 'TRUE';
      Next_Record;
      END LOOP;
    
    
      For c_cur in c1 Loop
      update child
      set c:=ln_c+10
      where a=:child.a
      and b=:child.b 
      and c=c_cur.c
      end loop;
      Forms_DDL('commit');
         
         commit_prc('Commit');  -- We have our own program unit to call commit_form
    
    END;
    

    I tried above in a way because, before approving the changes to the table, I update the existing values in the table of the C column so I would not get unique constraint error.

    When you click the button Save, I get a constraint exception. Hope I made my requirement clear.

    Can someone give me a clue to this implementation.

    Thank you

    malandain

    With this update, all your C-columnvalue became negative. When you post the form thereafter, forms update agaion records one by one the new positive figures. Because the numbers of 'old' in the db are now negative, there will be no violation-UK.

  • Problem of master / detail

    Hello

    I have 3 blocks in my form

    control unit 1 for the search criteria.

    2. master / detail blocks (2), where ownership of the main block clause is "' item_id =: search.item_id", the block of research concerns the search criteria (control block), "

    -: search.item_id is what I am looking for with its value.

    I open the form, I write 2 the: search.item_id, the data is retrieved in the main blocks and details, but what happens is that when I change the "2" "3"

    the data contained in the block of retail have disappeared, and the data in the master is still such what without change, I don't know why.

    I am sure that he has given belong to the number '3 '.

    -the search button has this code:

    go_block ('stock');      -stock is the main block.

    execute_query;

    Thanks for the reply,

    1. I found the problem,

    There is a function in the form

    function qty return number is
    begin
    select something , something2 , something3
    into :item1 , :item2 , :item3
    from dual ;
    return 6 ;
    end ;
    

    and there was an article that I created to entrust this function as a formula, but I think that the function that create must return a variable not a number.

    and this variable should be in the clause 'in', he has solved when I changed it.

    2-i, created a control block, because the user can change the item_id and save the form, does not search form, then it will update the data. right?

  • 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

  • How can I download multiple files in a relationship master detail?

    I would like to be able to download several files to a record (one to many). I tried to use a form master detail, but the form of tables does not support browse file. I searched the forum and found several examples asking how to download multiple files at the same time. This is not what I'm trying to do. I just want the user to browse, select a file, provide a file name and description. Then select the next file. When they are made by selecting the files (it can be one or more files) I want to that they hit the button send and I'll run a procedure that saves files in the database.

    How can I do this? Thanks, you're the best. Elizabeth

    Elizabeth,

    I had this situation come once and here is what I did, thought, may not be exactly what you are looking for.

    I created a collection to store the ID of files that had been transferred, as well as the key, and other information. Her search for an input file will transfer your files in the table wwv_flow_files on submit. I store the documents in another table of the application.

    The after submit process captures the id of wwv_flow_files where the name is = to your input file.

    After you add this ID and your master key associated with the collection, your last submit process retrieves files from wwv_flow_files and inserts them into your own table.

    I put an example on apex.oracle.com if that would be helpful.

    Thank you

    Jeff

  • Validation problem unique scenario master detail.

    Hello

    I have three tables involved in a scenario master / detail.  Tables A, master, detail B and C join him table for the * to * relationship between A and B.  The Association links were already in place to illustrate the relationships.  The doDml() of the main entity was substituted to support business logic. Has also been overridden preprareForDml() method.  When running the tester Application Module to test the scenario for a single validation, the following error appears:

    I use Jdev 12.1.3

    in the same way as in doML():

    http://docs.Oracle.com/CD/E12839_01/apirefs.1111/e10653/Oracle/JBO/Server/EntityImpl.html#prepareForDML%28int, %20oracle.jbo.server.TransactionEvent%29

    https://docs.Oracle.com/CD/E25178_01/Web.1111/b31974/bcrules.htm#sm0240

    but I would like to do these operations in the click on the button create/edit (before calling Commit), OR DB trigger level and then refresh the data of VO

  • Master / detail createInsert jumping required attributes validation with part delivery = true

    Hi all

    I use JDev 11.1.1.7.0

    I created master / detail on table emp dept and slipped and fell from CreateInsert in both tables.

    I put partial Submit true for these two buttons.

    Scenario: when I add a record in the master and try to add another rec, mandatory validation fires and it doesnot allow me to add new rec if already a rec void is there.

    But after adding in master, if I add a new rec in child, isn't shooting the validation of required attributes in the parent table. So a new blank record is created is in the child. ]

    If I put part delivery = false for child createInsert, fires of validation.

    Question: in my application, I set partialSubmit = true to CreateInsert child. Although I gave the partial trigger for the main table, validation of required attributes is not get fired for master.

    How to solve this? User should not be able to add a record of the child without filling out the required attributes



    < af:form id = "f1" >

    < af:panelStretchLayout id = "PSL1" topHeight = "400px" >

    < f: facet name = "center" >

    < af:panelCollection id = "pc1" >

    < f: facet name = "toolbar" >

    < af:toolbar id = "t4" >

    < af:commandButton actionListener = "#{bindings." CreateInsert1.execute}"text ="CreateInsert1. "

    Disabled = "#{!}" bindings. CreateInsert1.enabled}" id ="cb2" partialSubmit ="true"/ >

    < / af:toolbar >

    < / f: facet >

    < af:table value = "#{bindings." Var EmployeeVO1.collectionModel}"="row ".

    lines = ' #{bindings. " EmployeeVO1.rangeSize}.

    emptyText = "#{bindings." EmployeeVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." EmployeeVO1.rangeSize}' rowBandingInterval = '0 '.

    filterModel = "#{bindings." EmployeeVO1Query.queryDescriptor}.

    queryListener = ' #{bindings. " FilterVisible EmployeeVO1Query.processQuery}"="true"varStatus ="vs. "

    selectedRowKeys = ' #{bindings. " EmployeeVO1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection EmployeeVO1.collectionModel.makeCurrent}' = 'single '.

    id = « t2 » "" partialTriggers = ": cb2: pc2:t1: pc2:cb1">

    < / af:table >

    < / af:panelCollection >

    < / f: facet >

    < f: facet = 'top' name >

    < af:panelCollection id = "pc2" >

    < f: facet name = "toolbar" >

    < af:toolbar id = 't3' >

    < af:commandButton actionListener = "#{bindings." CreateInsert.execute text}"="CreateInsert. "

    Disabled = "#{!}" bindings. CreateInsert.enabled}" id ="cb1"partialSubmit ="true"/ >

    < / af:toolbar >

    < / f: facet >

    < af:table value = "#{bindings." Var DepartmentVO1.collectionModel}"="row ".

    lines = ' #{bindings. " DepartmentVO1.rangeSize}.

    emptyText = "#{bindings." DepartmentVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." DepartmentVO1.rangeSize}' rowBandingInterval = '0 '.

    filterModel = "#{bindings." DepartmentVO1Query.queryDescriptor}.

    queryListener = ' #{bindings. " FilterVisible DepartmentVO1Query.processQuery}"="true"varStatus ="vs. "

    selectedRowKeys = ' #{bindings. " DepartmentVO1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." RowSelection DepartmentVO1.collectionModel.makeCurrent}' = 'single '.

    id = « t1 » "" partialTriggers = ": cb1: pc1:cb2">

    < / af:table >

    < / af:panelCollection >

    < / f: facet >

    < / af:panelStretchLayout >

    < / af:form >



    Kind regards

    Deepti

    This means that it is a bug

    If you put your version Jdev or submit together partial false to get it working in the current version

    and drop a SR with Oracle Support

    Ashish

  • Create a form master detail.

    Hello

    I am creating a form master detail following this tutorial: Blog of Zeeshan Baig: master form design / detail in Oracle ADF

    However, I'm stuck at this stage where I need to create a link to the view. I'm not able to add the departmentview departmentid. The Add button is not turning on.

    Please refer to the screenshot below. Thank you.

    cvl2.jpg

    You have chosen DepartmentsView in both places.

    You must choose the DepartmentsView to the source and the EmployeesView in the destination.

    See you soon

    AJ

  • 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. *

  • Is master detail in cascade LOV possible for details on a form?

    I have a form master detail to assign levels of skills to employees. Skill levels fall within areas. I have a LOV on the level of skills in the details, but I want to filter LOV skills by area, using a LOV cascading as follows:
    --------------------------------------------------------------------------------------------------------
    Master region
    Data on employees, etc..
    ---------------------------------------------------------------------------------------
    Detail region
    * [LOV domain] * {it is page-level element.  He appears only once on the page}

    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other related skills fields {here are the details, many on each page}
    * [skillset LOV] *... and other skills related fields {}
    * [skillset LOV] *... and other skills related fields {}
    etc.

    [buttons, etc.]
    --------------------------------------------------------------------------------------------------------

    I added the page level [area LOV] element as part of the selection list. It works and is called P45_DOMAINS

    I then modified the query on the [skillset LOV] to add a where clause for the item clause:

    where DOMAIN =: P45_DOMAINS

    It does not work. [Skillset LOV] returns no data.

    Hello
    What version of Apex?

    If on 4.x then you did P45_DOMAINS LoV the Parent of the child LoV?

    If your form detail is a tabular form then LoVs cascading are not supported. You must build your own LoVs cascading using the technique from Denes Kubicek example here.

    See you soon,.

    Published by: Dominique on 23 August 2012 09:29

  • Form master-detail recording detail does not with ORA-20001

    Hello

    I have a master/detail form, the detail record has a timestamp field that I people using systimestamp via the default, it is a single field of view and everthing records very well. But if I change the format of the timestamp field via the DD-MON-YY HH24 attrubutes column, I get the following error on save

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-20001: find the invalid timestamp value, please check the timestamp format.

    Someone knows what's goin?

    Thank you...

    Looks like your display only column is based on the database column.
    If this is the case, you have little control for it in ApplyMRU.
    What you need to do is
    a. keep the TimeStamp column hidden with any mask format
    b. Add the form as a table with the format mask you want to display a column of data not

    In a Word, the DB column is in the proper format as required by the ApplyMRU but you display for users of the truncated version of that.

    See you soon,.

  • Master / detail prevent insertion line detail if the master does not exist

    Hello

    I have a complex page that has several pairs of master / detail on it. I have what should be a simple problem to work around that I can't understand. On each table (master or detail), I have a button create header and a delete button in each row. I have a few questions, I can't seem to cross.

    1. how to turn off the details create button if there is no master of the line or one has not been selected by the user? (At the moment you can create detail without a valid master line rows)
    2. how to disable the removal of main line button, if there is (or not) details of current lines?

    I think I only got 2 having a transient attribute on the main line that uses groovy and the accessor to link views to count the detail rows. It seems to work, but if there is a better solution, cleaner I'm all ears. I can't seem to operate 1 little matter what I try.

    Thanks for any help you can provide.

    Hello

    You can use iterator estimatedRowCount to disable the button of

    disabled="#{!(bindings.mastervoIterator.estimatedRowCount ge 0)}"
    

    and use the currentRow determint property if the current row is selected as

    disabled="#{!(bindings.mastervoIterator.currentRow ne null)}"
    

    Thus, the combination will be as follows

    disabled="#{!(bindings.mastervoIterator.estimatedRowCount ge 0 and bindings.mastervoIterator.currentRow ne null)}"
    

    I hope this helps...

    Kind regards.

Maybe you are looking for

  • How to install windows 8.1 using boot camp on sierra os

    Im trying to install windows 8.1 64 bit on my end 2011 MacBook Pro using boot camp. I downloaded the ISO from Microsoft file and saved it in the downloads. i boot boot camp and she has 2 activated options are: software DOWNLOAD to apple support and t

  • AppleScript find and pass variables with a single value for the new string

    Hello again, I need a solution to do this: We have the string {0, 0, '62 21 37', 1, 0, ' 62 21 37 ", 2, 0," 108 50 56 ", 3, 0," 167 102 95 ", 4, 0, ' 108 50 56", 5, 0, "145 84 83", 6, 0, "109 50 58", 7, 0, "109 50 58", 8, 0, "129 62 66", 9, 0, "120 5

  • I can't move my touchpad while typing

    I bought a laptop (HP g094sa) purple and have downloaded the 'minecraft' game in order to play the game, you look around (using the touchpad) and walking (using the keys w, a, s and d) I can't use the touchpad when using w, a, s and d. Please help me

  • Very slow grip and HP pavilion dv6

    Help me pavilion computer HP dv6 bought 1 and there is a year and a half, and these days in the first 5 minutes after the start, he crashes and is also slow. I have to force reboot holding the power button in front of stop suspension. I did a full sc

  • cleaning multithreaded DLL

    Hi all I'm building a small DLL (for use from matlab) for acquisition of data. One of the functions may take several hours: streaming over 1 million samples in a file. So for this particular function, I want (read: I'm trying) to run it as a backgrou