BC4J - To hide loginDialog

Hi,
I am running an application which is made using buss. components of an Application Module.
I want to know how can I hide the loginDialog window and specify the username, password in the code instead of asking it from the user.
Please let me know if anyone knows about this.
Thanks
null

In the connection manager edit the connection you are using for the BC4J AppModule.
Make sure that the checkbox is selected for the "Include password in deployment archive"
After this you can use the tester to test the appmodule.
If you are using DAC based application then in the last page of the Application wizard make sure that login dialog box is unchecked . In this way the application will not prompt for the username , password
raghu

Similar Messages

  • Hide columns in JClient in function to BC4J Entity

    Hi:
    I need to hide some columns dynamically in my JClient Panel in base to conditional BC4J Entity object bussiness rule.
    For example if i put my pseudocode in Oracle Forms based (i don't remeber the syntaxis well): "if my Deparment.idDepartment = 1000 then....Hide the Employee.Salary".
    Now, in JDeveloper, in my 'DepartmentImpl.java' put the condition, but i know, i can't write code to hide the column in runtime mode here. I need to do that in JClient.
    How can i do this, passing a parameter between BC4J and JClient?
    Regards
    Marco H.

    Shailesh:
    The code not works well for me. I try to explain my requieriment:
    I have a field named "Capturahoras". If "Capturahoras" is equal to "S" then, enabled mHorastrabajados, otherwise, disabled mHorastrabajados.
    My "Idconepto" is my PK and when i selected another value for my PK, my field "Capturahoras" should be changed to "S" or "N" (Yes or Not).
    Sorry, but i'm not an expert for JDev and some months ago i have been programming in Oracle Forms.
    I put my code here but not works well:
    * the JbInit method
    public void jbInit() throws Exception
    // Layout definition for this panel
    dataPanel.setLayout(panelLayout);
    dataPanel.setMinimumSize(new Dimension(100, 100));
    this.setLayout(borderLayout);
    // Code support form attribute: Concepto
    mIdconcepto.setDocument(JUTextFieldBinding.createAttributeBinding(panelBinding, mIdconcepto, "RhMovsincidendetalleView", null, "RhMovsincidendetalleViewIter", "Idconcepto"));
    mIdconcepto.setColumns(3);
    mIdconcepto.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    mIdconcepto_actionPerformed(e);
    ComboConcepto.setModel(JUComboBoxBinding.createLovBinding(panelBinding, ComboConcepto, "RhMovsincidendetalleView", null, "RhMovsincidendetalleViewIter", new String[] {"Idconcepto"}, "RhConceptoView", new String[] {"Idconcepto"}, new String[] {"Nomcorto"}, null, null));
    dataPanel.add(labelIdconcepto, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    dataPanel.add(mIdconcepto, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    labelIdconcepto.setLabelFor(mIdconcepto);
    mIdconcepto.setColumns(3);
    mIdconcepto.setToolTipText(panelBinding.getTooltip("RhMovsincidendetalleView", "Idconcepto", null));
    labelIdconcepto.setText(panelBinding.getLabel("RhMovsincidendetalleView", "Idconcepto", null));
    // Code support form attribute: Secuencia
    mIdsecuencia.setDocument(JUTextFieldBinding.createAttributeBinding(panelBinding, mIdsecuencia, "RhMovsincidendetalleView", null, "RhMovsincidendetalleViewIter", "Idsecuencia"));
    dataPanel.add(labelIdsecuencia, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    dataPanel.add(mIdsecuencia, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    labelIdsecuencia.setLabelFor(mIdsecuencia);
    mIdsecuencia.setColumns(4);
    mIdsecuencia.setToolTipText(panelBinding.getTooltip("RhMovsincidendetalleView", "Idsecuencia", null));
    labelIdsecuencia.setText(panelBinding.getLabel("RhMovsincidendetalleView", "Idsecuencia", null));
    // Code support form attribute: Dias trabajados
    mDiastrabajados.setDocument(JUTextFieldBinding.createAttributeBinding(panelBinding, mDiastrabajados, "RhMovsincidendetalleView", null, "RhMovsincidendetalleViewIter", "Diastrabajados"));
    dataPanel.add(labelDiastrabajados, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    dataPanel.add(mDiastrabajados, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    labelDiastrabajados.setLabelFor(mDiastrabajados);
    mDiastrabajados.setColumns(7);
    mDiastrabajados.setToolTipText(panelBinding.getTooltip("RhMovsincidendetalleView", "Diastrabajados", null));
    labelDiastrabajados.setText(panelBinding.getLabel("RhMovsincidendetalleView", "Diastrabajados", null));
    // Code support form attribute: Horas trabajadas
    mHorastrabajados.setDocument(JUTextFieldBinding.createAttributeBinding(panelBinding, mHorastrabajados, "RhMovsincidendetalleView", null, "RhMovsincidendetalleViewIter", "Horastrabajados"));
    dataPanel.add(labelHorastrabajados, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    dataPanel.add(mHorastrabajados, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    labelHorastrabajados.setLabelFor(mHorastrabajados);
    mHorastrabajados.setColumns(5);
    mHorastrabajados.setToolTipText(panelBinding.getTooltip("RhMovsincidendetalleView", "Horastrabajados", null));
    labelHorastrabajados.setText(panelBinding.getLabel("RhMovsincidendetalleView", "Horastrabajados", null));
    // Code support form attribute: Importe
    mImporte.setDocument(JUTextFieldBinding.createAttributeBinding(panelBinding, mImporte, "RhMovsincidendetalleView", null, "RhMovsincidendetalleViewIter", "Importe"));
    dataPanel.add(labelImporte, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    dataPanel.add(mImporte, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    labelImporte.setLabelFor(mImporte);
    mImporte.setColumns(11);
    mImporte.setToolTipText(panelBinding.getTooltip("RhMovsincidendetalleView", "Importe", null));
    labelImporte.setText(panelBinding.getLabel("RhMovsincidendetalleView", "Importe", null));
    // Code support form attribute: Turno
    mTurno.setDocument(JUTextFieldBinding.createAttributeBinding(panelBinding, mTurno, "RhMovsincidendetalleView", null, "RhMovsincidendetalleViewIter", "Turno"));
    dataPanel.add(labelTurno, new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    dataPanel.add(mTurno, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    labelTurno.setLabelFor(mTurno);
    mTurno.setColumns(2);
    mTurno.setToolTipText(panelBinding.getTooltip("RhMovsincidendetalleView", "Turno", null));
    labelTurno.setText(panelBinding.getLabel("RhMovsincidendetalleView", "Turno", null));
    // Code support form attribute: Centro de costos
    mCentrocostos.setDocument(JUTextFieldBinding.createAttributeBinding(panelBinding, mCentrocostos, "RhMovsincidendetalleView", null, "RhMovsincidendetalleViewIter", "Centrocostos"));
    dataPanel.add(labelCentrocostos, new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    dataPanel.add(mCentrocostos, new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    dataPanel.add(ComboConcepto, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 5), 1, 1));
    labelCentrocostos.setLabelFor(mCentrocostos);
    mCentrocostos.setColumns(20);
    mCentrocostos.setToolTipText(panelBinding.getTooltip("RhMovsincidendetalleView", "Centrocostos", null));
    // Add for Marco
    panelBinding.findIterBinding("RhMovsincidendetalleViewIter").getRowSetIterator().addListener(new oracle.jbo.RowSetListener()
    * Invoked when the range changes.
    * @param event a description of the new ranges.
    public void rangeRefreshed(oracle.jbo.RangeRefreshEvent event){}
    * Invoked when the range is scrolled.
    * @param event a description of the new range.
    public void rangeScrolled(oracle.jbo.ScrollEvent event){}
    * Invoked when a row has been inserted.
    * @param event a description of the new Row object.
    public void rowInserted(oracle.jbo.InsertEvent event){}
    * Invoked when a row has been deleted.
    * @param event a description of the deleted Row object.
    public void rowDeleted(oracle.jbo.DeleteEvent event){}
    * Invoked when an attribute of the row has been changed.
    * @param event a description of the modified Row object.
    public void rowUpdated(oracle.jbo.UpdateEvent event){}
    * Invoked when the current-row designation changes.
    * @param event a description of the new and previous current rows.
    public void navigated(oracle.jbo.NavigationEvent event)
    String str = null;
    oracle.jbo.Row r = event.getRow();
    if (r != null)
    str = (String) r.getAttribute("Capturahoras");
    if (str != null && str == "S")
    mHorastrabajados.setEnabled(true);
    labelHorastrabajados.setEnabled(true);
    else
    mHorastrabajados.setEnabled(false);
    labelHorastrabajados.setEnabled(false);
    Thanks
    Marco

  • How can I hide primary key column in BC4J form

    I have populated a primary key with dbsequence and how can I hide it on the form. It is populated in the DB by a trigger.

    I have populated a primary key with dbsequence and how can I hide it on the form. It is populated in the DB by a trigger. To hide it, edit the attribute using attribute-editor that you bring up by double-clicking on the attribute in the "StructurePane" .
    Then go to control-hints panel and mark the attribute setting for Display = Hide.
    Then UI wizards will not add the attribute into generated panels.
    However once you have UI generated, this hint is no more used.

  • Hiding viewobject table columns in uiXML/BC4J page

    I would like to know how to hide a tablecolumn in a uiXml/BC4J page.
    Regards
    Tuncay

    Tuncay -
    You can modify the view.uix form and comment out the attribute you don't want displayed. For instance,
    <!--<bc4j:column attrName="ManagerId">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>!
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>-->
    Hope this helps,
    Lynn
    Java Tools Team

  • HOWTO: Hide the delete button in a NavigatorBar

    HOWTO: Hide the delete button in a NavigatorBar (JSP)
    Goal: Hide the delete button in a NavigatorBar or JSNavigatorBar Data Web Bean. This example works for either bean.
    Solution: Edit the .jsp file containing your NavigatorBar bean. For a generated BC4J JSP application, the file is YourView_Top.jsp.
    Find the code that instantiates the NavigatorBar. It will look something like:
    <jsp:useBean class="oracle.jbo.html.databeans.NavigatorBar" id="tb" scope="request">
    <%
    tb.initialize(pageContext, "MyProject1_bizcomp_BizcompModule.MyView");At this point, add the following line of code to hide the delete button:
    tb.getButton(tb.NAVIGATE_DELETE).setButtonVisible(false);You can find the variable names for the other navigator buttons in the javadoc for oracle.jbo.html.databeans.BaseNavigatorBar. In the online help, this is under Reference -> Business Components Reference.
    null

    Georges,
    This has come up before, and after some experimentation, there's not a straightforward way to do it.
    There are two possible solutions that I can think of:
    1. Write your own custom bean and/or extend the beans provided to modify them to your needs.
    2. Wait for the 3.2 release at the end of the month. This release provides custom data tags with much finer grained control over specific items such as the buttons.
    I think 2 is preferable, if you have the time to wait.

  • BC4J: Split TableData to JTable and JTextPane - possible? - how

    Hi all,
    I got a table with some columns, but 2 of them can contain more than 1000 characters. So I want the content of these 2 columns displayed in 2 JTextpanes, which then contain always the content of theses to columns when a row is selected.
    My question now is:
    How can I get them into the JTextPanes and is there a chance/method to get the primary key of a row when the row which is selected?
    I also have to question how to hide a column, because I want to hide the primary key but only hide and how to change the header of the jTable.
    I tried:
    tableEmpView1.getColumn("Empno").setHeaderValue("Employee Number");
    tableEmpView1.getColumnModel( ).removeColumn(tableEmpView1.getColumn("Job"));
    But the don't work in my application!
    I can remove the colum with this call but then I also removed it from the tablemodel, so I have no chance to get the content of the "hiddeN" column after that and the oder method-call doesn't work, although there is no compiler error or runtime error there is no headerValue changed.
    Anyone any Idea about my question?
    Thanks
    Peter Zerwes

    Hi all,
    I got a table with some columns, but 2 of them can contain more than 1000 characters. So I want the content of these 2 columns displayed in 2 JTextpanes, which then contain always the content of theses to columns when a row is selected.
    My question now is:
    How can I get them into the JTextPanes and is there a chance/method to get the primary key of a row when the row which is selected?There are two questions here. One is how to display some attribute from a row in JTable in another control, such that only the current row value is displayed in the other control. You simply need to drop the other control in the UI editor and bind it to the same ViewObject and desired attribute. Framework will coordinate the passing of value from the current row into that attribute. See OTN sample "JClient Binding demo" - how it handles the display of Image control in a pane with JTable (Image for current Item from JTable is displayed in ImageControl). The sample is at:
    http://otn.oracle.com/sample_code/products/jdev/jclient/jclient_binding_demo.html
    The second question is how to get the primary key of the row which is selected.
    Call panelBinding.findIterBinding(<your iterator name>).getCurrentRow();
    I also have to question how to hide a column, because I want to hide the primary key but only hide and how to change the header of the jTable.
    I tried:
    tableEmpView1.getColumn("Empno").setHeaderValue("Employee Number");
    tableEmpView1.getColumnModel( ).removeColumn(tableEmpView1.getColumn("Job"));
    But the don't work in my application!
    I can remove the colum with this call but then I also removed it from the tablemodel, so I have no chance to get the content of the "hiddeN" column after that and the oder method-call doesn't work, although there is no compiler error or runtime error there is no headerValue changed.
    Anyone any Idea about my question?TO hide a column from display, you may either not select that column in the JTable binding or provide a control-hint "display=hide" in the ViewAttribute editor on the desired ViewObject attribute in your BC4J project.
    To change Table headers, etc see OTN how to at
    http://otn.oracle.com/products/jdev/howtos/JClient/jclient_jtable.html
    Thanks
    Peter Zerwes

  • Hide JBO error messages

    Hi
    I want to hide an error message with the code JBO-33035
    How can I do this? Hiding the message box does not work because this time the other error messages will not be shown either. Is there a way to only hide the messages we want.
    I would be grateful if anyone helped

    In the online Help, go to the Developing Business Components book, click on Reference, and then click on BC4J Error Messages (it may be titled JBO Error Messages depending on which release you have).
    -Mario

  • Differences Between JDev BC4J/JClient Versions

    Hi,
    I'm finding key differences between library versions of my BC4J and JClient libraries which are introducing bugs into my application. What once ran properly no longer runs properly in JDev 10.1.2. What makes this particularly interesting is that the Application Server has the older libraries (which work) while JDeveloper 10.1.2 has the new libraries (which have the issues). I was wondering if anyone could point me to a document of all the changes in BC4J and JClient between releases.
    Here are two of the differences I'm seeing...
    1. In the older BC4J lib (deployed by default with the 10g app server) using a ViewCriteria to select a ROW with a CHAR[7] using a string with less than 7 characters works fine. It simply does a standard CHAR[7] comparision, treating the missing characters as spaces, and finds a match. ie "select * from MY_TABLE where KEY='AA' finds the key with 'AA ' and it shows up in my results as I desire.
    In the newer BC4J lib, while the same select statement runs (and finds the row) the BC4J libraries seem to be doing a post processing in the ViewCriteria which HIDES this row from me. I have to manually PAD my input string in Java before putting it into the ViewCriteria to get it to work. (And no, the database can't be changed to a VARCHAR for other reasons.)
    2. The JFACE library's ScrollablePanel has no trouble creating a scrollable panel with a table for my ViewObject in the old version of the JFACE library. However, the new version of the JFace library has a problem where scrolling the panel shows many blank rows, until I actually click on a row, at which point the internal ViewObject cursor moves forward and loads that data (and hides the earlier data).
    This is annoying as I really would prefer to be able to upgrade to new libraries when they come out. But instead I'm having to download the older libraries and put them into JDeveloper instead.
    a. Can anyone point me to a document listing all changes between BC4J and JFace library versions?
    b. Does anyone know of a better way to work around the issues I'm seeing above? They're really annoying.
    Thanks,
    Doug

    Hi,
    I use weblogic 10.3.4 with Application Development Runtime (11.1.1.2.0) and JDev 11.1.1.4.i assume you are using standalone wls 10.3.4 with Application Development Runtime (11.1.1.2.0).
    But jdeveloper 11.1.1.4 has ADR 11.1.1.4.0 .. It would create some incompatabilities.
    Betw:
    you can install ADR from jdeveloper setup also, just uncheck the jdev and wls studio installation when installing ADR from jdev, It will also prompt for the wls home.
    Regards,
    Santosh.
    Edited by: Santosh Vaza on Apr 23, 2011 4:52 PM

  • How to hide a column in master-detail jsp

    My jsp contail a master view and a detail view ,and have a link between two,i want hide the column in the detail view as it was shown in master view,How can i do?

    Assuming you are using BC4J - double click on the view object to edit it. Go to the attributes section and shuttle the attribute you want to hide back to the left.

  • AF:Query -how to hide attribute in basic mode but show/add in advanced mode

    Hello,
    I have a requirement to initially hide some attributes when displayed in BASIC mode of af:query with the possibility to add these hidden attributes in ADVANCED mode.
    Is it doable somehow?
    edit: JDeveloper 11.1.2.3.0, ADF BC
    Regards,
    Miroslaw
    Edited by: Miroslaw on 2013-01-16 14:59

    Hi,
    Always mention your JDev version.
    If you are using BC4J as your model, you can create view criteria and set which attribute to be visible in which mode under UI hints, and use this criteria as query panel in your page.
    -Arun

  • Problems using detaildisclosure on UIXML BC4J

    Hi there.
    I have try to build a litle aplication with UIXML/BC4J and i need to use a table with DetailDisclosure but i can't show the hide detail of a row.
    Source Code :
    �UIXML Page�
    <?xml version="1.0" encoding="windows-1252" ?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j">
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="CustomerToCustomerAppModule"
    definition="OE_UIX_v1.OeModule"
    releaseMode="stateful">
    <bc4j:viewObjectDef name="CustomerMasterVO" rangeSize="10"/>
    <bc4j:viewObjectDef name="CustomerDetailVO" rangeSize="1"/>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <content>
    <try xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <catch>
    <displayException/>
    </catch>
    <contents>
    <pageLayout xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    title="Visualizar Clientes">
    <!-- Start of common pageLayout section. If you plan to expand this
    example application, consider using a UIT template to specify the common
    portions of your pageLayout -->
    <productBranding>
    <image source="tools_collage.gif"
    shortDesc="JDeveloper Product Logo"/>
    </productBranding>
    <corporateBranding>
    <image source="oraclelogo.gif" shortDesc="Oracle Logo"/>
    </corporateBranding>
    <globalButtons>
    <globalButtonBar>
    <contents>
    <globalButton source="www_home.gif" text="Home"
    destination="Main.uix"/>
    <globalButton source="www_contact.gif" text="Contact Us"
    destination="http://www.oracle.com"/>
    <globalButton source="www_help.gif" text="Help"
    destination="http://otn.oracle.com/products/jdev/content.html"/>
    </contents>
    </globalButtonBar>
    </globalButtons>
    <copyright>Copyright 2003 Meitner. All Rights Reserved.</copyright>
    <privacy>
    <link text="Privacy Statement" destination="http://www.meitner.com"/>
    </privacy>
    <!-- End of common pageLayout section -->
    <contents>
    <!-- this will contain any validation errors after form
    submission -->
    <messageBox automatic="true"/>
    <bc4j:rootAppModuleScope name="CustomerToCustomerAppModule">
    <contents>
    <header text="Pesquisar">
    <contents>
    <form name="procurar" method="POST">
    <contents>
    <inlineMessage prompt="Condi��o de Pesquisa"
    vAlign="middle">
    <contents>
    <flowLayout>
    <contents>
    <textInput name="attrPesquisa"
    data:text="ctrl:page@attrPesquisa"
    shortDesc="Pesquisar"/>
    </contents>
    </flowLayout>
    </contents>
    <end>
    <submitButton text="Pesquisar" ctrl:event="search"/>
    </end>
    </inlineMessage>
    </contents>
    </form>
    </contents>
    </header>
    <header text="Resultados">
    <contents>
    <form name="viewForm" method="POST">
    <contents>
    <tableLayout hAlign="center">
    <contents>
    <bc4j:viewObjectScope name="CustomerMasterVO">
    <contents>
    <bc4j:table name="viewTable" width="80%"
    alternateText="N�o foram encontrados clientes"
    formSubmitted="true">
    <detail>
    <labeledFieldLayout rendered="true">
    <contents>
    <tableLayout>
    <contents>
    <bc4j:rootAppModuleScope
    name="CustomerToCustomerAppModule">
    <contents>
    <bc4j:viewObjectScope
    name="CustomerDetailVO">
    <contents>
    <bc4j:rowScope
    name="detailCustomerDetailVO">
    <contents>
    <bc4j:messageList attrName="CustAddress"
    readOnly="true"/>
    <bc4j:messageInput attrName="PhoneNumbers"
    readOnly="true"/>
    <bc4j:messageInput attrName="NlsLanguage"
    readOnly="true"/>
    <bc4j:messageInput attrName="NlsTerritory"
    readOnly="true"/>
    <bc4j:messageInput attrName="CreditLimit"
    readOnly="true"/>
    <bc4j:messageInput attrName="CustEmail"
    readOnly="true"/>
    <bc4j:messageInput attrName="AccountMgrId"
    readOnly="true"/>
    <bc4j:messageInput attrName="CustGeoLocation"
    readOnly="true"/>
    <bc4j:messageInput attrName="CustomerId"
    readOnly="true"/>
    </contents>
    </bc4j:rowScope>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    </tableLayout>
    <formValue name="disclosed" value="1"/>
    </contents>
    </labeledFieldLayout>
    </detail>
    <tableSelection>
    <!-- single selection for each row in the table -->
    <singleSelection selectedIndex="0"
    shortDesc="Cliente Selecionado">
    <contents>
    <!-- the update button causes the currently selected
    row to be sent to the update page -->
    <submitButton text="Update"
    ctrl:event="update"/>
    <!-- the delete button causes the currently selected
    row to be removed -->
    <submitButton text="Delete"
    ctrl:event="delete"/>
    <submitButton text="Create"
    ctrl:event="create"/>
    </contents>
    </singleSelection>
    </tableSelection>
    <!-- the key identifying the current row in the table -->
    <bc4j:keyStamp>
    <bc4j:rowKey name="key"/>
    </bc4j:keyStamp>
    <contents>
    <!-- A bc4j:column element is added for each attribute
    in the ViewObject. -->
    <bc4j:column attrName="CustomerId">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    <bc4j:column attrName="CustFirstName">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    <bc4j:column attrName="CustLastName">
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    </contents>
    <detailDisclosure>
    <disclosed data:disclosed="disclosed@detailData@ctrl:eventResult"/>
    </detailDisclosure>
    </bc4j:table>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    </tableLayout>
    </contents>
    </form>
    </contents>
    </header>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    <contentFooter>
    <!-- the create button redirects to the create page -->
    <button text="Create" ctrl:event="create"/>
    </contentFooter>
    </pageLayout>
    </contents>
    </try>
    </content>
    <handlers>
    <event name="show">
    <method class="pt.meitner.oe.GlobalEvents" method="doHideShowEvent"/>
    </event>
    <event name="hide">
    <method class="pt.meitner.oe.GlobalEvents" method="doHideShowEvent"/>
    </event>
    <event name="search">
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="CustomerToCustomerAppModule">
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="CustomerMasterVO">
    <!-- search for the view criteria -->
    <bc4j:findByExample>
    <bc4j:exampleRow ignoreCase="true">
    <bc4j:exampleAttribute>
    <bc4j:nameBinding>
    <bc4j:parameter name="attrName"/>
    </bc4j:nameBinding>
    <bc4j:valueBinding>
    <bc4j:parameter name="attrValue"/>
    </bc4j:valueBinding>
    </bc4j:exampleAttribute>
    </bc4j:exampleRow>
    </bc4j:findByExample>
    <bc4j:executeQuery/>
    <!-- store the current search criteria as page properties -->
    <bc4j:setPageProperty name="attrName">
    <bc4j:parameter name="attrName"/>
    </bc4j:setPageProperty>
    <bc4j:setPageProperty name="attrValue">
    <bc4j:parameter name="attrValue"/>
    </bc4j:setPageProperty>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="sort" source="viewTable">
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="CustomerToCustomerAppModule">
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="CustomerMasterVO">
    <!-- sort by the submitted attribute name -->
    <bc4j:sort/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="goto" source="viewTable">
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="CustomerToCustomerAppModule">
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="CustomerMasterVO">
    <!-- navigate to the submitted range -->
    <bc4j:goto/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="create">
    <!-- forward to the create page -->
    <ctrl:go name="CustomerVO_Create" redirect="true"/>
    </event>
    <event name="update">
    <!-- forward to the update page, passing the selected key
    as a page property -->
    <ctrl:go name="CustomerVO_Update" redirect="true">
    <ctrl:property name="key">
    <ctrl:selection name="viewTable" key="key"/>
    </ctrl:property>
    </ctrl:go>
    </event>
    <event name="delete">
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="CustomerToCustomerAppModule">
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="CustomerMasterVO">
    <!-- find the selected Row -->
    <bc4j:findRowByKey>
    <bc4j:keyBinding>
    <bc4j:selectionKey name="viewTable" key="key"/>
    </bc4j:keyBinding>
    <bc4j:handlers>
    <!-- remove the selected ViewObject row -->
    <bc4j:removeRow/>
    <!-- execute the query to eliminate dead row access -->
    <bc4j:executeQuery/>
    </bc4j:handlers>
    </bc4j:findRowByKey>
    </bc4j:findViewObject>
    <!-- commit the transaction, forwards to self automatically -->
    <bc4j:commit/>
    </bc4j:findRootAppModule>
    </event>
    </handlers>
    </page>
    �Java Class�
    package pt.meitner.oe;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.ui.data.PageEventFlattenedDataSet;
    import oracle.cabo.ui.UIConstants;
    import oracle.cabo.ui.data.DataObject;
    import oracle.cabo.ui.data.DataObjectList;
    import oracle.cabo.ui.RenderingContext;
    public class GlobalEvents
    public GlobalEvents()
    public static EventResult doHideShowEvent(BajaContext bc, Page page,
    PageEvent event)
    PageEventFlattenedDataSet tableRows =
    new PageEventFlattenedDataSet(event, event.getParameter(UIConstants.SOURCE_PARAM));
    // this is the row that must be (un)disclosed:
    int row = Integer.parseInt(event.getParameter(UIConstants.VALUE_PARAM));
    // decide whether we want to disclose or undisclose depending on the name
    // of the event
    System.out.println("r -> " + row + " table " + event.getParameter(UIConstants.SOURCE_PARAM));
    boolean disclose = UIConstants.SHOW_EVENT.equals(event.getName());
    System.out.println("disclose =" + disclose);
    DataObjectList detailData = new DetailData(tableRows, row, disclose);
    EventResult result = new EventResult(page);
    result.setProperty("detailData", detailData);
    return result;
    private static final class DetailData implements DataObjectList
    * @param pageEvent contains the current disclosure state of the table
    * @param index the index of the row that must have its disclosure state
    * changed
    * @param disclosure the new disclosure state for the row
    public DetailData(DataObjectList pageEvent, int index, boolean disclose)
    _pageEvent = pageEvent;
    // initially, none of the table rows will be disclosed, so there will be
    // no pageEvent data and this length would be zero:
    _length = pageEvent.getLength();
    _index = index;
    _disclose = disclose;
    public int getLength()
    // make sure that the length we return is sufficiently large enough that
    // we reach the index we want to change
    return (_index >= length) ? index+1 : _length;
    public DataObject getItem(int index)
    boolean disclose;
    if (index==_index)
    // this is the index that we want to change.
    disclose = _disclose;
    else if (index < _length)
    // this index can safely be pulled from the pageEvent
    DataObject row = _pageEvent.getItem(index);
    // if there was a "disclosed" form element on this row then we
    // consider the row disclosed:
    disclose = (row.selectValue(null, "disclosed") != null);
    else
    disclose = false;
    return disclose ? DISCLOSETRUE : DISCLOSEFALSE;
    private final DataObjectList _pageEvent;
    private final int index, length;
    private final boolean _disclose;
    private static final DataObject DISCLOSETRUE = new DataObject() {
    public Object selectValue(RenderingContext rc, Object key)
    return Boolean.TRUE;
    private static final DataObject DISCLOSEFALSE = new DataObject() {
    public Object selectValue(RenderingContext rc, Object key)
    return Boolean.FALSE;

    Eliseu -
    Unfortunately with the forum software not escaping any XML content, I'm having a real hard time figuring out what kind of problem you are having with detail disclosure. I did post a response to your message in the UIX forum:
    Problems with details disclosure
    You might want to check out my response and post any follow-ups there...
    Andy

  • How to use table-detail with uiXML-BC4J?

    Hi,
    is there any sample code available how to use the table-detail tag with BC4J?
    Found in the UIX samples that i need to implement a hide and a show event.
    How to implement these eventhandlers for a bc4j:table?
    Thanks, Markus

    Hi Markus:
    I am doing the same thing, I have a Master and Detail VO and calling Detail VO in <detail> </detail> tag.
    Everthing thing display correctly, but when i click on the sortedcolumnheader while detail is disclosed, it closes the detail part. My detail information generated based on BC4J:Table detail:disclosed elements. could you please let me if you have faced this problem.
    Thanks
    Mohammad Tahir

  • Error in JClient with Control Hints (BC4J)

    Hello,
    In a project JClient based in BC4J (JDeveloper 9.0.3.1035 with JDK 1.4.2), the visual interface does not answer to changes in the level of BC4J (Control Hints).
    For example, if we establish the property DISPLAY_HINT=Hide for a column, it remains visible, or if we establish the property FORMAT TYPE = Simple Date and FORMAT = yyyy-MM-dd G 'at' hh:mm:ss, the information relative to hh:mm:ss is equal to 12:00:00. There exists another way of personalizing these properties? To level of code, perhaps.
    Thanks.

    To actually hide any attribute/column, you can simply delete either the reference to the attribute from the binding if you're using a JTable or delete the label and textfield for the attribute you wish to hide.
    Using the control hints won't work in this case.
    About the formatting, I don't know much about that. Sorry.

  • HIde button on events

    Hi,
    Can some body elaborate how to hide buttons on events.
    Regards
    Sameer

    Hi,
    You can use PPR.
    Step 1. create a VO which contains one transient attribute of type boolean
    Step 2. Base button rendered property using SPEL
    Step 3. Initialize your VO for PPR(inintialization includes insertion of one row and set the attribute as True)
    Step 4. In the event handler where you want to hide button just set it false.
    Sample code:
    //Code to hide button
    public void handlePoApproveChangeEvent()
    // Get the special, single-row application properties and make the first
    // (only) row current.
    OAViewObject vo = (OAViewObject)findViewObject("SampleBrowserPVO1");
    OARow row = (OARow)vo.first();
    // Get the value of the view object attribute with the PO Approval
    // status.
    OAViewObject poVO = (OAViewObject)findViewObject("PurchaseOrderHeadersVO1");
    OARow poRow = (OARow)poVO.getCurrentRow();
    String status = (String)poRow.getAttribute("StatusCode");
    // Set the application property values based on the PO Approval
    // status value.
    if ("APPROVED".equals(status))
    row.setAttribute("HideButton", Boolean.FLASE);
    //Code to initialize VO
    public void initializePPRExamplePage()
    // Create purchase order header
    OAViewObject appPropsVO =
    (OAViewObject)findViewObject("SampleBrowserPVO1");
    if (appPropsVO != null)
    // If the VO already has a row, skip its initialization. Note that
    // calling getFetchedRowCount() won't perform a DB hit on a VO with
    // no SELECT and only transient attributes.
    if (appPropsVO.getFetchedRowCount() == 0)
    // Setting the match fetch size to 0 for an in-memory VO
    // prevents it from trying to query rows.
    // Calling executeQuery() is a small workaround to a known
    // BC4J issue that ensures that modified rows in this
    // transient view object are not lost after commit. See
    // View Objects in Detail for additional information about
    // both of these calls.
    appPropsVO.setMaxFetchSize(0);
    appPropsVO.executeQuery();
    // You must create and insert a row in the VO before you can start
    // setting properties.
    Row row = appProposVO.createRow();
    appPropsVO.insertRow(row);
    // Set the primary key value for this single-row VO.
    row = (OARow)appPropsVO.first();
    row.setAttribute("RowKey", new Number(1));
    row.setAttribute("HideButton",Boolean.TRUE);
    // Initialize the application properties VO (and the UI) based on the
    // default PO approval value set on the underlying object.
    handlePoApproveChangeEvent();
    else
    // throw exception
    } // end initializePPRExamplePage()
    SPEL Parameter:
    ${oa.myVOName.HideButton}
    Hope this help, Please refer JDeveloper guide for Topic Dynamic User Interface.
    Regards,
    Reetesh Sharma

  • Uix hideshow tag use to hide a table on a page

    I eventually will have several tables on the same page. I want to be able to collapse and expand those tables as needed to show their contents or hide or the whole table on just one line.
    I try using the showhide tags and it will show or hide the table as specified in the disclosed attribute.
    When I click on the icon on the screen to show or hide the table I get a oracle.cabo.servlet.event.UnhandledEventException
    Below is a sample of the code I'm trying to make work.
    Thanks, Steve
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j"
                   xmlns:uix="http://xmlns.oracle.com/uix/ui"
    xmlns:myTemplate="http://www.example.org/demo/templates">
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="base.uit"/>
    </templates>
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="EroUserDatebooksBrowseAppModule"
    definition="smart.Smartbc4jModule"
    releaseMode="stateful">
    <bc4j:viewObjectDef name="EroUserDatebooksBrowse" rangeSize="5"/>
    <bc4j:viewObjectDef name="EroUserToDoListsBrowse" rangeSize="5"/>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <content> <!-- goes with the page tag above. -->
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <contents>
    <document>
    <metaContainer>
    <head title="SMART"/>
    </metaContainer>
    <contents> <!-- goes with document tag -->
    <myTemplate:smart_base selectedTab="0" linkText="SMART - Home"
    helpPage="Home.htm"
    data:studyText="Name@currentStudy@ctrl:httpSession"
    data:frameworkText="Framework_Name@currentStudy@ctrl:httpSession">
    <contents>
    <bc4j:rootAppModuleScope name="EroUserDatebooksBrowseAppModule">
    <contents>
    <borderLayout >
    <contents>
    <header text="Event Calendar">
    <contents>
    <form name="viewCalenderForm" method="POST">
    <contents>
                        <hideShow disclosed="true" id="hideEvents">
                        <contents>
    <bc4j:viewObjectScope name="EroUserDatebooksBrowse">
    <contents>
    <table name="viewDatebookTable" width="80%" alternateText="No rows found">
    </table>
    </contents>
    </bc4j:viewObjectScope>
                             </contents>
                             </hideShow>
    </contents>
    </form>
    </contents>
    </header>
    </contents>
    </borderLayout>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    <start>
    <sideNav>
    <contents>
    <link text="Sites" destination="Sites_View.uix"/>
    </contents>
    </sideNav>
    </start>
    </myTemplate:smart_base>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <event name="null">
    <bc4j:findRootAppModule name="EroUserDatebooksBrowseAppModule">
    <bc4j:findViewObject name="EroUserDatebooksBrowse">
    <bc4j:setPageProperty name="TableName" value="EroUserDatebooks"/>
    <method class="smart_package.FrmFilters" method="SetWhereUser"/>
    </bc4j:findViewObject>
    <bc4j:findViewObject name="EroUserToDoListsBrowse">
    <bc4j:setPageProperty name="TableName" value="EroUserToDoLists"/>
    <method class="smart_package.FrmFilters" method="SetWhereUser"/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    </handlers>
    </page>

    Jeanne,
    I'm not understanding something about your code snippet. I've tried to make it work a number of ways including typing it in exactly the way you entered it, just wrapping it around a simple <table> </table> pair.
    It seems to be a problem with the event handlers themselves, I think.
    I have tried setting up one event with the "hide show" parms as you showed. I also tried setting up two events, one with hide and one with show. No luck.
    Below is the code I am trying to run. Can you spot what is wrong?
    Also, I want the hidshow to be able to wrap a couple of headers and associated forms. Can I use the hideShowHeader for that or should I use hideShow?
    Thanks very much, Steve.
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j"
    xmlns:myTemplate="http://www.example.org/demo/templates">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <contents>
    <document>
    <contents>
    <hideShowHeader text="Other HideShow Header" formSubmitted="true" id="hideShow-2">
    <boundAttribute name="disclosed">
    <comparison type="equals">
    <defaulting>
    <dataObject select="hideShow-2" source="${uix.pageState}" />
    <fixed text="hide" />
    </defaulting>
    <fixed text="show" />
    </comparison>
    </boundAttribute>
    <contents>
    <header text="Event Calendar">
    <contents>
    <form name="viewCalenderForm" method="POST">
    <contents>
    <table name="viewDatebookTable" width="80%" alternateText="No rows found">
    </table>
    </contents>
    </form>
    </contents>
    </header>
    </contents>
    </hideShowHeader>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <event name="hide">
    <set property="${param.source}" target="${uix.pageState}" value="${param.event}" />
    </event>
    <event name="show">
    <set property="${param.source}" target="${uix.pageState}" value="${param.event}" />
    </event>
    </handlers>
    </page>

Maybe you are looking for

  • Federation Service with External Organization is not working

    Hi, Exchange 2010 is running in present environment and recently I have introduced Exchange 2013. There is federation Enabled at Exchange 2010 end with External Exchange organization. When we migrated users from E2k10 to E2k13 Free /Busy sync has sto

  • Regarding the printing the output as many no of times

    hi , the issue is, i need to print the report output as many number of times as i want based on the value of input parameter. how can i do it? we are using format type as xml so no layout model. can anybody plz give the solution. regards arun.b

  • Problem recording with L

    Whenever recording something the volume level is either too low to be heard or its insanely loud and distorted. This happens nearly every other time I record something. It seems as if the input volume changes without affecting any of the sliders on t

  • HDMI=1080P right?

    I have a 1080p TV and i have hooked up an HDMI to the Apple TV. Do i need to waste more money on renting movies in HD to get the full HD experience? or can i buy a regular movie and it will be full HD already since i have it set to 1080p and an HDMI

  • Adapters

    If you have an SAP system WAS 7.0 and an XI/PI system 7.0 then what scenarios you can you practise? With these systems is it possible to practise: File, XI, RFC and IDOC obviously yes But what about: JMS JDBC SOAP HTTP MAIL Is it possible to practise