BC4J ViewLink and CURSORS

I am using BC4J ViewObjects and ViewLinks. With ViewObjects method closeFreedStatements() works fine and closes Open Cursor in the database. How should I close Rowset and Statements when using ViewObjects trought ViewLinks?

Hi,
You could cast the RowIterator from the detail set from a viewlink to ViewRowSetImpl and get the ViewObjectImpl of the detail vo.
RowIterator ri; //detail rowset
ViewRowSetImpl rsi = (ViewRowSetImpl) ri;
((ViewObjectImpl) rsi.getViewObject()).closeFreedStatements();
Yvonne

Similar Messages

  • BC4J ViewLink

    I have a JSP page that lists the master table with a jboUrlEvent to a second JSP page. This is the page where I want to display the child details.
    It contains to datasrouces, JobApplicationView and JobApplicationCommentsViewLink. I use the addrowkey to the url event to get the selected row. I use the job:Row to get the row, this works fine.
    I then use the viewLink and job:DataTable to post the details. The problem is that I'm not seeing the correct listing of details. It only displays the details for the first row in the master rowset for all.

    Here is the jsp code...
    <%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" import = "oracle.jbo.html.*"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="JobSearchModule" definition="JobSearchJSP.JobSearchModule" releasemode="Stateful" />
    <jbo:DataSource id="JobApplicationView" appid="JobSearchModule" viewobject="JobApplicationView"/>
    <jbo:DataSource id="JobApplicationCommentsViewLink" appid="JobSearchModule" viewobject="JobApplicationCommentsViewLink" rangesize="100" itermode="LastPagePartial"/>
    <jbo:DataHandler appid="JobSearchModule" />
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <TITLE>Application Details</TITLE>
    </head>
    <body>
    <jbo:Row id="row" datasource="JobApplicationView" rowkeyparam="jboRowKey" action="Get">
    <center>
    <table width="80%" class="clsTable" cellspacing="1" cellpadding="3" border="0">
    <tr>
    <th class="clsTableHeader">Name</th>
    <th class="clsTableHeader">Address</th>
    <th class="clsTableHeader">Day Phone</th>
    <th class="clsTableHeader">Evening Phone</th>
    <th class="clsTableHeader">Created Date</th>
    </tr>
    <tr class="clsTableRow">
    <td>
    <jbo:ShowValue datasource="JobApplicationView" dataitem="FirstName" ></jbo:ShowValue> 
    <jbo:ShowValue datasource="JobApplicationView" dataitem="MiddleName" ></jbo:ShowValue> 
    <jbo:ShowValue datasource="JobApplicationView" dataitem="LastName" ></jbo:ShowValue></td>
    <td>
    <jbo:ShowValue datasource="JobApplicationView" dataitem="Address" ></jbo:ShowValue> 
    <jbo:ShowValue datasource="JobApplicationView" dataitem="City" ></jbo:ShowValue>, 
    <jbo:ShowValue datasource="JobApplicationView" dataitem="State" ></jbo:ShowValue> 
    <jbo:ShowValue datasource="JobApplicationView" dataitem="ZipCode" ></jbo:ShowValue>
    </td>
    <td><jbo:ShowValue datasource="JobApplicationView" dataitem="DayPhone" ></jbo:ShowValue></td>
    <td><jbo:ShowValue datasource="JobApplicationView" dataitem="EveningPhone" ></jbo:ShowValue></td>
    <td><jbo:RenderValue datasource="JobApplicationView" dataitem="CreatedDate" ></jbo:RenderValue></td>
    </tr>
    </table>
    </jbo:Row>
    <table width="80%" class="clsTable" cellspacing="1" cellpadding="3" border="0">
    <tr>
    <td ALIGN="right"><jbo:DataScroller datasource="JobApplicationCommentsViewLink" /></td>
    </tr>
    <tr>
    <td><jbo:DataTable datasource="JobApplicationCommentsViewLink" edittarget="JobApplicationCommentsViewLink_Edit.jsp"/></td>
    </tr>
    </table>
    <br><br>
    <jbo:ReleasePageResources />
    </body>
    </html>

  • Diff b/w bc4j model and ejb model in adf11g

    hi all,
    iam murali iam new for adf 11g i have some dout's in adf11g ,can u please solve my probleam
    what is the difference b/w bc4j componet and ejb componet,how to develop ejb application in adf11g.

    ,how to develop ejb application in adf11gTake a look at this tutorial for starters:
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ejb/ejb.html

  • Autocommit and Cursor commit Behaviour

    Hi,
    I need help to set and get the Autocommit and Cursor commit behavior attributes
    in Oracle.
    AUTOCOMMIT:
    For DDL Statement, this attribute is set while executing the OCIStmtExecute() api
    as below:-
    r = OCIStmtExecute(d->svc, d->sql, d->err, 1,0,
    (CONST OCISnapshot *) NULL,
    (OCISnapshot *) NULL,
    d->transaction ? OCI_DEFAULT :                                         OCI_COMMIT_ON_SUCCESS);
    For DML Statement, from the OCI documentation the database parameter attributes
    support OCI_ATTR_AUTOCOMMIT_DDL with the values OCI_AC_DDL and OCI_NO_AC_DDL.
    Since this is a parameter attribute, I couldn't set using OCIAttrSet() API.
    I need help in implementing AUTOCOMMIT for both DDL / DML statements.
    CURSOR COMMIT BEHAVIOUR:
    Similarly, I have observed that Oracle support cursor commit behavior attributes
    using OCI_ATTR_CURSOR_COMMIT_BEHAVIOR and the attribute values are OCI_CURSOR_OPEN and OCI_CURSOR_CLOSED.
    I have tried setting this attribute as below:-
    ub1 nCommitType = OCI_CURSOR_OPEN;
    oraRC = OCIAttrSet((dvoid *)d->svc, (ub4)OCI_HTYPE_SVCCTX,
         (dvoid *)&nCommitType,
         (ub4)sizeof(nCommitType),
         OCI_ATTR_CURSOR_COMMIT_BEHAVIOR, d->err);
    This always fails with the error ORA-24315: illegal attribute type.
    I need help in setting this attribute using OCI.
    Another approach to set Autocommit / Close Cursor attributes:-
    Oracle support SET commands for autocommit and closecursor, I have prepared
    and executed these set commands using OCIStmtPrepare and OCIStmtExecute api. The OCIStmtExecute() API fails to execute the below command texts.
    SET AUTOCOMMIT ON/OFF
    SET CLOSECURSOR ON/OFF
    Is it the right method of setting these attributes?
    Thanks,
    Sankar.P.

    Hi.
    You are trying to commit "child" information before your Parent information is commited.
    Can you describe how you dragged & droped your views?.
    Dragged relationship views or single views?.
    Can you put output log with jbo with FINEST level?.
    To find a solution try next solutions:
    1) Disable "strong" association between your parent-child entities. To achieve it follow next steps:
    - Go to your "Assoc" that describes your foreign key.
    - In "Realtionship" tab, "Behaviour" disable "Composition Association".
    Image: http://1.bp.blogspot.com/-Em8NZvjOUzo/T_NQbJTcLjI/AAAAAAAAAm4/hPsDwtEhJQ4/s1600/4.png
    2) Drag and Drop correct views as a Master-Detail (cascading views in your Data Control).
    http://2.bp.blogspot.com/-1By5vNNGMFQ/T_NQdYzexKI/AAAAAAAAAnE/DGn7Gr0RSDw/s1600/6.png (in spanish).
    In the image, drag & drop PortalwebView2 is the correct way for Master-Details tables. Probably you dragged PortalwebView1 that have dependecy to master table.
    Steps that you have followed:
    - Drag & Drop dependen View Object as a Master-Detail with two tables.
    - Add Create operations from these views to create Rows.
    - Add Commit general operation from Data Control.
    Try to drag & drop Master-Detail views correctly before disable association.
    PD: To try your model faster run Model project instead of your application.
    Regards.
    Edited by: Daniel Merchán on 30-jul-2012 12:05

  • I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function works

    I can edit on Premiere Pro 6 files, but after a dozen keystrokes, the space bar and cursor keys stop working while the save function, render workspace function, export file are still operational. How can I fix it so I may complete my assignment?
    Besides DaVinci Resolve, Adobe Creative Suite 6 is the only software on the machine. I am using Windows 7 Professional 64-bit Operating System on AMD FX 6100 six-Core Processor at 3.31gHz and 32 GB RAM memory. There are two SLI-bridged GTX680 NVidia cards.
    The software was very stable for the last six months, working with 720P proxy files from 2.5K masters (Blackmagic Design Camera). I am working on a feature-length project that exceeds 1000 edits. I have broken the file into 2 one hour segments.
    I have deactivated the software before reinstalling the entire OS from scratch. PP6 was very stable for 48 hours. Then the freezing space bar returns. After a dozen strokes into the project, same problem.  I have made cache files store next to originals, I have deleted preview files if they were corrupted and causing instability. Am I missing something?
    I have Microsoft Security Essentials for virus protection. I double checked the memory for damage/defect. Nothing says that the motherboard or other components are damaged.
    I am in film competition overseas and need to have deliverables in less than a month's time.  I lost the last two weeks troubleshooting and this crisis came at an inopportune moment of the project.
    Any assistance would be greatly appreciated.

    Still getting software freezes but found a way to mitigate for the mean time.
    Upon launching Adobe Premiere Pro, hit CTRL-ALT-DEL to launch TaskManager as well.
    You will want to highlight Adobe QT32 Server.exe
    Right click and select "End Process Tree"
    You will get considerable stability in the program, long enough to get timing of cuts done. Be sure to save often.
    If the program freezes, do not hit Save. You definitely want to avoid saving the corruption into your TimeLine
    CTRL-ALT-DEL to relaunch the TaskManager and highlight Adobe Premiere Pro.exe
    Right-click to "End Process"
    No need to reboot the whole system; just launch Premiere Pro again and continue with the session. Note that your work reverted to Last Save.
    Hope this helps until the bug is fixed.

  • ADF BC : Ant and XSLT to modify bc4j.xcfg and DataBindings.cpx

    hi
    Before I deploy my ADF BC / ADF Swing application I would like to use Ant to make some changes to bc4j.xcfg and DataBindings.cpx
    (see also "Defining ADF Business Components Runtime Properties for ADF Swing Applications" in the JDeveloper documentation)
    I would like DataBindings.cpx to point to the correct configuration and bc4j.xcfg to only contain the configuration information that is required.
    I created some XSLT transformation stylesheets to help me with that, see this example application:
    http://verveja.footsteps.be/~verveja/files/oracle/AntXsltConnectionSwitchStuff-v0.02.zip
    question
    Does JDeveloper itself provide any features to automatically make changes to DataBindings.cpx (and bc4j.xcfg) before deployment?
    many thanks
    Jan Vervecken

    repost

  • Non-responding keyboard and cursor, macbook pro 10.4.7

    Hi,
    My macbook pro has completely stopped detecting my keyboard and cursor [I am not referring to a usb keyboard, I'm talking about the original typing keyboard], otherwise, it's the keyboard that's malfunctioning. I plugged in a usb mouse and the cursor worked fine, so I suspect that the issue originates from the keyboard itself or some kind of disconnection. Has anyone encountered such issues before? I've attempted to install an apple keyboard update, but the computer refused it because the system did not need the update. I'm completely lost...please...help...thank you so much in advance!!!!!!!!

    this is the wrong place to be asking. please post here...
    http://discussions.apple.com/category.jspa?categoryID=190

  • Sql query to  know the number of triggers and cursors present in a schema?

    friends,is there any way to know the number of triggers and cursors preseent in a schema.
    thanks in advance..

    what do you mean by triggers in a schema? is it the triggers owned by that schema? or the triggers applied on tables owned by that schema? remember you may own triggers applied on the tables belong to other schemas. Anyways, all this information can be extracted from oracle dictionary using a combination of all_triggers and all_tables.
    As far as cursors, please elaborate. Do you mean cursors declared in PL/SQL blocks?

  • Select and Cursor doubt

    Dear All,
    I got a doubt b/n select and cursor.
    I read in one oracle book that select into clause will actually tries to get the data twice, Whereas the cursor will query only ones.
    Is this the case in Oracle 10g or both the select and cursor will fetch the data only ones.
    Ex
    select sal into v_sal from emp where empno = 7788 --> Ones it hit the data, oracle will again scan the entire set of records in the emp table for another match.
    Whereas
    Cursor c_sal is select sal from emp where empno = 7788; --> This will do the fetch operation only ones.
    Is this the case still True in Oracle 10g or 11i.
    Appreciate your help.
    Thankyou very much
    Madhu K

    the query is processed as follows (this is from ora doc)
    Parse:
    – Search for identical statement
    – Check syntax, object names, and privileges
    – Lock objects used during parse
    – Create and store execution plan
    Execute: Identify rows selected
    Fetch: Return rows to user process
    for cursor also same things are performed, but cursor is private sql area in which you can processes one row at a time, you can use cursor in your pl/sql program and access one row a time,
    so if you say,
    cursor c1 is select * from emp;
    c1 is private sql area where you can processes single row of emp , make comparisons, calculations etc,
    once you close the cursor this area is released and can be used by another cursor,
    the basic query processing rules remains the same,

  • bc4j:setAttribute and validater

    Hi, the parser bug reported in this thread, has it been solved or is there any work around for it?
    UIX/XML: <bc4j:setAttribute> and <validater>
    Basically I want serverside BC4J field validation, there might be another way to get it done?
    Thanks, Jan

    Jan,
    Sorry, the bug fix has not been released externally. Registering the below UIExtension should work, though.
    Hope this helps,
    Ryan Pollock
    UIX Team
    import oracle.cabo.share.xml.ParserManager;
    import oracle.cabo.ui.UIConstants;
    import oracle.cabo.ui.UIExtension;
    import oracle.cabo.ui.laf.LookAndFeel;
    import oracle.cabo.ui.validate.ServerValidater;
    import oracle.cabo.ui.xml.parse.ClientValidaterFactory;
    public class FixValidate implements UIExtension
    public void registerSelf(ParserManager manager)
    // Work around UIX bug with ServerValidater parsing
    manager.register(ServerValidater.class,
    UIConstants.MARLIN_NAMESPACE,
    ClientValidaterFactory.sharedInstance());
    public void registerSelf(LookAndFeel laf)
    }

  • The code to set focus and cursor position fails in a mobile browser

    In two previous discussions (http://scn.sap.com/message/15176399 and http://scn.sap.com/message/15205348) I received help on how to set the focus on an OpenUI5 mobile input field and then how to position the cursor at the end of any text that might be in that field.
    That all works well in desktop browsers (Chrome, Firefox and IE10).
    However that same code seems to fail when I test it on browsers on mobile devices. At first I thought this was working in Chrome on an iPad but now it does not (could our taking new OpenUI5 code recently affected that?). I do not think I have ever see this work in Chrome on a, Android tablet.
    Has anyone had success setting the focus and cursor position on a mobile input field running in a mobile environment?

    Wasn't sure where to turn with this problem. There is talk on the web that there is a problem in Chrome on Android and that this will be fixed in version 37. We I get that version I will try and update this post.

  • Macbook Pro boots to blank gray screen and cursor

    Hello,
    I downloaded the "time machine update" and now my macbook pro will not boot, it stops at a gray screen and cursor.
    I have tried safe boot, Disk Warrior, clearing NVPRAM or whatever.
    Any ideas on anything else?
    Question, how long does a time machine restore take?
    Thanks

    elipsis1 wrote:
    I downloaded the "time machine update" and now my macbook pro will not boot, it stops at a gray screen and cursor.
    I have tried safe boot, Disk Warrior, clearing NVPRAM or whatever.
    Assuming the TimeMachine updte came from Apple correct?
    Disconnect the TM drive and any other hardware to return the machine back to factory as possible.
    Run through this fix list
    Step by Step to fix your Mac

  • Moving between open windows and cursor doesn't work

    I have several open windows from several programs.
    If I click on window 1 in program A, and then click on window 2 in program B, I expect the mac to switch to that window in program B.
    But many times lately, in Tiger, that does not happen. I can click on the window, and the cursor does not work. Nor does the menu bar change. I can go back to window 1 and the cursor still does not work.
    Only when I go to the dock, and click on the program icon does the window and cursor work properly.
    This happens in Tiger. I don't recall having this behavior in any older OS X, OS 9, or other older version either.
    This has happened on my iMac G5 and G4 tower. Is this a known problem?

    This happens since I started using the Mighty mouse on both computers.

  • Pages jump and cursor erratic online only...other browsers ok

    Pages and cursor jump erratically while online. FF 16.0.2
    Other browsers work properly.

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    *Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Substitution problem in VO with viewlink and not in expert mode

    Hi All
    i have to extend a VO ,standar VO is not in expert mode so i made it and then extended the VO(need to add two new date columns) and substituted the BC4j ,i was involved in this discussion also
    Re: Substitute ViewObject. Urgent!!!!!  Thank you
    ,and i was aware that viewlinks should take care by substituion itself ,but in my case it is creating problem ,first it has thrown the error given below
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value PoRequisitionLinesVO for source passed to method ViewLinkImpl.setSource.  Explanation: view def mismatch
    then i modified the VOExRowImpl and added the viewlink setter getter from seede Rowimpl ,now it it not throwing the InvalidParamException ,but throwin OAAttrValException saying get method for LineNum is not resolved ,now i m puzzeled what is going on ,i m sure i have not made any mistake in substitution, any clue would be very helpful for me ,please throw some light on this issue
    thanx
    Pratap

    thanx kumar, nice to see your reply.
    basic requirement is i have to create two date fileds on the requsition line form ,it shud appear on the basis of selected value in a field of same row ,so i set PPR ,initially i bounded these fields with spared attributes of VO but it was creating problem after page refresh ,i have raised the issue in the forum
    Date value format is changed itself after page refresh
    raised a tar with oracle ,issue was that these attributes are varchar type and used for the date fields, thats y creating the problem after page refresh ,VO extension didnt work bcz these attributes are already there in seeded VO with there data type, so they can not be changed in VO extension,oracle suggested create two columns with date type in the seeded table itself and use them in VO extension , i did it ,now the problem is
    i have extended the VO ,and this problem came ,one thing i m not sure is
    since i have added two new columns ,shud i do EO extension (i did it ) and then VO extension ,if yes then how bcz when i will move all the files from server they are all standard files and ,extended VO is getting the reference of seeded VO which is using the seeded EO not the extended EO .
    so what approch or steps shuld i follow to add this newly added column in VO .
    thanx
    Pratap

Maybe you are looking for

  • 4th gen ipod nano - can't find games for it on itunes

    I have just purchased a 4th gen ipod nano for my son and he wanted some games. Went onto itunes and purchased Crash Bandicoot Nitrokart game for £3.49. Couldn't get it to transfer to nano - but then noticed it's sitting in Applications (iPhone and iP

  • Date Field in XML

    Hi friends, I am creating a Java application, and i am giving input and output data in XML. Can anyone tell me how to specify DATE element in XML. I think there is Swing date spinners in Swings, similar to that is there any Date element in XML Thanks

  • AJAX Query, Refresh Spry

    Here is the snippet of code I am using on a master/detail page (Using spry). The goal is to delete the employee, and upon completion have the master list use a blind up effect to get rid of that row in the list. function deleteEmployee() { var test =

  • OnyX Questions

    I just downloaded OnyX to my Mac about 45 minutes ago. I have two questions: 1. Does OnyX absolutely need to verify the disk every time it starts up? If not, how do I disable this? 2. When I change the OnyX icon, is it supposed to replace the origina

  • How do I record music from Itunes to a dvd to play on a Sony DVD player dvp sr500h?

    How do I record music from Itunes to a dvd, that shows it is finishing but will not play on my hardrive or on a Sony DVD player, dvp sr500H?