Need to fill the value of the sequence in a field after insertion in the ofa page

Hi all

I have a custom OAF insert the page in do I have to fill out a sequence to a field value, once the data inserted with success at the table.

so for this I followed the approach below.

1 > created a database sequence.

2 > java in the EOImpl of the file in the accessor method Set for their respective fields wrote code below.

{} public void setContainid (numeric value)

If (value == null) {}

OADBTransaction t = getOADBTransaction();

value = t.getSequenceValue ("XXXXX_CONTAIN_SEQ");

}

setAttributeInternal (CONTAINID, value);

}

But still, I'm not able to complete the sequence value for the field in my oaf page, please help me with that.

Thank you

Hello

Write this logic to create the EOImpl method:

public void create (AttributeList attributeList)

{

Super.Create (AttributeList);

Transaction OADBTransaction = getOADBTransaction();

ContID number = transaction.getSequenceValue ("XXXXX_CONTAIN_SEQ");

setContainId (contID);

}

Sushant-

Tags: Oracle Applications

Similar Questions

  • Print is so big, it only prints a third of a page and fills the whole page

    printing is so great, it fills the whole page, but shows only 1/3 of the subject.

    All-in-one HP Photosmart C6180.

    I have accidentally to correct. I went to the print page set up and changed Firefox 100% and it rose to 73% and it worked. I never had to do ever.

  • How to change the page numbers after adding & save page numbers in the pdf document - need to change the existing page printed on the upper right in the header numbers

    How to change the page numbers after you add and save the page numbers in the pdf document - need to change the existing page printed on the upper right in the header numbers.

    These page numbers were initially created using Acrobat PDF header and footer.

    I have a 750 page pdf document that I've created.

    I have to sometimes the pages up and down after that I added the page numbers in the document by using the Header_Footer tool on the right column of tools.

    But after you save the document, if I get a few pages around, I can't go back and change the page numbers.

    I thought that the page numbers, as indicated in the header and footer must have changed automatically, but I guess that once its print, that it cannot be edited - is that, as what is?

    So I guess we should always first get a copy without numbers of pages before confirming the documents and the creation of an index.

    A way to remove these page numbers already there and add new page numbers.

    Its a lot of work to align 750 court documents and then realize that you must move some and then realize the page numbers cannot be changed and thus begin to do this all over again to compile which can take about 10 hours.

    My question is quite simple, but I hope that overall, I got my point. Sorry if I made it is too complex.

    If no simple way, want to know if anyone has another different tool or a few recommendations to better highlight what I'm doing wrong.

    Thank you for your review and response.

    You should be able to update with tools - Pages - header & foot-

    Update... It not work for you?

    If this isn't the case, then try to remove from this menu and then re - adding them.

    Tuesday, June 23, 2015 23:55, Fortune Mile [email protected]>

  • Filling the first page second page data

    Hi all

    I developed a demo.cfm page that has the grid table. I display the table grid of database data.
    Each row of the table in the grid has a button change. Click on edit button redirects to another page that contains text fields whose names are similar to grid table headers.

    As soon as the user clicks on a particular line of the grid edit table button. Button clicked line values must be entered in the second text of page fields.

    Ex: Grid table demo.cfm contains the following data
    Name Age Sex Address

    1. 22 M Edit XYZ xyz

    When the user clicks Edit button form is submitted and in the second page text boxes him clicked on change line of link values need to be filled.
    Here we clicked on the first edit of a line button then second page text fields are filled with the values of line first.

    NAME: xyz
    Age: 22
    Sex: M
    Address: xyz

    Similarly, regardless of the line edit button than row data must be completed on the second page of the screen areas.


    How to solve this problem.

    Can someone help me solve this problem.

    Change the link must go to the second page details specific to this line.

    Do something like:


    Edit

    Then, in your form on the second page, you fill in the form as:



    Clearly this all depends on your so-called fields etc (I guessed right) and also, you will need to check some variables exist or not while it throws an error when they are not - but that's a different question.

    Good luck.

  • My window fills the entire page from left to right and covers my taskbar. I can size to the bottom of the window to remove it. Has just begun.

    I keep my taskbar on the right side. Suddenly, the FF browser window fills the screen from left to right and covers, and hide my taskbar. This just started today. How can I get my taskbar visible again. Explain it very simply to please.

    A quick way to switch between a larger and a resizable window is to double-click on the title bar (the area above the tabs). Which does nothing?

    If the tabs go all the way to the top of the screen and fill all the space, then there is not place to double-click. Then you'll need to use either the "middle button" between lower and close buttons, or Alt + bar spacing and r for restore.

  • With the help of the initial page to fill the different page layouts

    Hi all

    I am creating a form where the padding between the information on one page and then selects a specific provision, probably an option button.  When the user clicks on the button "Next" the selected schema appears and the fields are filled with the information entered on the first page.

    (1) what kind of scripts I need to achieve this?

    (2) the pages containing different page layouts are master pages?

    Thank you in advance for your help!

    Hello

    Yes you can do it.

    If your formatting is "placed", then you need to just reference the pages in the script that you want to make visible/hidden.

    If you have a layout "Flowed", and then you add objects to the sales page, LC Designer will create additional instances of this page. In the script when you reference the sales page should be visible, it will be all instances (overflow) visible.

    You cannot use the method get (core/AcroForm javascript). However, it is still pretty easy to get data from different pages.

    For example, javascript in the case to calculate an object on the sales page:

    this.rawValue = adminPage.customerName.rawValue;

    You just need to reference the object entirely.

    There is a very handy tip to insert references to objects.

    1. Select the object to which you want to enter the script in.
    2. Then highlight the object that you want to reference. Do not select it.
    3. Click in the Script Editor (at the top you will see that you are in the object you selected in step 1.
    4. Press control and hover over the object that you want to reference. The mouse turns into a 'V '.
    5. While maintaining control (the mouse pointer is a 'V'), click the object that you want to reference.
    6. LC Designer will insert the correct reference and include the reference as long as it is necessary.
    7. If you see, xfa.resolveNode in the reference, it could mean that you have not named a page or a subform, or if you have multiple objects with the same name. It is best to go back and fix that and then go through the steps above to get a clean reference.

    If you also want information to be synchronized between all three pages, you can name the same object on all three pages and in the object > range of defined binding binding to Global. In this way, regardless of what is typed in the field on three pages, will automatically be the same thing on other pages.

    Hope that helps,

    Niall

  • Need to refresh the Help Page.

    Hi all

    I have a request as well as 2 pages.

    1st page a radiogroup with sending (P1_RADIO). Function selection of the option button, a text field appears (P1_ID). The user must enter the value and press the "SUBMIT" button. I have an unconditional branch to page 1 itself. A branch in addition to page 2 when you press the button = SUBMIT.

    When submit button, it will take a user to page 2, where I wrote before the process of heading to export data to CSV (used Scotts custom export to csv method).

    Now, the new additional requiremnt is that, when the user enters the value in P1_ID and hits enter, the same features that hit button "SUBMIT" must take place. Any ideas on how to achieve this?

    I have already thought/tried this following:

    (1) text (which is when enter pressed does not - that I can not pass any request him and therefore does not give a branch on page 2).

    (2) I gave a hidden field PI_CAPTURE_ENTER and attributed the INPUT value, if P1_ID is not null. Then I wrote a conditional branch to Page 2, so: P1_CAPTURE_ENTER = "ENTER".

    In Page 2, I deleted the P1_ID after the execution of the csv process. This method works correctly.
    But the only problem is that even if the session state for a page 1 shows the cleared data, I need to refresh the page 1 manually, if I need to run another option in radiogroup. (If I do not update page 1, next time I hit radiogroup, P1_CAPTURE_ENTER will always be = 'ENTER' and redirects to the page 2).

    How can I overcome this?

    Or are there other ideas which I can achieve what is really necessary?


    Any help would be appreciated.

    Thank you
    Sumana

    Good,

    I just recreated this in my environment of dev and got it working according to you needs like that.

    1 radio group with sending (page 1 of unconditional branch)
    2 button submits as 'GO' (a conditional branch button being pressed go redirect to page 2)
    2 text field with this in the Form HTML element attributes

    onkeypress="if (event.keyCode==13){doSubmit('GO')}"
    

    He hit a conditional branch of the GO button and redirects to page 2.

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • I am trying to download a vector file.  I have a paid account.  Every time I try need me on the Subscribe page as I need to pay.  I have a credit card on file and downloads still available from dollarphotoclub.

    I am trying to download a vector file.  I have a paid account.  Every time I try it takes me to the subscription page, like I need to pay (again shows what level I am on).  I have a credit card on file and downloads still available from dollarphotoclub.

    Hello

    Image credits are available on your personal account so please make sure you have this option is selected when you connect to stock.adobe.com, rather than on behalf of the team:

    If you still have questions, please let us know.

    Thank you

    Bev

  • Need tutorials from the OFA

    Hi all the gurus of the OFA.


    I need tutorials, study for the OPS documents. Can some body me the url to download or reference?


    Thanks in advance.


    Sisi

    Hello again,

    Sorry, I know not by what exactly ATG is synonymous of... It's something to do with the framework patches...

    Find this note on Metalink. It will tell you which patch to install jDeveloper based on your patch levels. Once you have it installed, the tutorials are in the help section.

    "How to find the right version of JDeveloper for use with e-Business Suite 11i or release 12.x [ID 416708.1].
    Note 416708.1
    https://support.Oracle.com/CSP/main/article?cmd=show&type=not&ID=416708.1

    Hope this helps,
    Janel

  • Google fills the entire Page

    Hello. I have a problem that I hope someone can help me. I changed my wireless keyboard batteries and my fingers hit a few buttons and now when I open google and other pages that I visit, the google or another site that takes to the top of the entire page. BIG letters and background? I tried to adjust the size of the office and the text but nothing works. There, someone can help me please? Thank you

    CTRL (plus) - reduced size

    (PLU) CTRL + increase

    That view > Zoom

  • To retrieve the default organization name in the OFA page

    Hi all

    My requirement is that I have a field named OrganizationName

    Here, I need to get the name of the organization based on the GETORG.ID)

    I read the previous discussions, but they were not clear

    I got to know that we need to write the sql query

    but here, we should pass the org id

    can I know how it's done...


    Sasha in advance

    DEV

    Hi Dev,

    Try this,

    Get the Id of the pageContext Org and pass the query using the prepared statement to get the name of the organization.

    to get the id of the org pageContext.getOrgId ();

    for example: String orgIdValue = pageContext.getOrgId ();
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Code snippet to get the name of Org

    import java.sql. *;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;

    Connection Conn = pageContext.getApplicationModule (webBean) .getOADBTransaction () .getJdbcConnection ();
    Try
    {
    Query to check the combination for the records.
    Dim Query = "SELECT NAME, hr_all_organization_units, WHERE ORGANIZATION_ID =: 1";
    PreparedStatement stmt = conn.prepareStatement (Query);
    stmt.setString (1, orgIdValue); Set the value obtained by context object

    for (ResultSet resultset = stmt.executeQuery (); resultset.next ();)
    {

    result = resultset.getInt ("NAME");

    }
    }
    catch (System.Exception Exception)

    {
    Incase of any error during execution of the statement to throw an exception.
    throw new OAException ("Error in the application of staffing" + exception, OAException.ERROR);
    }

    Had

  • Calls to procedures of database with IN/OUT params in the OFA Page

    Hello

    I have the following requirement, can anyone suggest as the best approach please.

    I have a contract with header page and the rows that will be stored in the custom tables.

    User needs features to copy, which will provide a copy of the current record with the new record (similar to copy the functionality of the simultaneous program).


    As soon as the user presses the copy function, it must call my backend pricedure copy_contract (p_old_contract_no in NUM
    p_new_contract_no OUT number
    p_ret_code OUT number
    p_err_msg OUT VARCHAR
    )

    Once it returns RETCODE contains 0, and p_err_msg is null, then I need open another page that displays p_new_contract_no.


    If one has done similar req. Please share the code.

    Thank you
    Mahesh

    Mahesh

    You can use Oracle callable statement to call the procedure of the OFA database. Please find the link to describe which

    http://oracleanil.blogspot.com/2009/04/itemqueryvoxml.html

    Thank you
    AJ

  • Cancel on the OFA Page

    Hi all

    I have a requirement for the Undo feature.
    My Page has a few required fields to e b completed by the user before submitting the form.
    but, when the user clicks the button quit, then it should not promt to fill the required parameters.
    On the exit button (submit button) I used OAdialog confirmation page and run small business validations on clique of Yes/No buttons.

    Problem is that when the user presses the output on the page, the Page opens to fill required fields.
    How can we avoid this?

    Thanks and greetings
    POOJA

    POOJA,

    You must set the client property of validation on the side of the button as false. then it won't work.

  • After you apply the hotfix, button Submit seems to be different in the OFA page

    Hi all

    Recently, we have applied a fix to the db in one of our cases of development and we are now able to find the difference, it's originally. The difference is, in the OA Page submit button seems to be a little different.

    Fixing of the screenshot, FYR

    Note: This is instance 11i in which the hotfix is applied (db is 12 c version)

    Kindly share your thoughts

    Thank you

    Valsaint

    Check the solutions mentioned in the links below.

    Button style - OA frame display

    The button resembles html button not like OPS button

    See you soon

    AJ

  • Selection multiple question table advanced on the OFA page

    Hello

    I have a table edge on the OA Page. This advanced table, I had added the action of multi selection table.
    For multiple selection, I have attached an Instance of the view and an attribute of the view.

    There are text entry field in the advanced table. If the user makes changes to it, a 'updateDate' event fires.
    Co:
    {if (Event.Equals ("updateDate"))}
    System.out.println ("A");
    String rowReference =
    pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);

    [Serializable] param = {rowReference};

    am.invokeMethod ("DetailsCheckBox", param);
    }

    Am:
    public void DetailsCheckBox (String rowReference) {}
    System.out.println ("B");
    line oracle.jbo.Row = findRowByRef (rowReference);


    Ivo DetailsVOImpl =
    FindViewObject ("DetailsVO1") (DetailsVOImpl);

    String chkbox = (String) row.getAttribute ("Multiselect");
    System.out.println ("multiselect original:" + chkbox);
    If ((chkbox == null) |) (chkbox.equals ("N"))) {
    ivo.setCurrentRow (row);
    row.setAttribute ("Multiselect", "Y");
    String chkbox1 = (String) row.getAttribute ("Multiselect");

    System.out.println ("multiple selection:" + chkbox1);
    Ivo.Reset ();
    }

    }

    The problem is that if there are 5 lines are displayed in the advanced table and changes to one of the first 4 rows, the box gets checked on the page but if I make the changes to the last row, the box is not checked on the page, even if the statement String chkbox1 = (String) row.getAttribute ("Multiselect"); Returns 'Y' AM.

    Help, please. Its urgency.

    Hello

    We use the following pseudocode of the AOS.

    VO. Reset()
    While (vo.hasNext ())
    {
    your code
    }

    This will solve your problem.

    Thank you
    Kumar

Maybe you are looking for