DATAWEBBEAN

hi all.
i use jdeveloper 9.0.3.1. i create one project for BC4j.
and after creating bc4j project. then i create another project for JSP and add business component for client model. then i add one JSP. i select datawebbean from the component palate to add chart on the jsp page. but it ask for id and datasource. so i do the following step for chart.
1. i add application module in jsp page.
2. then add datasource tag in the page
3. then add chart tag with id and datasource name.
after adding all the above tags in the JSP. from where i can run the chart wizard to tell which type of chart i want what is the query which columns are display. is there any wizard available for this or not.
one wizard available but it is with jclient chart wizard.
thanks in advance
Shakeel

so no body help me out to how i can use chart in JSP using DATAWEBBEAN

Similar Messages

  • Disappearing Legend Labels in Chart DataWebBean

    Hi all,
    I've used a Chart DataWebBean in a JSP page and have a problem with labels that simply don't show in the Legend Area of the chart. Can anyone tell me how to fix this?
    Thank you in advance.

    Hi,
    Sorry for the late reply but I had some problems with my OTN login and then another project also occupied some of my time, thanks for your reply and I will appreciate it if you can help.
    (1) JDev version: 9.0.2
    (2) Code, theres quite a bit but i've choped out some of the html formatting stuff:
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252
    import javax.sql.RowSet;
    import javax.sql.DataSource;
    import java.awt.Rectangle;
    import java.awt.Rectangle;">
    <% response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0); %>
    <TITLE>International Benchmarking System - Graph</TITLE>
    <LINK href="incl/ibproject.css" rel="stylesheet" type="text/css">
    </HEAD>
    <BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <TABLE width="764" border="0" cellpadding="0" cellspacing="0" class="holderTable">
    <TR>
    <!-- <TD width="119" align="center" valign="top"> </TD> -->
    <TD width="636" align="center" valign="top">
    <jbo:ApplicationModule id="IBSbc4jModule" configname="za.org.saawu.ibs.bc4j.IBSbc4jModule.IBSbc4jModuleLocal" releasemode="Stateful"/>
    <jbo:DataSource id="srcOutput" appid="IBSbc4jModule" viewobject="OutputView"/><%
    Integer nKpi = new Integer(srcOutput.getRowSet().first().getAttribute("Kpi").toString());
    String strQuery = new String("KPI='" + nKpi + "'"); %>
    <jbo:DataSource id="srcKpiLookup" whereclause="<%=strQuery%>" appid="IBSbc4jModule" viewobject="KpiLookupView"/><%
    // String strCurrency = session.getAttribute("currency").toString();
    strQuery = "CURRENCY='" + session.getAttribute("currency").toString() + "'"; %>
    <jbo:DataSource id="srcExchange" whereclause="<%=strQuery%>" appid="IBSbc4jModule" viewobject="ExchangeView"/>
    <jbo:DataWebBean id="graphOutput" datasource="srcOutput" wbclass="oracle.jbo.html.databeans.ChartRenderer" />
    <%
    String strTitle = new String(srcKpiLookup.getRowSet().first().getAttribute("Formula").toString());
    // String strTitle = request.getParameter("info").toString();
    String strYTitle = new String(srcKpiLookup.getRowSet().first().getAttribute("Units").toString());
    java.awt.Rectangle recSize = new java.awt.Rectangle();
    // -- Pre-processing --
    if(srcKpiLookup.getRowSet().first().getAttribute("Currency")!=null) {
    if(srcKpiLookup.getRowSet().first().getAttribute("Currency").toString().compareToIgnoreCase("y")==0) {
    String strHolder = new String();
    if(nKpi.intValue()>=203 && nKpi.intValue()<=208) {
    strHolder=strYTitle.substring(strYTitle.indexOf(" ")>-1?strYTitle.indexOf(" "):0);
    strYTitle=srcExchange.getRowSet().first().getAttribute("Hundredths").toString()+strHolder;
    } else {
    strHolder=strYTitle.substring(strYTitle.indexOf("(")>-1?strYTitle.indexOf("("):0);
    strYTitle=srcExchange.getRowSet().first().getAttribute("Description")+" "+strHolder;
    } // if/else nKpi
    } // if currency
    } // if the currency field is not null
    // -- Graph types --
    graphOutput.setCommonScriptName("chart_common.jsp");
    graphOutput.getChart().setGraphType(graphOutput.VERTICAL_CLUSTERED_BARS);
    graphOutput.getChart().setDepthRadius(0);
    // -- Series and data --
    graphOutput.setSeriesLabelColumnName("Wb");
    graphOutput.setDisplayAttributes("Hist3,Hist2,Hist1,Actual,Budget,Target");
    // -- Legend area --
    recSize=graphOutput.getChart().getLegendRect();
    recSize.height+=2000;
    graphOutput.getChart().setLegendRect(recSize,true);
    // graphOutput.getChart().setLegendTextAutofit(true);
    graphOutput.getChart().setLegendMarkersPerRow(2);
    // graphOutput.getChart().setLegendOrient(2);
    graphOutput.getChart().setLegendMarkerPosition(0);
    graphOutput.getChart().setLegendDisplay(true);
    // -- Graph Title --
    graphOutput.getChart().setTitleAutofit(true);
    graphOutput.getChart().setTitleString(strTitle);
    graphOutput.getChart().setSubtitleDisplay(false);
    graphOutput.getChart().setFootnoteDisplay(false);
    // -- Graph Y1 Title --
    graphOutput.getChart().setY1TitleDisplay(true);
    graphOutput.getChart().setY1TitleString(strYTitle);
    // -- Graph Image --
    graphOutput.setImageWidth(700);
    // -- Graph Renderer --
              graphOutput.render();
         %>
    </TD>
              </TR>
         </TABLE>
    </TD>
         </TR>
         <TR>
         <TD height="34" align="center" valign="middle" background="images/footer_bg.gif"> </TD>
         </TR>
    </TABLE>
    </BODY>
    </HTML><jbo:ReleasePageResources />

  • Chart Thru DATAWEBBEAN

    hi all,
    can anybody help how to create chart in JSP using DATAWEBBEAN in Jdeveloper.
    thanks
    Shakeel

    yes that's annoying. try this if you are willing to try a workaround...
    1) put a crosstab on top of the legend that contains your formula as the row.
    2) while still in the crosstab expert, get rid of the gridlines, the cell padding
    3) exit the crosstab expert and change the row height to match the line height of the legend
    4) change the background of the crosstab so that you can't see the legend
    a bit more work, but it works.
    jw

  • JSP, BC4J: EditCurrentRecord DataWebBean

    Hi,
    I am using the EditCurrentRecord DataWebBean in a JSP program (using BC4J) to create a combo box. The combo box is populated by from a look up table in the
    database.
    The value selected by the user is to be used in the where clause of a second query whose results will then be displayed. The value that is selected will also be displayed in the
    same page.
    How can I carry out the above?
    I tried to store the value of the item selected in a variable using:
    <%= variable_name = request.getAttribute(attributeName)>
    However, I got a null value.
    Thanks.

    Since you are using JDev 3.1 technology, here is how you code a poplist combobox using the EditCurrentRecord Web Bean.
    <jsp:useBean id="RowEditor" class="oracle.jbo.html.databeans.EditCurrentRecord" scope="request">
    <%
    RowEditor.initialize(application, session , request, response, out, "package1_Package1Module.srchItemsView");
    RowEditor.useComboBox("CatId", "select id, name from categories", "NAME", "ID" );
    RowEditor.render();
    %>
    </jsp:useBean>
    This source code is from the JSP page: ItemsView_insert.jsp from the JDev 3.1 BC4J Auctions sample application.
    To get the value from a specific attribute
    you can use:
    <%= row.getAttribute("AttributeName") %>
    Or in scriptlet form:
    <% String AttributeValue = row.getAttribute("AttributeName"); %>
    (Taken from BidsView_Insert.jsp of the Auctions app. Also make sure you use quotes around the attribute name.. It is also case sensitive..)
    With the JDeveloper 3.2 making poplists/HTML selects is a piece of cake with
    the new Data Tags technology.
    Here is an example pulled from the new 3.2 Online Orders JSP sample app. (search.jsp)
    It uses the DataTags RowsetIterate and ShowValue to populate data into an HTML select.
    <select name="advcatsel">
    <option value="">All Categories</option>
    <jbo:RowsetIterate datasource="cat" >
    <option value="<jbo:ShowValue datasource="cat" dataitem="Id" />">
    <jbo:ShowValue datasource="cat" dataitem="Name" /></option>
    </jbo:RowsetIterate>
    </select>
    Hope this helps..
    -Chris

  • JSP, DataWebBean: How to dynamically set the where clause of query and display record

    Hi,
    I am reposting this question as per suggestions made by Mr. Dwight.
    I have used ViewCurrentRecord web bean to display records from EMP table. I have to use the Dept_Id_FK from the current
    record of the EMP table to display corresponding records of Dept table. I have a view object called DeptView in my Business
    Components which selects all the records from the Dept table.
    How do I get the value of Dept_Id_FK and use it to display the required records of the Dept table?
    I tried to declare a variable and get the value of Dept_Id_FK but it did not work. My code is as follows:
    <%! String m_DeptId = null; %>
    <jsp:useBean id="RowViewer" class="oracle.jbo.html.databeans.ViewCurrentRecord" scope="request">
    <%
    RowViewer.initialize(pageContext, "EMPApp_EMP_EMPAppModule.EMPView1");
    RowViewer.setReleaseApplicationResources(false);
    RowViewer.getRowSet().next();
    m_DeptId = (String)RowViewer.getRowSet().getCurrentRow().getAttribute("DeptIdFk");
    %>
    </jsp:useBean>
    Thanks.
    null

    First of all, Thank you very much for making use of the new topic format. It is very much appreciated.
    As for your question, I think there are several different ways to accomplish what I think you want to do.
    1. Create a view object that includes both Emp and Dept entities and join them there. In this case, your query would look something like this:
    Select e.empno,e.name,...,d.dname,d.loc from emp e, dept d
    where e.deptno = d.deptno
    You should be able to create a JSP off of this view object that contains both the employee and department information. In this case, BC4J takes care of the foreign key to primary key coordination.
    2. In order to set a dynamic where clause for a view, you need to do the following in your usebean tag:
    rsn.initialize(application,session, request,response,out,"DeptView");
    rsn.getRowSet().getViewObject().setWhereClause("deptno=" &#0124; &#0124; m_DeptId);
    rsn.getRowSet().getViewObject().executeQuery();
    rsn.getRowSet().first();
    You will need to do this in a separate usebean tag from the EmpView, since the usebean can only initialize one view object.
    In other words, you would have your ViewCurrentRecord bean tag for the EmpView, then a separate one for the DeptView where you use the above code to set the where clause to display just the information for the department you want.
    Another option, but one I'm not sure would work as well, is to create a master-detail JSP to do this for you. Usually a master-detail is a one-to-many (one department to many employees). Your request appears to be the reverse, but might still be doable using the same mechanism.
    You set up relationships between views in your BC4J project using View Links. If you used the BC4J project wizard and created default views, some of these links may have been created for you. They are created when BC4J detects a foreign key to primary key relationship in the database.
    You can create your own View Links using the View Link wizard. Select your BC4J project node and choose Create View Link... from the context menu. You will be asked to select a source view (Emp), and a target view (Dept), then select the attribute in each view that related the two of them (deptno).
    Next, you need to reflect this new relationship setting in your application module. Select your app module and choose Edit from the context menu. On the data model page, select the EmpView node in the Selected list. Now select the DeptView node in the available list and shuttle it over. You should see DeptView1 via yourlink appear indented under the EmpView node. Save and rebuild your BC4J project to reflect the changes.
    In your JSP project, you can now have the wizard create a master-detail form for you based on DeptView1.
    Let me know if the above answers your question, or if I have misunderstood what it is you wanted to do.
    null

  • Q: DataWebBean interface implementation in DataWebBeanImpl

    JDev Team,
    Most DataWebBeanImpl classes (ie, RowSetBrowser for example) do not implement the render(PrintWriter) method of the WebBean interface. Why is this so? It seems that the DataWebBeanImpl relies upon the WebBeanImpl's implementation which is basically an empty method, which is as it should be...
    Based on the WebBean interface, all DataWebBeanImpl's should both render() and render(PrintWriter), and output the same information independent of call. In fact, in the WebBeanImpl render(out) is called from the render() method!
    Please respond. Thanks,
    Joe

    I never had a J series in my hands and I'm not sure that serie support vlan stacking and rewriting.
    See on M series junos9.1 (pag 455):
    http://www.juniper.net/techpubs/software/junos/junos91/swconfig-network-interfaces/swconfig-network-interfaces.pdf
    Greetings
    Riccardo

  • Getting jbo-26080 from BC4J Tester

    I just created a master-detail relationship in Jdev 3.2 BC4J. I want to test the relationship in the Tester. I am able to insert one detail record for the master. When I am trying to insert the second detail record I am getting the following error message:
    oracle.jbo.DMLException
    JBO-26080: Error while selecting entity for ReferenceTargets (where 'ReferenceTargets' is my detail entity object).
    These are the errors I am getting through the tester.
    Now I created my JSP pages. If I create everything with Datawebbeans, its working fine. But I have a combination of Datawebbeans (view form) and Datatags (Edit, Insert forms). What I am noticing is when I want to insert one detail record, its inserting 2 records in the database (same kind of behaviour I noticed in the tester also). One record is what I entered and the other with null values.
    I am not understanding what's happening. If JDEV team can look into this issue as early as possible, I will really appreciate.
    My project is at the last stage and this is very critical to us.
    Thank you in advance
    Virinchi

    In my situation... maybe not your
    This error is raise by the foreign Key with an error (in your BC4J not in the BD)
    null

  • Question about using Functions in BC4J

    I know that it is possible to call a store procedure from a ViewObject using a DataWebbean can I do the same thing but calling a function.
    Please I need to know, as soon as possible because I am working on it.

    Following are two ideas but to tell you truth still I am looking for better way.
    1-convert your function to a procedure and execute it as a procedure.
    2-Execute a direct select statement against database function as follow.
    String sQuery = "SELECT func_name() FROM dual";
    DbAccess db = SessionInfo1.getDbAccess();
    Object dynamicQueryRowsetAccess = db.executeRetrieval(sQuery,"infobus:/oracle/SessionInfo1/DynamicQuery",null);
    if ( dynamicQueryRowsetAccess instanceof ScrollableRowsetAccess ){
    ScrollableRowsetAccess rs = (ScrollableRowsetAccess)dynamicQueryRowsetAccess;
    if (rs.getRowCount() > 0){
    //take the value returned by function here
    null

  • Save Changes in a TextArea

    I have a TextArea in my web application and I want a user to be able to enter in any text they want to in the TextArea and be able to save the changes so that when another user accesses the same application they will see the new text in the TextArea. Is this possible?

    This is a know bug that certain characters cause syntax errors in the generated JavScript. Try using the ViewCurrentRecord datawebbean instead of JSViewCurrentRecord.

  • Navigatorbar-navigation

    after i get my viewobject and use getwhereclause to set the parameters my records are rendered normally but i can't navigate through my records because the navigation-bar isn't working properly

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Juan Oropeza ([email protected]):
    You should make any view object changes prior to the Naviagtion bar in your jsp page. If you make changes after the navigation bar, it will not have the right context. I recommend you generate a new DataWebBean class using the WebBean wizard and place this DWB at the top of your JSP page. Use this new DWB to prepare the WHERE clause and execute the query. The Navigation bar will follow this new DWB and have the 'proper' runtime context.<HR></BLOCKQUOTE>
    Thanx for the question but how do i have to do this? My code is something like this:
    <jsp:useBean id="parms" scope="request" class="JSPKlara_html.SearchBean">
    </jsp:useBean>
    <jsp:useBean id="tb" class="oracle.jbo.html.databeans.JSNavigatorBar" scope="request">
    <%
    tb.initialize(pageContext, "JSPKlara_PckgBC4J_PckgBC4JModule.PartijenView");
    ViewObject vo = tb.getRowSet().getViewObject();
    vo.setWhereClause(parms.getWhereClause());
    vo.executeQuery();
    %>
    Do I have to write my own bean?
    Can you give me an example please? How is the navigatorbar going to work wit my object?

  • ApplicationModuleTag - How to use custom ApplicationPool

    Hi,
    The document written by Mr.Juan sometime back on "USER LEVEL SECURITY" focuses more on Data Web Beans. Now we are trying to create an application using datatags. We want to use database usernames for authentication. I added my custom pool (MyApplicationPool) to the bc4j.xcfg. How should I make my ApplicationModuleTag talk to the custom pool class. I am really stuck on this issue. If Mr.Juan can post an HOW TO on this topic, it will be really helpful. I really need help from Oracle Development Team on this topic. All your help is greatly appreciated.
    Thanks
    Virinchi

    We found a solution to the problem. Let me explain my project structure:
    1. Total 5 project folders created in Jdeveloper, under one workspace
    2. One project, we have our businesscomponents (ViewObjects, AppModule, etc)
    3. All other projects have JSPs
    4. For View Form and Master-Detail forms we are using datawebbeans.
    5. For Edit and Submit edit, we are using datatags.
    6. Create two classes called MyApplicationPool and CustomDWB as per the document written by Mr. Juan from JDEV team.
    7. Create one property file with the same name as your ApplicationModuleTag ID. For Example (IISmt_BC.IISmt_BCModule.properties). Have a reference to the custom application pool (MyApplicationPool) in this property file using "PoolClassName" as per the document written by Mr. Juan.
    8. As soon as the user logs in call the CustomDWB initialize method by passing any viewobject, in the background. This step will create the pool with the name (IISmt_BC.IISmt_BCModule). Modify all your JSP view forms to access the new property file (IISmt_BC.IISmt_BCModule). Now you should be able to access any JSP with this pool.
    9. One more important step is to customize the ApplicationModuleTag. I will paste the customized code at the end of this document. In your edit/insert JSPs, use "ApplicationModuleEx" instead of "ApplicationModule". You can put this customized class in any package, but you need to update the "DataTags.tld" to add a new tag called "ApplicationModuleEx".
    Customized code for ApplicationModuleTag
    ========================================
    package businesscomponent;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.TagSupport;
    import javax.servlet.jsp.JspException;
    import java.io.*;
    import oracle.jbo.html.jsp.ConnectionInfo;
    import oracle.jbo.common.ampool.PoolMgr;
    import oracle.jbo.common.ampool.ApplicationPool;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.common.*;
    import oracle.jbo.*;
    import java.util.*;
    public class ApplicationModuleTagEx extends TagSupport
    String sApplicationName;
    String sConfigName;
    String sUserName;
    String sPassword;
    String siiopUserName;
    String siiopPassword;
    public ApplicationModuleTagEx()
    public void setId(String sAppName)
    this.sApplicationName = sAppName;
    public void setConfigname(String sValue)
    this.sConfigName = sValue;
    public void setUsername(String sValue)
    this.sUserName = sValue;
    public void setPassword(String sValue)
    this.sPassword = sValue;
    public void setIiop_username(String sValue)
    this.siiopUserName = sValue;
    public void setIiop_password(String sValue)
    this.siiopPassword = sValue;
    * doEndTag
    * @return int
    * @exception javax.servlet.jsp.JspException
    public int doEndTag() throws JspException
    try
    PoolMgr poolManager = PoolMgr.getInstance();
    MyApplicationPool pool = null;
    if(!poolManager.isPoolCreated(sApplicationName))
    // we don't need any code here as pool is already existing in our case.
    // Get an application module resource.
    oracle.jbo.html.jsp.JSPApplicationRegistry appRegistry =
    oracle.jbo.html.jsp.JSPApplicationRegistry.getInstance();
    // this step will access the custom pool from the property file
    // sApplicationName in my case is IISmt_BC.IISmt_BCModule
    appRegistry.registerApplicationFromPropertyFile(sApplicationName);
    // get an instance of the pool, which is already existing
    pool = (MyApplicationPool)PoolMgr.getInstance().getPool(sApplicationName);
    // get an instance of the application module
    ApplicationModule am = appRegistry.getAppModuleInstance(sApplicationName, pageContext);
    // place default renderers into session, these will not be
    // exposed via config file
    pageContext.getSession().putValue("oracle_ord_im_OrdImageDomain_Renderer", "oracle.ord.html.OrdBuildURL");
    pageContext.getSession().putValue("oracle_ord_im_OrdAudioDomain_Renderer","oracle.ord.html.OrdBuildURL");
    pageContext.getSession().putValue("oracle_ord_im_OrdVideoDomain_Renderer","oracle.ord.html.OrdBuildURL");
    pageContext.getSession().putValue("oracle_ord_im_OrdVirDomain_Renderer", "oracle.ord.html.OrdBuildURL");
    pageContext.getSession().putValue("oracle_ord_im_OrdImageDomain_EditRenderer", "oracle.ord.html.FileUploadField");
    pageContext.getSession().putValue("oracle_ord_im_OrdAudioDomain_EditRenderer", "oracle.ord.html.FileUploadField");
    pageContext.getSession().putValue("oracle_ord_im_OrdVideoDomain_EditRenderer", "oracle.ord.html.FileUploadField");
    pageContext.getSession().putValue("oracle_ord_im_OrdVirDomain_EditRenderer", "oracle.ord.html.FileUploadField");
    catch(Exception ex)
    StringWriter writer = new StringWriter();
    PrintWriter prn = new PrintWriter(writer);
    ex.printStackTrace(prn);
    prn.flush();
    throw new JspException(writer.toString());
    return SKIP_BODY;
    10. Please note that, the above code is not thoroughly tested, but it works for us. I will let you know if there are any changes to it.
    Hope this helps.
    Virinchi

  • Search/Query Form bc4j-uix-jsp

    Hi:
    Are there any samples of Search/Query jsps using
    bc4j -uix jsps?
    There are some on OTN using html.
    I want to set up a search page that users can select one or more(AND) from about 5 attributes
    of a view and then display approx 6-8 different attributes of that same view.
    Any input would be appreciated.
    Thanks.

    Once you create the Query-by-Form datawebbean, you can modify the templates in the templates\webapp directory by changing all usages of the FindForm bean to use your new DWB. You can also create a new webapp template by copying the existing file and creating a new directory. You can add you new template by modifying the templates\apptemplates.xml. The current entries are:
    <?xml version="1.0"?>
    <APPTEMPLATES>
    <TEMPLATE NAME="default" DIRECTORY="templates/webapp/" USETHEMESELECTION="YES">
    </TEMPLATE>
    <TEMPLATE NAME="Oracle" USEFORMSELECTION="NO" DIRECTORY="templates/cabowebapp/" THEMEDIR="/webapp/jsimages" THEMECSS="/webapp/cabo/images/cabo_styles.css" USETHEMESELECTION="NO" TOOLBARCLASS="oracle.jbo.html.databeans.JSNavigatorBar">
    </TEMPLATE>
    </APPTEMPLATES>

  • Combobox for Find and RowsetIterate tag

    Hi,
    My first question is:
    When using a custom data web bean, I recognized that the rowset fetched by getRowset() is not the same rowset that the original
    datasource in the jsp page uses. Is this a normal behaviour? That creates a problem when for example I want to carry the navigation
    capability into a data webbean, from with the rowset.scrollRange(10); is called.. But the datasource still is in the previous range.
    The only work-around I could think is, passing the rowset from the page to the datawebbean, but then what is the use of a datawebbean?
    Or simply do I forget to do smt? like stateful, stateless, refreshing...
    Second one:
    I am trying to form up a Find bar for a list of items, that I will place on top of list. When the find button is pressed, the where clause
    of the data source will be setted. And I hope then the data source on that page will refresh the rowset and only the rows of that criteria will be
    available. The content of the find inputs are to be reserved between requests. I want to use a combobox for some columns.(Like the ones of InputSelect tags)
    And I want to:
    [list]
    [*]Fetch the content of those fields when the find button is pressed
    [*]Reserve their state between page requests.
    [list]
    Is there a code that will let me to use the InputSelect tag for find column? (It might create a problem as the same column name is used
    in the list) So I have chosen to use a simple "select html tag" and fill in with RowsetIterate tag..
    -- When a RowsetIterate tag is used as:
    <jbo:ApplicationModule configname="cqmappbuscomp.CqmappbuscompModule.CqmappbuscompModuleLocal" id="CqmappbuscompModule" username="ecqm" password="ecqmtest" />
    <jbo:DataSource id="uv" appid="CqmappbuscompModule" viewobject="UsersView" rangesize="-1" ></jbo:DataSource>
    <jbo:RefreshDataSource datasource="uv" />
    <%
    String subm = null;
    if(vParams.contains("find_submitter"))
    subm = request.getParameter("find_submitter");
    %>
    <select name="find_submitter">
    <option value="" > </option>
    <jbo:RowsetIterate datasource="uv" >
    <option value="<jbo:ShowValue datasource="uv" dataitem="Id" ></jbo:ShowValue>"
    <jbo:Row id="row2" datasource="uv" action="Current" ></jbo:Row>
    <% if((subm!=null &#0124; &#0124; !subm.equals(""))&& subm.equals((String)row2.getAttribute("Id")))
    out.print(" selected");
    %>
    <jbo:ShowValue datasource="uv" dataitem="Surname" ></jbo:ShowValue></option></jbo:RowsetIterate>
    </select>
    But I get a Application error:null. This also happens when I do uv.getRowSet().getCurrentRow().getAttribute("Id"). As if there is a
    problem in getAttribute("Id") call. I am sure that Id field exists. Can't you mix the tags with a code fragment that tries to get the fields using the rowset of that data source?
    I need the current ID value of the row of uv datasource to compare with the previous value, so that "select" will be added to make it seem
    that state is reserved.
    Thanx in advance..
    Ferhat

    Ok, one's best problem-solver is himself I think.. Nobody didn't have any idea?
    For the ones that are having similar problems: The problem was; "Id" is fetched as oracle.jbo.domain.Number, and when I cast it to String it crashes. But shouldn't it be more explicitly told instead of Application error:null ??
    Ferhat

  • Oracle Objects / Domain / Business Components JSP App

    Hi,
    I use JDev 3.1 with Oracle 8.1.6
    I would like to customize a Business Components JSP Application to be able to edit or add new row of a table containing one or more columns of type Object; like this :
    create or replace type O_VALUE as OBJECT
    TYPE_VALUE NUMBER,
    STRING_VALUE VARCHAR2(30),
    FLOAT_VALUE NUMBER(10,2),
    BOOL_VALUE NUMBER(1),
    INTEGER_VALUE NUMBER(10)
    create table T_VALUE (
    ID_VALUE VARCHAR2(20),
    MIN_VALUE O_VALUE,
    MAX_VALUE O_VALUE
    I have created a domain for the type O_VALUE to incorporate in the entity created for T_VALEU by the wizard.
    Is there a Wizard for editing an attribute of type Object of an entity ? If not how programmaticaly do that ?
    Thanks a lot...

    You can use the DataTags to display/edit objects types. In our next release we will update the DataWebBeans to support this.

  • Chart bean label skipping

    Has anyone been successful in controlling label skipping when using 'setSeriesAreRows(false)' with JDeveloper 9i? I have repeatedly tested using setO1LabelAutoSkip() to no avail. This method is supposed to accept either 0 (no skipping), 1 (skip every other value) or 2 (set specific interval) for controlling the ordinal access labels. The documentation shows 0 as the default; however, when I run my code, the default, or using the method with 0, skips every other label. Using 1 skips every other label, and I have been able to skip two labels using 2 with setSkipCount() and setSkipBegin().
    Below is code that works with Scott/Tiger. Help will be greatly appreciated.
    D. Williams
    <jbo:ApplicationModule id="Mypackage1Module"
    configname="mypackage1.Mypackage1Module.Mypackage1ModuleLocal"
    releasemode="Stateful" />
    <jbo:DataSource id="ds_emp" appid="Mypackage1Module" viewobject="EmpView" />
    <jbo:DataWebBean id="chart" datasource="ds_emp"
    wbclass="oracle.jbo.html.databeans.ChartRenderer" />
    <%
    chart.setCommonScriptName("chart_common.jsp");
    // graph basics
    chart.getChart().setGraphType(chart.VERTICAL_ABSOLUTE_LINE);
    chart.getChart().setDepthAngle(0);
    chart.getChart().setDepthRadius(0);
    chart.getChart().setSeriesAreRows(false);
    chart.getChart().setUseOffScreen(false);
    chart.getChart().setLegendDisplay(false);
    chart.getChart().setTitleString("");
    chart.getChart().setSubtitleString("");
    chart.getChart().setFootnoteString("");
    chart.setImageWidth(700);
    chart.setImageHeight(265);
    // Data sources
    chart.setSeriesLabelColumnName("Ename");
    chart.setDisplayAttributes("Sal");
    // Data labels
    chart.getChart().setDataTextDisplay(true);
    chart.getChart().setDataTextPosition(0);
    chart.getChart().setDataTextRadiusDefault(30);
    chart.getChart().setFontSizeVC(chart.getChart().getDataText(),1200);
    chart.getChart().setSeriesType(0,2);
    chart.getChart().setLineWidth(chart.getChart().getSeries(1),1);
    chart.getChart().setSeriesFillColor(0,new java.awt.Color(255,0,0));
    // Ordinal-axis
    chart.getChart().setScaleMinAuto(chart.getChart().getO1Axis(), true);
    chart.getChart().setO1LabelAutoSkip(0);
    chart.getChart().setGridStep(chart.getChart().getO1MajorGrid(),1);
    chart.getChart().setO1AxisLineDisplay(true);
    chart.getChart().setExcludeMaxLabel(chart.getChart().getO1Label(), false);
    chart.getChart().setExcludeMinLabel(chart.getChart().getO1Label(), false);
    chart.getChart().setO1AxisSide(0);
    chart.getChart().setO1MajorGridDisplay(true);
    chart.getChart().setO1MajorGridStyle(0);
    chart.getChart().setO1MinorGridDisplay(false);
    chart.getChart().setFontSizeVC(chart.getChart().getO1Label(),1400);
    // Y-axis
    chart.getChart().setY1TitleString("Salary");
    chart.getChart().setDisplay(chart.getChart().getY1Title(), true);
    chart.getChart().setFontSizeVC(chart.getChart().getY1Title(),1400);
    chart.getChart().setScaleMustIncludeZero(chart.getChart().getY1Axis(),false);
    chart.getChart().setScaleMaxAuto(chart.getChart().getY1Axis(),true);
    chart.getChart().setScaleMinAuto(chart.getChart().getY1Axis(),true);
    chart.getChart().setGridStep(chart.getChart().getY1MajorGrid(),1);
    chart.getChart().setY1MinorGridDisplay(false);
    chart.getChart().setFontSizeVC(chart.getChart().getY1Label(),1400);
    chart.render();
    %>

    Has anyone been successful in controlling label skipping when using 'setSeriesAreRows(false)' with JDeveloper 9i? I have repeatedly tested using setO1LabelAutoSkip() to no avail. This method is supposed to accept either 0 (no skipping), 1 (skip every other value) or 2 (set specific interval) for controlling the ordinal access labels. The documentation shows 0 as the default; however, when I run my code, the default, or using the method with 0, skips every other label. Using 1 skips every other label, and I have been able to skip two labels using 2 with setSkipCount() and setSkipBegin().
    Below is code that works with Scott/Tiger. Help will be greatly appreciated.
    D. Williams
    <jbo:ApplicationModule id="Mypackage1Module"
    configname="mypackage1.Mypackage1Module.Mypackage1ModuleLocal"
    releasemode="Stateful" />
    <jbo:DataSource id="ds_emp" appid="Mypackage1Module" viewobject="EmpView" />
    <jbo:DataWebBean id="chart" datasource="ds_emp"
    wbclass="oracle.jbo.html.databeans.ChartRenderer" />
    <%
    chart.setCommonScriptName("chart_common.jsp");
    // graph basics
    chart.getChart().setGraphType(chart.VERTICAL_ABSOLUTE_LINE);
    chart.getChart().setDepthAngle(0);
    chart.getChart().setDepthRadius(0);
    chart.getChart().setSeriesAreRows(false);
    chart.getChart().setUseOffScreen(false);
    chart.getChart().setLegendDisplay(false);
    chart.getChart().setTitleString("");
    chart.getChart().setSubtitleString("");
    chart.getChart().setFootnoteString("");
    chart.setImageWidth(700);
    chart.setImageHeight(265);
    // Data sources
    chart.setSeriesLabelColumnName("Ename");
    chart.setDisplayAttributes("Sal");
    // Data labels
    chart.getChart().setDataTextDisplay(true);
    chart.getChart().setDataTextPosition(0);
    chart.getChart().setDataTextRadiusDefault(30);
    chart.getChart().setFontSizeVC(chart.getChart().getDataText(),1200);
    chart.getChart().setSeriesType(0,2);
    chart.getChart().setLineWidth(chart.getChart().getSeries(1),1);
    chart.getChart().setSeriesFillColor(0,new java.awt.Color(255,0,0));
    // Ordinal-axis
    chart.getChart().setScaleMinAuto(chart.getChart().getO1Axis(), true);
    chart.getChart().setO1LabelAutoSkip(0);
    chart.getChart().setGridStep(chart.getChart().getO1MajorGrid(),1);
    chart.getChart().setO1AxisLineDisplay(true);
    chart.getChart().setExcludeMaxLabel(chart.getChart().getO1Label(), false);
    chart.getChart().setExcludeMinLabel(chart.getChart().getO1Label(), false);
    chart.getChart().setO1AxisSide(0);
    chart.getChart().setO1MajorGridDisplay(true);
    chart.getChart().setO1MajorGridStyle(0);
    chart.getChart().setO1MinorGridDisplay(false);
    chart.getChart().setFontSizeVC(chart.getChart().getO1Label(),1400);
    // Y-axis
    chart.getChart().setY1TitleString("Salary");
    chart.getChart().setDisplay(chart.getChart().getY1Title(), true);
    chart.getChart().setFontSizeVC(chart.getChart().getY1Title(),1400);
    chart.getChart().setScaleMustIncludeZero(chart.getChart().getY1Axis(),false);
    chart.getChart().setScaleMaxAuto(chart.getChart().getY1Axis(),true);
    chart.getChart().setScaleMinAuto(chart.getChart().getY1Axis(),true);
    chart.getChart().setGridStep(chart.getChart().getY1MajorGrid(),1);
    chart.getChart().setY1MinorGridDisplay(false);
    chart.getChart().setFontSizeVC(chart.getChart().getY1Label(),1400);
    chart.render();
    %>

Maybe you are looking for

  • How to interchange sign for the field

    Hello Experts, My interface is ABAP proxy to JDBC , ECC is sending the data PI has peocessed succesfully but it in receiver channel throwing Invalid identifier i find that Paylaod has one field like <STOCK_QTY>58.931-</STOCK_QTY>  in this quantity ha

  • No logical sytem found in the drop down under SAP authentication in CMC

    Hi Swapna, This is quite simple. Click on New and enter the following information: System e.g TS6 Client e.g. 800 Application Server e.g. yourservername System number e.g. 00 Username e.g. Crystal Password e.g Password and Language e.g. EN Press Upda

  • InDesign Trial Extension

    Hi - does anyone know if it is possible to get an extension on the 30 day free trial? I am in the process of purchasing a license but due to company purchase processes this will not be complete before my trial runs out (tomorrow). (I know I have the

  • Date validation 'validateDateTimeRange ' giving problem

    Hello Guys, We are using ADF 11g(11.1.1.2). Here we are trying to validate the date using validateDateTimeRange to validate the date. <af:inputDate id="dateLaborIt" required="true" binding="#{ClaimsBean.dateLaborPerformedI}"> *<af:validateDateTimeRan

  • Rendering blue files from PP and queueing to AME locking up

    Have upgraded my mac with the latet OS and CS5.5. I haven't got to the bottom of things yet but my adobe media encoder locks up when queued renders start. SO... what's the use of AME if I can't use the encoder for queueing etc. I have also been getti