Dynamic Action on apex items

Hi,
I have a requirement like after entering the date of birth in the item. then age value should be set dynamically.
how can i set the value?

Hi Tulasi,
Follow the below steps
Click on create button-Dynamic action
select Advanced type
Give some name
event - On change
selection type - item
item(s) - your page item(used to select date of birth)
condition - no condition
action - Execute PL/SQL code
Fire on page load - blank
PL/SQL code -
declare
v_age varchar2(100);
v_dob date;
v_sysdate date;
begin
select sysdate into v_sysdate from dual;
v_dob := :P1_DOB;    //here P1_dob is a page item from where i am selecting date of birth.
select trunc(to_char((v_sysdate - v_dob)/365)) into v_age from dual;
:P1_AGE := v_age;     // i have created one item named P1_AGE to display the calculated age.
end;Page Items to Submit = P1_DOB // replace with your datepicker page item
Page Items to Return = P1_AGE // replace with your item.
Hope this will give you some idea.
Thanks and Regards,
Jitendra

Similar Messages

  • Dynamic Action in APEX 3.1.2

    Hi All,
    I am trying to achieve dynamic action in apex 3.1.2 without refreshing the page. I have 2 pages, In page 1 I am opening page 2 which returns an html text to an hidden value which is working fine up to this part. I am trying to show the return html tag using display item. So I am trying achieve this using following code, but is not working please help me.
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
    <script type = "text/javascript" >
    function refreshdata()
    {  var tmp = new htmldb_Get();
    tmp.add('P123_DISPLAY_HTML'', $v('P123_DISPLAY_HTML''));
    tmp.get();
    $('#DISPLAY_HTML').trigger('apexrefresh');
    </script>
    I have added “DISPLAY_HTML'” as div in of display item like this.
    Pre element text
    <div id="DISPLAY_HTML">
    Post element text
    </div>
    It is displaying text if I manually refresh the page which I want to avoid.
    Anyone’s help is much appreciated.
    Regards

    Hi,
    Your code just set item P123_DISPLAY_HTML value to session state.
    It do not call any on demand process that could return something.
    Below code do not do anything else than trigger custom event in APEX 3.x. There is nothing out of box that bind to that event.
    $('# DISPLAY_HTML').trigger('apexrefresh');Maybe this old Carl's blog post help you to right direction
    http://carlback.blogspot.com/2007/12/apex-ajax-reports-and-you-and-bit-of-31.html
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Dynamic action to change item label

    Hi All,
    How can I use dynamic action to change item label?
    thanks.

    Hi,
    fac586 wrote:
    Why and when do you want to dynamically change a label? This would have a detrimental effect on usability and accessibility.
    Consider a visually impaired user of your app using a screen reader. The screen reader identifies a checkbox labelled "Free Cake". They like the sound of that, so navigate to the checkbox to tick it. Your dynamic action fires when it gets focus and changes the label to "Give all my money to Fadi".I think this would confuse even a sighted user! I don't know the OP full requirements or constraints but I can bet the OP does not want to change the item label when the user navigates to it.
    I have to say that I don't like forms that change as the user enters data. I think that enabling and disabling fields is OK, but not hiding or showing or changing labels or field types.
    In any case, if you have to do it, an alternative to changing an item label is to have 2 separate items: one hidden and one shown. Then, using some triggering event, you can hide one and show the other.
    Because there are built-in dynamic actions to hide and show items but not to change item labels, one might thing that one approach is more acceptable than the other. However, if those 2 separate items occupy the same spot in the page, from a user point of view (or screen reader for that matter) I don't see any difference between those two approaches (in my view, both bad practices.)
    And because of its lots of nested tables, lack of headings etc, apex pages are not screen-reader friendly anyway... This is an interesting plugin for firefox that shows how your page would be read by a screen reader:
    http://www.standards-schmandards.com/projects/fangs/
    fac586 wrote:
    You can use an "execute javascript" dynamic action type to do it.Yes, you can. But should you?I don't know. As I mentioned above, I don't like the idea. However, as I also mentioned above, I don't know anything about the OP constraints or requirements.

  • Dynamic actions in apex 5.0

    I have upgraded an application to apex 5.0 and have a few bugs related to dynamic actions.
    It seems that even when the "page items to submit" field has been filled in the session state/item value is not updated and consequently can not be used in the dyamic action.  (its possible I had set this manually via js in the html attributes but if so then this was lost due to conversion..possible but it seems less likely.)
    Has anyone had a similar experience or know of a way to fix this?

    Hi,
    as already pointed out the above code isn't really a JavaScript Expression, because it doesn't return anything. APEX 4.2 and previous versions where more forgiving, because they used eval to execute that dynamic JavaScript code. Eval is very forgiving and also accepts code which doesn't return anything. Because of security best practices, APEX 5.0 isn't making use of eval anymore and expects that the JavaScript expression is really an expression and not a JavaScript code block. Please see the documented change of behavior '4.24 Dynamic Action Set Value Action Set Type JavaScript Expression More Strict' in our Release Notes at https://docs.oracle.com/cd/E59726_01/doc.50/e39143/toc.htm#HTMRN310
    In my opinion the above dynamic action should actually be of type 'Execute JavaScript Code' instead of 'Set Value'. Because that's what it's actually doing.
    You can run the following SQL Statement in SQL Commands to get an idea which dynamic actions might be affected by this change of behavior. It searches for multi line JavaScript Expressions.
    select page_id,
           page_name,
           dynamic_action_name,
           action_name,
           attribute_05
      from apex_application_page_da_acts
    where application_id = 96695
       and action_code  = 'NATIVE_SET_VALUE'
       and attribute_01 = 'JAVASCRIPT_EXPRESSION'
       and instr( attribute_05, chr(10) ) > 0
    order by page_id, dynamic_action_name;
    Sorry for the inconvenience this security change has caused for you.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Dynamic Action in APEX 4.2

    Hi,
    I try to use dynamic action but I cannot find the right event.
    The following:
    If the current -- v(APP_USER) - user is in group Administrator then the Items Name, Userid, Password, Group shold be editable else only the Password should be editable.
    In P0_GROUP there is the group of the current user.
    The page to show the Items is P6_NAME, P6_USERID ...
    I cannot find an action to start for example a PL/SQL funktion which return true or false. And what event is correct (page load?)
    Please help me.
    Regards
    Siegwin

    siegwin.port wrote:
    Hi,
    I try to use dynamic action but I cannot find the right event.
    The following:
    If the current -- v(APP_USER) - user is in group Administrator then the Items Name, Userid, Password, Group shold be editable else only the Password should be editable.
    In P0_GROUP there is the group of the current user.
    The page to show the Items is P6_NAME, P6_USERID ...
    I cannot find an action to start for example a PL/SQL funktion which return true or false. And what event is correct (page load?)
    Please help me.
    Regards
    SiegwinFirstly why are you using a dynamic action to achieve this?
    You should use read only attribute on those page items, See http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_item.htm#HTMDB28297
    Vikram

  • How to abort tasks in a Dynamic Action when apex.confirm = Cancel

    I have a text field that has a Dynamic Action attached to it. When the field is changed, the Dynamic Action fires. There are 6 separate tasks in that Dynamic Action.
    The very first task is a call to apex.confirm. I want to make sure that the user understand the implications of changing the value in this field. So, up pops the dialog, the user reads the information, and decides to click OK or Cancel.
    If OK is clicked, I want to continue through the rest of the tasks in the Dynamic Action. If CANCEL is clicked, I want to just abort out of the Dynamic Action.
    Is that possible?
    Apex 4.1.1.00.23
    Edited by: Mark T. on Mar 1, 2012 9:49 AM

    Yes, I do see a different behavior.
    I've set up an app on apex.oracle.com, #60312. Workspace is mavericksolutions. Login pwolf. Password A1B2C3 change on first login.
    The first field is tied to a dynamic action. The first task in the DA is an apex.confirm. Type something into the first field then click TAB to bring up the dialog box. Whether I click OK or click CANCEL, the 2nd task is still occurring. It appears that the only difference is that if I click OK, I also get a submit of the page.
    What I want, in fact, is twofold:
    1. If I click CANCEL, then STOP the execution of the remainder of the tasks in the Dynamic Action.
    2. If I click OK, go ahead and process the rest of the tasks in the Dynamic Action, but DO NOT SUBMIT.
    Basically, I want to ask the user if it's OK to go ahead and make the on-screen changes, but I do NOT want to do an auto-save. I want the user to look at the results on the screen and click the actual SAVE (or CREATE) button after ensuring their accuracy. Right now, it appears that the apex.confirm is firing a page submit when I click OK (the fields get cleared out). I don't want that page submit.
    I THINK I can accomplish goal #1 with a workaround, by splitting the DA into two pieces. Piece #1 would have only the confirmation dialog. Piece #2 would be fired from the same field change, would have a sequence number AFTER piece #1, and would be conditional on the value of the expression returned by the apex.confirm. So if the apex.confirm returned 'DOTHIS' when I click OK, I would look to see if Expression = DOTHIS for piece #2. If not, then piece #2 wouldn't fire.
    The remaining trouble, then, is that if I click OK to fire piece #2, the page submit will subsequently fire following the completion of piece #2. And no matter what, I definitely do NOT want a page submit. Is there a function similar to apex.confirm that does not do a page submit?
    Anyway, take a look at the app. It's not performing the way that I anticipated, which is the same behavior that you described. I expected that it would do exactly what you said. Alas...

  • Dynamic Action in Apex - Select list to Text field

    Hi,
    I have two text items. Need to create dynamic action for the following,
    1. Order_type - Drop down values having CONSUMER & WHOLESALE.
    2. Order_number - Text field
    When a user selects CONSUMER, order number should automatically change to '1-' and user can enter only 14 characters (1-236666666666).
    When a user selects WHOLESALE, order number should automatically change to '2-' and user can enter only 12 characters (2-2155555555).
    Can someone please help to resolve this issue.
    Thanks in advance.

    Hi Gayathri,
    Gayathri Venugopal wrote:
    Thanks Kiran. Actually ,order number should be disabled. only on selection of  order type, order number should be enabled, how do I do that?can you please help
    I can do fire on page load and disable order number .But how do i enable it again on selection of order number
        Let's say '1-' is prefix for Order Number when Order Type is 'CONSUMER' and '2-' is the prefix for Order Number when Order Type is 'WHOLESALE'.
        So a solution to your issue would be:
    Go to Page Attributes -> CSS -> Inline CSS and add the following class:
    .item_disabled {
      cursor: default;
      opacity: 0.5;
      filter: alpha(opacity=50);
      pointer-events: none;
    Create three elements PXX_ORDERNUM_PRE, PXX_ORDERNUM_SUF(as text Items) and PXX_ORDER_NUMBER(as hidden. Set Value Protected -> No).
    Arrange the PXX_ORDERNUM_PRE and PXX_ORDERNUM_SUF on one row.
    Set the "HTML Form Element Attributes" for PXX_ORDERNUM_PRE to this:
    readonly="true"
    Set the "HTML Form Element CSS Classes" for PXX_ORDERNUM_PRE to this:
    item_disabled
        NOTE : The above two points are to make the PXX_ORDERNUM_PRE element readonly, because if we disable the element we can't assign it a value.
    On the change event of PXX_ORDER_TYPE select list create dynamic action to populate PXX_ORDERNUM_PRE (as mentioned earlier)
    var ordertype = $('#P11_ORDER_TYPE').val();
    if (ordertype === 'CONSUMER') {
      $('#P11_ORDER_NUMBER_PRE').val('1-');
    } else if (ordertype === 'WHOLESALE') {
      $('#P11_ORDER_NUMBER_PRE').val('2-');
    Create an on-submit computation to concatenate PXX_ORDERNUM_PRE and PXX_ORDERNUM_SUF into PXX_ORDER_NUMBER.
    Create validation on PXX_ORDERNUM_SUF, if PXX_ORDER_TYPE is 'CONSUMER' the length should be 12 characters, if 'WHOLESALE' the length should be 10 characters.(excluding 2 characters of prefix).
         So this covers the following:
    On change of Order Type, Order Number Prefix should be set.
    Order Number Prefix should be not able to be modified, but the rest of Order Number should be able to be entered by user.
    Order Number should be of specific length depending upon the Order Type.
         Hope this helps!
    Regards,
    Kiran

  • APEX 3.2 -  Dynamic Actions

    Hi,
    I know that we can apply dynamic actions in apex 4... can we do something similar in 3.2... if not, what's the alternative...?
    Thanks

    Hi,
    Dynamic actions are introduced on Apex 4 and there is not anything similar on Apex 3.2.
    But you can write your own JavaScripts. See e.g. this
    Apex 3.2 hook javascripts to IR and execute those when report is refreshed
    Regards,
    Jari

  • Set value in tabular form field with dynamic action

    Hi Guys,
    I have a dummy field in a tabular form which I am trying to use to populate another field in the tabular form when it is changed.
    In the tabular form I have an ITEM_ID field. Each item_id has an ITEM_NAME which is the dummy field as it is not a field in the database table.
    When the user enters an item name, I would like something like a dynamic action to fire, populating the ITEM_ID.
    e.g User enters part no ABC into the dummy field. When they tab out, I want the value to the item_id field on the tabular form row to be populated based on a SQL query in a similar fashion to how it can be done with dynamic actions on text items on a form.
    I am using APEX v4.0.0
    Thanks in advance
    Chris

    Hello Chris,
    Why can't you use Select List Item on tabular form, which will display all item_names and return item_ids?
    If the list is huge and you need users to type & search, then you can use Pop-up LOV item.
    Regards,
    Hari

  • Dynamic action setvalue from pl/sql function

    Hi,
    I have a currency table with exchange rate column.
    I created a form that allow user to select currency from the table and get the rate into Px_RATE page items.
    I would like to implement it using Dynamic action in apex 4
    Please help me on this case
    Thanks & regards

    Hi,
    You can achieve this by defining a dynamic action as follows...
    #1 - Right click on the page item used to select the currency (let's call it P1_CURRENCY for purposes of this example) and select 'Create Dynamic Action'
    #2 - Select 'Advanced' as we're going to use the 'Set Value' dynamic action type, which is not available in the 'Standard' branch of the wizard.
    #3 - Name your dynamic action, say 'GET RATE', click 'Next'.
    #4 - Leave the 'When' attributes as default, this just defines that the dynamic action will fire whenever the currency item changes, click 'Next'.
    #5 - For the 'True Action > Action' select 'Set Value'
    #6 - Think about whether you want to set the value on page load from the dynamic action also, if so leave the 'Fire on Page Load' checkbox checked.
    #7 - [Assuming you have a simple PL/SQL API that returns the rate, say get_rate for example] Select 'Set Type' of 'PL/SQL Function Body'
    #8 - For 'PL/SQL Function Body' specify something like: return get_rate(:P1_CURRENCY);#9 - For 'Page Items to Submit', specify the currency item P1_CURRENCY and click 'Next'
    #10 - For the 'Affected Elements' specify 'Item' and then select the page item where you want to return the rate value, say P1_RATE.
    #11 - Click 'Create'.
    Let me know if this works for you or if you have any further questions.
    Regards,
    Anthony.

  • V4.0 Dynamic Action - Problem with implementing disabling/enabling button

    I'm having trouble implementing the following APEX V4.0 dynamic action:
    The enabling/disabling of a button when a text field is not-null/null.
    I'm following the example in Oracle's Advanced APEX course notes Pgs 5-13 to 5-16. I can get it working with no problems using two text fields. The example states that the "Select Type" for the button is a DOM object and you then have to enter it's name in "DOM Object" attribute. The example uses a "CREATE" button in a region position. Is "CREATE" just the Name attribute of the object? Is that what we are suppose to enter here? Also my FIND button is a "button among the region items" and not a "button in a region position" as in the example. The name of the button is P1_PAT_TBRN_SEARCH but when I use it as the Dom Object, nothing happens. Also I am using the "Key release" event for the text field that must be not-null.
    I notice that Demitri Gielis on his blog couldn't get it working either (see last paragraph)
    http://dgielis.blogspot.com/2010/01/apex-40-dynamic-actions-part-1.html
    Any suggestions?
    thanks in advance
    Paul P
    Edited by: PaulP on Jun 2, 2011 12:01 PM

    Hi Paul
    Two separate situtations here:
    - html buttons
    - template based buttons, typically comprising multiple html elements
    HTML Buttons
    These should be easy to enable/disable using dynamic actions, specifying an appropriate DOM selector.
    Typically you would use the ID attribute of the button, so that's straight forward except for one catch..
    APEX supports a #BUTTON_ID# template substitution tag , but performs substitutions only for buttons in Region positions and not for button items.
    Use button attributes instead to assign a specific ID.
    Template Buttons
    Since these are made up of multiple elements, you need to treat them as a single object to be able to interact with them easily.
    APEX provides the apex.widget.initPageItem method to integrate plugins with the dynamic actions framework:
    apex.widget.initPageItem("P1_MY_ITEM", {
    enable: function(){},
    disable: function(){},
    getValue: function(){},
    setValue: function(){},
    nullValue: "%null%"
    });This provides you with a mechanism to over-ride one or all of these built-in methods with your own JS, to use custom code to enable/disable your template buttons.
    For an example on how this works, look in the uncompressed apex_widget_4_0.js file, search for the shuttle widget.
    You could just add code to initialize your template buttons manually, or better still create a plugin button to add the code automatically.
    This is reasonably advanced work to do, but you really have to take your hat of to the APEX team for providing the mechanism to do it.
    Regards
    Mark
    demo: http://apex.oracle.com/pls/otn/f?p=200801 |
    blog: http://oracleinsights.blogspot.com |
    book: Oracle Application Express 4.0 with Ext JS

  • Dynamic Action in CKE Editor / rich text

    Dear fellow developers,
    I created some dynamic actions in Apex 4.1.1, which allow me to create function keys in my application.
    For example on "key-down F10" a modal dialog opens or upon hitting "F11" the user is redirected.
    While this works as long as my Selection Type is DOM object "document", the actions are not fired once I enter the rich text editor (CKE) and it has received focus.
    Have you got an idea how to solve this problem?
    Creating an identical dynamic action and setting the Selection Type to jQuery Selector #cke_2 is to no avail.
    Many thanks,
    Sebastian

    No one having a hint?
    It is obviously due to the fact that the ckeditor is embedded in an iframe, which I don't have a selector for.
    I was able to add an id "#ckeditor" to the body of the iframe content but the usage of it fails.
    Maybe some code will illustrate it a little better:
    <span id="cke_P8_STR_BEARBEITUNG" class="cke_skin_kama cke_2 cke_editor_P8_STR_BEARBEITUNG" lang="de" style="width: 748px;" aria-labelledby="cke_P8_STR_BEARBEITUNG_arialbl" role="application" title=" " dir="ltr">
    <span id="cke_P8_STR_BEARBEITUNG_arialbl" class="cke_voice_label">WYSIWYG-Editor</span>
    <span class="cke_browser_gecko" role="presentation">
    <span class="cke_wrapper cke_ltr" role="presentation">
    <table class="cke_editor" cellspacing="0" cellpadding="0" border="0" role="presentation">
    <tbody>
    <tr role="presentation" style="-moz-user-select: none;">
    <tr role="presentation">
    <td id="cke_contents_P8_STR_BEARBEITUNG" class="cke_contents" role="presentation" style="height:100px">
    <iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="WYSIWYG-Editor, P8_STR_BEARBEITUNG, drücken Sie ALT 0 für Hilfe." style="width:100%;height:100%">
    <html lang="de" dir="ltr">
    <head>
    <body id="ckeditor" class="ckeditor cke_show_borders" contenteditable="true" spellcheck="true">
    </html>
    </iframe>
    </td>
    </tr>
    <tr role="presentation" style="-moz-user-select: none;">
    </tbody>
    </table>
    </span>Edited by: skahlert on 13.04.2012 10:53

  • Process Checkbox in Dynamic Report Row (APEX 4.1)

    I have a dynamic report with the following source.
    SELECT ut.user_id,
           ut.username,
           ut.login_attempts,
           ut.active,
           ut.employee_id,
           e.last_name || ', ' || first_name AS EMPLOYEE_NAME,
           fact_custom_auth.get_groups(ut.user_id) AS GROUPS,
           APEX_ITEM.CHECKBOX2(1,ut.user_id) AS CHK
    FROM fact_users_tbl ut, employee_tbl e
    WHERE ut.employee_id = e.employee_id
    ORDER BY username;I have a button on the same page that I want to process the rows that are checked when I click it. I am using a Dynamic Action to do this. The dynamic action has 2 true actions, Execute PL/SQL Code and Submit Form. The button "appears" to do something when I click on it but the code in Execute PL/SQL is not doing what I expect it to do which is update the login_attempts to 0.
    Here is the code for the Execute PL/SQL Code.
    FOR i IN 1 .. apex_application.g_f01.COUNT LOOP
      UPDATE fact_users_tbl SET login_attempts = 0 WHERE user_id = to_number(APEX_APPLICATION.G_F01(i));
    END LOOP;Where am I going wrong?
    Edited by: MrPrice22 on Oct 18, 2012 3:04 PM
    Edited by: MrPrice22 on Oct 18, 2012 3:18 PM

    MrPrice22,
    If I understand correctly, what your trying to do is to update the table fact_users_tbl as many times as checked rows you have when clicking a button.
    My question will be: Why are you using an Dynamic Action instead of a "On Submit Process"?
    About your code:
    FOR i IN 1 .. apex_application.g_f01.COUNT LOOP
      UPDATE fact_users_tbl SET login_attempts = 0 WHERE user_id = 81;
    END LOOP;I don't see any "COMMIT", so....
    In the other hand, if you're executing the PL/SQL code before the submit the apex_application.g_f01 array may have no values cause the values have not been submited yet.
    Try to use your Dynamic Action just to submit the page using the apex submit from the javascript API. That way you can submit the page and send a Request, then create a procedure that executes On Submit and add a condition for that procedure, this condition will be the Request that you send from the Dynamic Action.
    javascript:apex.submit({request:"Process_Checks"})The easiest way to do this is just to asign the Submit Action to your button and create a On Submit Procedure that will be executed only when the button is clicked.
    By the way, don´t forget to add a COMMIT
    Try this and let me know if it works!

  • Insert Dynamic Action of a Form is not working

    Hello
    I've designed a form and some ratio buttons and some other items. A button fires a dynamic action, first with a submit page true action and then with an insert statement action. The button submits the page too.
    Sometimes the values of the form are inserted into the database correctly, but several times not. A new row is created every time, but in some case with no values in the columns. I tried several configurations but I couldn't find out what the problem is.
    Is there a common reason for this issue?
    Regards
    Felix

    I now found a box in the insert dynamic action saying "Page Items to Submit". I added all Items there and now with three times page submission it now works. Or at least it works according to my testing.
    Regards
    Felix

  • Dynamic Action on item not working in APEX 4.2.1

    Created Dynamic action on item(Radio based on LOV) to show/ hide other items (event is Change). But its not working. I mean nothing happening onchange ..

    Based on the Radio item value "a" (Y/N) i am showing or hiding items b and c. All these items are in same region.
    Output seen : By default all the items are displayed and no action on changing the value of the radio item a.

Maybe you are looking for

  • IMac EFI update problems

    My Mid 2011 iMac 27" i7 will no longer start after the latest EFI update. I decided to perform some system updated on my iMac and after installing 10.7.3, I rechecked and it found the EFI update and one other update. They were both pretty small (the

  • FCC with ASCII and UTF-8 encoding issue

    Hi, I have File to IDoc scenario and I am doing FCC which has Japanese chars. (PO with HEADER,1,ITEMS,*) I have specified UTF-8 encoding in file adapter to processed the file. Earlier, my source file was in ASCII format which had junk chars; my file

  • How to convert videos to bitmaps?

    I couldn't find an solution how to load videos with Java and then convert still images to bitmaps. I should make a program that loads video files and then does some processing to the images after I get the data in still images. Is it possible to use

  • TRANSLATION BUILDER

    1. As per the help provided by oracle I have imported all the strings of an existing form using the base language as American and the character set as WE8ISO8859P1. 2. Then added a translation using the base language same and the Translation language

  • More blob woes - POL-4200

    I'm trying to insert a BLOB in a table. I carry out the following steps. 1) create a new record with an empty blob in it 2) select this record to obtain the blob locator 3) load the blob data I'm doing this using jdbc (olite40.jar). I disable auto-co