Query regarding updation thru a Procedure
Hi,I have a query regarding updation.
1.I invoke a procedure in Oracle called submit thru my Java application.
The submit procedure saves the XML data in the database
and displays this data in a Front End GUI.
2. Now,I make a change in my Java application by adding new elements to the same row.This row now contains additional XML elements.
I would like to display the new row with the new elements in the GUI.
What is a better option for doing the above?
1.Delete the row being shown,save the new row with the changes in the database,and re display it?
2.Or,Update the row dynamically and refresh?
Any suggestions
Thanks,
Hi,I have a query regarding updation.
1.I invoke a procedure in Oracle called submit thru
my Java application.
The submit procedure saves the XML data in the
database
and displays this data in a Front End GUI.
2. Now,I make a change in my Java application by
adding new elements to the same row.This row now
contains additional XML elements.
I would like to display the new row with the new
elements in the GUI.
What is a better option for doing the above?
1.Delete the row being shown,save the new row with
the changes in the database,and re display it?
2.Or,Update the row dynamically and refresh?
Any suggestions
Thanks,If you delete (it seems to me yours this process is regular and frequent) and re insert the new updated one record then High water mark will cause to scan yours table which may cause to degrade the performance.AFAIK you should go with update.But hold down dont implement it as i suggested lets see what are others solution here which may be more precious then mine.
Khurram
Similar Messages
-
Query regarding updating rows in JTable
Query regarding updating rows in JTable
Hello,
I have a JTable with 6 columns and 1000s of rows (which are data read from flat files)
I can select 1 or more rows and change the values of the
columns. each time I do this I need to update the values
in the flat file.
Currently I assign the updated Jtable values to a vector
Vector rowVector = (Vector)defaultModel.getDataVector();
then I iterate over the vector and compare the values with the (old) data
in the JTable.
for(int rowCount = 0; rowCount<rowVector.size(); rowCount++){
Vector v = (Vector)rowVector.elementAt(rowCount);
//smsList is the Vector that contains the old JTable values
for(int i=0; i<smsList.size(); i++){
//If colums values have been changed; add that
//vector value to another vector
selectedsmsList.add(smsList.get(i));
for(int i=0; i<selectedsmsList.size(); i++){
//Update the values in the flat file
}This works fine except that it takes ages to iterate over the updated vecor and un-updated,old vector; is there any way to directly get the list of rows that were updated in the jtable; so that I can directly do an I/O operation to update the jtablke values?Just a suggestion.
You could add a listener and use a vector of booleans to keep track of the rows that have been changed. You could then iterate through this boolean vector and update the changed rows.
See
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#modelchange
Don't know whether this will be helpful.
Regards, Darryl -
Query regarding Update the data using application
I have scenario i need to update single record in the the application and insert into a table
for example
SELECT ContactID,FirstName,MiddleName,LastName,Description FROM Contact
Contact table contains 4 columns as explained. in the application there is one tab called Contact where it displays Above information
and description is non editable.
Now the new requirement has come user can update the description information and save information in a new column say 'Description1'
that means new column needs to be added in the db and also necessary changes needs to be done at the application side
For ex :SELECT ContactID,FirstName,MiddleName,LastName,Description,Description1 FROM Contact
Now when user views the contact table it should display description info by default from 'description' table.
If he edits he should see edited data from 'description1' table.
Can any body guide me please and send me sample update query please, and the logic should if updated data is there display that data from
'description1' table other wise display from 'description' table
Smash126Hi Smash126,
You need to fire the update command once you have filled the description record. It should happen on the primary key column of the record.
For Example:
UPDATE Contact
SET Description = 'New Description',
Description1 = 'New Description'
where contactID = <<ContactID from application>>
This way both will updated to same value, and next time you will get the updated value.
Here is some ADO.Net links:
http://www.codeproject.com/Articles/1155/Simple-ADO-NET-Database-Read-Insert-Update-and-Del
http://www.onlinebuff.com/article_step-by-step-select-insert-update-and-delete-using-aspnet-c-and-adonet_32.html
Regards Harsh -
A Query regarding calling a DB procedure from a Crystal report
Hi,
Please tell me how can we call a database procedure from a crystal report (crystal report XI)?
I tried by selecting the procedure as a data source for the report; but its giving me an error "Invalid Argument Provided".
The procedure contains a single Update table statement. Could anyone please help me to resolve this problem as early as possible ?
Thanks & Regards,
Priyashree Katkar.Duplicate of
Crystal reports with a DB procedure
Closing and locking this thread
Ludek -
Query regarding customization thru custom.pll
Hi all,
Can I use WHEN-BUTTON-PRESSED trigger in CUSTOM.PLL trigger.
Which are the different triggers use in CUSTOM.PLL .
request to share your know with me.
Thanks in advance.
regards
sanjayHi;
Please check below links
http://www.orafaq.com/forum/t/148221/2/
Re: how to make a conditional mandatory field by custom.pll
http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/handling-whenbuttonpressed-trigger-in-custompll-1874966
Also see:
http://download.oracle.com/docs/cd/B25516_11/current/acrobat/115devg.pdf
Regard
Helios -
Query Regarding Updation/Migration of ODI 10g To ODI 11g.
Hi All,
Currently I am using ODI 10g Version & Repositories ( Work & Master) have been installed on Oracle database version "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi"
We are thinking to migrate from ODI 10g to ODI 11g Version 11.1.1.5 & i have some queries which are metioned below.
1. Can we install ODI 11g Version 11.1.1.5 version with Repositories ( Work & Master) on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi" or do i need to upgrade my database version to 11G?.
2. If yes then, Can i upgrade or use exting Repositoires ( 10g one) for ODI 11g OR i have to create new Repositoires & move/migrate the objects of 10G repositories as mentioned in the Oracle installation doc.
3. Currently I am using OBIEE 10g for reposrting purpose & if i switch to ODI 11g , Do i need to use OBIEE 11g?
ODI gurus, I need your reponse ASAP & i have to share it on urgent basis.
Thanks
Edited by: neeraj_singh on May 15, 2013 9:58 PMneeraj_singh wrote:
Hi All,
Currently I am using ODI 10g Version & Repositories ( Work & Master) have been installed on Oracle database version "Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi"
We are thinking to migrate from ODI 10g to ODI 11g Version 11.1.1.5 & i have some queries which are metioned below.
1. Can we install ODI 11g Version 11.1.1.5 version with Repositories ( Work & Master) on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi" or do i need to upgrade my database version to 11G?.You can install ODI 11.1.1.5 but you have to upgrade your repositories using upgrade assistant
refer http://docs.oracle.com/cd/E23943_01/upgrade.1111/e12642/tasklist.htm#CIHGIDFG
2. If yes then, Can i upgrade or use exting Repositoires ( 10g one) for ODI 11g OR i have to create new Repositoires & move/migrate the objects of 10G repositories as mentioned in the Oracle installation doc.No need to create new repositories. You just upgrade them. But you need to takecare of certain things as you are a 10g user. Refer below link for the prerequisite
http://docs.oracle.com/cd/E23943_01/upgrade.1111/e12642/prevusers.htm
3. Currently I am using OBIEE 10g for reposrting purpose & if i switch to ODI 11g , Do i need to use OBIEE 11g?Not clear about the question ?
>
ODI gurus, I need your reponse ASAP & i have to share it on urgent basis.
Thanks
Edited by: neeraj_singh on May 15, 2013 9:58 PM -
Update query not working thru procedure
Hi
I need to update one table column based on another table column.
thru sql statement it is working, but same statement is not working thru stored procedure.
update target_table a set a.col2 = (select col2 from source_table b where a.id = b.id);
Above statement is working thru sql statement ,but it is not working thru procedure.
So Please on this.
Regards,
Venkatpost the code for the procedure. Kindly use before and after the procedure statement!
-
Value Field in COPA doesn't updated in Pricing Procedure
Dear SAP Experts,
I have a problem about Value Field in COPA.
Why the Value Field in COPA that have been assigned to Transfer of Billing Document for Statistical Condition Type doesn't updated in Pricing Procedure (SD) when Billing Posting?
Any suggestion will be appreciated.
Thank You
Regards,
KursteilnehmerHI
in pricing procedure SD consultant are creating the pricing condition rules wher these keys are purley belongs to revenue keys .the conditions wich are taken consideration these are all belongs to finding profit margin.
coming to CO-PA the main objective of copa is analysig the profitability of particular segment .wher as in CO-PA the most happend flow from sd saide . so wat ever conditions are taking in pricing procedure its compulsary add co-pa valu fields .to take the reports.
even though in FI-SD interface levele this pricing is taking greater place to flow the values with the help accounting keys.
coming to stastical condistion co-pa is real cost object -
Automatic postings r not updated thru business area wise like dep.run tax c
automatic postings r not updated thru business area wise like dep.run tax code also......how to updated this....
my client requirement.....plz halp meHi
Business area updations will not get updated through automatic postings like tax line generations, etc. You will have to search for some note for updations. Otherwise while preparing blance sheets for business area, you can make adjustment postings.
Regards, -
Regarding Update querry at JDBC Sender adapter
Dear all
need you help for this requirement
My Select statement is working fine where flag column has some time null value
below is the Select statement and ( EMP_MAXQTY_AUTH_FLAG is Flag field here & EMPLOYEE_MST is table name)
SELECT EMP_ORG_CD,EMP_CD,EMP_NAME,EMP_STATUS,EMP_MAXQTY_AUTH_FLAG FROM EMPLOYEE_MST WHERE EMP_MAXQTY_AUTH_FLAG<>'Y'or EMP_MAXQTY_AUTH_FLAG is null
but update querry is as given below
UPDATE EMPLOYEE_MST SET EMP_MAXQTY_AUTH_FLAG='Y' WHERE ((EMP_MAXQTY_AUTH_FLAG <>'Y') OR (EMP_MAXQTY_AUTH_FLAG is NULL))
Please suggest the exact query
if Flag row ahs some value any thing it is updating , but when there is NULL value ,
problem is coming
Please help.....
Regards
PriyaHi Priya,
I think it is the mistake in query:
SELECT EMP_ORG_CD,EMP_CD,EMP_NAME,EMP_STATUS,EMP_MAXQTY_AUTH_FLAG FROM EMPLOYEE_MST WHERE EMP_MAXQTY_AUTH_FLAG'Y'or EMP_MAXQTY_AUTH_FLAG is null
means select all record whose *EMP_MAXQTY_AUTH_FLAG is 'Y' or Null *
UPDATE EMPLOYEE_MST SET EMP_MAXQTY_AUTH_FLAG='Y' WHERE ((EMP_MAXQTY_AUTH_FLAG 'Y') OR (EMP_MAXQTY_AUTH_FLAG = ' '))
means update those records where *EMP_MAXQTY_AUTH_FLAG is 'Y' or Null * and the new value to be updated is 'Y'
Change your update query to
UPDATE EMPLOYEE_MST SET EMP_MAXQTY_AUTH_FLAG='D' WHERE ((EMP_MAXQTY_AUTH_FLAG 'Y') OR (EMP_MAXQTY_AUTH_FLAG = ' '))
Regards
Suraj -
Query regarding Transfer order creation
Hi Experts,
I have query regarding on creation of transferorder in WM.
1) Once the delivery order received from SD , How WM people will proceed with that delivery order?
2) Is it possible to create transfer order for each item avaliable in delivery order?
3) Is there any chance to partial delivery/ partial picking against that delivery order?
Please guide..
Points willl be rewarded ..
Thanks in advance..1.once the delivery order received from SD, WM will start up with creating a wave pick thru outbound delivery monitor(VL06P), then trasnfer order (TO)is created , then TO is confirmed and goods issue is posted.
2.yes it is possible to create transfer order for each item avaliable in delivery order, if the delivery items are not grouped under a wave pick.
3.partial delivery can be made -
Want to updated sales pricing procedure through quotation
Hello Friends,
In general scenario: we update any condition type in vk11 tcode and tht is reflected in quotation pricing.
my requirement : while creating quotation if the user changes any price for any condition tht should automatically get updated in pricing procedure for tht particular condition type.
pls suggest how it is possible??
Regards,
SunnyHi Sunny,
you can write exit in VA21 to update the sales pricing .
Thanks & Regards,
Devalla T Kumar -
Error regarding update program
hi
i am facing an error i.e Error when generating the update program
Can any body give the solution for this question
thanks
gurkiranhi yogesh
An error occurred during program generation for InfoSource 80FIGL_O02 and InfoProvider ZFIGL_C02. This may be extrapolated to incorrect update rules.
Procedure
Check and correct your update rules and then generate the update program again. but i dont know the procedure Acctually
or the steps Acctaually how to perform on this procedure
kingly explain me in more precise form
Thanks
Regards
Gurkiran -
Hi all
Can anyone please assist me here , on my db i have
three UDF's linked to one table.
These UDF's are for routes - when you select the route code the query must update the route name and the driver name .
This info is all in one UDT.
ThanksHello Bongani,
SELECT
T0.U_DriverName
FROM
.[@Routes] T0
WHERE
T0.Code=$[TABLE.FIELD]
/code
I assume you have the Routes UDT set like this:
Code | Name | DriverName | ...
Just change TABLE and FIELD with the name of the table and field you're importing the value to.
Best Regards,
Vítor -
Query regarding Asset quantity.
Dear Experts,
I have query regarding Asset quantity.
While creating Goods receipt (MIGO) users give the Material (Asset) quantity but when I check in Asset master or in any sap asset reports system not show the quantity in Asset master or any Asset report. Although I have checked in all SAP Standard reports but quantity not updated in any reports. Let me know if I need to do any configure in Asset.
I also want to know that how System posts the quantity automatically in Asset master after doing MIGO/MIRO?
Please provide the best solution.
Best Regards,
VivekHi VIvek
In Asset Master Data update the unit of measure in Quantity field. When you post through a MIRO document or F-90 whatever the quantity input is updated in the asset master record.
Kindly award points if correct
Maybe you are looking for
-
How do i set the classpath in weblogic server
hi, i am using weblogic SP2. in my application, i have some jars in the lib directory. currently my application is running fine. but when i add some new jars, it is throwing some exception. i guess that it may be because that in the classpath, these
-
Origin Group as Value field in COPA - Is that Possible
Hello Gurus, The business requirement is to see all the Origin Groups as Value fields in COPA - Is that Possible? If Yes, Please suggest me the steps to follow. Thanks a lot for your time. Regards, PM
-
My display pic on BBM won't change
My dispay picture on BBM will not change - meaning, I can change it on my phone but it does not change for my contacts. What can I do so that my contacts see new display pics? Thanks.
-
I am experimenting with soft proofing various sunset images. The problem I'm seeing when I soft proof the images in Photoshop using the Adobe RGB profile is that the oranges and magentas in the sunset turn yellowish. Can someone please explain why t
-
I want to make a hard copy of the names and e-mail addresses in a category of my CONTACTS. How do I go about this?