Equivalent for CLEAR_BLOCK in BC4J?

Hello,
is there a way to clear the data on a view object? This is what CLEAR_BLOCK does in Forms.
I have a JTable with a JUTableBinding and I would like to clear the table. I could use a query that returns nothing, but I'd rather to do without a database query.
Thanks,
Harry

I'm looking for a way to get vo.clearCache() to work. (in essence, I'm also looking to reset the screen contents)
Here's the situation: (JDev 9.0.3.3 with a JClient application)
I open a form and perform executeQuery() on the form's viewobject.
Next, I modify some data. But in stead of performing a rollback, I want to simply clear the viewobject, so that it will contain the data which is still in de database.
When I press a button, which calls vo.clearCache() and vo.executeQuery(), nothing happens!
Am I doing something wrong? Why doesn't vo.clearCache work like I expect it to?
Any help will be appreciated.

Similar Messages

  • Is there a logic:match equivalent for JSTL?

    In a search page I execute a query which returns an array of objects (All objects are of the same object type and are cast to Object[]) and each object has many attributes. I tried using <logic:iterate>, but I was never successful in having it display any results. I believe this had something to do with the entire array being passed via session scope instead of just one record and me not specifying it properly with <logic:iterate>. I was able to successfully use <c:forEach> and it worked right away. I stuck with using that because of its "just works" ability in addition to using a lot of other JSTL code. However, one of the attributes that is being printed out needs to be parsed and is of the form "Yxxx". <logic:match> covers this very nicely, but when I specify it in the below code it is not able to find my variable in any scope.
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match parameter='${myResults}' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>I have done several google searches, but I haven't found a JSTL equivalent for <logic:match>. If there is one could someone please tell me what it is? In addition, although <logic:match> is great I still need to print out a substring of that attribute. Could someone tell me how to do that? If this is not possible could someone please tell me if its possible to use <logic:iterate> with an array of objects like I was attempting to do initially so that I could use <logic:match> at least?
    Thanks to all of you for your time.

    Yes you can use the logic:iterate tag. I think you have to specify the type of the exposed variable though. I prefer the forEach loop.
    I think you are using the wrong attribute in the logic:match tag. You should be using the "name" attribute rather than "parameter"
    Parameter attribute refers you to a request parameter, and I pretty sure you don't want that.
    So given the collection of objects in the session attribute "result"
    This should loop through them all, and see if they start with the letter 'Y'
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match name='myResults' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>As for the latter bit, are you using a JSP2 container and JSTL1.1? It would appear so seeing as you are trying to use EL expressions in the logic:match tag.
    If so, you could make use of the JSTL function library:
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
       <c:if test='${fn:startsWith(myResults.pin, "Y")}'>
          <c:out value="${fn:substring(myResults.pin, 1, -1)}"/>
        </c:if>
    </c:forEach>And I've just spotted a very cool function in there: substringAfter
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
          <c:out value='${fn:substringAfter(myResults.pin, 'Y')}'/>
    </c:forEach>Cheers,
    evnafets

  • XML File not Found for the Container BC4J.cpx

    Hi,
    Have following error when I start a BC4J-JSP/Struts application (with Embedded and standalone OC4J) :
    500 Internal Server Error
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container BC4J.cpx
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition(java.lang.String)
              DefinitionManager.java:751
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition()
              DefinitionManager.java:793
         void oracle.jbo.mom.DefinitionManager.initManager()
              DefinitionManager.java:137
         void oracle.jbo.uicli.mom.JUMetaObjectManager.<init>()
              JUMetaObjectManager.java:57
         oracle.jbo.uicli.mom.JUMetaObjectManager oracle.jbo.uicli.mom.JUMetaObjectManager.getJUMom()
              JUMetaObjectManager.java:131
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.http.HttpContainer.findSessionCookie(javax.servlet.http.HttpSession, java.lang.String, java.lang.String, java.util.Properties)
              HttpContainer.java:541
         boolean oracle.jbo.html.struts11.BC4JRequestProcessor.initPageFromPath(oracle.jbo.html.struts11.BC4JActionMapping, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              BC4JRequestProcessor.java:222
         org.apache.struts.action.ActionMapping oracle.jbo.html.struts11.BC4JRequestProcessor.processMapping(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              BC4JRequestProcessor.java:124
         void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:234
         void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:1292
         void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:492
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    Then I make a Reload and it's ok.
    I have a Workspace with two Projects :
    BC4J.jpr for Businnes Components
    Web.jpr for JSP Struts
    In /classes I have the file Web.cpx, but no BC4J.cpx.
    From which does this name come ? Can I change this name ?
    Thanks
    Yves

    I found this on Metalink...
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    The following is from Note 137429.1. Hope this helps.
    Raja.
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    Action: 1. Make sure that the file is present. In particular, if the file is to be found in a zip/jar file, make sure that the Zip/JAR file is included in the CLASSPATH.
    2. This error is also reported if the name of the XML file does not match the object Name specified in the XML file. If the file system support case insensitive file names (e.g., Windows NT), make sure that the file name matches the object Name in the XML file in case-sensitive fashion.
    3. For a .JPX file, this error is reported if the JPX file is missing the JboProject XML tag. Check the JPX file to make sure that the valid tag is in there.
    4. One XML file may be extending another XML file (specified by the Extends element in this XML file). This error is reported if the base XML file is not found.
    5. When loading the XML file for a package (JboPackage tag), this error is reported if some unexpected error occurs while loading a containee.
    In all of the above cases, a more descriptive message may be printed on Diagnostic. If you are not seeing Diagnostic messages, you can run your application with Diagnostic turned on, as in "java -Djbo.debugoutput=console ...", to see Diagnostic messages.

  • What is the equivalent for 'On Change of' Event in ABAP OBJECTS?

    What is the equivalent for 'On Change of' Event in ABAP OBJECTS?  and how to use it in LOOP control?

    hi,
    There is no such Equivalent in OO ABAP.
    You have to Raise your own Event within tha class checking the value of the field whose value is changing.
    Regards
    Sumit Agarwal

  • Creating a template in Pages is straight-forward as answered here previously. Is there and equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template?

    Creating a template in Pages is straight-forward as answered here previously. Is there an equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template? This has proved unsatisfactory to me so far. Lines are left in etc.

    There are two basic menus for fonts - one from the main menu bar and one from the toolbar. You can also bring up the font manage dialog.
    I don't recommend trying to hard to force an otherwise foreign font, as it inevitably needs to be usable/supported on iOS as well, and that can get tricky w/3rd party fonts, as an example, even with the expanded font support in the latest iBA.
    If you need to discuss fonts more, I suggest starting a new thread....preferably with a slightly more brief title, thanks.

  • HDD Health: How to check it? HD Tune Pro equivalent for Mac?

    hi all, i was just wondering if there's a Mac equivalent for HD Tune Pro. it's a Windows app i use to check for errors on hard drives. i want to check if an externall 1TB HDD has any bad sectors on it before i use time machine to backup my work. i want something that'll check for any small error -- i don't want something that'll just do a basic scan.
    thank you         

    ThunderCon wrote:
    but there's software that can do it on Windows so there must be something on the Mac.
    DiskUtility, DiskWarrior, TechTools, Genius, etc. etc. just do a google search. Most are paid apps except DiskUtility which is already built in and can be accessed from your reinstall partition. I personally don't bother with any except DiskUtility, but do keep a copy of DiskWarrior on hand just in case.
    Developers will convince you that you need all sorts of programs to check and repair most often manufactured disc ailments, but if you are one of those happy to pay, then that is your choice.
    Good Luck
    Pete

  • HT4967 Mobile Me was so handy. I pushed the little sync button and everything updated. Is there any equivalent for I Cloud?

    Mobile Me was so handy. I pushed the little sync button and everything updated. Is there any equivalent for I Cloud?

    Welcome to the Apple Community.
    Unfortunately, iCloud does not offer equivalents to Mobile Me’s iDisk, Gallery or Web Hosting services. You will need to find a third party solution to replace these services. You might consider DropBox, SugarSync, MediaFire or any other service that offers online storage. (not all these alternatives offer all the services previously provided by iDisk)

  • PL/SQL equivalent for networkdays function

    Hi,
    Is anyone aware of a PL/SQL equivalent for the Excel "networkdays" function, that returns the number of whole workdays between 2 dates?
    Thanks!
    Phil

    To calculate the number of days between january 1st and today, use the following.
    1* select trunc(sysdate) - trunc(to_date('01-jan-05')) from dual
    SQL> /
    TRUNC(SYSDATE)-TRUNC(TO_DATE('01-JAN-05'))
    58

  • Does pages have an equivalent for Word's option of viewing a document in "online layout"?

    Does pages have an equivalent for Word's option of viewing a document in "online layout"?

    With online layout you can have the page of your document fill up as much of the screen as you want while being able to zoom the viewing of your text or words to any percentage you want. In pages, I can zoom or stretch the document to fit the full width of the screen, but the view the actual text or words themselves correspondingly enlarges as well.

  • Abap equivalent for  'rownum'

    Dear All,
               I want to fetch any 5 records from a table without using internal table.Basically  I want an abap equivalent for the 'rownum' keyword in oracle.
    For e.g.
    select * from emp where rownum <  5.
    How can this be done in abap?
    Yours truly,
    Ratish

    Hi,
    you can use Select * upto 5 rows
                                 from mara  into wa_mara
                        where <condition>
                        end select.
    Regards,
    Sarath J

  • Equivalent for an "IP accounting" in MPLS Network

    Do we have an equivalent for an IP accounting in an interface in MPLS network. I would like to know this to identify traffic flowing across a WAN interface which is being tag/label switched

    Thanks gopal. However this command "show tag-switching forwarding table" did not help me find a host in a network choking up the WAN link. I heard from one of the cisco reps saying cisco is releasing an IOS to do this in Feb. I hope that helps.

  • Equivalent for this code

    Hi, Could you please let me know what is the EQUIVALENT for this code. This code replace 2 number of  0s or 1s to Just one 0 or 1. The code is very very slow when the input string is very big. Is there any way to replace it with something faster.
    Thanks 
    Attachments:
    Untitled 1.vi ‏7 KB

    This code takes 1ms to run on a string of 60,000 characters (one continuous string of 0's and 1's).  Whereas using your code, it takes about 900ms for the same string.

  • 11g equivalent for the oracle bpm 10g global interactive

    Hi,
    What is the 11g equivalent for the oracle bpm 10g global interactive activity?
    Thansk!

    The Initiator Task is the 11g equivalent to Global Interactive Activity.
    Find more information here
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e15176/human_task_bpmpd.htm
    and here
    http://jamessmith73.wordpress.com/oracle-soa-bpm-11g/simple-bpm-task-initiator/

  • Bufmod equivalent for sending messages

    Hello all-
    Currently we have an app is user-space that is receiveing ethernet frames from a link layer device driver on one Gb Ethernet port and sending them out on another Ethernet port. We use DLPI primitives to interface with the link layer device drivers.
    We''ve pushed bufmod on the stream to help with the receiving of frames. The boottleneck now is the sending of frames. There is a putmsg system call for every frame we send over the second Gb Ethernet port.
    We're looking for some ideas on the best way to send a group of packets per system call to the link layer device driver. A bufmod equivalent for the write side.
    We're running Solaris 8 on an USIII single board computer.
    Any suggestions would be appreciated.
    Thanks,
    Al
    [email protected]

    Hello all-
    Currently we have an app is user-space that is receiveing ethernet frames from a link layer device driver on one Gb Ethernet port and sending them out on another Ethernet port. We use DLPI primitives to interface with the link layer device drivers.
    We''ve pushed bufmod on the stream to help with the receiving of frames. The boottleneck now is the sending of frames. There is a putmsg system call for every frame we send over the second Gb Ethernet port.
    We're looking for some ideas on the best way to send a group of packets per system call to the link layer device driver. A bufmod equivalent for the write side.
    We're running Solaris 8 on an USIII single board computer.
    Any suggestions would be appreciated.
    Thanks,
    Al
    [email protected]

  • Oracle equivalent for OBJECTPROPERTY

    Hi Friends,
    I want the oracle equivalent for the following sql code,
    Select @Command = 'IF OBJECTPROPERTY(object_id('''+ @TableName + '''), ''TableHasForeignRef'') = 1
                              DELETE FROM ' + @TableName + '
                          ELSE
                              TRUNCATE TABLE ' + @TableName
    EXEC sp_MSForEachTable @CommandI have tried to find out, but no use. Please help me.
    Thanks,
    Ram.

    Ram wrote:
    I have tested a table which has foreign key. But the count returned from the query is 0.
    Have I implemented your query in the right way?Same like in SQL Server, Oracle does not allow truncating table if it has a PK or UK which is referenced by FK. There are no issues truncating table with FK. Again, it is table with PK/UK where you might not be able to truncate if that PK/UK is referenced by FK. And SQL Server property TableHasForeignRef = TRUE means there is a FK (on a different table or maybe even on same table if it is self-referencing FK) which is referencing PK/UK on a table in question. Query I suggested returns 1 if table has a PK or UK which is referenced by FK. Otherwise it returns 0. So if, in your case, table MY_TABLE owned by user DBO_XYZ has just FK, 0 is correct and you can truncate it. If it would return 1, you would not be able to truncate and would have to delete.
    SY.

Maybe you are looking for