How to implement next_record; (FORMS) in ADF

Hi,
I would like to implements automatically create new record when i press enter on a <af:inputText like next_record in forms, and copying some data from the current rowto the next row
thanks
Fakhri

I found a solution for navigation between input text in <af:table that works fine in FireFox but not in Chrome :
I create the javascript in the main page :
<af:document title="index.jsf" id="d1">
<f:facet name="metaContainer">
<af:resource type="javascript">
function setFocusMatric(evt) {
var _keyCode = evt.getKeyCode();
var compid = AdfPage.PAGE.findComponentByAbsoluteId("r1:r1:pc2:t2:matric");
if (_keyCode == AdfKeyStroke.ENTER_KEY) {
compid.focus();
function setFocusValeur(evt) {
var _keyCode = evt.getKeyCode();
var compid = AdfPage.PAGE.findComponentByAbsoluteId("r1:r1:pc2:t2:val");
if (_keyCode == AdfKeyStroke.ENTER_KEY) {
compid.focus();
function setFocusImpor(evt) {
var _keyCode = evt.getKeyCode();
var compid = AdfPage.PAGE.findComponentByAbsoluteId("r1:r1:pc2:t2:impor");
if (_keyCode == AdfKeyStroke.ENTER_KEY) {
compid.focus();
</af:resource>
</f:facet>
<af:messages id="m1"/>
<af:form id="f1">
<af:decorativeBox id="db1" topHeight="60px">
<f:facet name="center">
<af:region value="#{bindings.dynamicRegion1.regionModel}" id="r1"
partialTriggers="::reshum ::ctb4"/>
</f:facet>
<f:facet name="top">
<af:panelHeader text="Module Administratif" id="ph1">
<f:facet name="context"/>
<f:facet name="menuBar"/>
<f:facet name="toolbar"/>
<f:facet name="legend"/>
<f:facet name="info"/>
<af:panelGroupLayout id="pgl1" layout="horizontal" halign="center">
<af:commandButton text="Rollback" disabled="#{!bindings.Rollback.enabled}" immediate="true"
id="cb1" action="#{viewScope.index.doCancel}" rendered="false">
<af:resetActionListener/>
</af:commandButton>
<af:spacer width="30" height="10" id="s7"/>
<af:commandToolbarButton id="reshum"
inlineStyle="font-weight:bolder; text-align:center; vertical-align:middle; background-color:transparent;"
partialSubmit="true" text="Resource Humaines" partialTriggers=""
action="#{viewScope.index.rhtaskflowdefinition}"/>
<af:spacer width="50" height="10" id="s6"/>
<af:commandToolbarButton id="ctb4" partialSubmit="true"
inlineStyle="font-weight:bolder; width:100px; text-align:center; vertical-align:middle; background-color:transparent;"
text="Salaires"
action="#{viewScope.index.salairetaskflowdefinition}"/>
<af:spacer width="30" height="10" id="s1"/>
after in my jsff :
<af:inputListOfValues id="impor"
popupTitle="Search and Select: #{bindings.DrdetimView3.hints.Cdimpor.label}"
value="#{row.bindings.Cdimpor.inputValue}"
model="#{row.bindings.Cdimpor.listOfValuesModel}"
required="#{bindings.DrdetimView3.hints.Cdimpor.mandatory}"
columns="#{bindings.DrdetimView3.hints.Cdimpor.displayWidth}"
shortDesc="#{bindings.DrdetimView3.hints.Cdimpor.tooltip}"
partialTriggers=":::ctb1 :::ctb2">
<f:validator binding="#{row.bindings.Cdimpor.validator}"/>
<af:clientListener method="*setFocusMatric*" type="keyPress"/>
in FireFox the navigation was succeeded but Chrome cannot fire the AdfKeyStroke.ENTER_KEY
is there another solution for all web browser
thanks

Similar Messages

  • How to format a form with adf

    Hi,
    I want to format an adf form like this :
    http://dl.dropbox.com/u/33421977/adf_form.PNG
    To do this I have used af:panelDashboard and af:panelBox with af:panelFormLayout inside.
    Now I don't want to use panelBox anymore, but I don't know how to achieve this without panelDashboard/panelBox.
    What is th best aproach to do this? Can you send me some links which explain how to format a form with adf?
    Thanks.

    Is just a question of style. In the real application this form is included in another panelBox. So it looks too... I don't know how to say it... too heavy?
    In fact I don't want to see these panelBoxe's borders. Maybe I have just to change the style of these boxes? Do you know if it is possible?
    But more generally, what is the right way to format adf forms? Can I achieve this sort of formatting just using panelFormLayout?

  • How to implement Distributed Transactions in ADF?

    Scenario:
    when selected rows and submitted action from UI, following happens
    1) For the selected rows, information will get fetched from database and a message will get formed and will get posted in JMS queue
    2) once step1 is successful, corresponding record will get logically deleted
    Implementation details:
    Environment: Oracle ADF , Weblogic server
    Step1: Created UI with Multi selection
    Step2: getting selected row key information and calling a custom AM method (exposed as client interface) from managed bean passing selected row key info
    step3: implementing following logic in AM method
    while(keyList.hasNext()
    1) getting View object for the given key and populating message
    2) Posting the mesage in JMS queue configured in weblogic using JMS Helper classes written
    3) updating the delete flag in VO
    Problem statement:
    In Step3 after sub step 2 executed, suppose if database is down substep3 will not get executed
    because of which a record will get displayed again back in UI and when selected again a duplicated message will be sent to the concerned external system
    I'm very new to ADF. Can anyone please help me on how to achieve this using ADF?
    Much Appreciated,
    Indu

    Thanks Vinod for your reply
    at substep 2 getting record from database and populating message and posting it to jms queue
    at substep 3 if post is successful the updating database indiacting this message has been sent by updating delete flag
    if i update database first and then if send message, In case of JMS exception(Can be Queue failures) my record will get updated and i cannot see record back in UI
    So both these opertions has to be happened in in single Transaction.Either both has to be happened or both has to be rolled back
    database and JMS are different resources. How ADF handles these XA transactions?
    Thanks,
    indu

  • How to implement a forms application with an application server

    Hi,
    I want to implement a forms application with OAS version 10.1.0.
    How to configure? Where can I find some documents?
    Max

    See
    http://www.oracle.com/technology/documentation/appserver.html
    and
    http://www.oracle.com/technology/products/forms/index.html

  • How to Implement Process Train In ADF

    I am using Jdeveloper 10.1.3.1.0
    Our requirement is to use process train in our project, so could anyone please knows this things that how to implement it please tell me.
    In Single page i am having so many tabs and each tab having one detail page and atlast it is going to submit all the details.
    Thanks In Advance
    Ramkumar
    Message was edited by:
    user636100

    Hi!
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3?topic=af_maintrain_html should give you all the information you require.
    BB

  • How to convert oracle forms to adf

    I want to convert oracle forms to adf
    Edited by: user4435615 on 2013-3-22 下午8:23

    ADF Equivalents of Common Oracle Forms Triggers
    http://www.oracle.com/technetwork/developer-tools/jdev/index-092937.html
    Case Study: Redeveloping an Oracle Forms application using Oracle JDeveloper 11g and Oracle ADF 11g
    http://www.oracle.com/technetwork/developer-tools/jdev/redeveloping-forms-in-adf-11g-1-133095.pdf
    Migrating Forms to Java or ADF, the truth and no FUD
    https://blogs.oracle.com/grantronald/category/Oracle/Oracle+Forms+to+ADF
    Timo

  • ADF 11g: How to implement search form with automatic substring search

    We have ADF search form and result table on the same page. Say, VO that this search form is based upon is famous Employee table from HR schema. What we need is a logic when user enters partial employee first name ie: 'jo'...it should return 'john', johnny, joanne etc...
    just like if user would use wildcard %
    What worked in 10g ADF was something like this:
            AccessServiceImpl svc = (AccessServiceImpl)JSFUtils.EL("#{data.AccessService.dataProvider}");
            BirthViewNewImpl b = svc.getBirthViewNew();
            ViewCriteria vc = b.getViewCriteria();
            String staffId = JSFUtils.getFromSession("staffId").toString();
            String studyId = JSFUtils.getFromSession("studyId").toString();
            if (vc != null) {
                System.out.print("BR " + studyId + " " + staffId + " ");
                AttributeDef[] defs = vc.getViewObject().getAttributeDefs();
                Iterator criteriaRows = vc.iterator();
                while (criteriaRows.hasNext()) {
                    ViewCriteriaRow r = (ViewCriteriaRow)criteriaRows.next();
                    if (r != null) {
                        for (int j = 0, numAttrs = defs.length; j < numAttrs; j++) {
                             if (JboTypeMap.isCharType(defs[j].getSQLType())) {
                                 String val = (String)r.getAttribute(j);
                                 String col = defs[j].getColumnName();
                                 if (val != null) {
                                     System.out.print(col + "=" + val + " ");//just to see what is going on
                 System.out.println("");
            b.searchRecords();//method in VO that executes query
             * This is now very wrong.... Very artificial way to eliminate % from the UI
             if (vc != null) {
                 AttributeDef[] defs = vc.getViewObject().getAttributeDefs();
                 Iterator criteriaRows = vc.iterator();
                 while (criteriaRows.hasNext()) {
                     ViewCriteriaRow r = (ViewCriteriaRow)criteriaRows.next();
                     if (r != null) {
                         for (int j = 0, numAttrs = defs.length; j < numAttrs; j++) {
                             if (JboTypeMap.isCharType(defs[j].getSQLType())) {
                                 String val = (String)r.getAttribute(j);
                                 String col = defs[j].getColumnName();
                                 if (val != null) {
                                     val = val.substring(0,val.length()-1);//return to normal
                                       System.out.println("Column: " + col);               
                                       System.out.println("Value: " + val);               
                                       r.setAttribute(j,val);
            return null;The problem is for some reason this does not quite work in 11g.
    What is the best practice to achieve this functionality in 11g?

    Or use a catsearch index or a contains index in your query. The will preform much better for large datasets as it doesn't do a full table scan.
    Google for Oracle Text ( http://www.google.de/search?q=%27oracle+text%27+catsearch&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de:official&client=firefox-a )
    Timo

  • How to implement this Form page in ApEx

    Hi,
    I'm using ApEx 4.0.1 with Oracle 10g r2.
    We have an old form (built with Forms 10g) that we want to implement with ApEx.
    Data are shown using some items and I can't find how to do the same with ApEx. It is quite hard to explain so here is a screenshot (png) : http://bailly.yann.free.fr/autres/OTNForums/form_mesures_offsets.png
    Buttons with arrows allow user to navigate through the records. A PL/SQL program is currently used to fetch rows.
    So it seems I can't use a report because I can't fetch all rows with a single query.
    And I don't want to use modifiable items (textfields, textarea, ...) like in that form but simply show all data.
    Any idea on how I can achieve this ?
    Thanks!
    Yann.

    So it looked to me like a single form tied to a custom query to retrieve the data will be sufficient. I would start with about 5 items including your key id. Then create a custom procedure that fires BEFORE HEADER like this:
    declare
    begin
      select COL1, COL2, COL3, COL4
        into :PX_VAR1, :PX_VAR2, :PX_VAR3, :PX_VAR4
        from MY_TABLE
       where KEY_ID = :PX_KEY;
    end;You can make the SQL retrieval as complicated as you need. You will have to determine how to populate the Key field, whether that is by passing in a variable from another page or using another process to get it. Once you have a few items working, start creating the rest of your page items and add them to the query procedure.
    If you need to change any of them, you can create a second procedure that saves the information back to the DB:
    declare
    begin
      UPDATE MY_TABLE set COL1 = :PX_VAR1, COL2 = :PX_VAR2, COL3 = :PX_VAR3, COL4 = :PX_VAR4
       where KEY_ID = :PX_KEY;
    end;

  • How to implement dynamic form?

    Hi, all
    Currently, I am using XPAAJ to merge xml data sent from Flex side and the pdf template in the server side which is designed by LiveCycle Designer.
    But now my question is that my form is dynamic, like the rows of table. How could I implement such kind of functionality?
    Thanks
    Alan Ji

    And actually, the exact requirement is that user should enter values in Flex pages and click "View as PDF", data will be sent back to merge with PDF template.
    Under this situation, how could the form be dynamic?
    Thanks for any help.

  • How to implement Dynamic form validation

    Hello,
    I've been reading up on the forums about using the htmldb.item package to dynamically create form elements using a SQL query. Assuming I can generate the form dynamically, what approaches/options are available for implementing dynamic validation of the form elements themselves?
    Thanks in advance

    You could write a page-level 'PL/SQL Function Body returning error text' validation where you loop over your dynamic form elements (htmldb_application.g_fnn), check the values and raise errors as needed.

  • How to give JASS Security to ADF BC Swing Application.

    Hello Friends,
    ->I read lots of threads about JASS Security in ADF about Web Application.
    ->But i am not getting any solution/Document Which explains, How to Implement JASS Security to ADF BC Swing Apllication.
    -> I Will Explain Which type of application we developed.
    We had developed one Whole ERP Product by using ADF BC [Swing] Technology.We have 480 Forms in our Application.Now i need to give security to my Application.
    ->I Will Explain Structure of Application.
    We have seperate Application Module for each form means i have 480 Application Modules in my application.I create seperate session beans for each Application Module and I deploy it on Standalone OC4J Server
    So please friends help me out to give security to my application.
    Thanks in Advance.

    Hello Franks
    First thanks for your reply.
    --> As you suggested two options for me but i would like to go with second option.
    JAZN with ADF BC.
    ---> As you said i need to do jbo.security.enforce property set to "auth".but currently i made it "Test" to trace login user means to set History Columns.
    --->Frank i am waiting for your documents.If you have documents in the format of how-to-do then Please Forward me.
    Thanks Frank

  • How to Show BI report in adf form ?

    How to show bi Report in adf form ?
    (i dont show dashboard in adf form

    Hi,
    check this : http://husaindalal.blogspot.com/2009/11/integrating-bi-publisher-standalone.html
    there are some other helpful links as well:
    http://brendenanstey.blogspot.com/2007/01/adf-faces-and-xml-publisher-success.html
    http://technology.amis.nl/blog/2296/building-a-report-in-xml-publisher
    http://technology.amis.nl/blog/1597/xml-publisher-display-input-parameter-sqllims
    ~Abhijit

  • How to implement a java class in my form .

    Hi All ,
    I'm trying to create a Button or a Bean Area Item and Implement a class to it on the ( IMPLEMENTATION CLASS ) property such as ( oracle.forms.demos.RoundedButton ) class . but it doesn't work ... please tell me how to implement such a class to my button .
    Thanx a lot for your help.
    AIN
    null

    hi [email protected]
    tell me my friend .. how can i extend
    the standard Forms button in Java ? ... what is the tool for that ... can you explain more please .. or can you give me a full example ... i don't have any expereience on that .. i'm waiting for your reply .
    Thanx a lot for your cooperation .
    Ali
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Henrik, the Java importer lets you call Java classes on the app server side - I think what Ali is trying to do is integrate on the client side.
    If you want to add your own button then if you extend the standard Forms button in Java and then use this class name in the implementation class property then the Java for your button will be used instead of the standard Forms button. And since it has extended the basic Forms button it has all the standard button functionality.
    There is a white paper on OTN about this and we have created a new white paper which will be out in a couple of months (I think).
    Regards
    Grant Ronald<HR></BLOCKQUOTE>
    null

  • How to implement Search Help in Interacive Form based on WebDynpro Java?

    Hi Experts,
    How to implement Search Help in Interacive Form based on WebDynpro Java?
    Could someone please provide the prerequisites and the code for the same.
    Regards,
    Shobhit

    Extend the controller and get the handle of the current row of the VO. Set set the attribute context filed accordingly. Also get the handle fo the flexbean and set the context. According rendering would change.
    Regards
    Sumit

  • How to implement the spell check in oracle forms 10g or 6i...

    How to implement the spell check in oracle forms.
    Is there any different method is there.
    Please help me....
    Praveen.K

    Here is one different from Jspell..
    In 6i client/server you can call MS Word spell checker using OLE. Below sample code for 6i.
    For 10g you will need webutil to use same code. install webutil and just replace "OLE2." with "CLIENT_OLE2."
    PROCEDURE spell_check (item_name IN VARCHAR2)
    IS
       my_application   ole2.obj_type;
       my_documents     ole2.obj_type;
       my_document      ole2.obj_type;
       my_selection     ole2.obj_type;
       get_spell        ole2.obj_type;
       my_spell         ole2.obj_type;
       args             ole2.list_type;
       spell_checked    VARCHAR2 (4000);
       orig_text        VARCHAR2 (4000);
    BEGIN
       orig_text := NAME_IN (item_name);
       my_application := ole2.create_obj ('WORD.APPLICATION');
       ole2.set_property (my_application, 'VISIBLE', FALSE);
       my_documents := ole2.get_obj_property (my_application, 'DOCUMENTS');
       my_document := ole2.invoke_obj (my_documents, 'ADD');
       my_selection := ole2.get_obj_property (my_application, 'SELECTION');
       ole2.set_property (my_selection, 'TEXT', orig_text);
       get_spell :=ole2.get_obj_property (my_application, 'ACTIVEDOCUMENT');
       ole2.invoke (get_spell, 'CHECKSPELLING');
       ole2.invoke (my_selection, 'WholeStory');
       ole2.invoke (my_selection, 'Copy');
       spell_checked := ole2.get_char_property (my_selection, 'TEXT');
       spell_checked :=SUBSTR (REPLACE (spell_checked, CHR (13), CHR (10)),1,LENGTH (spell_checked));
       COPY (spell_checked, item_name);
       args := ole2.create_arglist;
       ole2.add_arg (args, 0);
       ole2.invoke (my_document, 'CLOSE', args);
       ole2.destroy_arglist (args);
       ole2.RELEASE_OBJ (my_selection);
       ole2.RELEASE_OBJ (get_spell);
       ole2.RELEASE_OBJ (my_document);
       ole2.RELEASE_OBJ (my_documents);
       ole2.invoke (my_application, 'QUIT');
       ole2.RELEASE_OBJ (my_application);
    END;Call it like this: SPELL_CHECK ('BLOCK.MY_TEXT_ITEM' );

Maybe you are looking for

  • ITunes on Windows Mobile

    i may be putting this on the wrong board but i think that apple should make a version of iTunes for Windows Mobile

  • Lenses in Lightroom

    What metadata field does Lightroom use for lens information and how is it formatted?  I have a Panasonic G1 and the lenses don't show up in Lightroom.  I do see the lens information in text in the Maker section in a field called LensType.  As far as

  • ORA-12560: TNS protocol adapter error for 11g

    I'm attempting to install Oracle 11g in my Windows 2008 Doamin machine. During the installation of database configuration assistant, I got the pop up error "ORA-12560: TNS protocol adapter error." I tried it twice and still failed. I have no idea wha

  • [Desktop][Your Music] Option: Order artists in Your Music by number of songs

    I'd love to be able to sort artists by number of songs. That way I have some idea of which artists that I've +-d I want to listen to most, or have the most songs I like the most.  It could then be sorted by album within the songs. Thanks very much an

  • Do i need dvdrtools?

    i'm having some problems reading dvds and rips. for example, when trying to grab a frame of a ripped dvd in dvdrip, it will just stall with 1% left to go. no error message in dvd::rip log. or trying to view some of the "extras" on a dvd (interviews,