How to create new row in Adf uix table
hi,
I am using Jdev 10.1.2 , Can any body tell me how to insert new row in table ?
Thanx
Hi,
try creating a createInsert action.
Regards,
Koen Verhulst
Similar Messages
-
How to create new Row in ADF Tree
I have create a ADF Tree from a VO in my page and I want to add new Row to the Tree before the Tree loads into the page.
can any one provide me the sample code to insert the new Row at runtime.
Thanks,
SwathiCreate a method in AMimpl that would create a new row for the VO and expose it to the thru client interface.
In the page Def for the page that has the tree, add the method action in the bindings section.
You can invoke this method using phase listener.
heck the code snippet below:
TestPage.jspx:
<?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:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view beforePhase="#{TestPageBean.phaseListener}">
<af:document title="TestPage.jspx" id="d1">
<af:form id="f1">
<af:panelHeader text="panelHeader 1" id="ph1">
<f:facet name="context"/>
<f:facet name="menuBar"/>
<f:facet name="toolbar">
</f:facet>
<f:facet name="legend"/>
<f:facet name="info"/>
</af:panelHeader>
</af:form>
</af:document>
</f:view>
</jsp:root>
TestPageBean.java:
package com.samples.view;
import javax.faces.event.PhaseEvent;
import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
import oracle.adf.view.rich.context.AdfFacesContext;
public class TestPageBean {
public TestPageBean() {
// METHOD THAT IS INVOKED WHEN THE PAGE IS LOADED
public void phaseListener(PhaseEvent phaseEvent) {
if (phaseEvent.getPhaseId().equals(phaseEvent.getPhaseId().RENDER_RESPONSE)) {
if (!AdfFacesContext.getCurrentInstance().isPostback()) {
// DO THE NECESSARY LOGIC TO invoke the method defined in the pageDef
}Thanks,
Navaneeth -
Creating a LINK in ADF UIX table
Dear sirs...
is it possible to create a link for each row in an adf uix table? the link selects the row and forwards to another page.
i have seen this in a JSP page, but uix????
best regardsDear sirs...
is it possible to create a link for each row in an adf uix table? the link selects the row and forwards to another page.
i have seen this in a JSP page, but uix????
best regards -
How to create multiple rows in a child table from the multi select Lov
Hi
We have Departments and EmployDept and Persons tables and each employee can associate multiple departments and vice versa.While creating a Department page there should be a Multi Select LOV(values from Persons table) with search option for the Persons.From the search panel we can select multiple persons for that department.Suppose we have selected 5 persons and click on submit, then it should create 5 rows in the EmployDept table for 5 persons with that department id.
Any inputs on how to implement this scenario please..Maybe you can get some ideas from here -
http://adfdeveloper.blogspot.com/2011/07/simple-implementation-of-af.html -
How to add new row to adf table progrmatically
Hi,
I have a bean with a list and correspoding getter & setter methods inside it.
I created a datacontrol out of the bean and I am displaying af:table in the ui
binded to this list.
Ex:
public class StudentBean {
private List<Student> students;
// getter & setter methods.
jsp
<af:table value="#{bindings.students.collectionModel}" var="row"
rows="#{bindings.students.rangeSize}"
emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.students.rangeSize}"
rowBandingInterval="0"/>
How to add a new row programitically to this adf table.
I dragged and dropped 'Create' from operations menu on to jsp.
But on click of that.no new row is being added to the current table.
On click of a button in u.i I want to add a new row to the table.
Thanks,
PraveenHi,
The source code is as below.
<af:table value="#{bindings.students.collectionModel}" var="row"
rows="#{bindings.students.rangeSize}"
emptyText="#{bindings.students.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.students.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.rscGroupsQuery.queryDescriptor}"
queryListener="#{bindings.rscGroupsQuery.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.rscGroups.collectionModel.selectedRow}"
selectionListener="#{bindings.rscGroups.collectionModel.makeCurrent}"
rowSelection="single" id="t1"/>
<af:commandButton actionListener="#{bindings.Create.execute}"
text="Create" disabled="#{!bindings.Create.enabled}"
id="cb1" partialTriggers="t1"/>
Please let me know where am I doing wrong?
On click of this button,it is not adding a row dynamically.
Thanks,
Praveen -
How to ADD new Row In ADF Table?
Hello!
I need to insert a row in table when clicking on the "New", can someone help me? Citing some examples? I'm lost.
My table is called tableArchive, and I need to add a line on it.
This table is a list called listArchive, which is associated to this table.On the button drag drop createInsert operation from DataContol .
go to data control->open your table VO-> open operatin inside that.-> drag drop the createInsert.Put id of button into partial trigger of table.make button autosubmit to true.
see this
Creating a New Row Using an ADF Iterator Binding
Unwinding ADF: How to add a new row at the end of the ADF Table -
How to create new rows in a JTable dynamically?
I want to add new rows to a JTable dynamically based on my resultset from the database .
How to do ?
Please help me
Thanks in advanceThank u for ur reply .But still i need to clarify something.
I've used the below code to create a basic table within my frame.
Object[][] data = { {"dilipp", "r", "early", "10","20"}};
String[] columnNames = {"First Name", "Last Name", "payment", "from", "to"};
table = new JTable(data, columnNames);
after this i connect to database and query .The values returned are to be populated in the table created above through say a button "Next" month.
now my button event goes like this :
public void actionPerformed(ActionEvent e)
if (e.getActionCommand().equals("next"))
here i need to add a new row for the values
How to add here ?
please tell me -
How to create colored rows in an avl table?
I am looking for a possibility, how to color a row if the attribute "KEY" of my context has the value 'GOAL'.
I did following:
1. creating a attribute CELL_DESIGN type WDUI_TABLE_CELL_DESING in my context.
then i wrote following coding:
DATA lo_nd_table TYPE REF TO if_wd_context_node.
DATA lo_el_table TYPE REF TO if_wd_context_element.
DATA lt_table TYPE wd_this->elements_search_data.
DATA ls_table TYPE wd_this->element_search_data.
lo_nd_table = wd_context->get_child_node( name = wd_this->wdctx_search_data ).
*get element via lead selection
lo_el_table = lo_nd_table->get_element( ).
lo_nd_table->get_static_attributes_table(
IMPORTING
table = lt_table ).
loop at lt_table into ls_table.
if ls_table-NAME1 = 'GOAL2'.
lo_el_table->set_attribute(
name = `CELL_DESIGN`
value = 'negative' ).
elseif ls_table-name1 = 'GOAL'.
lo_el_table->set_attribute(
name = `CELL_DESIGN`
value = 'positive' ).
endif.
endloop.Hello,
See this: set color alv output cell abap webdynpro
Regards. -
How to create New columns for the Internal Table Dynamically?
HI Guys,
In my logic i have to create new columns depending on the logic which i am executing.
My requirement is .I have to display o/p like this
Material || Year || Period || Mix ratio || Vendor ||Mix Ratio || Vendor || Mix Ratio Vendor || Mix ratio || Vendor || Mix ratio.............................from table's CKMLMV003 and CKMLMV001.Her i have to display the o/p in the above format and i have to display Vendor and Mix Ratio for 5 columns irrespective of data .If i have more than 5 columns for any record then i have to create a New columns dynamically for Vendor and Mix ratio.If anybody want my code i can Submit But plz tell with example how to do?
<b>The O/P must be finally shown in ALV Grid</b>
Thanks,
GopiYou must create the entire internal table dynamically, you can not add columns to a statically define internal table. Here is an example of creating a dynamic internal table.
Creation of internal table dynamically based on the Date Range entered
Regards,
Rich Heilman -
Unable to create new rows in master detail
Hi, I am new to ADF
I am using Jdeveloper 11.1.1.6, I have two tables customer and contacts, customerId is a foriegnKey in contacts. when customer is deleted all the contacts need to be deleted.
I have created an association (1 to * customer to contacts) between customerEO & contactsEO (checked Composite association, implement cascade delete option), and a view link (1 to * customerVO to contactsVO).
I am testing the viewlink through AM, not using JSF
when i am trying to create new row in details(contacts) table, the customer id is populating in details table.
when i am trying to commit to database (Details table) i am getting the following error
java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (CONTACT_CUSTOMERID_FK) violated - parent key not found
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3904)
at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:9417)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1512)
at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:429)
at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8575)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)
at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6893)
at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)
at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)
at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)
at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)
at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)
at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1417)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1437)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2150)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:740)
at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (CONTACT_CUSTOMERID_FK) violated - parent key not found
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:213)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1111)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1488)
Can you please help me how to solve this issue
Thanks & Regards
Ani
Edited by: 987691 on Feb 12, 2013 2:50 PM
Edited by: 987691 on Feb 12, 2013 2:54 PMHere is My CustomerEO.xml file_
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
<!---->
<Entity
xmlns="http://xmlns.oracle.com/bc4j"
Name="CustomerEO"
Version="11.1.1.61.92"
InheritPersonalization="true"
DBObjectType="table"
DBObjectName="XX_CUSTOMER"
AliasName="CustomerEO"
BindingStyle="OracleName"
UseGlueCode="false"
xmlns:validation="http://xmlns.oracle.com/adfm/validation"
RowClass="customer.model.CustomerEOImpl">
<DesignTime>
<AttrArray Name="_publishEvents"/>
<Attr Name="_codeGenFlag2" Value="Init|Access"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<Attribute
Name="Customerid"
ColumnName="CUSTOMERID"
SQLType="NUMERIC"
Type="oracle.jbo.domain.DBSequence"
ColumnType="NUMBER"
TableName="XX_CUSTOMER"
PrimaryKey="true"
IsUpdateable="while_insert"
DefaultValue="@0"
Domain="oracle.jbo.domain.DBSequence"
RetrievedOnInsert="true">
<DesignTime>
<Attr Name="_DisplaySize" Value="22"/>
</DesignTime>
</Attribute>
<Attribute
Name="Firstname"
IsNotNull="true"
Precision="50"
ColumnName="FIRSTNAME"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Firstname_Rule_0"
ResId="customer.model.CustomerEO.Firstname_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="Firstname_Rule_1"
ResId="customer.model.CustomerEO.Firstname_Rule_1"
ValName="Precision : (50)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Firstname_Rule_2"
OnAttribute="Firstname"
Pattern="^[a-zA-Z(\s)]*$"
Inverse="false"
ResId="customer.model.CustomerEO.Firstname_Rule_2"/>
</Attribute>
<Attribute
Name="Middlename"
Precision="10"
ColumnName="MIDDLENAME"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="10"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Middlename_Rule_0"
ResId="customer.model.CustomerEO.Middlename_Rule_0"
ValName="Precision : (10)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Middlename_Rule_1"
ResId="customer.model.CustomerEO.Middlename_Rule_1"
OnAttribute="Middlename"
Pattern="^[a-zA-Z(\s)]*$"
Inverse="false"/>
</Attribute>
<Attribute
Name="Lastname"
IsNotNull="true"
Precision="50"
ColumnName="LASTNAME"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Lastname_Rule_0"
ResId="customer.model.CustomerEO.Lastname_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="Lastname_Rule_1"
ResId="customer.model.CustomerEO.Lastname_Rule_1"
ValName="Precision : (50)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Lastname_Rule_2"
ResId="customer.model.CustomerEO.Lastname_Rule_2"
OnAttribute="Lastname"
Pattern="^[a-zA-Z(\s)]*$"
Inverse="false"/>
</Attribute>
<Attribute
Name="Dob"
IsNotNull="true"
ColumnName="DOB"
SQLType="TIMESTAMP"
Type="oracle.jbo.domain.Date"
ColumnType="DATE"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="7"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Dob_Rule_1"
ResId="customer.model.CustomerEO.Dob_Rule_1"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:MethodValidationBean
Name="Dob_Rule_0"
ResId="customer.model.CustomerEO.Dob_Rule_2"
MethodName="validateDob"/>
</Attribute>
<Attribute
Name="Address1"
IsNotNull="true"
Precision="100"
ColumnName="ADDRESS1"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Address1_Rule_0"
ResId="customer.model.CustomerEO.Address1_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="Address1_Rule_1"
ResId="customer.model.CustomerEO.Address1_Rule_1"
ValName="Precision : (100)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Address1_Rule_2"
ResId="customer.model.CustomerEO.Address1_Rule_2"
OnAttribute="Address1"
Pattern="^[a-z0-9A-Z(\s)]*$"
Inverse="false"/>
</Attribute>
<Attribute
Name="Address2"
Precision="100"
ColumnName="ADDRESS2"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Address2_Rule_0"
ResId="customer.model.CustomerEO.Address2_Rule_0"
ValName="Precision : (100)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Address2_Rule_1"
ResId="customer.model.CustomerEO.Address2_Rule_1"
OnAttribute="Address2"
Pattern="^[a-z0-9A-Z(\s)]*$"
Inverse="false"/>
</Attribute>
<Attribute
Name="City"
IsNotNull="true"
Precision="30"
ColumnName="CITY"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="30"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="City_Rule_0"
ResId="customer.model.CustomerEO.City_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="City_Rule_1"
ResId="customer.model.CustomerEO.City_Rule_1"
ValName="Precision : (30)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="City_Rule_2"
ResId="customer.model.CustomerEO.City_Rule_2"
OnAttribute="City"
Pattern="^[a-zA-Z(\s)]*$"
Inverse="false"/>
</Attribute>
<Attribute
Name="Country"
IsNotNull="true"
Precision="30"
ColumnName="COUNTRY"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="30"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Country_Rule_0"
ResId="customer.model.CustomerEO.Country_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="Country_Rule_1"
ResId="customer.model.CustomerEO.Country_Rule_1"
ValName="Precision : (30)"
Subtype="PRECISION_SCALE"/>
</Attribute>
<Attribute
Name="State"
IsNotNull="true"
Precision="30"
ColumnName="STATE"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="30"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="State_Rule_0"
ResId="customer.model.CustomerEO.State_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="State_Rule_1"
ResId="customer.model.CustomerEO.State_Rule_1"
ValName="Precision : (30)"
Subtype="PRECISION_SCALE"/>
</Attribute>
<Attribute
Name="Gender"
IsNotNull="true"
Precision="5"
ColumnName="GENDER"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="5"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Gender_Rule_0"
ResId="customer.model.CustomerEO.Gender_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="Gender_Rule_1"
ResId="customer.model.CustomerEO.Gender_Rule_1"
ValName="Precision : (5)"
Subtype="PRECISION_SCALE"/>
</Attribute>
<Attribute
Name="Primaryphone"
IsNotNull="true"
Precision="12"
ColumnName="PRIMARYPHONE"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER"
DefaultValue="###-###-####">
<DesignTime>
<Attr Name="_DisplaySize" Value="12"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Primaryphone_Rule_0"
ResId="customer.model.CustomerEO.Primaryphone_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="Primaryphone_Rule_1"
ResId="customer.model.CustomerEO.Primaryphone_Rule_1"
ValName="Precision : (12)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Primaryphone_Rule_2"
ResId="customer.model.CustomerEO.Primaryphone_Rule_2"
OnAttribute="Primaryphone"
Pattern="[0-9]{3}-?[0-9]{3}-?[0-9]{4}"
Inverse="false"/>
</Attribute>
<Attribute
Name="Secondaryphone"
Precision="12"
ColumnName="SECONDARYPHONE"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER"
DefaultValue="###-###-####">
<DesignTime>
<Attr Name="_DisplaySize" Value="12"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Secondaryphone_Rule_0"
ResId="customer.model.CustomerEO.Secondaryphone_Rule_0"
ValName="Precision : (12)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Secondaryphone_Rule_1"
ResId="customer.model.CustomerEO.Secondaryphone_Rule_1"
OnAttribute="Secondaryphone"
Pattern="[0-9]{3}-?[0-9]{3}-?[0-9]{4}"
Inverse="false"/>
</Attribute>
<Attribute
Name="Email"
IsNotNull="true"
Precision="100"
ColumnName="EMAIL"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Email_Rule_0"
ResId="customer.model.CustomerEO.Email_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="Email_Rule_1"
ResId="customer.model.CustomerEO.Email_Rule_1"
ValName="Precision : (100)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Email_Rule_2"
ResId="customer.model.CustomerEO.Email_Rule_2"
OnAttribute="Email"
Pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}"
Inverse="false"/>
</Attribute>
<Attribute
Name="Fax"
Precision="12"
ColumnName="FAX"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER"
DefaultValue="###-###-####">
<DesignTime>
<Attr Name="_DisplaySize" Value="12"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Fax_Rule_0"
ResId="customer.model.CustomerEO.Fax_Rule_0"
ValName="Precision : (12)"
Subtype="PRECISION_SCALE"/>
<validation:RegExpValidationBean
Name="Fax_Rule_1"
ResId="customer.model.CustomerEO.Fax_Rule_1"
OnAttribute="Fax"
Pattern="[0-9]{3}-?[0-9]{3}-?[0-9]{4}"
Inverse="false"/>
</Attribute>
<Attribute
Name="Languages"
IsNotNull="true"
Precision="50"
ColumnName="LANGUAGES"
SQLType="VARCHAR"
Type="java.lang.String"
ColumnType="VARCHAR2"
TableName="XX_CUSTOMER">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
<validation:PreDefinedValidationBean
Name="Languages_Rule_0"
ResId="customer.model.CustomerEO.Languages_Rule_0"
ValName="Mandatory"
Subtype="MANDATORY"/>
<validation:PreDefinedValidationBean
Name="Languages_Rule_1"
ResId="customer.model.CustomerEO.Languages_Rule_1"
ValName="Precision : (50)"
Subtype="PRECISION_SCALE"/>
</Attribute>
<AccessorAttribute
Name="ContactsEO"
Association="customer.model.CustomerEOtoContactsEO"
AssociationEnd="customer.model.CustomerEOtoContactsEO.ContactsEO"
AssociationOtherEnd="customer.model.CustomerEOtoContactsEO.CustomerEO"
Type="oracle.jbo.RowIterator"
IsUpdateable="false"/>
<Key
Name="SysC007004">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007004"/>
<Attr Name="_checkCondition" Value='"CUSTOMERID" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes"/>
</Key>
<Key
Name="SysC007005">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007005"/>
<Attr Name="_checkCondition" Value='"FIRSTNAME" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Firstname"/>
</AttrArray>
</Key>
<Key
Name="SysC007006">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007006"/>
<Attr Name="_checkCondition" Value='"LASTNAME" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Lastname"/>
</AttrArray>
</Key>
<Key
Name="SysC007007">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007007"/>
<Attr Name="_checkCondition" Value='"DOB" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Dob"/>
</AttrArray>
</Key>
<Key
Name="SysC007008">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007008"/>
<Attr Name="_checkCondition" Value='"ADDRESS1" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Address1"/>
</AttrArray>
</Key>
<Key
Name="SysC007009">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007009"/>
<Attr Name="_checkCondition" Value='"CITY" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.City"/>
</AttrArray>
</Key>
<Key
Name="SysC007010">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007010"/>
<Attr Name="_checkCondition" Value='"STATE" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.State"/>
</AttrArray>
</Key>
<Key
Name="SysC007011">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007011"/>
<Attr Name="_checkCondition" Value='"COUNTRY" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Country"/>
</AttrArray>
</Key>
<Key
Name="SysC007012">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007012"/>
<Attr Name="_checkCondition" Value='"GENDER" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Gender"/>
</AttrArray>
</Key>
<Key
Name="SysC007013">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007013"/>
<Attr Name="_checkCondition" Value='"PRIMARYPHONE" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Primaryphone"/>
</AttrArray>
</Key>
<Key
Name="SysC007014">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007014"/>
<Attr Name="_checkCondition" Value='"EMAIL" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Email"/>
</AttrArray>
</Key>
<Key
Name="SysC007015">
<DesignTime>
<Attr Name="_DBObjectName" Value="SYS_C007015"/>
<Attr Name="_checkCondition" Value='"LANGUAGES" IS NOT NULL'/>
<Attr Name="_isCheck" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Languages"/>
</AttrArray>
</Key>
<Key
Name="XxCustomerdetailsPk"
PrimaryKey="true">
<DesignTime>
<Attr Name="_DBObjectName" Value="XX_CUSTOMERDETAILS_PK"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="customer.model.CustomerEO.Customerid"/>
</AttrArray>
</Key>
<ResourceBundle>
<PropertiesBundle
PropertiesFile="customer.model.CustomerModelBundle"/>
</ResourceBundle>
</Entity> -
Create new CBO statistics for the tables
Dear All,
I am facing bad performance in server.In SM50 I see that the read and delete process at table D010LINC takes
a longer time.how to create new CBO statistics for the tables D010TAB and D010INC. Please suggest.
Regards,
KumarHi,
I am facing problem in when save/activating any problem ,so sap has told me to create new CBO statistics for the tables D010TAB and D010INC
Now as you have suggest when tx db20
Table D010LINC
there error comes Table D010LINC does not exist in the ABAP Dictionary
Table D010TAB
Statistics are current (|Changes| < 50 %)
New Method C
New Sample Size
Old Method C Date 10.03.2010
Old Sample Size Time 07:39:37
Old Number 51,104,357 Deviation Old -> New 0 %
New Number 51,168,679 Deviation New -> Old 0 %
Inserted Rows 160,770 Percentage Too Old 0 %
Changed Rows 0 Percentage Too Old 0 %
Deleted Rows 96,448 Percentage Too New 0 %
Use O
Active Flag P
Analysis Method C
Sample Size
Please suggest
Regards,
Kumar -
How to create new or delete the existing row in the grid....
hi my friends...
i am developing report using Reuse_alv_grid_display...
my requirement is... At runtime
1. i may create new row on the grid (empty row inwhich i may enter the data).
2. i may delete a existing row in the grid
3. i may edit the existing data...
then i have to trace the modification in the grid in one internal table...
how can i get into this.....
note:
i have some idea to edit the existing record in the grid and trace those modification,
but i don't know abt how to create new or delete the existing row....
can you give me some idea...Hi deva,
write a class which implemets these methods
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
To handle the toolbar on alv
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive,
To handle the buttons on the alv grid
handle_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
endclass.
Now Implement these methods.
CLASS lcl_event_receiver IMPLEMENTATION.
To handle the toolbar on alv
METHOD handle_toolbar.
DATA ls_toolbar TYPE stb_button.
CLEAR gs_toolbar.
MOVE 3 TO gs_toolbar-butn_type.
APPEND gs_toolbar TO e_object->mt_toolbar.
CLEAR gs_toolbar.
PERFORM icon_create USING 'ICON_INSERT_ROW' gs_toolbar-icon.
MOVE text-010 TO gs_toolbar-function.
MOVE text-012 TO gs_toolbar-quickinfo.
MOVE ' ' TO gs_toolbar-disabled.
APPEND gs_toolbar TO e_object->mt_toolbar.
CLEAR gs_toolbar.
PERFORM icon_create USING 'ICON_DELETE_ROW' gs_toolbar-icon.
MOVE text-011 TO gs_toolbar-function.
MOVE text-013 TO gs_toolbar-quickinfo.
MOVE ' ' TO gs_toolbar-disabled.
APPEND gs_toolbar TO e_object->mt_toolbar.
ENDMETHOD.
METHOD handle_user_command.
In this form, check the function code(e_ucomm has the function code), based on that do the required action.
as i said yesterday(i.e for appending a row, deleting a row, modifying a row)
PERFORM user_command USING e_ucomm.
ENDMETHOD
endclass.
Before calling the alv method, create a object of this class.
DATA :
gref_event_receiver TYPE REF TO lcl_event_receiver,
gv_tables_alv TYPE REF TO cl_gui_alv_grid.
CREATE OBJECT gref_event_receiver.
SET HANDLER gref_event_receiver->handle_user_command
FOR gv_tables_alv.
SET HANDLER gref_event_receiver->handle_toolbar
FOR gv_tables_alv.
check this program for event handling, it is the similar way
demo_abap_objects_events
Hope u understood this.
Regards,
Prasant
reward if helpful -
How to create new OC4J instance in AS 10.1.3 with BC4J- and ADF-Libraries
Hi
I have done all the steps mentioned in this thread:
How to create new OC4J instance in AS 10.1.3
However, the new created OC4J instance obviously misses some libraries. If I deploy my Application to this OC4J I get an internal error: Class not found: oracle.jbo.JboException.
The same Application runs well in the "home" Instance.
What is the trick, to create a new OC4J instance, which more or less behaves the same way as the "home" instances (and especially has all the same libraries)?
Thanks for your help
Frank BrandstetterI encountered this last month. I definitely agree that it is a glaring omission to not have "Create Like" functionality when instantiating new containers. Here's my notes on the manual steps required after using createinstance to create the fresh container. Not too bad. I've been deploying ADF applications to the new container with no problems after this.
==============
The default (home) OC4J container is pre-configured for ADF 10.1.3 applications; however, when $ORACLE_HOME/bin/createinstance is used to create additional containers, these containers are not configured automatically to host ADF 10.1.3 applications.
I followed these manual steps:
1. $ORACLE_HOME/j2ee/home/config/server.xml defines three shared libraries that "install" the needed JARs for Oracle ADF applications in your application server instance (container). Note that "install" does not necessarily mean available to applications (see Step 2). Copy the three shared library element definitions to the <application-server> element of your new container (in server.xml).
<shared-library name="oracle.expression-evaluator" version="10.1.3" library-compatible="true">
<code-source path="/usr2/oracle/as10130/jlib/commons-el.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/oracle-el.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/jsp-el-api.jar"/>
</shared-library>
<shared-library name="adf.oracle.domain" version="10.1.3" library-compatible="true">
<code-source path="/usr2/oracle/as10130/BC4J/lib"/>
<code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
<code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
<code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
<code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
<code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
<code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
<import-shared-library name="oracle.xml"/>
<import-shared-library name="oracle.jdbc"/>
<import-shared-library name="oracle.cache"/>
<import-shared-library name="oracle.dms"/>
<import-shared-library name="oracle.sqlj"/>
<import-shared-library name="oracle.toplink"/>
<import-shared-library name="oracle.ws.core"/>
<import-shared-library name="oracle.ws.client"/>
<import-shared-library name="oracle.xml.security"/>
<import-shared-library name="oracle.ws.security"/>
<import-shared-library name="oracle.ws.reliability"/>
<import-shared-library name="oracle.jwsdl"/>
<import-shared-library name="oracle.http.client"/>
<import-shared-library name="oracle.expression-evaluator"/>
</shared-library>
<shared-library name="adf.generic.domain" version="10.1.3" library-compatible="true">
<code-source path="/usr2/oracle/as10130/BC4J/jlib/bc4jdomgnrc.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/lib"/>
<code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
<code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
<code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
<code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
<code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
<code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
<code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
<code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
<import-shared-library name="oracle.xml"/>
<import-shared-library name="oracle.jdbc"/>
<import-shared-library name="oracle.cache"/>
<import-shared-library name="oracle.dms"/>
<import-shared-library name="oracle.sqlj"/>
<import-shared-library name="oracle.toplink"/>
<import-shared-library name="oracle.ws.core"/>
<import-shared-library name="oracle.ws.client"/>
<import-shared-library name="oracle.xml.security"/>
<import-shared-library name="oracle.ws.security"/>
<import-shared-library name="oracle.ws.reliability"/>
<import-shared-library name="oracle.jwsdl"/>
<import-shared-library name="oracle.http.client"/>
<import-shared-library name="oracle.expression-evaluator"/>
</shared-library>
2. To make the necessary ADF and JSF support libraries available to your deployed ADF application, the default application (that your ADF application and the majority of applications should inherit from) should explicitly import the shared library in the <orion-application> element of $ORACLE_HOME/j2ee/<your container>/config/application.xml.
<imported-shared-libraries>
<import-shared-library name="adf.oracle.domain"/>
</imported-shared-libraries>
Note: the adf.oracle.domain shared library imports several other shared libraries including oracle.expression-evaluator. -
ADF mobile : How to insert new rows in shopping cart application
Hi All,
I'm developing a shopping cart sample application.
The first page shows 3 rows(with item and quantity columns) and "Add Row" & "save to shopping cart " buttons . On clicking add row button i want to add 4th row to the table and on clicking "save" button all the items should add to cart.
Can somebody tell me how to add dynamic rows in adf mobile and access the data in DC to save the data.
Thanks,
Prashanth.Are you talking about working with the local SQLite database on the device or with a remote database on the server?
For local DB - check out the HR ADF Mobile sample.
http://www.oracle.com/technetwork/developer-tools/adf/adf-mobile-samples-1865088.html -
How to create a Datagrid in ADF ?
Hi,
I have to create a datagrid having only one empty row with 3 columns.when I fill that row ,a new row will generate dynamically.After finishing my work ,I need to insert these records in to database.Please advice some ideas.
Edited by: user5605031 on Mar 19, 2009 11:08 PM
Edited by: user5605031 on Mar 20, 2009 4:06 AM
Edited by: Yank on Mar 26, 2009 1:40 AMThe DataLayer is ADF BC . I Started with creating 3 RichSelectOneChoice in a managed bean when a button is pressed and PPR to place it on the page. Then I manually created
a single row from row iterator of the view object .
Re: How to create multiple new rows in ADF Table? similar to above link.
But I don't know how to set attribute of View Row to the created RichSelectOneChoice and also . . how to populate the LOV on it.
Edited by: user13566043 on Oct 11, 2011 10:15 PM
Maybe you are looking for
-
BDC for ME01 to delete vendors in the source list
Hi ABAP'ers, I am trying to write a BDC program to delete a particular vendor from ME01 TCODE. My program runs well till deletion after i delete a record it is showing a pop up to confirm and on clicking yes the vendor is deleted
-
I would like some Help please!
Hey everyone. I bought a new Ipod 30Gb Black Video yesterday which i recieved at about 11am. I turned it on and it got stalled on hold. I couldnt turn the ipod off or nothing at around 3 the Ipod was dead so I installed all the programs and plugged i
-
Updating and restoring from Ver 4.3.3 to Ver 7
My ipad needed updating from Ver 4.3.3. So I backed up my ipad and then updated from iTunes to the latest ver 7. Everything seemd to be going ok and it appeared tht the Ipad had been updated and files were restored. However, the iPad said to conn
-
Hi In may clients organisation i have created different Bank key for Vendors for eg:salary for SBI vendor 1,ICICI Vendor 2 etc I have created new vendor in the month of Feb 2010 for IDBI and Andhra bank.These accounts were opened by employees in the
-
Can't configure WTC domai with ant
Greetings, Have the following ant build file sequence: <java classname="weblogic.Admin"> <arg line="${mbeanargs} SET -mbean cofaceDomain:Name=WtcService,Type=WTCServer -property Targets cofaceDomain:Name=cofaceServer,Type=Server"/> </java> It raises