Jspx page visible property

jdev 11.1.1.3
I need to show a command button in a row only if the value entered in "Price" input textbox is a positive value in that row of the table.
In the properties of the button, I added this
visible=#{row.bindings.Price.inputValue > 0}
I tested entering a -1 on the input textbox.
It gives me an error saying
Cannot convert -1 of type class oracle.jbo.domain.Number to class java.lang.Long
Help please!
Thanks

hi user,
It gives me an error sayingCannot convert -1 of type class oracle.jbo.domain.Number to class java.lang.Long
reason behind this error is:
your Price data type is will be Number.
but your comparing or doing like this visible=#{row.bindings.Price.inputValue *> 0*}
so two different type of data cant make compare itself.
so we have to cast.
as i consider your appraoch and i tried
Tes2.jspx
<af:table value="#{bindings.ApplBusFunView1.collectionModel}"
                      var="row" rows="#{bindings.ApplBusFunView1.rangeSize}"
                      emptyText="#{bindings.ApplBusFunView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                      fetchSize="#{bindings.ApplBusFunView1.rangeSize}"
                      rowBandingInterval="0"
                      filterModel="#{bindings.ApplBusFunView1Query.queryDescriptor}"
                      queryListener="#{bindings.ApplBusFunView1Query.processQuery}"
                      filterVisible="true" varStatus="vs"
                      selectedRowKeys="#{bindings.ApplBusFunView1.collectionModel.selectedRow}"
                      selectionListener="#{bindings.ApplBusFunView1.collectionModel.makeCurrent}"
                      rowSelection="single"
                      binding="#{backingBeanScope.backing_tes2.t1}" id="t1"
                      partialTriggers="cb1">
              <af:column sortProperty="ApbufSeqNo" filterable="true"
                         sortable="true"
                         headerText="#{bindings.ApplBusFunView1.hints.ApbufSeqNo.label}"
                         id="c2">
                <af:inputText value="#{row.bindings.ApbufSeqNo.inputValue}"
                              label="#{bindings.ApplBusFunView1.hints.ApbufSeqNo.label}"
                              required="#{bindings.ApplBusFunView1.hints.ApbufSeqNo.mandatory}"
                              columns="#{bindings.ApplBusFunView1.hints.ApbufSeqNo.displayWidth}"
                              maximumLength="#{bindings.ApplBusFunView1.hints.ApbufSeqNo.precision}"
                              shortDesc="#{bindings.ApplBusFunView1.hints.ApbufSeqNo.tooltip}"
                              id="it5" autoSubmit="true"
                              valueChangeListener="#{backingBeanScope.backing_tes2.it5_valueChangeListener}">
                  <f:validator binding="#{row.bindings.ApbufSeqNo.validator}"/>
                  <af:convertNumber groupingUsed="false"
                                    pattern="#{bindings.ApplBusFunView1.hints.ApbufSeqNo.format}"/>
                </af:inputText>
              </af:column>
<af:column sortProperty="RowID" filterable="true" sortable="true"
                         headerText="#{bindings.ApplBusFunView1.hints.RowID.label}"
                         id="c15">
                <af:inputText value="#{row.bindings.RowID.inputValue}"
                              label="#{bindings.ApplBusFunView1.hints.RowID.label}"
                              required="#{bindings.ApplBusFunView1.hints.RowID.mandatory}"
                              columns="#{bindings.ApplBusFunView1.hints.RowID.displayWidth}"
                              maximumLength="#{bindings.ApplBusFunView1.hints.RowID.precision}"
                              shortDesc="#{bindings.ApplBusFunView1.hints.RowID.tooltip}"
                              id="it4">
                  <f:validator binding="#{row.bindings.RowID.validator}"/>
                </af:inputText>
              </af:column>
              <af:column>
              <af:commandButton
                                  text="CreateInsert"
                                  disabled="#{!bindings.CreateInsert.enabled}"
                                  id="cb1"
                                  action="#{backingBeanScope.backing_tes2.cb1_action}"/>
              </af:column>
              <af:column>
                <af:commandButton text="commandButton 1" id="cb2" partialTriggers="it5"
                binding="#{backingBeanScope.backing_tes2.cb2}"
                                  action="#{backingBeanScope.backing_tes2.cb2_action}"/>
              </af:column>
            </af:table>Tes2.java
package view.backing;
import javax.faces.event.ValueChangeEvent;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.rich.component.rich.RichDocument;
import oracle.adf.view.rich.component.rich.RichForm;
import oracle.adf.view.rich.component.rich.data.RichTable;
import oracle.adf.view.rich.component.rich.input.RichInputDate;
import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
import oracle.adf.view.rich.component.rich.output.RichMessages;
import oracle.adf.view.rich.context.AdfFacesContext;
import oracle.binding.BindingContainer;
import oracle.binding.OperationBinding;
public class Tes2 {
    private RichForm f1;
    private RichDocument d1;
    private RichMessages m1;
    private RichTable t1;
    private RichInputDate id1;
    private RichInputDate id2;
    private RichCommandButton cb2;
    public void setF1(RichForm f1) {
        this.f1 = f1;
    public RichForm getF1() {
        return f1;
    public void setD1(RichDocument d1) {
        this.d1 = d1;
    public RichDocument getD1() {
        return d1;
    public void setM1(RichMessages m1) {
        this.m1 = m1;
    public RichMessages getM1() {
        return m1;
    public void setT1(RichTable t1) {
        this.t1 = t1;
    public RichTable getT1() {
        return t1;
    public void setId1(RichInputDate id1) {
        this.id1 = id1;
    public RichInputDate getId1() {
        return id1;
    public void setId2(RichInputDate id2) {
        this.id2 = id2;
    public RichInputDate getId2() {
        return id2;
    public void it5_valueChangeListener(ValueChangeEvent valueChangeEvent) {
        // Add event code here...
        BindingContainer bindings = getBindings();
        DCIteratorBinding dciter = (DCIteratorBinding)bindings.get("ApplBusFunView1Iterator"); //get your iterator
        Integer value = Integer.valueOf(dciter.getCurrentRow().getAttribute("ApbufSeqNo").toString());    // get the price field here
        if(value < 0)
            cb2.setVisible(true);
        AdfFacesContext.getCurrentInstance().addPartialTarget(cb2);
        else{
            cb2.setVisible(false);
            AdfFacesContext.getCurrentInstance().addPartialTarget(cb2);
    public BindingContainer getBindings() {
        return BindingContext.getCurrent().getCurrentBindingsEntry();
    public String cb1_action() {
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding = bindings.getOperationBinding("CreateInsert");
        Object result = operationBinding.execute();
        if (!operationBinding.getErrors().isEmpty()) {
            return null;
        return null;
    public String cb2_action() {
        // Add event code here...
        return null;
    public void setCb2(RichCommandButton cb2) {
        this.cb2 = cb2;
    public RichCommandButton getCb2() {
        return cb2;
}use this .it's working fine

Similar Messages

  • Tab Page visible property node not working correctly

    I am making a vi in which we have a tab control with 6 pages and to move from one page to another there is ring control with option for every page on page 1( page 1 is the default page), at a time only one page is visible so we can move only through that ring control present on page 1 and to come back to page 1 from all other pages there is button "go back" on all other 5 pages, everything is working fine for 5 pages but when after going on page 6 and then if i press go back button instead of going back to page 1 program hangs and one more thing that i noticed is after stopping the program the page 6 becomes the default page( which otherwise is page1) i dont know why this is happening.
    I am attaching the snippet of the code which executes when i press go back button.
    one more thing that i am not getting here is when i checked the program through step execution, the last property node( page6 ) that is executing first after that it goes to first property node and then it goes in sequence, this also i want to how is this happening.
    Solved!
    Go to Solution.
    Attachments:
    tab page property node.png ‏43 KB

    I think you would be better off just to use your array and turn on/off the necessary tabs instead of explicity setting each property every iteration.
    Attached is one example.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    set visible tabs.png ‏56 KB

  • Change visible property of iView assigned to page

    Hi,
    When we add an iView to a page, we have some properties like visible, fixed,etc. mentioned along with each iView. Now, I want to change the visible property dynamically using pdk development. How can we achieve this?
    Regards,
    Khushboo

    Hello Mittal,
    As per my understanding you want a way to dynamically edit the property of the PCD objetcs using PDK. SAP provides an API for the same puspose. Please refer to this link for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
    Regards,
    Raju Bonagiri

  • How to set visible property to href link

    Hi All,
    I want to open the new jsp page in the new tab when will we click on the link in my ADF application.So i tried like this.
    <af:column id="pt_c115" >
    <a id="JspLink" href="AuditLogInfo.jspx" target="_blank">JspLink</a>
    </af:column>
    Im able to view my new jsp page when im click on JspLink link.But here my problem is i have nee to set the visible condition if the 'status' field of adf table is succes only i want to view the link other wise no need to visible my link.
    visible="#{row.bindings.Status.inputValue=='SUCCESS'}" is working for commandbutton.But i'm not able to see any visible property in <a id="JspLink" href="AuditLogInfo.jspx" target="_blank">JspLink</a> .How can i set this condition?Please help me.I'm using JDeveloper 11.1.1.5 version.
    Thanks in Advance!
    Edited by: 851924 on Apr 5, 2012 11:22 PM
    Edited by: 851924 on Apr 5, 2012 11:23 PM

    Instead of using a jsplink you should use an af:goLink which is the adf equivalent and has all the needed properties.
    Timo

  • How to use a CSS file  in a jspx page..

    I'm using JDev 10.1.3.4.
    I would like to know how can i use a CSS file in a JSPX page..
    there is this file: public_html\WEB-INF\temp\adf\styles\cache\oracle-desktop-10_1_3_4_0-en-ie-6-windows-s.css
    How do I make use of this is my jspx page?
    Also how do i use the style class in property inspector?
    What should be the path of "oracle-desktop-10_1_3_4_0-en-ie-6-windows-s.css"?
    Also please tell me what changes I have to make in all the other files like web.xml or adf-faces-config.xml.
    Im using web application template using (EJB,Toplink and JSF)
    Please suggest the detailed steps as I'm new to JSF.
    Thanks ,
    Shri

    under view put a new tag
    <f:view>
    <ui:script url="page.js"/>
    and thats it

  • Af:serverListener on jspx page - compilation error - jDeveloper 11.1.1.4.0

    I have a weird problem that adding a serverListerner component on jspx page causes compilation error:
    The class of the deferred-methods return type "{0}" can not be found.
    No property editor found for the bean "javax.el.MethodExpression"
    If I remove serverListener (to pass compilation) and then add it again in run-time, it works normally (the backing bean method is being triggered correctly, including passing params, etc).
    It is happening only on the current project, but when I make a test case it works normally. I suspect it has something with the project settings, but I couldn't find the cause regarding that the project has advanced and there are so many differences to be able to do simple comparison.
    Does anyone know what could be the reason for af:serverListener to break compilation, please?
    ... from jspx page...
    <af:resource type="javascript">
    function aaa(event) {
    var esrc = event.getSource();
    AdfCustomEvent.queue(esrc, "bbb", {fvalue : "TEST"},true);
    event.cancel();
    </af:resource>
    <af:inputText label="Label 1" id="it1">
    <af:clientListener method="aaa" type="click"/>
    <af:serverListener type="bbb" method="#{backing_bean.onClick}"/>
    </af:inputText>
    ... from BB ...
    public void onClick(ClientEvent clientEvent) {
    String message = (String) clientEvent.getParameters().get("fvalue");
    System.out.println(message);
    }

    Hi,
    Try like this
    <trh:script>clientListenerMethoName= function(event) {
    var source = event.getSource();
    AdfCustomEvent.queue( source, "serVerListenerType", {}, false); }
    </trh:script>
    Next :
    <af:clientListener method="clientListenerMethoName" type="click"/>
    <af:serverListener type="serVerListenerType" method="#{beanName.methodName}"/>
    Edited by: Raj Gopal K on May 4, 2011 4:05 PM

  • How to display HTML file  (on server path) to ADF jspx page ?

    Hi Team,
    We have a requirement to display HTML content which is in tabular format on a page. This page is jspx page based on page template and this html has to be shown on a radio button select. I am trying to do this with Jquery but since the id of all components in jspx comes as pt1:id (pt1 being the id of page template) and : being a special character in Jquery, I am not able to proceed further.
    the syntax of Jquery to load html file a POC has been done outside Jdeveloper is working fine with a general syntax of
    $("#selector".load("html path"));
    Please let me know is they any other solution to load the file?
    Thanks
    Pavan

    For example
    - (void)viewDidLoad {
        [super viewDidLoad];
        NSURL *fileURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"readMe" ofType:@"html"]];
        [infoWebView loadRequest:[NSURLRequest requestWithURL:fileURL]];
    and from the .h
    @property (nonatomic, retain) IBOutlet UIWebView *infoWebView;

  • How To Use Dynamic Menus To Place Manually Created Jspx Pages On Sub-Level

    JHeadstarters,
    Back on the JHS trail and could use some help.
    I started using dynamic menus (see section 9.2 JHS Dev Guide) to setup a custom menu structure and found it could not be easier however I need to solve 2 issues;
    1. How to get more than 2 levels deep on the menus (parent, child, grand-child, etc.)? In the menu structure setup I have created a menu that is 3-levels deep however when it runs you only get 2 levels. Perhaps a template needs to be changed.
    2. How can I assign manually created jspx pages to sub-level menus?
    Scenerio;
    I have JHS generated pages *** AND *** manually created pages. Using dynamic menus to place the JHS genned pages works fine, the problem is how to do it with manually created pages.
    Using Dynamic Menu's I created a top-level menu tab named "warp-core", below it on the next level I have two sub-menus, one named "search" and one named "form" for displaying the results of the search and modifying the rows (don't ask me why they are seperate).
    The problem is how to assign the manually created jspx pages to those sub-menus? Or am I going abouth this the wrong way? Perhaps I could use JHS to generate seperate search and display pages.
    Thanks!
    BG...

    Bill,
    1. Yes, you need to decide yourself how and where you want to render this third level menu. You then create a region file similar to dynamicMenu2Tabs.jspx, just replace the references to level2MenuItems with level3MenuItems. Then create a custom template to call this menu 3 region file.
    For example, you could create a bulleted vertical list for level 3 as illustrated in section 9.1.3 of the Developers Guide (that example is with static menu, but you can use similar technique for dynamic menu)
    2. Instead of a group name, you can specify a JSF Navigation action in the menu administration application. So, you create a global navigation case to your custom page, and you enter this navigation case id in the menu admin app.
    Note that if you want to generate separate search pages, you can do so by setting the advanced search property to "separatePage".
    Steven Davelaar,
    JHeadstart Team.

  • HTTP Error 403 - Forbidden  error when auto including a jspx page

    Hi All -
    We have a situation where one of different reports pages gets included inside a main reports page based on user selection via a selectOneChoice control.
    But when the Reports Main page tab is clicked for the first time we get a "You are not authorized to view this page" HTTP Error 403 - Forbidden error.
    Upon clicking "Refresh" and then clicking the Reports Main page tab again, the page renders correctly.
    This is our code snippet. All the report related pages(MainPage.jspx, Schedule.jspx and Budget.jspx) are inside a reports folder under the context root. Please help.
    Thanks for your time.
    MainPage.jspx
    =====================
    Here I have a selection box, and based on the user selection I include different JSPX pages. The page Definition of this page
    contains all the executables and the bindings of the included pages also.
    <af:selectOneChoice value="#{backing_Reports.measureSelected}"
    label="Measure" unselectedLabel="Select One"
    id="selectmeasure" autoSubmit="true"
    immediate="true">
    <af:selectItem label="Schedule Data"
    value="Schedule.jspx"/>
    <af:selectItem label="Budget Data"
    value="Budget.jspx"/>
    </af:selectOneChoice>
    <af:panelGroup>
    <jsp:include page="${backing_Reports.measureSelected}" flush="true"/>
    </af:panelGroup>
    Faces Config:
    ===================
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>GlobalHome</from-outcome>
    <to-view-id>/pages/Welcome.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>GlobalReports</from-outcome>
    <to-view-id>/reports/MainPage.jspx</to-view-id>
    </navigation-case>
    <!-- 1. Reports menu tab item -->
    <managed-bean>
    <managed-bean-name>menuItem_Reports</managed-bean-name>
    <managed-bean-class>cs.view.menu.MenuItem</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>label</property-name>
    <value>#{resources['scorecard.menu.reports']}</value>
    </managed-property>
    <managed-property>
    <property-name>viewId</property-name>
    <value>/reports/MainPage.jspx</value>
    </managed-property>
    <managed-property>
    <property-name>outcome</property-name>
    <value>GlobalReports</value>
    </managed-property>
    </managed-bean>
    :

    We have solved this, temproarily. But don't know if this is the best method to do this. Please post if somepne has a better way of doing this.
    While debugging we found that the ${backing_Reports.measureSelected} field which was set to a default value in backing bean was returned as null when the page renders for the first time. So we had a work around like this in our MainPage.jspx
    <af:panelBox width="80%" partialTriggers="selectmeasure"
    inlineStyle="margin:40.0px;">
    <af:panelGroup>
    <jsp:include page="${backing_Reports.measureSelected==null?'BlankPage.jspx':backing_Reports.measureSelected}"
    flush="true"/>
    </af:panelGroup>
    </af:panelBox>
    Thanks.

  • Accessing properties files in jspx page in ADF Generic application

    Hi All
    I have created an genric application .I have jdevloper 11.1.1.3.I need to add the .properties file in my application and access that properties file in my .jspx page.
    so i have created the Resources folder and added the properties file in that folder and now i am trying to access that contents of that properties file in my jspx page using below code
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
              <f:loadBundle basename="Resources.sampleproperty" var="props"/>
               <af:panelGroupLayout id="pgl1">
                 <af:outputText value="testing"  id="ot1" />
                  <af:outputText value="#{props['sample.label.text1']} " />
                  <af:outputText value="#{pageFlowScope.UserId}" />
              </af:panelGroupLayout>
    </jsp:root>but iam not able to access the propert and blank page is only displayed
    so what more steps i need to do to access it?
    Note:-previously i created the application of type Fusion Web Application ,where it added the folder named view and we used to add the .property file in it and accessed the contents of the .property file using above code and tthe above code was running fine.
    Thanks and Regards
    Bipin Patil

    Hi All
    I solved this issue
    by adding the following code in faces config.xml
    <application>
    <resource-bundle>
         <base-name>com.property.sampleproperty</base-name>
          <var>props</var>
        </resource-bundle>
    </application>note :The sampleproperty.properties should be present in java package com.property.sampleproperty
    please visit below link for more details.
    http://www.laliluna.de/articles/posts/jsf-2-evaluation-test.html

  • Fill placeholders within message strings dynamically on jspx pages

    Hello all,
    i am searching a solution for the following problem.
    Let's assume the following key/value pair exists in the message resource bundle:
    targets.delete.confirmation=Do your really want to delete the target "{0}"?
    On a jspx page there is a confirmation dialog. The code looks like that:
    &lt;af:dialog id="dialogDel" type="yesNo" closeIconVisible="true"
    title="#{nls\['targets.delete.title'\]}"
    visible="true" modal="true" partialTriggers="tabTgt tabTgt:btnDelete"
    dialogListener="#{backingBeanScope.targetsBean.dialogDel_action}"&gt;
    &lt;af:message messageType="confirmation" message="#{nls\['targets.delete.confirmation'\]}"&gt;
    &lt;f:attribute name="{0}" value="#{bindings.TgtName.inputValue}"/&gt;
    &lt;/af:message&gt;
    &lt;/af:dialog&gt;
    Now i want the placeholder {0} getting filled at runtime dynamically with the inputValue of the appropriate binding.
    The code as shown doesn't solve the problem.
    I'm experienced in developping web applications with ADF UIX and there i got this done with the following code:
    &lt;boundAttribute name="title"&gt;
    &lt;messageFormat format="${nls\['targets.delete.confirmation'\]}"&gt;
    &lt;dataObject source="${bindings.TgtName.inputValue}"/&gt;
    &lt;/messageFormat&gt;
    &lt;/boundAttribute&gt;
    What's the equivalent to 'messageFormat' in ADF Faces??
    Any help will be appreciated.

    Hi,
    Not sure if this will help, but rather than using proper messages, can you just use a piece of output text like:
    <h:outputFormat value="#{nls['targets.delete.confirmation']}">
      <f:param value="#{bindings.TgtName.inputValue}"/>
    </h:outputFormat>The outputFormat tag is from the JSF HTML tag library
    Dave

  • Putting the results of a PL/SQL package on a .jspx page

    Hi, I have customer who wants to replace a cgi script's results with a .jspx page. Nothing fancy, just a straight vertical text dump of text returned from a PLSQL PKG into say an af:ouputText or af:outputFormatted. All within an af:panelGroupLayout vertical.
    I understand UIs and ADF Faces pretty well but when it comes to database data displaying into components, I am green.
    So, how would I declaratively in Jdev 11.1.1.3, create databindings, controls, etc. and dump display them in an af:outputText? All of the Tutorials I have seen show database tables etc., not PL/SQL packages. Can you please outline the steps for doing the databinding and controls things so that I can drop them onto a .jspx page/component? Please from the standpoint of using the PL/SQL package shown below. I would be forever grateful.
    Thanks!!!!
    Here is the PL/SQL package:
    FUNCTION get_tsr_details(p_incident_no VARCHAR2)
    RETURN CLOB ;
    END WRS_KM_TSR_PKG;
    Here is the Body:
    FUNCTION get_tsr_details(p_incident_no VARCHAR2)
    RETURN CLOB
    IS
    CURSOR cu_tsr
    IS
    select ('TSR#: '||tsr.incident_number||chr(10)||
    'Assigned: '||tsr.owner||chr(10)||
    'Status: ' || tsr.status || CHR (10) ||
    '-------------------------------------------------------------'||chr(10)||
    'Date: '|| csi.incident_date||chr(10)||
    'Title: '||tsr.summary||chr(10)||
    --'Name: '||decode(ccp.contact_type, 'EMPLOYEE',fnd2.full_name ,'PARTY_RELATIONSHIP',sp.party_name ) ||chr(10)||
    'Company: '||tsr.party_name ||chr(10)||
    'License#: '||tsr.license_number||chr(10)||
    'Product Name: '||tsr.item_description ||chr(10)||
    'HostOS: '||csi.operating_system||' '||chr(10)||
    'HostOS Rev: '||csi.operating_system_version||chr(10)||
    'Arch Family: '||tsr.arch_family||chr(10)||
    'Processor Family: '||tsr.processor_family||chr(10)||
         'Processor: ' ||tsr.processor_family||chr(10)||
    'BSP: '||tsr.bsp||chr(10)||
         'BSP Version: '||tsr.bsp_version||chr(10)||
         'SPR Number: '||tsr.spr_number) tsr_detail,
    tsr.incident_number,tsr.incident_id
    from wrs_km1_tsr_ksm_v tsr, cs_incidents_all_b csi
    where tsr.incident_id = csi.incident_id
    --and    tsr.incident_id = p_incident_id;
    and tsr.incident_number = p_incident_no;
    CURSOR cu_notes(l_incident_id number,l_incident_no varchar2)
    IS
    SELECT ('TSR: '||l_incident_no||CHR(10)||
    '-------------------------------------------------------------'||CHR(10)||
    'Date Created: '||creation_date||' Created By: '||entered_by_name||CHR(10)||
    'Visibility: '||note_status_meaning||CHR(10)||
    'Status: '||note_type_meaning||CHR(10)||
    'Transaction Description'||CHR(10)||CHR(10)||
    notes||CHR(10)||
    notes_detail) not_dtl
    FROM jtf_notes_vl
    WHERE source_object_id= l_incident_id
    AND     source_object_code = 'SR'
    ORDER BY creation_date aSC;
    l_tsr_details CLOB;
    l_incident_no cs_incidents_all_b.incident_number%TYPE;
    l_incident_id cs_incidents_all_b.incident_id%TYPE;
    BEGIN
    FOR ru_tsr IN cu_tsr
    LOOP
    l_tsr_details := l_tsr_details ||ru_tsr.tsr_detail||CHR(10) ;
    l_tsr_details := l_tsr_details ||'********************Transaction*******************';
    l_incident_no := ru_tsr.incident_number;
    l_incident_id := ru_tsr.incident_id;
    FOR ru_notes in Cu_notes(l_incident_id,l_incident_no)
    LOOP
    l_tsr_details := l_tsr_details ||CHR(10)||ru_notes.not_dtl;
    END LOOP;
    EXIT;
    END LOOP;
    --INSERT INTO AA VALUES(l_tsr_details);
    --COMMIT;
    RETURN l_tsr_details;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN l_tsr_details ;
    END get_tsr_details;
    END WRS_KM_TSR_PKG;

    One solution is to write a Java class that has a method that nvokes the PL/SQL procedure and then return a String.
    Then you can expose that Java class as a data control and drag the result of the method onto the page.
    A bit about JDBC with PL/SQL and CLOB:
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/basic.htm#i1008346
    http://download.oracle.com/docs/cd/B19306_01/java.102/b14355/oralob.htm
    And a bit about exposing a Java class as a data control:
    http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html

  • Passing field value to a jspx page

    Hi,
    I am using JDeveloper 10.1.3.0.4 and JHeadstart 10.1.3.0.91.
    We have a situation like:
    Table: POSITION
    Fields: POSITIONCONTROL_NO (PK)
    BUSINESSUNIT_CD
    EFF_DT
    EXP_DT
    BUDGETCAT_CD
    Table: POSITIONBUDGET
    Fields: POSITIONCONTROL_NO (PK)
    FISCAL_YR (PK)
    POSCAT_CD
    EFTS_UNIT
    TEACHING_UNITS
    GL_OBJECT_OVERRIDE_CD
    BUDGETCAT_CD
    POSITIONBUDGET is a child table of POSITION.
    When we create a record in POSITION, POSITIONCONTROL_NO is generated automatically from a seq no by a trigger in the database.
    For POSITIONBUDGET we have a table-form layout. In POSITIONBUDGET_table.jspx page we put a button "New".
    What this "New" button should do is:
    1) It should go to a page (e.g. POSITION_insert.jspx) where we can create a record in POSITION table.
    This new position record will have a seq-generated primary key in the POSITIONCONTROL_NO.
    2) The next step is to proceed to the POSITIONBUDGET_insert.jspx where we can create a record in POSITIONBUDGET table
    using the POSITIONCONTROL_NO field passed from .
    table-form form form
    POSITIONBUDGET_table.jspx --> POSITION_insert.jspx -> POSITIONBudget_insert.jspx
    For (1) and (2), we created insert only pages (POSITION_insert.jspx, POSITIONBUDGET_insert.jspx) following the documentation you described in
    JHeadstart Developers Guide, chapter 3 section "Build Insert Only Screens" which works individually. But we could not pass the newly generated POSITIONCONTROL_NO to POSITIONBudget_insert.jspx.
    We know that we can create a link for POSITIONBUDGET under POSITION and create records from there.
    Actually we have group like that already. But we want to have the functionality of the workflow shown above.
    Could you please let us know:
    In POSITION_insert.jspx, how can we redirect to POSITIONBUDGET_insert.jspx by clicking the "Save" button
    which should also pass the newly generated POSITIONCONTROL_NO to POSITIONBUDGET_insert.jspx ?
    Thanks
    Syed Jabbar
    Application Programmer
    Information Technology Services
    University of Windsor

    This is not really JHeadstart related, rather ADF Business Components. But it seems to me that there are several things you can check:
    If you run the ADF BC tester, and create a new Position row, is the generated PositionControlNo visible in the tester (after saving)? You might want to check out the DBSequence attribute type, described in the ADF Developer's Guide for Forms/4GL Developers (http://download.oracle.com/docs/html/B25947_01/toc.htm).
    Then, in the tester, if you go to PositionBudget (as a child VO of Position), check if the foreign key attributes to Position are automatically filled in when you create a new PositionBudget. This could be a matter of defining the right ViewLink, and defining PositionBudget as a child of Position in the Application Module.
    Other default values you want to be automatically created, can be coded in the create() method of the EntityImpl class.
    Hope this helps,
    Sandra

  • Visible property for transient attribute.

    Hi,
    I am using J developer 11g Release 2.In my page i need to set the visible property for the transient attribute(conform password) because the transient attribute needs to be disable for some condition.I have tried but the property was working only when the attribute is not transient.Can we set the property for transient attribute?
    Help me on this..
    Thanks,
    Suganya.
    Edited by: Suganya on Feb 27, 2012 1:40 AM

    Disabling the visbile property:
    <af:inputText autoSubmit="true" id="it6" label="Table Attr"> </af:inputText>
    <af:inputText partialTriggers="it6" visible="#{bindings.AphdBe.inputValue eq null? 'false' : 'true'} " id="it2" label="Trans Attr"> </af:inputText>like this you should h'd.
    normally we use transiet term in vo's while coming to part ui.
    it will consider as attribute. no thing difference bwtn those attribute as timo says.
    --edited lately.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to set the disable,visible property in declarative components.

    We have used one declarative component. It consists of 5 buttons (add,delete,save,delete,print). In all of our pages, this declarative component is used. We could bind methods and was able to use each pages seperately (by linking the methods in the backing bean)
    But for implementing the DISABLE,VISIBLE properties, we have added the attributes for this and refered this to the corresponding disable and visible property of the button. In the page all these properties where reflected. But at the runtime these buttons are not coming.
    Can anyone advise how can we set the disable,visible property in declarative components.

    Hi vikram ,
    i hvnt initialized the properties ,
    in my declarative component i have one button say Save button and i want to config 2 properties Disable and Visible
    i added two attributes ( java.lang.Boolean ) say disablr_btn ,*visible_btn* and mapped wth the Save button Properties Disabled and Visible using expressions
    Now the button is invisible while running the page.
    if i remove the mapping from properties Disable and visible , the button is visible
    should i init the properties in faces config , i dnt knw hw to init the properties
    pls advice

Maybe you are looking for