Using bc4j jbo tags

Hot to get the id of a topic added in previous jsp page using bc4j jbo tags

Do you want to use the value in a Java variable? If so then here's what you do:
1) Inside your rowset iterate tag, use the <jbo:Row> tag and set action="active". It will look like this:
<jbo:Row id="rowActive" datasource="ds" action="active" ></jbo:Row>
2) In script, you can access the attribute you want by calling rowActive.getAttribute(); ... One thing to note is that this returns an Object. You will need to type cast it before assignment. For example, say you are retrieving column Test of type Number...
<%
oracle.jbo.domain.Number tempNumber;
tempNumber = (oracle.jbo.domain.Number)rowActive.getAttribute("Test");
%>
Hope that helped!

Similar Messages

  • Urgent Pls - Using BC4J Intermedia tags

    Hi,
    I am using BC4J Intermedia tag EmbedImage to display images stored in Databases. When I try to display I get only a blank picture equivalent to the size of the image and not the image itself. The type of the image is JPG. The Image datatype in the database is ORDSYS.ORDIMAGE.
    Is it to do something with the project settings? I am using Oracle 9.0.3 version of JDeveloper.
    Any help is appreciated.
    Thanks
    Priya

    Right, that's because the oracle.ord.html.URLBuilder class builds the URL for the images by using the current JSP directory level.
    For example: if your JSP page that uses <jbo:EmbedImage> is located under http://hostname.com/contextRoot/mydir/. Then the generated URL for the image will be http://hostname.com/contextRoot/mydir/ordDeliverMedia?....
    But in web.xml, the <url-pattern> element defines the url pattern value, which by default is "/ordDeliverMedia". So the media delivery servlet only handles the requests like these: http://hostname.com/contextRoot/ordDeliverMedia?...
    So, in order to make your sample work, you need to modify the web.xml in your project. There are two alternatives:
    1. Change the <url-pattern> element to this:
    <url-pattern>/kerfisumsjon/ordDeliverMedia</url-pattern>
    This will correctly handle the JSPs located under kerfisumsjon.
    Or
    2. Change the <url-pattern> element to this:
    <url-pattern>*ordDeliverMedia</url-pattern>
    This will handle any requests for ordDeliverMedia regardless of their directory location.
    Hope this solves your problem.
    Richard

  • Creating rows Using BC4J Data Tags

    Hi!
    I want to create rows using BC4J data tags.
    I have 2 jsp pages: one containig forms and one to insert data.
    Is it possible to insert new rows into 2 or more tables?
    How can I differ the attributes to one table and to another?
    How can I do this?
    Thanks!

    The path is:
    Select "File/New" in the menu.
    Select "BC4J JSP" in the gallery.
    Select "Browse & Edit Form" wizard.
    This is in JDeveloper 9.0.2.
    Charles.

  • HOW TO: Create a JSP Edit Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create row edit/submit JSP pages. Here is the link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Edit_Form.html

    Are you using Java 1.4.* ?
    Use JFormattedTextField.
    import javax.swing.*;
    import java.text.*;
    import java.awt.*;
    import java.util.*;
    public class DateExample
        public static void main( String [] args )
          // Here's what you're interested in...
          DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy" );
          JFormattedTextField field = new JFormattedTextField( dateFormat );
          field.setColumns( 11 );
          field.setText( dateFormat.format(new Date()) );
          JPanel panel = new JPanel();
          panel.add( field );
          panel.add( new JButton( "Hey" ) );
          JFrame f = new JFrame();
          f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
          f.getContentPane().add( panel );
          f.pack();
          f.setVisible( true );
    }It also works with other types of Format objects (ex. Currency, Decimal, etc.)

  • HOW TO: Create a JSP Insert Record Form Using BC4J Data Tags

    This is a JDeveloper Tech Note found on the OTN Documentation page. This note describes the use of the BC4J data tags to create insert/submit JSP pages. Here is a link:
    http://technet.oracle.com/docs/products/jdev/technotes/datatag_input/Insert_Form.html

    You can loop throgh query records whit an implicit cursor (which automatically manages the open cursor, fetch and next record):
      for rec in (select intime,outtime,barcode,attend_date from dail_att; )
      loop
           t_in :=rec.intime;
           t_out :=rec.outtime;
           t_code :=rec.barcode;
           t_date := attend_date;
             PUT YOUR CODE HERE ... (if ..then... elsif... logic)
             you can avoid setting variables 'cause you can directly use the implicit cursor variables: rec.intime etc.
      end loop;
    END;Anyway, I suggest you to check the where condition of your block ... because if not all data are retrieved there should be a problem in your query ... so even the cursor (if based on very same query) will return less data than expected.
    Luca

  • Q? on best practices/techniques using BC4J/Struts

    I have a jsp page that shows a bunch of detail records. Next to each detail record is an EDIT link.
    When the user clicks on the edit link I would like to populate a form on the same jsp page with existing values from that detail record so that the user can update the values.
    I am using struts/bc4j.
    What would be the best way to accomplish this?
    I was thinking if somehow I could get all the values of the clicked row in my controller and assign them to a form, then struts would take care of populating them again on the JSP.
    otherwise i guess the other way is to use bc4j data tags.
    Thanks in advance...

    Thanks for the pointer but it seems to be asking the same questions I am.  The only PDF that I could get was the one from quest.  Yours from LuLu I kept getting DB errors on the LuLu site. 
    Also, 3rd party options are currently out of the question.   I have done reorgs on R3 systems but since they don't have partitions and sub partitions and such there didn't seem to be as much to worry about. 
    I don't even want to mess with any BW R3 internal tables and that is why I would like to go from ODSD->Temp->ODSD.  I can get the downtime to do it too.
    Thanks for your help though the issue still sin't solved. And I'd like to see your book sometime.
    Vince

  • XHTML Generated by JBO tags does not validate

    I was wondering if anyone has run into this issue, and if so, what they have done about it....
    Our organisation standards state that our web pages must validate to the XHTML V1.0 STRICT standards.
    But if I use the JBO tags, such as InputRender, etc, the fact that many of the fields are created in upper case means that the validation fails.
    As an example, my JBO tag is
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"><jbo:InputRender datasource="dsource" formname="<%=formName%>" /></td>
    and the output HTML is
    <td title=""><TEXTAREA ROWS="5" MAXLENGTH="256" NAME="Description" CLASS="clsDescription" COLS="70"></TEXTAREA>
    <INPUT VALUE TYPE="HIDDEN" NAME="_Description">
    </td>
    Note that the parameter names are all uppercase (and not found by the validator), and that the <INPUT> tag is not terminated (it requires a / before the closing >).
    Is there a workaround for this? Where does JBO get the text it uses for the replacment tags?
    thanks for any assistance with this....
    Brigette

    Could you show us an example of the cflayout code?

  • Master-detail jsp for bc4j using JBO tags

    I have created a master-detail jsp for bc4j using JBO tags. However, I can not get the correct result. There are some examples on OTN, but they are about jsp programs. How to define the relationship of the master view-object and the detail view-object?
    Thanks for your help.

    I know you're having a problem upgrading, but...
    Could you upgrade to 9.0.3 and tell us what problems you're encountering?
    Thanks.
    Sung

  • Using jbo tags in 10.1.3 release 3

    I migrated some projects created in 10.1.2 to 10.1.3 as we have started using jsf but will also need to use some of our older code which uses jbo tags.
    When I try to run a jsp page using the <jbo:ApplicationModule .../> tag I get the following error:
    java.lang.NullPointerException at oracle.jbo.http.HttpSessionCookieImpl.(HttpSessionCookieImpl.java:128) at oracle.jbo.http.HttpSessionCookieFactory.createSessionCookie(HttpSessionCookieFactory.java:130) at oracle.jbo.common.ampool.ApplicationPoolImpl.createSessionCookie(ApplicationPoolImpl.java:451) at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:703) at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:152) at wmshome.WMSHome_2e_jsp._jspService(_WMSHome_2e_jsp.java:171) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:60) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:410) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:473) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:404) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:846) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:397) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:245) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:231) at oracle.oc4j.network.ServerSocketAcceptHandler.access$1000(ServerSocketAcceptHandler.java:33) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:820) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
    I tried just creating the application module using the Configuration class which then was able to create the app module but the datasources couldn't reference it and this would be too large of a change to make on all of our existing code.

    You're encountering bug# 5880457
    The workaround is that you need to create the additional JSP page by hand.

  • 9i;JSP; BC4J Data Tags...

    Hi,
    What's different between these two tags in BC4J Data Tags pallet:
    <jbo:InputText> & <jbo:InputRender>

    Hello,
    Here is the difference (from the online documentation)
    <jbo: InputText> Inserts a text-input field form element into
    your page.
    JSP Syntax <jbo:InputText
    datasource="datasourceId" dataitem="attributename"
    [ cols=numberCharactersWide ]/>
    Examples
    Order Id:<jbo:InputText datasource="Orders" dataitem="Id" />
    Description The input render converts all values to a String for
    storage in the database.
    <jbo: InputRender>
    Inserts a input form element that allows user to edit data of
    all types, including complex object types.
    JSP Syntax
    <jbo:InputRender
    datasource="datasourceId"
    dataitem="attributename"/>
    Examples
    <form enctype="multipart/form-data"
    NAME="iForm" METHOD="POST"
    ACTION="Submit_AddImage.jsp" >
    Image Id:<jbo:InputRender datasource="ds1" dataitem="Id" />
    Image File:<jbo:InputRender datasource="ds1"
    dataitem="Image" /><input type="submit" /> </form>
    Description
    Input form uses a field render specific to the object type.
    Hope this helps. You can search on the online documentation for
    description about this and other components.
    Thanks,
    -Kishore
    JDev Team

  • Struts tag not working with Jbo Tag-BUG??

    Hi
    I am developing application using Struts with BC4J and encountered this problem.
    In a JSP page if I have &lt;jbo:DataScroller&gt; tag and &lt;html:cancel /&gt; button, the button is not working.
    If I remove the datascroller tag cancel button works fine (the way it should).
    Not sure why this is happening, can Jdev team look into this.
    Thanks

    Sashi N Ravipati wrote : "Not using a DataScroller tag within a form tag is impossible. If u have an example of it let me know."
    File > New > Web Tier > Struts-Based JSP for Business Components > Complete Struts-Based JSP Application
    One of the files it generated for me was EmpView1_Browse.jsp:
    <%@ page language="java" import="oracle.jbo.*" errorPage="errorpage.jsp" contentType="text/html;charset=windows-1252" %>
    <%@ taglib uri="/webapp/DataTags.tld"  prefix="jbo" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <TITLE><bean:message key="browse.title"/></TITLE>
    </head>
    <body>
    <jbo:DataTransaction appid="JdevModuleDataModel" />
    <h3><bean:message key="browse.header" arg0="EmpView1"/></h3>
    <table border="0">
      <tr>
        <td ALIGN="right"><jbo:DataScroller datasource="JdevModuleDataModel.EmpView1"/></td>
      </tr>
      <tr>
        <td><jbo:DataTable datasource="JdevModuleDataModel.EmpView1" edittarget="/edit_EmpView1.do"/></td>
      </tr>
    </table>
    </body>
    </html>A jbo:DataScroller tag is used and it is not within a form tag.
    success
    -Jan

  • 9i;JSP; BC4J Data Tags; NavigationBar?

    I added following jbo tag but commit & rollback icons are
    disabled. How could i enable them?
    <jbo:DataWebBean id="masterNavBar" datasource="dsWo"
    wbclass="oracle.jbo.html.databeans.NavigatorBar"
    </jbo:DataWebBean>Basically i need a Navigation Bar data tag to enable my Form to
    Commit, rollback, insert, delete, previous record, and next
    record.

    Ali,
    Are you using 3.2.x or JDeveloper9i?
    Gary
    JDev Team

  • Use BC4J inside servlets

    Hi,
    This may be a dumb question but I'm new to JDeveloper. I created my Business Components and can use it inseide applets and JSP's - but ich couldnt find a way to use it (via wizzard) inside a servlet. Could anybody give me a tip
    TIA
    Oliver
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Roberts ([email protected]):
    I would like to use the functionality of bc4j data tags inside servlets.
    My aim is to do code intensive operations inside a servlet and forward the results, if necessary, to a JSP page.
    The most convenient way of accessing data in BC4J are the JSP data tags. I was wondering if there is a way of instantiating them as normal Java Classes in a servlet, and using class methods to perform the database update operations that I want?<HR></BLOCKQUOTE>
    null

  • Building Offline Mobile Web Applications Using BC4J: A Tutorial

    i try "building Offline Mobile Web Applications Using BC4J: A Tutorial":according with
    http://download-uk.oracle.com/docs/cd/B14156_01/doc/B13788/html/nvbc4jtu.htm
    I've problem on step:13.3 Packaging the JSP Application,in the next step on :6
    Under the Snapshots section, click "Import...". You can now connect to the Oracle Database by providing the following values in the "Connect to Database" dialog.
    Table 13-8 lists values that you must specify in the Connect to Database dialog.
    i enter jdbc:oracle:thin:@192.168.100.10:1521:mag,
    where mag is sid.And Ok,writing Error:similar...
    make sure jdbc driver...in the classpath.
    Thanks.

    You could turn on debugging for your EJB's. Add the following tag to your OC4J start options:
    -Dejb.debug=true.
    Please also check the following logs:
    - $OH\application-deployments\<appName>\OC4J_Namedefault_island_1\application.log
    - the opmn logs for your OC4J instance
    Furthermore you can add some Sys.out statements to your code to see where the problem lies.
    Hope this helps.
    Deepak

  • What is the benefit of using BC4J?

    Folks,
    After working with BC4J for three months, I still can not convince my manager to use BC4J. His major arguments are:
    1. Which applications or web sites are implemented using BC4J? Are they real application or just a demo. For the time being, I even can not show him a demo, not to say any real web applications.
    2. His developers told him that the O-R mapping provided by BC4J, which is probabably one of the key benefit of BC4J can be easily coded manually with a couple of days work for the current task and we have the full control over our own code while BC4J is not an open source and the lack of the support from Oracle really worries him.
    Can someone in Jdev team give me a clear evidence to convince him?
    Thanks,
    Yibing

    [list]
    [*]With regard to struts integration with BC4J, I have done some investigations of the new release and know that BC4JActionForm is only good for simple view and does not work for a joint table view as I have reported a few days ago in this group and no response is received yet.
    This should not be the case. Should work for any view object. View objects can contain join queries with any number of updateable tables in them. Please email me the URL to the forum posting so I can track down the issue.
    [*]I have been recently told indirectly from Oracle that the consulting group at oracle are not using BC4J and instead they think that BC4J only applies to simple applications with limited number of tables and relationships.
    This is plain incorrect. We have very large applications using BC4J both internal in Oracle Applications, for Oracle iLearning, and many external customers. Many of these projects have involved (and are currently involving) Oracle Consulting. Not sure where got this information, but it is incorrect.
    [*]Other commecial O-R mapping products such as top-link should be used for large applications
    The key difference between Oracle9i TopLink and Oracle9i BC4J has nothing to do with the size of your project. The fundamental difference is that toplink is for customers who have already written a custom application framework and who require just a persistence architecture, because they've already hand-written code to implement all of the other J2EE design patterns that are required to build real J2EE applications.
    Conversely, BC4J is for customers who want a complete J2EE Application Framework (and tightly integrated, award-winning toolset to go with it) to avoid having to write, test, debug, and maintain their own application framework.
    There is simply no evidence to backup your statement that BC4J only works for small applications. I am aware of at least 20 (and by now after a summer full of training additional Oracle Apps development teams in BC4J, perhaps over 30) that are using BC4J for full-scale, self-service J2EE web applications. Our BC4J reference info pages (link in this thread above) have references to customers who are using BC4J for large applications as well.
    [list]
    Hope this helps.

Maybe you are looking for

  • How can i use the weblogic jdbc driver for sqlserver?

    hello i have downloaded and installed the weblogic on my windows2000 server,then i want to use the weblogic jdbc driver for sqlserver2000 outside of the weblogic,as follow: 1 add following string to my classpath environment of the wndows2000: E:\bea\

  • First time using a BAPI SUSR_USER_ADDRESS_READ

    Hi, i am using the first time a BAPI. I need in SAPScript in RVDELNOTE the first name, last name an phone extension from the VBDKL-ERNAM. I started with the following code but i don't know how to use the changing parameters for my variables. Could so

  • BPM SA bridge timeout

    We have sync RFC calls to an external SAP system and  is done via BPM SA bridge. Some very critical business information is exchanged which takes over 30 mts at times. I was able to set the BPM SA communication timeout to 1000 seconds from 60 seconds

  • Slowing Down Scrolling Thumbnails

    Hello everyone, I've put together one of those great masked scrolling thumbnail panels by working through a tutorial. I'd like to slow it down a bit, could someone suggest how this is done. Here's the code: panel.onRollOver = panelOver; function pane

  • UseBean error?

    i tried to do a simple database connectivity program in jsp. SqlBean.java program defines the connections import java.sql.*; import java.io.*; public abstract class SqlBean private String driverName = "com.mysql.jdbc.Driver"; String serverName = "192