Urgent: how to traverse through records using ADF ReadOnly Form
Hi Guru's,
I am new to ADF.
I am having an requirement where i need to show the records in "ADF Read Only Form" where my query fetch more than one record, now i want to traverse through all the record as we do in ADF Table. How can i achieve this using ADF Readonly Form.
Please suggest me on urgent basis.
Thanks
SPC
Hi,
What is your JDev version? Did you try setting the rowSelection property of the table?
Ex :
<af:table value="#{bindings.EmpView1.collectionModel}" var="row" rows="#{bindings.EmpView1.rangeSize}"
emptyText="#{bindings.EmpView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.EmpView1.rangeSize}" rowBandingInterval="0"
selectedRowKeys="#{bindings.EmpView1.collectionModel.selectedRow}"
selectionListener="#{bindings.EmpView1.collectionModel.makeCurrent}" rowSelection="single"
id="t1">-Arun
Similar Messages
-
How to create multiple records using ADF
Currently working on my first ADF BC and UIX project, and I basically want to create multiple records after a user makes a choice on the screen. I would like to know at what layer should this functionality be implemented?
Would this be more at the Struts/Controller level, where I have a java class to perform the creation as part of a data action? I ask because, I am not sure if this is feasible at the ADF BC level (View objects and Entity Objects) via some sort of customization, and i am new to the different possibilies avail as part of the ADF framework
Regards
Anora
(Jdeveloper 10.1.2.1 build 1913, Oracle DB 10.1.2)I'd put it into the application module. You then can call the method from the controller layer or from an other application module. This way you put it into the business logic, which helps if you ever decide to use a different client approach (like swing).
-
How can i inserts record using procedure in adf
how can i insert record using procedure
hi i have the following i what to insert record using store procedure, i try this
am in JDeveloper Studio 11.1.2.1.0
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="SmsPartyAddressView"
Version="11.1.2.60.81"
BindingStyle="OracleName"
CustomQuery="true"
PageIterMode="Full"
UseGlueCode="false"
RowClass="sms1100.SmsPartyAddressViewRowImpl"
ComponentClass="sms1100.SmsPartyAddressViewImpl"
DefClass="sms1100.SmsPartyAddressViewDefImpl"
RowInterface="sms1100.common.SmsPartyAddressViewRow"
ClientRowProxyName="sms1100.client.SmsPartyAddressViewRowClient">
<DesignTime>
<Attr Name="_isExpertMode" Value="true"/>
<Attr Name="_codeGenFlag2" Value="Access|Def|Coll|Prog|VarAccess"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="sms1100.SmsPartyAddressView_LABEL"/>
</SchemaBasedProperties>
</Properties>
<ViewAccessor
Name="Sub_lov1"
ViewObjectName="sms1100.Sub_lov"
RowLevelBinds="true"/>
<ListBinding
Name="LOV_Town"
ListVOName="Sub_lov1"
ListRangeSize="-1"
ComboRowCountHint="10"
NullValueFlag="none"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Town"/>
</AttrArray>
<AttrArray Name="DerivedAttrNames">
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="TowId"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Town"/>
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="Id"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="Town"/>
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="DsdRegion"/>
<Item Value="ServiceDeliveryArea"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<SQLQuery><![CDATA[SELECT
SmsPartyAddress.ADDRESS_LINE1,
SmsPartyAddress.ID,
SmsPartyAddress.ADDRESS_LINE2,
SmsPartyAddress.ADDRESS_LINE3,
SmsPartyAddress.ADDRESS_LINE4,
SmsPartyAddress.ADDRESS_TYPE_IND,
SmsPartyAddress.PAR_ID,
SmsPartyAddress.PROP_ID,
SmsPartyAddress.START_DT,
SmsProperties.ERF_NO,
SmsProperties.ADDRESS_LINE,
SmsProperties.ZONE,
SmsProperties.GPS_LONGITUDE,
SmsProperties.GPS_LATITUDE,
SmsProperties.TOW_ID,
SmsProperties.WAR_ID,
DECODE(TOW1.TOWN,NULL,TOW.TOWN,TOW1.TOWN)TOWN ,
TOW.TOWN SUBURB,
POSTAL_CODE
FROM SMS_PARTY_ADDRESS SmsPartyAddress,
SMS_PROPERTIES SmsProperties,
SMS_TOWNS TOW
,SMS_TOWNS TOW1
,SMS_POSTAL_CODES PCOD
WHERE TOW.PCOD_ID = PCOD.ID
AND TOW.TOW_ID = TOW1.ID (+)
--and TOW1.ID = SMSPROPERTIES.TOW_ID(+)
and TOW.ID = SMSPROPERTIES.TOW_ID
and SMSPARTYADDRESS.PROP_ID = SMSPROPERTIES.ID
CONNECT BY PRIOR TOW.TOW_ID = TOW.ID]]></SQLQuery>
<EntityUsage
Name="SmsPartyAddress"
Entity="sms1100.SmsPartyAddress"/>
<ViewAttribute
Name="AddressLine1"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE1"
Expression="ADDRESS_LINE1"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Id"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="ID"
Expression="ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="AddressLine2"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE2"
Expression="ADDRESS_LINE2"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine3"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE3"
Expression="ADDRESS_LINE3"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine4"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE4"
Expression="ADDRESS_LINE4"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressTypeInd"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="ADDRESS_TYPE_IND"
Expression="ADDRESS_TYPE_IND"
SQLType="NUMERIC"/>
<ViewAttribute
Name="ParId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="PAR_ID"
Expression="PAR_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="PropId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="PROP_ID"
Expression="PROP_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="StartDt"
IsPersistent="false"
PrecisionRule="true"
Type="java.sql.Timestamp"
ColumnType="DATE"
AliasName="START_DT"
Expression="START_DT"
SQLType="DATE"/>
<ViewAttribute
Name="ErfNo"
IsPersistent="false"
PrecisionRule="true"
Precision="80"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ERF_NO"
Expression="ERF_NO"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="80"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine"
IsPersistent="false"
PrecisionRule="true"
Precision="120"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE"
Expression="ADDRESS_LINE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="120"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Zone"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ZONE"
Expression="ZONE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="GpsLongitude"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="40"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="GPS_LONGITUDE"
Expression="GPS_LONGITUDE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="40"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="GpsLatitude"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="40"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="GPS_LATITUDE"
Expression="GPS_LATITUDE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="40"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="TowId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="java.math.BigInteger"
ColumnType="NUMBER"
AliasName="TOW_ID"
Expression="TOW_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="WarId"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Type="java.lang.Integer"
ColumnType="NUMBER"
AliasName="WAR_ID"
Expression="WAR_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="Town"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="TOWN"
Expression="TOWN"
SQLType="VARCHAR"
LOVName="LOV_Town">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="combo_lov"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Suburb"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="SUBURB"
Expression="SUBURB"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="PostalCode"
IsPersistent="false"
PrecisionRule="true"
Precision="4"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="POSTAL_CODE"
Expression="POSTAL_CODE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="4"/>
</DesignTime>
</ViewAttribute>
<ResourceBundle>
<PropertiesBundle
PropertiesFile="SmsFrontService.SmsFrontServiceBundle"/>
</ResourceBundle>
</ViewObject>my calling method is
public class SmsPartyAddressViewRowImpl extends ViewRowImpl implements SmsPartyAddressViewRow {
protected void callNewProperty(String stmt, Object[] bindVars) {
PreparedStatement st;
st = null;
try {
// 1. Create a JDBC PreparedStatement for
st = getDBTransaction().createPreparedStatement("begin " + stmt + ";end;", 0);
if (bindVars != null) {
// 2. Loop over values for the bind variables passed in, if any
for (int z = 0; z < bindVars.length; z++) {
// 3. Set the value of each bind variable in the statement
st.setObject(z + 1, bindVars[z]);
// 4. Execute the statement
st.executeUpdate();
} catch (SQLException e) {
throw new JboException(e);
} finally {
if (st != null) {
try {
// 5. Close the statement
st.close();
} catch (SQLException e) {
protected void callInsertProcedure(TransactionEvent e) {
// String Addressline = null;
String Zone = "UNDERF";
Date StartDt = null;
// EntityDefImpl SmsPropertiesDef = SmsPropertiesImpl.getDefinitionObject();
// SmsPropertiesImpl newSmsProperties = (SmsPropertiesImpl)SmsPropertiesDef.createInstance2(getDBTransaction(), null);
callNewProperty("Sms_Location.newProp(?,?,?,?,?,?,?,?,?,?,?,?)",
new Object[] { getParId(), getAddressTypeInd(), getAddressLine1(),
getAddressLine2(), getAddressLine3(), getAddressLine4(),getAddressLine(),getSuburb(),getTown(),getPostalCode(),getTowId(),Zone,StartDt });
Edited by: ADF007 on 2012/08/13 6:59 PMthat solution was based on the hr schema now am inserting using my schema
inserting record in a view using procedure
hi i have the folowing view, i what to insert record using procedure,this is what i what ,i what to insert record using the view but pass those view variable to procedure. my view is
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
<!---->
<ViewObject
xmlns="http://xmlns.oracle.com/bc4j"
Name="smsproppartyview"
Version="11.1.2.60.81"
BindingStyle="OracleName"
CustomQuery="true"
PageIterMode="Full"
UseGlueCode="false"
RowClass="sms1100.smsproppartyviewRowImpl"
ComponentClass="sms1100.smsproppartyviewImpl"
RowInterface="sms1100.common.smsproppartyviewRow"
ClientRowProxyName="sms1100.client.smsproppartyviewRowClient">
<DesignTime>
<Attr Name="_isExpertMode" Value="true"/>
<Attr Name="_codeGenFlag2" Value="Access|Coll|Prog|VarAccess"/>
<Attr Name="_isCodegen" Value="true"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="sms1100.smsproppartyview_LABEL"/>
</SchemaBasedProperties>
</Properties>
<ViewAccessor
Name="Sub_lov1"
ViewObjectName="sms1100.Sub_lov"
RowLevelBinds="true"/>
<ListBinding
Name="LOV_Town"
ListVOName="Sub_lov1"
ListRangeSize="-1"
ComboRowCountHint="10"
NullValueFlag="none"
MRUCount="0">
<AttrArray Name="AttrNames">
<Item Value="Town"/>
</AttrArray>
<AttrArray Name="DerivedAttrNames">
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="TowId"/>
</AttrArray>
<AttrArray Name="ListAttrNames">
<Item Value="Town"/>
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="Id"/>
</AttrArray>
<AttrArray Name="ListDisplayAttrNames">
<Item Value="Town"/>
<Item Value="Suburb"/>
<Item Value="PostalCode"/>
<Item Value="DsdRegion"/>
<Item Value="ServiceDeliveryArea"/>
</AttrArray>
<DisplayCriteria/>
</ListBinding>
<SQLQuery><![CDATA[SELECT
SmsPartyAddress.ID,
SmsPartyAddress.ADDRESS_LINE2,
SmsPartyAddress.ADDRESS_LINE3,
SmsPartyAddress.ADDRESS_LINE4,
SmsPartyAddress.ADDRESS_LINE1,
SmsProperties.ADDRESS_LINE,
DECODE(TOW1.TOWN,NULL,TOW.TOWN,TOW1.TOWN)TOWN ,
TOW.TOWN SUBURB,
POSTAL_CODE,
SmsPartyAddress.PAR_ID,
SmsPartyAddress.PROP_ID,
SmsProperties.ID AS ID1,
SmsPartyAddress.ADDRESS_TYPE_IND,
SmsPartyAddress.START_DT,
SmsProperties.TOW_ID,
SmsProperties.ERF_NO,
SmsProperties.WAR_ID,
SmsProperties.ZONE
FROM SMS_PARTY_ADDRESS SmsPartyAddress, SMS_PROPERTIES SmsProperties,
SMS_TOWNS TOW
,SMS_TOWNS TOW1
,SMS_POSTAL_CODES PCOD
WHERE SmsPartyAddress.PROP_ID = SmsProperties.ID
and TOW.PCOD_ID = PCOD.ID
AND TOW.TOW_ID = TOW1.ID (+)
--and TOW1.ID = SMSPROPERTIES.TOW_ID(+)
and TOW.ID = SMSPROPERTIES.TOW_ID
and SmsPartyAddress.prop_id = SmsProperties.id
CONNECT BY PRIOR TOW.TOW_ID = TOW.ID]]></SQLQuery>
<ViewAttribute
Name="Id"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="ID"
SQLType="NUMERIC">
<RecalcCondition><![CDATA[true]]></RecalcCondition>
<TransientExpression><![CDATA[(new oracle.jbo.server.SequenceImpl("SMS_MAST1_SEQ",adf.object.getDBTransaction())).getSequenceNumber()]]></TransientExpression>
</ViewAttribute>
<ViewAttribute
Name="AddressLine2"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE2"
Expression="ADDRESS_LINE2"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine3"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE3"
Expression="ADDRESS_LINE3"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine4"
IsPersistent="false"
PrecisionRule="true"
Precision="50"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE4"
Expression="ADDRESS_LINE4"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="50"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine1"
IsPersistent="false"
PrecisionRule="true"
Precision="100"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE1"
Expression="ADDRESS_LINE1"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="100"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="AddressLine"
IsPersistent="false"
PrecisionRule="true"
Precision="120"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ADDRESS_LINE"
Expression="ADDRESS_LINE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="120"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="Town"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="TOWN"
Expression="TOWN"
SQLType="VARCHAR"
LOVName="LOV_Town">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
<Properties>
<SchemaBasedProperties>
<CONTROLTYPE
Value="combo_lov"/>
</SchemaBasedProperties>
</Properties>
</ViewAttribute>
<ViewAttribute
Name="Suburb"
IsPersistent="false"
PrecisionRule="true"
Precision="60"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="SUBURB"
Expression="SUBURB"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="60"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="PostalCode"
IsPersistent="false"
PrecisionRule="true"
Precision="4"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="POSTAL_CODE"
Expression="POSTAL_CODE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="4"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="ParId"
IsPersistent="false"
PrecisionRule="true"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="PAR_ID"
Expression="PAR_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="PropId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="PROP_ID"
Expression="PROP_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="Id1"
IsUpdateable="false"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="ID1"
SQLType="NUMERIC">
<RecalcCondition><![CDATA[true]]></RecalcCondition>
<TransientExpression><![CDATA[(new oracle.jbo.server.SequenceImpl("SMS_MAST1_SEQ",adf.object.getDBTransaction())).getSequenceNumber()]]></TransientExpression>
</ViewAttribute>
<ViewAttribute
Name="AddressTypeInd"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="ADDRESS_TYPE_IND"
Expression="ADDRESS_TYPE_IND"
SQLType="NUMERIC"/>
<ViewAttribute
Name="StartDt"
IsPersistent="false"
PrecisionRule="true"
Type="java.sql.Timestamp"
ColumnType="DATE"
AliasName="START_DT"
SQLType="DATE">
<RecalcCondition><![CDATA[true]]></RecalcCondition>
<TransientExpression><![CDATA[adf.currentDate]]></TransientExpression>
</ViewAttribute>
<ViewAttribute
Name="TowId"
IsPersistent="false"
PrecisionRule="true"
Precision="38"
Scale="0"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="TOW_ID"
Expression="TOW_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="ErfNo"
IsPersistent="false"
PrecisionRule="true"
Precision="80"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ERF_NO"
Expression="ERF_NO"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="80"/>
</DesignTime>
</ViewAttribute>
<ViewAttribute
Name="WarId"
IsPersistent="false"
PrecisionRule="true"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
AliasName="WAR_ID"
Expression="WAR_ID"
SQLType="NUMERIC"/>
<ViewAttribute
Name="Zone"
IsPersistent="false"
PrecisionRule="true"
Precision="20"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="ZONE"
Expression="ZONE"
SQLType="VARCHAR">
<DesignTime>
<Attr Name="_DisplaySize" Value="20"/>
</DesignTime>
</ViewAttribute>
<ResourceBundle>
<PropertiesBundle
PropertiesFile="SmsFrontService.SmsFrontServiceBundle"/>
</ResourceBundle>
</ViewObject>this is what i have try
public class smsproppartyviewImpl extends ViewObjectImpl {
protected void callNewProperty(String stmt, Object[] bindVars) {
PreparedStatement st;
st = null;
try {
// 1. Create a JDBC PreparedStatement for
st = getDBTransaction().createPreparedStatement("begin " + stmt + ";end;", 0);
if (bindVars != null) {
// 2. Loop over values for the bind variables passed in, if any
for (int z = 0; z < bindVars.length; z++) {
// 3. Set the value of each bind variable in the statement
st.setObject(z + 1, bindVars[z]);
// 4. Execute the statement
st.executeUpdate();
} catch (SQLException e) {
throw new JboException(e);
} finally {
if (st != null) {
try {
// 5. Close the statement
st.close();
} catch (SQLException e) {
protected void callInsertProcedure(TransactionEvent e) {
String Addressline = null;
String Zone = "UNDERF";
String Town = null;
String Suburb = null;
String PostalCode = null;
String Addressline1 = null;
String Addressline2 = null;
String Addressline3 = null;
String Addressline4 = null;
Integer AddressTypeInd = null;
Integer parid = null;
//Date StartDt = null;
Integer towid = null;
ApplicationModuleHandle handle = null;
handle = Configuration.createRootApplicationModuleHandle
("sms1100.sms1100Moduleold", "sms1100ModuleShared");
ApplicationModule sam = handle.useApplicationModule();
sam.processChangeNotifications();
ViewObject svo = sam.findViewObject("smsproppartyview1");
svo.executeQuery();
Row row = svo.first();
if (svo != null){
Addressline = (String)row.getAttribute("AddressLine");
Zone = (String)row.getAttribute("Zone");
Town = (String)row.getAttribute("Town");
Suburb = (String)row.getAttribute("Suburb");
PostalCode = (String)row.getAttribute("PostalCode");
towid = (Integer)row.getAttribute("TowId");
Addressline1 = (String)row.getAttribute("Addressline1");
Addressline2 = (String)row.getAttribute("Addressline2");
Addressline3 = (String)row.getAttribute("Addressline3");
Addressline4 = (String)row.getAttribute("Addressline4");
AddressTypeInd = (Integer)row.getAttribute("AddressTypeInd");
parid = (Integer)row.getAttribute("ParId");
//EntityDefImpl SmsPropertiesDef = SmsPropertiesImpl.getDefinitionObject();
//SmsPropertiesImpl newSmsProperties = (SmsPropertiesImpl)SmsPropertiesDef.createInstance2(getDBTransaction(), null);
//newSmsProperties.setAddressLine(Addressline);
//newSmsProperties.setTowId(towid);
callNewProperty("Sms_Location.newProp(?,?,?,?,?,?,?,?,?,?,?,?)",
new Object[] { parid, AddressTypeInd, Addressline1,
Addressline2, Addressline3, Addressline4,Addressline,Town,Suburb,PostalCode,towid,Town,Suburb,PostalCode,towid,Zone });
}am in Jdeveloper 11.1.2.1.0 -
Hi every one
Can any one help me out, How to Update a Row using ADF.
Thanks in advanceIn addition to Clear to my question
By Using ADF BC How can I update a record in a database.
I have VO and EO associated with a table.
How can I update a record using ADF BC
Message was edited by:
user616296 -
How to get multiple records using fn-bea:execute-sql()
Hi,
I created Proxy service(ALSB3.0) to get records from DB table. I have used Xquery function(fn-bea:execute-sql()). Using simple SQL query I got single record, but my table having multiple records. Please suggest how to get multiple records using fn-bea:execute-sql() and how to assign them in ALSB variable.
Regards,
Nagaraju
Edited by: user10373980 on Sep 29, 2008 6:11 AMHi,
Am facing the same issue stated above that I couldnt get all the records in the table that am querying in the Proxyservice.
For example:
fn-bea:execute-sql('EsbDataSource', 'student', 'select Name from StudentList' ) is the query that am using to fetch the records from the table called StudentList which contains more than one records like
Id Name
01 XXX
02 YYY
03 ZZZ
I tried to assign the result of the above query in a variable and while trying to log the variable, I can see the below
<student>
<Name>XXX</Name>
</student>
I want to have all the records from my table in xml format but it's not coming up. I get the value only from the first row of my table.
Please suggest.
regards,
Venkat -
How can i populate records using LOV value in form 6i
Create a form based on the following output use EMP Table
Create a non Database Block i.e Control Block----> Dept No
Create a Database Block -EMP
Create an LOV for the Dept no from dept table.
For the Current Dept No . Populate the Employee Records
How can i populate records using LOV value????
thanksHow can i populate records using LOV value in form 6i Start by posting in the correct forum: {forum:id=82}
(Seriously: after making all your previous posts in the Forms forum, how do you end up posting in this one? Is it because the Forms forum has changed category?) -
How can i populate records using LOV value
Create a form based on the following output use EMP Table
Create a non Database Block i.e Control Block----> Dept No
Create a Database Block -EMP
Create an LOV for the Dept no from dept table.
For the Current Dept No . Populate the Employee Records
How can i populate records using LOV value????
thanksHi maddyd2k
How can i populate records using LOV valueIt's not clear what u r trying to do create, create then want to...
1.Pls Create a non-db item db set to > no named DEPT_NAME
2. when creating the LOV assign the DEPT_NAME FROM DEPT table to that displayed item and u have also to assign the Dept No selected to the Dept No in the emp block
To populate or display DEPT_NAME after Query - the If i got ur problem then - u need to cretae a Post-Query Trigger then use the following...
BEGIN
SELECT DEPT_NAME
INTO :CONTROL_BLOCK.DEPT_NAME
FROM DEPT
WHERE Dept No = :Dept No;
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
WHEN OTHERS THEN (ERRTXT);
END;Hope this helps...
Regards,
Abdetu... -
How to poll child records using Physical delete
Hi, could anyone please help me how to poll child records using the Physical delete polling strategy?I have one parent table and one child table with foreign key constraint with 'on delete cascade'. I understand that physical delete polling strategy does not poll child records and can be polled by configuring the toplink_mappings.xml. how to confure this file in order to poll the child records.
sample tables are:
student(stud_id,name,gender,age), stud_id beeing the primary key and
stud_marks(stud_id,exam,marks1,marks2,marks3), exam beeing the pk, and stud_id, the foreign key with on delete cascade.
I have set the property DeleteDetailRows="true" in the wsdl.
Getting a warning:
'TopLink found problems in PhyDelChildRecordsPoll. Please ensure that these are corrected before deployment.'
TopLink Map 'PhyDelChildRecordsPoll' -> One of the packages is incomplete.
Package PhyDelChildRecordsPoll -> One of the descriptors in this package is incomplete.
Descriptor Student -> Some mappings are incomplete.
Mapping studMarksCollection -> Method accessors have not been selected.
End TopLink Map 'PhyDelChildRecordsPoll'
Thanks.
Edited by: Help please on Nov 5, 2009 2:39 PMSimple solution is to run the query I have given for all child tables or to try a single query for all child tables withj something like:
select <parent_key>
from <parent_table>
where <parent_key> in
(select <foreign_key_1> from <child_table_1> union
select <foreign_key_2> from <child_table_2> union
... );More complicate solution could be to change the foreign key constraints to cascade DELETE on parent table to child tables:
SQL>
SQL> create table p(x int primary key);
Table created.
SQL> create table c1(x1 int);
Table created.
SQL> create table c2(x2 int);
Table created.
SQL>
SQL> alter table c1 add constraint fk1 foreign key(x1) references p;
Table altered.
SQL> alter table c2 add constraint fk2 foreign key (x2) references p;
Table altered.
SQL>
SQL>
SQL> insert into p values(1);
1 row created.
SQL> insert into c1 values(1);
1 row created.
SQL> insert into c2 values(1);
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL> alter table c1 drop constraint fk1;
Table altered.
SQL> alter table c2 drop constraint fk2;
Table altered.
SQL>
SQL> alter table c1 add constraint fk1 foreign key(x1) references p on delete cascade;
Table altered.
SQL> alter table c2 add constraint fk2 foreign key (x2) references p on delete cascade;
Table altered.
SQL>
SQL> delete p where x=1;
1 row deleted.
SQL> commit;
Commit complete.
SQL> select * from p;
no rows selected
SQL> select * from c1;
no rows selected
SQL> select * from c2;
no rows selected
SQL>Edited by: P. Forstmann on 27 oct. 2011 14:01 -
How to find the records using contains with the word like this 'some text-some text'?
Hi,
How to find the records using the full text contains keyword and that column contains ‘some text-some text’
In the above some text can be anything.
Does anybody know please let me know.
Thanks,Hello,
You can try to create a Full Text Index on the table and use CONTAINS() to get the record which contains the specify words.
For example:
SELECT * FROM TABLE WHERE CONTAINS(column_name, 'some text')
Reference:
Full-Text Search (SQL Server)
Creating Full Text Catalog and Full Text Search
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
How to append DB records using OdiSqlUnload tool
Hi
Can any one please help me on how to append DB records using OdiSqlUnload tool.
Work Scenario: I created a loop in a package and want to stored error records into xls file. I tried, but it is storing only recent record got failed
Any sugession or help on OdiSqlunload tool
Thanks
PhaniHi Guru,
I tried It is storing last record but I want to store all failure records (which are in a loop) into excel file
Please help me
Thanks
Phani
Edited by: Phanikanth on Jul 15, 2010 8:25 PM -
How to enable frontend printing using Adobe Print Forms
Otto Gold at the forum "SAP Interactive Forms by Adobe" gave me the tip that Sandra Rossi in this forum might help me out. Here is the link to my original thread How to enable frontend printing using Adobe Print Forms
My question was:
Hi Experts!
Did anyone of you manage to enable frontend printing using Adobe Print Forms? In order to save administration effort we use frontend printing in our ERP system. We just changed some SMARTFORMS to the new Adobe Forms technology. Now we learned that direct frontend printing does not work with these forms.
Any help will be very much appreciated.
Kind Regards,
GeraldI think you'll be disappointed by a rather negative answer but I'll try to explain everything I know (or think I know) the best I can
The simplest solution is to do a preview, and print from Adobe Reader! (as I could see on one project, users have to display one more dialog than usually to print) It's the best workaround according to me.
How Adobe form printing works:
When you print an Adobe form from SAP, a printer language (PCL, PS, ZPL, PDF) is retrieved from TSP0B table according to the device type, ADS (Adobe Document Services, installed in the SAP java stack) is then contacted to generate the form: a file corresponding to the printer language is generated and sent back to SAP (there are also 2 other little files but it's of none interest here). SAP stores it as a file (named SPOOL...) in the global directory (DIR_GLOBAL when you use AL11 transaction).
When you ask SAP to print it, it sends the file as is to the printer.
Note: when you ask SAP to display the spool, SAP sends a request to ADS which will send back a PDF (binary stream which is not stored on disk, just displayed on frontend).
How frontend printing works:
If you want to print a normal spool via frontend, SAP doesn't know the language of the printer you will choose. SAP sends the spool in a format named SAPWIN to a frontend program named SAPLPD, it converts the SAPWIN format into GDI, a Windows format that is understood by all printer drivers, and it is sent to the printer driver (you have selected) which converts the GDI format into the printer language.
Any workaround?
First possibility would be that ADS converts the PDF into SAPWIN format (by creating an Adobe .XDC file at the ADS side). SAP says it's not possible in Note 685571 - Printing PDF-based forms. As I understand, SAPWIN is a very simple language compared to PCL for example, so it is very difficult to convert a PDF to SAPWIN without losing much information. There's a SAP note about the SAPWIN language if you want to check.
Second possibility is to print directly the PDF through Adobe Reader: you get the PDF from ADS, download it to the frontend (easy), and execute directly Adobe Reader print function. Unfortunately, I don't know if it's possible. Moreover, we should enhance the standard SAP print dialog...
Third possibility is the one I recommended at the beginning of this post -
Set atribute value from session bea while creating new record using ADF BC
hi,
i want to set the value of new record attribute from session bean while
using ADF BC using creation form. how can i set the value of a perticular arribute of a record to the value stored in session bean.Chapter 9 in the ADF Developer's Guide for Forms/4GL Developers (available on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html ) describes how to accomplish this along with other typical kinds of programmatic business logic.
-
How to Delete Multiple Records using selectbox in jsf
Hi!
My Senario is I want to delete multiple records using checkbox. After selecting multiple records when i click the delete button the selected
rows shuld be deleted.if am doing like this but the edit ,delete for each row functionality is not working.
<h:selectBooleanCheckbox id ="bcb" value="#{item.empno}">
</h:selectBooleanCheckbox>
But other functionality is not wokring.
Can any one plz tell how to select the multiple records and how to send the id to the serverside.
I want code code for jsp and as well as backingBean how to accaess .
Any Reply shuld be apreciatedYou may find this article useful as well: http://balusc.blogspot.com/2006/06/using-datatables.html
Check the chapter "Select multiple rows" for two generic ways to select multiple rows in a datatable. -
invoke-webrequest content returning only 2000 records though it has around 4000 records in web api.
The same url if I give in excel oData Data feed I am getting all the records.
See the below script
Script:
$QueryResult= (Invoke-WebRequest -Uri $ODataURI -UseDefaultCredentials)
[xml]$xmlResult=$QueryResult.content
foreach($obj in $xmlResult.feed.entry.content.properties)
$Name=$obj.Name;
$IsAvail=$obj.isAvail.'#text';
$PGroup=$obj.PGroup
I am exporting the above result as a CSV file and my CSV file contains only 2000 records.
But, $xmlResult.feed.Count --> it Shows 4000 Records.
The same Odata url if I give in excel oData Data feed I am getting all the 4000 records.
So Please help me how can I get all the records using power shell.
Thanks
A Pathfinder..
JoSwa
If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful"
Best Online JournalHi Jo Swa(K.P.Elayaraja)-MCP,
Would you please also post code which is used to export the records?
In addition, to use the cmdlet invoke-RestMethod to work on ODate feeds, please refer to this article:
Interacting with TechEd NA 2012 Schedule using PowerShell v3
I hope this helps. -
How to insert the records using sql query
hi,
i insert the record uisng sql query and DOTNET programme successfully and increase the doc num .ubut when i try to add record using SAP B1 the old Doc no show.It means its not consider the docnums which are not inserted by sql query.
how can i solve this problem?
Regards,
M.Thippa ReddyYou are not support use Insert / Update / Delete on SAP Databases directly.
SAP will not support any database, which is inconsistent, due to SQL-Queries, which modify datasets or the datastructure of the SAP Business One Database. This includes any update-, delete- or drop-statements executed via SQL-Server Tools or via the the query interface of SAP Business One
Check SAP Note: 896891 Support Scope for SAP Business One - DB Integrity
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E¬e_numm=896891]
Maybe you are looking for
-
Hi, I am relatively new to JDeveloper extension development. I am currently working with my ESB team to develop an extension to do certain things with the diagram. We are stuck when we are trying to get the oracle.tip.tools.ide.esb.addin.DiagramEdito
-
My e mail does not show up on my Galaxy lll until hours after it is actually received in my e mail account (on my computer etc). Is there a setting adjustment I need to make so that I receive them in real time. Text messages work fine in real time.
-
First Aid Services reports Errow "Invalid Volume File Count"
In attempt to deleate a small Windows psrtition and creating a larger new Windows partition, Boot Camp directed to First Aid where the resulting error messages are "Invalid Volume File Count" and Invalid File Count", Directions to reboot with progra
-
I've been experiencing low audio volume with burned DVDs in DVD SP 4. The audio volume is fine in FCP, and also in the self-contained exported QT file. But once imported into DVD SP and burned to a DVD, the volume is almost cut in half on multiple pr
-
Setting automatically message type MAHN in POs.
Hi, how can I set automatically the message type in POs so that clicking on "Messages" button will show message type MAHN ? Yours faithfully