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).
Similar Messages
-
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 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. -
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
SPCHi,
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 -
How to create an InputSelect using ADF and JSP
I looking for some docs/instructions on creating "an InputSelect using ADF with JSP".
Thanks,
BG...Ok here are the Steps
1) Open the JSP editor for the page in Question.
2) In the Data Control palette select the item that you want to become the poplist and change the "Drop As" poplist to "Single Select List"
3) Drag the field into the page. You'll get an empty poplist which implements the <html:select> and <html:optionsCollection> tags.
4) With the JSP editor still open click on the "UI Model" sub-tab in the Structure pane
5) Select the field you've just dragged in - then right click to get the context menu and choose "edit"
6) Change the List Binding Mode poplist to "LOV Mode"
You're then taken into a couple of screens where you can select the Source VO for the poplist, and the destination dataset, along with the thing you want for the Label and the Value. -
How to create multiple pages using flex application.
Hi all,
i am doing flex application which contains 5 different
pages,
to do this i have used viewstack component to navigate
between the pages.
this is working fine if all my pages are of same size. each
page as different background image.
but i have to create pages with different sizes.
my first and second page are small and remaining pages are
big.
when i navigate to 3rd or 4th page, it is showing scrollbar
inside swf.
but i want scrollbar for browser window not inside my swf
anyone please guide me how to create pages in flex
application.
i have one more doubt, if my page contains some html links ,
how to open those links,
is it posible to open the link in new window.
please help me , i have no idea how to create web
applications using flex
Thanks in advance
regards
avanthikaHi inlineblue,
Thanks for your reply,
you asked about sample code,
following is my sample code.
In my Application mxml file, i am loading all custom
components for each page.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*"
horizontalAlign="center" verticalAlign="top"
styleName="plain"
backgroundColor="#FFFFFF"
creationComplete="init()" width="780" height="594" >
<mx:Script>
<![CDATA[
//navigating to next page
public function showNextStep(newIndx:int):void{
vs.selectedIndex=newIndx;
//navigating to previous page
public function showPreviousStep(newIndx):void{
vs.selectedIndex=newIndx
]]>
</mx:Script>
<mx:ViewStack id="vs" paddingLeft="0" height="100%"
width="100%" >
<mx:Canvas id="s1" label="step1"
backgroundImage="assets/Step1.jpg" >
<!-- Step1.jpg image size is width=778, height=560 -->
<mx:HBox paddingLeft="8" width="780" height="548">
</mx:HBox>
<mx:Button alpha="0" buttonMode="true" x="697" y="18"
click="showNextStep(1)" width="72" height="24" />
<mx:Button alpha="0" buttonMode="true" x="697" y="508"
width="72" click="showNextStep(1)" height="24"/>
</mx:Canvas>
<step2 id="s2" label="Step2" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step3 id="s3" label="Step3" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step4 id="s4" label="Step4" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
<step5 id="s5" label="Step5" hideEffect="{blurImage}"
showEffect="{unblurImage}" />
</mx:ViewStack>
</mx:Application>
// following is the page2 (step2) component code
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step2.jpg" width="778" height="600"
>
<!-- Step2.jpg image size is width=778, height=600 -->
<mx:HBox horizontalAlign="left" paddingLeft="5"
height="511" width="768">
</mx:HBox>
<mx:Button alpha="0" buttonMode="true" x="648" y="6"
click="this.parentApplication.showPreviousStep(0)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="711" y="6"
click="this.parentApplication.showNextStep(2)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="651" y="529"
width="58" click="this.parentApplication.showPreviousStep(0)"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="712" y="528"
width="54" click="this.parentApplication.showNextStep(2)"
height="24"/>
</mx:Canvas>
// following is the code for page3 (step3) component
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step3.jpg" >
<!-- Step3.jpg image size is width=778, height=660 -->
<mx:VBox width="763" height="668">
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="644" y="10"
click="this.parentApplication.showPreviousStep(1)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="708" y="10"
click="this.parentApplication.showNextStep(3)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" label="Back"
x="625" y="590" width="58"
click="this.parentApplication.showPreviousStep(1)" height="24"/>
<mx:Button alpha="0" buttonMode="true" x="694" y="590"
width="68" click="this.parentApplication.showNextStep(3)"
height="24"/>
</mx:Canvas>
// following is code for page4 (step 4),
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step4.jpg" >
<!-- Step4.jpg image size is width=778, height=773 -->
<mx:VBox width="762" height="792">
<!-- User interface -->
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="644" y="15"
click="this.parentApplication.showPreviousStep(2)" width="61"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="708" y="16"
click="this.parentApplication.showNextStep(4)" width="53"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="644" y="710"
width="58" click="this.parentApplication.showPreviousStep(2)"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="703" y="710"
width="54" click="this.parentApplication.showNextStep(4)"
height="24"/>
</mx:Canvas>
// Following is code for Page 5 (step 5 ) component.
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()"
backgroundImage="assets/Step5.jpg" width="778"
height="600">
<!-- Step5.jpg image size is width=778, height=539-->
<mx:VBox paddingLeft="170" paddingTop="170" width="778"
height="522">
</mx:VBox>
<mx:Button alpha="0" buttonMode="true" x="654" y="41"
click="this.parentApplication.showPreviousStep(3)" width="72"
height="24"/>
<mx:Button alpha="0" buttonMode="true" x="654" y="486"
width="72" click="this.parentApplication.showPreviousStep(3)"
height="24"/>
</mx:Canvas>
I am getting vertical scrollbar for page3 and page4,
please tell me how to avoid this, Is their any other method
to do this.
Following is the link for my above code
http://www.emantras.com/flexdemo/sample.html
in this application one more problem is also their,
background image loads very slow, before it loads all the flex
components will load. So when you open this please wait till
background image loaded, to move to next and back pages.
Thanks for your time and consideration.
Regards
Avanthika -
How to create multiple Contracts using BAPI_BUSPROCESSND_CREATEMULTI?
Hi Experts,
I m trying to create multiple service contracts using BAPI_BUSPROCESSND_CREATEMULTI. I can create single transaction in one go but program is failing to create multiple service contracts in one go. It does create the multiple contracts but messes up with products and product related information. As when there is same product in two different contracts, the record in item internal table has same values for both contracts as we are not passing header guid to the intem related internal table 'ITEM', 'SCHEDULELINE' etc.
How to use this BAPI to create mulitple service contracts in one go?
Thanks and Regards.Any guideline?
Thanks and Regards, -
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 create multiple TextBox using Visual C# in runtime?
Hello,
I am writing the following code to create TextBox programmatically in run time. When I am clicking in the target Button it will create TextBox. But the problem is, only one TextBox is created. Can anyone tell me how can I write code that will create multiple
TextBox when I am continuously clicking a Button?
Here is my current code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace testing
public partial class Form1 : Form
public Form1()
InitializeComponent();
int x, y;
TextBox txt = new TextBox();
private void button_add_Click(object sender, EventArgs e)
cnt++; y = 139; x = 139;
txt.Parent = this;
txt.Location = new System.Drawing.Point(x, y);
txt.Size = new System.Drawing.Size(100, 20);
txt.Name = "text" + cnt; ;
txt.Text = "Text" + cnt; ;
///txt.Visible = true;
y += 30; x += 30;
///MessageBox.Show(txt.Name.ToString());
int cnt;
private void Form1_Load(object sender, EventArgs e)
cnt = 0; x = 139; y = 139;
- ThanksHello,
In your sample code only one instance of the text box is created. You may put the
TextBox txt = new TextBox();
inside the button click handler function for creating new instance for each button click.
Also change the change txt.Location for each text box. In your code it is specified as 139, 139 always.
Regards,
Mathews -
How to save multiple rows using ADF faces ?!
Hello;
I am developing a search page using ADF faces (jdeveloper 10.1.3).
after building my view i dragged it as search form on my page then i dragged it again as a read only table to display results with different iterator.
I have a field act as a flag with 'Y' and 'N' value so i converted this field in the table to select boolean checkbox.
what i need is ...
after processing search operation i want to update this flag by 'Y' or 'N' (select/un-select checkbox) then click on a save button to save all result rows flag with its new status to the data base.
Wish to know how to implement that.
Thanks a lotSearching this forum yields How to do a bound af:SelectBooleanCheckbox inside of af:Table
Hope this helps -
SqlLoader: how to create multiple records out of one CSV input line?
A question concerning the SQL-Loader.
I need to load data from a CSV file where one of the CSV values determines how many records should be inserted.
Example of the input data:
KEYWORD;2;REC1_COL1_X,REC1_COL2_X;REC2_COL1_X;REC2_COL2_X
KEYWORD;3;REC1_COL1_Y;REC1_COL2_Y,REC2_COL1_Y;REC2_COL2_Y;REC3_COL1_Y;REC3_COL2_Y
KEYWORD;4;REC1_COL1_Z;REC1_COL2_Z,REC2_COL1_Z;REC2_COL2_Z;REC3_COL1_Z;REC3_COL2_Z,REC4_COL1_Z;REC4_COL2_Z
If the KEYWORD is found, then the next value determines how many value pairs will follow, and therefore how many rows should be created in the affected DB table.
As a result I hope to achieve this:
SELECT Column1, Column2 FROM testTable
REC1_COL1_X,REC1_COL2_X
REC2_COL1_X;REC2_COL2_X
REC1_COL1_Y;REC1_COL2_Y
REC2_COL1_Y;REC2_COL2_Y
REC3_COL1_Y;REC3_COL2_Y
REC1_COL1_Z;REC1_COL2_Z
REC2_COL1_Z;REC2_COL2_Z
REC3_COL1_Z;REC3_COL2_Z
REC4_COL1_Z;REC4_COL2_Z
I learned how to import data using Oracle SQL loader for cases where one input line more or less matches a (new) row in a DB table. But how to handle this?Hello 784948.
Assuming that the delimiter is a comma, and also assuming that the number of pairs is limited to four, you could use the following tested control fileLOAD DATA
APPEND
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '1'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER
, PairCountColumn FILLER
, InputColumn1
, InputColumn2
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, FillerColumn5 FILLER
, FillerColumn6 FILLER
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '2'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER POSITION(1)
, PairCountColumn FILLER
, InputColumn1
, InputColumn2
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, FillerColumn5 FILLER
, FillerColumn6 FILLER
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '3'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER POSITION(1)
, PairCountColumn FILLER
, InputColumn1
, InputColumn2
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, FillerColumn5 FILLER
, FillerColumn6 FILLER
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '2'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER POSITION(1)
, PairCountColumn FILLER
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, InputColumn1
, InputColumn2
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, FillerColumn5 FILLER
, FillerColumn6 FILLER
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '3'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER POSITION(1)
, PairCountColumn FILLER
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, InputColumn1
, InputColumn2
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, FillerColumn5 FILLER
, FillerColumn6 FILLER
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '4'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER POSITION(1)
, PairCountColumn FILLER
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, InputColumn1
, InputColumn2
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, FillerColumn5 FILLER
, FillerColumn6 FILLER
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '3'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER POSITION(1)
, PairCountColumn FILLER
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, InputColumn1
, InputColumn2
, FillerColumn5 FILLER
, FillerColumn6 FILLER
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '4'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER POSITION(1)
, PairCountColumn FILLER
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, InputColumn1
, InputColumn2
, FillerColumn5 FILLER
, FillerColumn6 FILLER
INTO TABLE testTable
WHEN (1:7) = 'KEYWORD' AND (9) = '4'
FIELDS TERMINATED BY ","
TRAILING NULLCOLS
( KeywordColumn FILLER POSITION(1)
, PairCountColumn FILLER
, FillerColumn1 FILLER
, FillerColumn2 FILLER
, FillerColumn3 FILLER
, FillerColumn4 FILLER
, FillerColumn5 FILLER
, FillerColumn6 FILLER
, InputColumn1
, InputColumn2
)Luke
Please mark the answer as helpful or answered if it is so. If not, provide additional details.
Always try to provide create table and insert table statements to help the forum members help you better.
Edited by: Luke Mackey on Aug 5, 2010 1:23 PM (always better to test before posting) -
HOW TO CREATE MULTIPLE RECORDS IN A NONE DATABASE BLOCK?
I have a Form where I have a none database block with unbound items. The block
has 10 records. In the when-new-block instance I run a query by which I would
like to fill up the block with data. The code fragment looks like the
following:
begin
declare
tmp_curr_rec_id number;
begin
-- a hibak kiolvasasa
for c_hibak in ( select h.*, h.rowid
from hibak h
where 1=1 -- WF - Ide kerul a szurofeltetel
order by bejelentes_datum asc
) loop
-- bemasoljuk az adatokat az unbound item-ekbe
:mc_adat.ub_azonosito := c_hibak.azonosito;
:mc_adat.ub_verzio_letrehozas_datum :=
c_hibak.verzio_letrehozas_datum;
:mc_adat.ub_bejelento := c_hibak.bejelento;
:mc_adat.ub_bejelentes_datum := c_hibak.bejelentes_datum;
:mc_adat.ub_wf_verzio_csomopont :=
c_hibak.wf_verzio_csomopont;
:mc_adat.ub_wf_utolso_esemeny_szoveg :=
c_hibak.wf_utolso_esemeny_szoveg;
:mc_adat.ub_hiba_leiras := c_hibak.hiba_leiras;
:mc_adat.ub_hiba_hely := c_hibak.hiba_hely;
:mc_adat.ub_rekord_jelleg := 'H';
:mc_adat.ub_rowid := c_hibak.rowid;
-- beallitjuk a rekordot-ot olyanra, mintha semmi nem valtozott
volna
-- nem szeretnenk a form bezaraskor mindenfele figyelmezteteseket
-- olvasni a kepernyon
tmp_curr_rec_id := get_block_property( :system.current_block,
current_record );
set_record_property( tmp_curr_rec_id, :system.current_block,
status, new_status );
create_record;
end loop;
end;
end;
The block's update allowed, insert allowed, delete allowed property is set to
true.
The result of the code above is that only the last record fetched shows up in
the block. The problem is - as I found out - is that aech record is fetched,
the values are copied to the block items, but the create_record built-in
command would not move the cursor to the next row.
Can some one please help me with this?
TIA,
Tamas SzecsyThe problem was with the following code segment:
tmp_curr_rec_id := get_block_property( :system.current_block, current_record );
set_record_property( tmp_curr_rec_id, :system.current_block, status, new_status );
After omitting these two lines, the code worked properly.
Thansk for all whoe replied.
Regards,
Tamas -
How to update multiple records using for loop
Hi I want to update a particular column of few rows in database i had written followin code after that few lines of code and calling action from the task which having commit return ,still it's not updating particular colum.I had debug the code loop is running fine but still changes are not reflecting to database.Let me know if there is any prob with following code snippet.
RealEstatePropertyUnitDetailsVOImpl realEstatePropertyUnitDetailsVO = RealEstatePropertyUnitDetailsVOImpl)realEstateService.getRealEstatePropertyUnitDetailsVO();
for(Row row : realEstatePropertyUnitDetailsVO.getAllRowsInRange())
if("N".equalsIgnoreCase((String)row.getAttribute("RlstdSellYn"))
|| "false".equalsIgnoreCase((String)row.getAttribute("RlstdSellYn")))
row.setAttribute("RlstdAvlblYn", "Y" );
System.out.println("RlsthId "+row.getAttribute("RlstdRlsthId"));
System.out.println("AvlbYN "+row.getAttribute("RlstdAvlblYn"));
System.out.println("RlstdUnitId "+row.getAttribute("RlstdUnitId"));
}Vishwesh,
I'd start with something along the lines of ...
RowSet vo = (RowSet)getRealEstatePropertyUnitDetailsVO();
vo.reset();
while (vo.hasNext())
Row row = vo.next();
row.setAttribute("Attribute", value);
}getAllRowsInRange() may exclude some rows outside the "range". Also, the vo.reset is needed since your View Object currency may not be at the beginning of your RowSet.
Hope that helps.
Will -
How to create multiple ifs users using XML
I used the following xml file to create a ifs user. But I don't know how to create multiple users using XML. Thanks for your help.
<SimpleUser>
<UserName>bill</UserName>
<Password>bill</Password>
<DirectoryUserDescription>Bill</DirectoryUserDescription>
</SimpleUser>There are many good resources for Powershell tutorials. The MS help page for each cmdlet is usually a good place to start.
The suggested answer is very good and easy to modify to your needs. The linked article provides good detail on creating your csv file. If you look at their sample csv, you will see the column for LicenseAgreement and UsageLocation. You can change the script
to use the values from the csv instead of the same value for every user like so:
-LicenseAssignment $_.LicenseAgreement -UsageLocation $_UsageLocation
Basically, $_.<valuename> is the filled in by the value under the heading <valuename> in your csv file for the current user.
As for what msdivision, replace this with the correct domain name value for your organization. You can get the values for license SKUs from existing users by using the following:
Connect-MsolService
Get-MsolUser -UserPrincipalName <userprincipalname> |select Licenses -
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
Maybe you are looking for
-
Hi all, Recently purchased a Lenovo G50-30 as a birthday present. After recieving the laptop, I tried putting a fresh install of Windows 7 64 Bit onto it. After changing the BIOS settings to allow legacy booting from the DVD drive and changing OS Set
-
How to use the BADI CRM_MKTLIST_BADI in External List Management?
Hi Experts, I am using ELM tool to upload new accounts from an excel file. I need to do some coding before the BPs get created into CRM. This coding is for mapping some fields & doing a few validation checks. We have a BADI CRM_MKTLIST_BADI for this.
-
What exactly are the updates good for on an ipod
I ask because mine is windows format, and im having trouble transferring all the metadata off my ipod with senuti to a back up so that i can reformat the ipod to mac and then sync in my senuti backed up library. I was wondering if anyone knows what e
-
I am new to Flex 2. I have downloaded and in the process of reading the Adobe Documentation on using Flex 2 (Getting Started with Flex 2, and Using Flex 2). Could someone direct me to an area of documentation on the technique for adding a hyperlink t
-
App from Apex 4.1 to Apex 4.0 - Error
Hi how can i import an application made with APEX 4.1 into APEX 4.0? I get an error: "NOT COMPATIBLE (Your export may contain calls not supported by your application version)." How do i solve this problem? kind regards