[ADF, JDev12.1.3] Mastering the form with detail tables: questions about Insertion/deletion, commit / rollback, primary key, handling,...

Hallo,

I have a panelTabbed with 4 tabs. In the 1st tab, there is a master form while each of the other tabs, there is a secondary table. Each tab "reads" vo.

Please see here http://digilander.libero.it/flattit82/OTN_FILES/VoInTabs.png

I created the graphichs/layout and now it's time to take care of the management of the transaction.

In the master tab / form

1)

Here, I would put a button to remove the master record.

When I delete a record in the primary table an automatism in the database (MS SQL Server) will automatically delete any registration which are linked to it in the detail tables.

Could the automated system as this causes problems?

In the Details tabs / tables

2)

I would put a button in each row to delete the line delivering. Can I just drag-and - drop, like button, af line: table the operation "Delete" of the VO istance detail used to create the af: table?

3)

If Yes, by clicking on the button performs the default delete operation. But if need to perform some actions before you run the deletion (or, in General, any other operation), how can I do?

4)

To create a folder that I use Create or CreateInsert? And what are the differences between them?

5)

When I create a new record I need set the value of a field of the VO on which is based the af: table. He filed, let's call it RowDetNumber, is not displayed in the af: table, because it doesn't have be filled in by the user. Mut value is calculated and set "secretly" before posting the new line to the database table. In particular, its value must be calculated as

Select max (RowDetNumber) + 1

of table_on_which_VO_is_based

where some_conditions_on_fields_of_the_same_VO


For example

The VO selects all of the records that have FkId =: value. If value = 3, VO selection records:

ID RowDetNumber OtherFields FkId

1   3     1             ...

2   3     2             ...

3   3     3             ...

4   3     4             ...

The new record must be RowDetNumber = 5.

I would like to know how permorm this.

In general

6)

If the database tables have 1 or more triggers I have to take care of something?

7)

On the book "development of Web Applications with Oracle ADF Essentials - Sten E. Vesterli", I have read it could be problems when you use tables of database non-Oracle with auto-increment fields.

The advice of author uncheck the 'Required' box in the model.

All tables in my database have a primary keys that are auto-increment... so I uncheck the "mandatory"?

8)

In general how do I set these fields? I have to put in OT, VO or both?

Thank you

Federico

Hello

(1) you will need to re - question child iterators so that they do not look stale data

(2) Yes. Ensure that the table is PPRed after deleting the line (should happen automatically if ChangeEventPolicy on iterator is set to ppr)

(3) double click on the button and it creates a bean managed for you. It allows you to check a box to generate the code he would run to remove the line. Everything you put in front of the generated code is your code before

(4) in the case of tables, use createInsert as it adds the new line to the rowset (transaction)

(5) suggest to do this use a database trigger and the data attribute value DBSequence VO type

(6) do not 'drop table' issue in SQL (sorry, couldn't resist ;-))

(7) If you follow the advice of the author, Yes. What it does, I have it does not throw an exception if a value is missing in the validation of the line

(8) usually you set whatever it is at the level of the OS and put only things on VO if you want to override the default value for a specific behavior


Frank

Tags: Java

Similar Questions

  • Create the form with a table expanding

    I am trying to create a sheet of fax for one of our customer service representatives.  She needs from time to time fax on a list of names, acct # s, etc. to our collection agency of abducting people. Because it's done on a basis as needed, I want to use a table to create a repeating line number as the number of accounts can vary.  I've looked everywhere but can't seem to find out how or even if it is possible.  I am using LiveCycle Designer ES 8.2.  Thank you!

    Give this one a go. The most common mistake when creating dynamic forms forget to save the form in a dynamic PDF.

    FOR INFO. Something is wrong with this form. I would no more than 1 MB.

    Steve

  • If someone checks the mail from yahoo to my computer, their code is displayed if the first letter from my ID is the same with theirs. How can I delete their history on my computer?

    If someone checks the mail from yahoo to my computer, their code is displayed if the first letter from my ID is the same with theirs. How can I delete their history on my computer?

    Hey ioanaatc,

    Go in Tools > Options > Security tab click on passwords saved. This will give you a list of sites that you have saved passwords yahoo just find and delete other connections

    There are a lot of useful information in this article on the Firefox Password Manager. He should answer any other questions you might have.

    It can be saved as Auto form fill data. If this is the case, the article I just linked will show you you how to remove these entries as well.

    Hope this helps!

  • call a stored procedure for each row in the transitional attribute and display the data in the form of af: table. The other rows are based on the entities

    Hi Experts,

    JDeveloper 12.1.3.0.0

    I have a VO based on entity object. With a column of the VO is transient attribute (I created).

    I need to call a stored procedure for each row in the transitional attribute and display the data in the form of af: table. As well as other attributes.

    So can anyone suggest how can I achieve this?

    Thank you

    AR

    I think that you need a stored function (which returns the value) in this case, is not?

    Take a look at:

    https://docs.Oracle.com/CD/B31017_01/Web.1013/b25947/bcadvgen005.htm

    and search for:

    Invoking stored function with only Arguments in

    call your function in the Get attribute and return value accessor...

  • With Photoshop CS6 on my iMac, I got an error message on the Setup with error # 1. He suggested deleting PS CS6 and then re - install. Idid, reinstall using Time Machine. I will then he sane error message. I recently changed my OS t

    With Photoshop CS6 on my iMac, I got an error message on the Setup with error # 1. He suggested deleting PS CS6 and then re - install. Idid, reinstall using Time Machine. Then, I got the same error message. I recently changed my OS to El Capitan.

    Migration of Mac with Time Machine WILL NOT WORK with the Adobe program activations due to hidden registration files

    Sign out of your account... Uninstall... to run vacuuming...

    -http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    -using the vacuuming after uninstalling and prior to the relocation is necessary

    -https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

    -Restart your computer... Sign in to your account... Reinstall

  • I have a user who no longer works for the company.  Someone took his place, the same computer.  She used the same account as the former user.  I would like to delete the old user and assign the new.  It will lose something if I do this?  I shouldn't

    I have a user who no longer works for the company.  Someone took his place, the same computer.  She used the same account as the former user.  I would like to delete the old user and assign the new.  It will lose something if I do this?  I wouldn't reinstall anything, right?

    Hi Greg,.

    You won't lose any application on the computer.

    You can remove a user from the license and assign it to another user according to the help below document:

    Using creative cloud | Manage your creative cloud to the membership of the teams

    Kind regards

    Sheena

  • I'll try to find the right forum to ask questions about Outlook Express 6

    I'll try to find the right forum to ask questions about Outlook Express 6

    XP: Networking, Mail & onlinehttp://social.answers.microsoft.com/Forums/en-US/xpnetwork/threads Bruce Hagen MS - MVP [Mail]

  • Synchronize the forms with self-referential VO on the Board of the tree. POJO-based model

    Hello. I need your help

    Sample ADF Code corner #32 show how to build a picture of the tree to a self referencing VO:
    [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples]

    Paper corner Code ADF Oracle JDeveloper OTN harvest/09/2011 by Frank Nimphius show how to build a form of modification of the table data and synchronize it with the selected line in the table of the tree:
    [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/sept2011-otn-harvest-508189.pdf]

    These examples are useful, but I have a problem, I don't have a model based on a database, my application datamodel is based in POJO objects, there is no appModules or ViewObjects so I do not know how to reference the tree table attribute target with the iterator form edit.

    Can someone help me?
    Perhaps (I don't know how) I do a VO and an AppModule that encapsulates the model POJO?

    Thank you very much

    Hello

    It should work the same. You create a tree of a POJO data control based on your POJO model. Expose another collection pointing to the same set of data and drag it onto the form. Use the setting in the configuration tree dialog box to set the current line in the tree as aware of the iterator of form.

    Frank

  • ADF security and authentication of the forms

    I created a form simple adf using the Department in the form of the adf. Run - work

    I then put the adf security implemented, create login.htm error.html and /faces/mydept.jspx

    When I right click on the login.html and run, I get the access code, I signed with the user and get 403.
    When I right click on the mypage.jspx and run, I get the connection, I login with the user and work?

    so my question for which url do I give to the user once I have move to production
    (1) http://...:7xxx/context/login.html
    or (2) http://...:7xxx/context/faces/mypage2.jsp



    TKS

    You can send a http://...:7xxx/context/faces/mypage2.jspx

    ADF is a technology jsf the web.xml file will be a filter for faces and is the filter of the address provided and it is treated.

    THS peace of code in the web.xml file is responsible for the filter and treatment

    > Faces Servlet
    > /visages / *

  • The label only on the form with FALSE IMPLIED_SHARE [APP]

    Hello guys!

    I am struggling with this and I think I'm missing something and I need help please.

    I've got following members:

    Parent1 (label only)

    Child1 (Store) (+)

    Child2 (Store) (+)

    Child3 (Store) (+)


    I have on my essbase.cfg IMPLIED_SHARE APP1 FAKE and I stopped/started essbase server and application.


    On my data form I rank IDESCENDANTS (Parent1). My problem is that with this setup I am not able to write about the first child in the dataform.


    If I put only the descendants of Parent1 I am able to enter data on the first member.


    Is there a way to have my parents like label only, on the form and still be able to enter data on the first child?  Am I missing something?


    Thank you guys.

    Kind regards

    Eduardo Almeida



    Here is an example:

    If you change the setting IMPLIED_SHARE you need to follow the steps at IMPLIED_SHARE

    Also worth reading through of ' implicit Essbase understanding actions and their effect on the design of form data planning (Doc ID 763285.1).

    See you soon

    John

  • [ADF, JDev12.1.3] Why the content of a line in my af:table disappears when I select a new line?

    Hallo,

    I created an af:table like this https://community.oracle.com/servlet/JiveServlet/downloadImage/2-12620067-7140/cmnt1.png following the advice that the kind has been suggested to me by Ashish (for details, see [ADF, JDev 12.1.3] how to display multiple records on the same page... not in a table, but display a form for each record)

    When the table is loaded for the first time, it appears correctly.

    But often (not always) when I select a new line, the selected line up to become "white" and its content disappears http://digilander.libero.it/flattit82/OTN_FILES/rowDisappearing.png

    This product especially if I change the value of 1 or 2 fields contained in the line.

    If I select several lines - one after the other one - the part visible AF: table may become totally white.

    Looks like a refresh problem.

    The table is in a tab.

    If I switch to the tab, then I it again once the table appears again correctly.

    Another thing I noticed: for example 2 rows have disappeared, I select an end of line I have empty in a required field: when I select another line, the popup "this field is required" appears in the row selected previously and magically all the missing lines are coming back!

    The problem seems to be less frequent if I set the selection table = none... but it is always present.

    You could you kindly help me to solve this problem?

    Thank you

    Federico

    Hi Federico

    See I've made a few changes in your application, this problem is due to your provision

    as there are a lot of line of the grid, groups, I simple used Panel of and provision of group only

    Download the Application

    Thank you

  • Open the form with the parameter send

    Hello to all the

    I have this Code to open a form with send a parameter form of the anthers

    I'm doing two settings in both forms

    but gives error

    FRM-40010 c:\ cannot read...

    The code is: -.

    declare

    pl_id paramlist;

    Start

    -pl_id: = CREATE_PARAMETER_LIST ('DEFAULT');

    PL_ID: = GET_PARAMETER_LIST ('Maintain_param');

    If not id_null (PL_ID) then

    destroy_parameter_list ('Maintain_param');

    end if;

    pl_id: = CREATE_PARAMETER_LIST ('Maintain_param');

    ADD_PARAMETER (PL_ID, "P_user_stud_id", TEXT_PARAMETER, to_char (': STUDENTS.user_stud_id'));

    OPEN_FORM ('C:\Hieet\SUPLY_CASH_RECIVE.) FMX, PL_ID');

    DELETE_PARAMETER (PL_ID, 'P_user_stud_id');

    end;

    What is the error

    I use application server 10g and 11g db



    Thank you for all

    And I'm sorry for the inconvenience

    I modified the code for:

    declare

    pl_id paramlist;

    Start

    -pl_id: = CREATE_PARAMETER_LIST ('DEFAULT');

    PL_ID: = GET_PARAMETER_LIST ('P_user_stud_id');

    If not id_null (PL_ID) then

    destroy_parameter_list ('P_user_stud_id');

    end if;

    pl_id: = CREATE_PARAMETER_LIST ('P_user_stud_id');

    ADD_PARAMETER (PL_ID, "P_user_stud_id", TEXT_PARAMETER, to_char(:STUDENTS.user_stud_id));)

    OPEN_FORM ('C:\Hieet\SUPLY_CASH_RECIVE.) FMX ", ACTIVATE, SESSION, NO_SHARE_LIBRARY_DATA, PL_ID);

    -DELETE_PARAMETER(PL_ID,'P_user_stud_id');

    end;

    and

    I create in an abstacle Trigger

    when_new_form_instance

    and write the code

    : STD_MONEY_RECEIVE.user_stud_id: =:parameter.p_user_stud_id;

    Thank you for all

    Thank you for all

    Concerning
    Ibrahim

  • Can't the forms with CSS in DWCS6 style / must add menu WYSIWYG

    Hi all

    I put my two 'problems' in a single topic:

    (1) I tried to add some style on my pages of forms in them, but it seems that it does not work well, I explain: I create a php page, I insert a form with text fields (user name and password, for example) and the "login" button The form ID is "LogForm. I create a CSS class called "." FormCSS' and inside I put the rule "align text: right. I apply the rule to the form and all of the text inside goes to the right. I try online (real server and local server, I tried both) but nothing happens, the form elements to remain on the left. I tried to apply the Lun ID of the form. Nothing.

    No doubt, I'm doing something wrong. Even with the text and the tables within the shape, I can't move/change, at all. In design mode, I see all the changes, I can't online (chrome and IE). What should I do?

    (2) I create a page to insert long text in a database, as when you post in a forum. I would like to insert some kind of toolbar with options align, style and so on, as WYSIWYG editors. Is this possible? Is it possible to put a toolbar like this in DWCS6?

    Thank you

    #1 you're not comb the selectors in correct form: form, fieldset, label lable, input, textarea...

    See example of a CSS style HTML5 form. View source to see the code.

    HTML5 form with jQuery Validation

    #2 Watch CK Editor.

    CKEditor.com | The best text editor of web for all

    Nancy O.

  • How to get to 'leave the event' script to run again when the form with the data file is reopened?

    I've created an Adobe Dynamic XML using LiveCycle Designer form with many fields / subforms that are 'visible' or the 'hidden' according to the selected options of different menu drop-down lists. Also, the form has been activated to save. Users can successfully fill out the form and save a copy with the data that has been entered.

    The problem I have is that when the recorded file is opened again in the 'hidden' fields / subforms that were previously made visible by selecting the appropriate options in the drop-down list NOT displayed now. However if you make the same selections from each of the drop-down list shows still hidden ONCE the fields / subforms are displayed, and do not contain data that has been entered.

    The problem seems to be that the script that determines whether a field / subform is 'hidden' or 'visible' is a

    "<event activity="output" name="event__exit">" "

    that is followed by

    If (this.rawValue is '0')- (i.e. the value of the drop-down list)

    sfCompanyDetails.presence = "visible";

    sfRecruitmentAgency.presence = 'hidden ';

    etc, etc.

    and, therefore, it is not executed again when the file is reopened.

    Can someone advise please how do I do this?

    Hello

    Check if you enabled the "auto" option to keep the script changes in the properties of the form.

  • Recipients of the form cannot save the form with their entry

    I guess I forgot something simple, but when I sent a test of my form (created in version 9) to someone, they could open and select boxes, filler text, etc, but cannot save their results. They received a message that the only way they could save their results was to print the form. Of course, what I'm after is a way for recipients to complete the form, save it, and send it to me with the fields filled in with their entry. What Miss me?

    Thank you!

    Tim

    I mean the Advanced menu of Acrobat itself. I think that it is only available in

    Acrobat Pro, however, so if you have the level then you may not be able to

    Do it.

Maybe you are looking for

  • AppleScript to move files that are old &gt; 30 days

    Hi, I'm looking for a folder action script to move files that are older than 30 days of my 'NEW' file to: files volumes, NEW to my 'OLD' files folder: files/volumes/OLD folder.  I searched and found only the scripts to remove old files using the 'upd

  • Can I safely lance two screens on the K450?

    Im running a 21 "monitor could I add a second monitor safely with 280 watt power there? Plug I7-4770 2 TB hard drive GTX 650 2 GB 12 GB of ram DVD - rw 280 Watt power supply.

  • acquire audio 2-way

    Hello guys! I would draw the waveform of sound of my sound card (using the microphone).  Well, with the icon 'acquire sound' in the menu Express, that I could do.  But I have a problem when I want that store binary data.  If a game icon "acquire its"

  • 0x8004231F Shadow Backup error

    I tried the "vssadmin Resize ShadowStorage / For = C: / On = C: / MaxSize = 10 GB ' solution and the SFC Scan on my machine but I still get the low-memory error message during backup of the shadow."  Someone at - it other solutions?  I even tried the

  • HP officejet 6500 E710n-z: printer is offline

    My laptop says my printer is offline and will not print anything.  My printer is set up for the HotSpot from Verizon Wireless - info said printer network connections are ok.