Update and Select Record
Can you help me !rolve myu2019s problem that I used ?
1: clicking View Child button, how the system only can display the 1-1 employee information ( Employee No 1à only show his/her child not show all Employeeu2019s child in the company).
Becase ,I used
Private Sub CreateForm(ByRef EmplID As String).
oForm.DataSources.DataTables.Item(0).ExecuteQuery("select EmpID,U_Child1,U_DateOB,U_Child2,U_DateOB2,U_Child3,U_DateOB3,U_Child4,U_DateOB4 from OHEM where EmpID=" + EmplID)
Public Sub ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, _
ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If ((pVal.ItemUID = "btnVC") And _
(pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK)) Then
CreateForm(u201C1u201D)
OForm = SBO_Application.Forms.Item("frmGrid")
OForm.Visible = True
End If
However,If I want to display childu2019s employee information next then it not display .Therefor,I used:
Public Sub ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, _
ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
If "60100" = pVal.FormType And pVal.BeforeAction = False Then
Dim Emp As String
Emp = OForm.Items.Item("33")
If ((pVal.ItemUID = "btnVC") And _
(pVal.EventType = SAPbouiCOM.BoEventTypes.et_CLICK)) Then
CreateForm(Emp)
OForm = SBO_Application.Forms.Item("frmGrid")
OForm.Visible = True
End If
Are you can help me resolvable this problem ?
URL=http://imageshack.usIMGhttp://img509.imageshack.us/img509/4238/selectandupdateev0.png[/IMG][/url]
URL=http://g.imageshack.us/img509/selectandupdateev0.png/1/IMGhttp://img509.imageshack.us/img509/selectandupdateev0.png/1/w1012.png[/IMG][/url]
Emp = OForm.Items.Item("33")
=>
Emp = OForm.Items.Item("33").Specific.String
By the way, actually it is unnecessary to open a new question, just update the original question. then follow wit it.
Kind Regards
-Yatsea
Similar Messages
-
Sessions/connections gets hang during update and select operations.
A table with 3 million records, which has customer details data.
Everyday application is executing select and update queries on that table.
Sessions/connections gets hang during update and select operations.
After checking ADDM report, following are the findings:
Please suggest the solutions
Findings and Recommendations
Finding 1: Row Lock Waits
Impact is 145.22 active sessions, 99.77% of total activity.
SQL statements were found waiting for row lock waits.
Recommendation 1: Application Analysis
Estimated benefit is 145.22 active sessions, 99.77% of total activity.
Action
Significant row contention was detected in the TABLE
"AVAYA.AIRTEL_CUSTOMER_MASTER" with object ID 82155. Trace the cause of
row contention in the application logic using the given blocked SQL.
Related Object
Database object with ID 82155.
Rationale
The SQL statement with SQL_ID "974vg65j29pmv" was blocked on row locks.
Related Object
SQL statement with SQL_ID 974vg65j29pmv.
UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
Rationale
The session with ID 50 and serial number 34525 in instance number 1 was
the blocking session responsible for 100% of this recommendation's
benefit.
Symptoms That Led to the Finding:
Wait class "Application" was consuming significant database time.
Impact is 145.22 active sessions, 99.77% of total activity.
Finding 2: Top SQL Statements
Impact is 46.39 active sessions, 31.87% of total activity.
SQL statements consuming significant database time were found. These
statements offer a good opportunity for performance improvement.
Recommendation 1: SQL Tuning
Estimated benefit is 46.39 active sessions, 31.87% of total activity.
Action
Investigate the UPDATE statement with SQL_ID "974vg65j29pmv" for
possible performance improvements. You can supplement the information
given here with an ASH report for this SQL_ID.
Related Object
SQL statement with SQL_ID 974vg65j29pmv.
UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
Rationale
The SQL spent only 0% of its database time on CPU, I/O and Cluster
waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
Look at performance data for the SQL to find potential improvements.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "974vg65j29pmv" was executed 212 times and had
an average elapsed time of 2494 seconds.
Rationale
Waiting for event "enq: TX - row lock contention" in wait class
"Application" accounted for 100% of the database time spent in
processing the SQL statement with SQL_ID "974vg65j29pmv".**addm report **
ADDM Report for Task 'TASK_7526'
Analysis Period
AWR snapshot range from 5003 to 5004.
Time period starts at 08-JUL-13 11.00.27 AM
Time period ends at 08-JUL-13 12.00.45 PM
Analysis Target
Database 'AVAYADB' with DB ID 2878789264.
Database version 11.2.0.1.0.
ADDM performed an analysis of instance avayadb, numbered 1 and hosted at
NG-LA04AVAYA01.
Activity During the Analysis Period
Total database time was 563062 seconds.
The average number of active sessions was 155.63.
Summary of Findings
Description Active Sessions Recommendations
Percent of Activity
1 Row Lock Waits 155.44 | 99.88 1
2 Top SQL Statements 26.67 | 17.14 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Findings and Recommendations
Finding 1: Row Lock Waits
Impact is 155.4 active sessions, 99.88% of total activity.
SQL statements were found waiting for row lock waits.
Recommendation 1: Application Analysis
Estimated benefit is 155.44 active sessions, 99.88% of total activity.
Action
Significant row contention was detected in the TABLE
"AVAYA.AIRTEL_CUSTOMER_MASTER" with object ID 82155. Trace the cause of
row contention in the application logic using the given blocked SQL.
Related Object
Database object with ID 82155.
Rationale
The SQL statement with SQL_ID "974vg65j29pmv" was blocked on row locks.
Related Object
SQL statement with SQL_ID 974vg65j29pmv.
UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
Rationale
The session with ID 167 and serial number 6084 in instance number 1 was
the blocking session responsible for 100% of this recommendation's
benefit.
Symptoms That Led to the Finding:
Wait class "Application" was consuming significant database time.
Impact is 155.45 active sessions, 99.88% of total activity.
Finding 2: Top SQL Statements
Impact is 26.66 active sessions, 17.14% of total activity.
SQL statements consuming significant database time were found. These
statements offer a good opportunity for performance improvement.
Recommendation 1: SQL Tuning
Estimated benefit is 26.67 active sessions, 17.14% of total activity.
Action
Investigate the UPDATE statement with SQL_ID "974vg65j29pmv" for
possible performance improvements. You can supplement the information
given here with an ASH report for this SQL_ID.
Related Object
SQL statement with SQL_ID 974vg65j29pmv.
UPDATE AVAYA.AIRTEL_CUSTOMER_MASTER SET PREFERRED_LANGUAGE = :1
WHERE ( AIRTEL_CUSTOMER_MASTER.MSISDN = :2 )
Rationale
The SQL spent only 0% of its database time on CPU, I/O and Cluster
waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
Look at performance data for the SQL to find potential improvements.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "974vg65j29pmv" was executed 707 times and had
an average elapsed time of 794 seconds.
Rationale
Waiting for event "enq: TX - row lock contention" in wait class
"Application" accounted for 100% of the database time spent in
processing the SQL statement with SQL_ID "974vg65j29pmv".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Additional Information
Miscellaneous Information
Wait class "Commit" was not consuming significant database time.
Wait class "Concurrency" was not consuming significant database time.
Wait class "Configuration" was not consuming significant database time.
Wait class "Network" was not consuming significant database time.
Wait class "User I/O" was not consuming significant database time.
Session connect and disconnect calls were not consuming significant database
time.
Hard parsing of SQL statements was not consuming significant database time. -
I am making an iMovie Trailer on my iPad 3 (updated) and I recorded a few clips using my iPad Camera but they are not being detected on the iMovie Videos scetion. How can I make them appear so I can use them in my trailer?
Hi Stuck-in-NY,
If you are looking to transfer your purchases to your computer, you may find the following article helpful:
Apple Support: Downloading past purchases from the App Store, iBookstore, and iTunes Store
http://support.apple.com/kb/HT2519
Regards,
- Brenden -
Paging/displaying and selecting records in jsp
Hey,
I needed some info on paging, displaying and selecting records in a jsp. Any direction in terms of which technique is the most efficient(which tags to to use etc). Any online resources which go into some detail would be great. Basically working with a list of objects.
Thanks in advance for your assistanceHere is at least one online resource:
http://www.google.com/search?q=jsp+paging -
Updating and deleting records in access DB
i'm trying to make multiple updates and deletes in a access DB and it doesn't work.
my program executes lot's of updates and delete statements when saving, but I only commit in the end when I know all the statements finished ok.
I can't make it a batch update since I need to retrieve the auto-number that access issues me on some of my tables.
I know it's kinda fuzzy, but my program is SO big already, and I can't really put the code in here - it wouldn't do much good.
what I will do is write what my log shows (i issue a log output whenever there's a executeQuery/Update and before commit/rollback
DBG : 29/04/03 : UPDATE CASES_T SET CASE_office_case_id = 1 ,CASE_year = 2 ,CASE_total_debt = 10009 ,CASE_is_limited = true ,CASE_monthly_payment = 400 ,CASE_hotzlap_case_id = ' - - - ' ,CASE_status = 26 WHERE CASE_tech_id = 5
DBG : 29/04/03 : SELECT count(*) from CASES_OWEES_T where CAOW_Tech_Id = 23
DBG : 29/04/03 : UPDATE CASES_OWEES_T SET CAOW_case_tech_id = 5 ,CAOW_id_number = '046259990' ,CAOW_first_name = '���' ,CAOW_last_name = '������' ,CAOW_work_place = 'jjjjjjjjjjjjj' ,CAOW_address = '1jjjjjjjjjjjj' ,CAOW_telephone = '09-8099999' ,CAOW_pelephone = '000-000000' ,CAOW_hotzlap_case_id = ' - - - ' ,CAOW_is_valid_address = false WHERE CAOW_TECH_ID = 23
DBG : 29/04/03 : SELECT count(*) from CASES_OWEES_T where CAOW_Tech_Id = 24
DBG : 29/04/03 : UPDATE CASES_OWEES_T SET CAOW_case_tech_id = 5 ,CAOW_id_number = ' ' ,CAOW_first_name = '�����' ,CAOW_last_name = '���' ,CAOW_work_place = '����' ,CAOW_address = '��?' ,CAOW_telephone = ' - ' ,CAOW_pelephone = ' - ' ,CAOW_hotzlap_case_id = ' - - - ' ,CAOW_is_valid_address = true WHERE CAOW_TECH_ID = 24
DBG : 29/04/03 : SELECT count(*) from CASES_INNER_CASES_T where CICA_Tech_Id = 10
DBG : 29/04/03 : UPDATE CASES_INNER_CASES_T SET CICA_case_tech_id = 5 ,CICA_debt = 5000897 ,CICA_winner_name = '���' ,CICA_lawyer_tech_id = '6' ,CICA_hotzlap_case_id= '02-22122-22-2' WHERE CICA_tech_id= 10
DBG : 29/04/03 : SELECT count(*) from CASES_INNER_CASES_T where CICA_Tech_Id = 11
DBG : 29/04/03 : UPDATE CASES_INNER_CASES_T SET CICA_case_tech_id = 5 ,CICA_debt = 20008 ,CICA_winner_name = '������' ,CICA_lawyer_tech_id = '2' ,CICA_hotzlap_case_id= '02-22222-22-2' WHERE CICA_tech_id= 11
DBG : 29/04/03 : SELECT count(*) from CASES_INNER_CASES_T where CICA_Tech_Id = 14
DBG : 29/04/03 : UPDATE CASES_INNER_CASES_T SET CICA_case_tech_id = 5 ,CICA_debt = 129 ,CICA_winner_name = '' ,CICA_lawyer_tech_id = '4' ,CICA_hotzlap_case_id= '02-22222-22-2' WHERE CICA_tech_id= 14
DBG : 29/04/03 : SELECT count(*) from CASES_CUSTOMER_CARDS_T where CUCA_Tech_Id = 23
DBG : 29/04/03 : UPDATE CASES_CUSTOMER_CARDS_T SET CUCA_case_tech_id = 5 , CUCA_sum = 324 , CUCA_fee_plus_maam = -38.0 , CUCA_for_division = 285.0 , CUCA_voucher = '3222 ' , CUCA_date = '2003-04-24' , CUCA_in_or_out = true WHERE CUCA_tech_id = 23
DBG : 29/04/03 : SELECT count(*) from CASES_CUSTOMER_CARDS_T where CUCA_Tech_Id = 22
DBG : 29/04/03 : UPDATE CASES_CUSTOMER_CARDS_T SET CUCA_case_tech_id = 5 , CUCA_sum = 324 , CUCA_fee_plus_maam = -38.0 , CUCA_for_division = 285.0 , CUCA_voucher = '2222 ' , CUCA_date = '2003-04-23' , CUCA_in_or_out = true WHERE CUCA_tech_id = 22
DBG : 29/04/03 : SELECT count(*) from CASES_CUSTOMER_CARDS_T where CUCA_Tech_Id = 21
DBG : 29/04/03 : UPDATE CASES_CUSTOMER_CARDS_T SET CUCA_case_tech_id = 5 , CUCA_sum = 100 , CUCA_fee_plus_maam = -11.0 , CUCA_for_division = 0.0 , CUCA_voucher = '2222 ' , CUCA_date = '2003-04-23' , CUCA_in_or_out = true WHERE CUCA_tech_id = 21
DBG : 29/04/03 : SELECT count(*) from CASES_CUSTOMER_CARDS_T where CUCA_Tech_Id = 20
DBG : 29/04/03 : UPDATE CASES_CUSTOMER_CARDS_T SET CUCA_case_tech_id = 5 , CUCA_sum = 1000 , CUCA_fee_plus_maam = -118.0 , CUCA_for_division = 882.0 , CUCA_voucher = '1111 ' , CUCA_date = '2003-04-23' , CUCA_in_or_out = true WHERE CUCA_tech_id = 20
DBG : 29/04/03 : SELECT count(*) from CASES_INVESTIGATIONS_T where CAIN_Tech_Id = 16
DBG : 29/04/03 : UPDATE CASES_INVESTIGATIONS_T SET CAIN_case_tech_id = 5 ,CAIN_text = '' ,CAIN_was_declared_limited = false ,CAIN_date = '2003-03-01' ,CAIN_rulling_effective_date = '2003-02-01' ,CAIN_payment_amount = 400 WHERE CAIN_TECH_ID = 16
DBG : 29/04/03 : SELECT count(*) from CASES_INVESTIGATIONS_T where CAIN_Tech_Id = 12
DBG : 29/04/03 : UPDATE CASES_INVESTIGATIONS_T SET CAIN_case_tech_id = 5 ,CAIN_text = '' ,CAIN_was_declared_limited = true ,CAIN_date = '1970-01-01' ,CAIN_rulling_effective_date = '1905-03-06' ,CAIN_payment_amount = 90 WHERE CAIN_TECH_ID = 12
DBG : 29/04/03 : SELECT count(*) from CASES_INVESTIGATIONS_T where CAIN_Tech_Id = 10
DBG : 29/04/03 : UPDATE CASES_INVESTIGATIONS_T SET CAIN_case_tech_id = 5 ,CAIN_text = '' ,CAIN_was_declared_limited = false ,CAIN_date = '1970-01-01' ,CAIN_rulling_effective_date = '1990-01-30' ,CAIN_payment_amount = 89 WHERE CAIN_TECH_ID = 10
DBG : 29/04/03 : DELETE FROM CASES_INVESTIGATIONS_T where CAIN_tech_id = 9
DBG : 29/04/03 : DELETE FROM CASES_INVESTIGATIONS_T where CAIN_tech_id = 9
DBG : 29/04/03 : DELETE FROM CASES_INVESTIGATIONS_T where CAIN_tech_id = 14
DBG : 29/04/03 : DELETE FROM CASES_INVESTIGATIONS_T where CAIN_tech_id = 14
DBG : 29/04/03 : DELETE FROM CASES_INVESTIGATIONS_T where CAIN_tech_id = 13
DBG : 29/04/03 : DELETE FROM CASES_INVESTIGATIONS_T where CAIN_tech_id = 13
DBG : 29/04/03 : DELETE FROM CASES_INVESTIGATIONS_T where CAIN_tech_id = 11
DBG : 29/04/03 : DELETE FROM CASES_INVESTIGATIONS_T where CAIN_tech_id = 11
DBG : 29/04/03 : SELECT count(*) from CASES_PAYMENTS_T where CAPY_Tech_Id = 71
DBG : 29/04/03 : UPDATE CASES_PAYMENTS_T SET CAPY_case_tech_id = 5 ,CAPY_sum = 400 ,CAPY_exception_text = '' ,CAPY_is_exception = true ,CAPY_voucher = '' ,CAPY_date = '2003-04-01' ,CAPY_is_paid_in_hotzlap = false WHERE CAPY_TECH_ID = 71
DBG : 29/04/03 : SELECT count(*) from CASES_PAYMENTS_T where CAPY_Tech_Id = 70
DBG : 29/04/03 : UPDATE CASES_PAYMENTS_T SET CAPY_case_tech_id = 5 ,CAPY_sum = 400 ,CAPY_exception_text = '' ,CAPY_is_exception = true ,CAPY_voucher = '' ,CAPY_date = '2003-03-01' ,CAPY_is_paid_in_hotzlap = false WHERE CAPY_TECH_ID = 70
DBG : 29/04/03 : SELECT count(*) from CASES_PAYMENTS_T where CAPY_Tech_Id = 69
DBG : 29/04/03 : UPDATE CASES_PAYMENTS_T SET CAPY_case_tech_id = 5 ,CAPY_sum = 400 ,CAPY_exception_text = '' ,CAPY_is_exception = true ,CAPY_voucher = '' ,CAPY_date = '2003-03-01' ,CAPY_is_paid_in_hotzlap = false WHERE CAPY_TECH_ID = 69
DEV : 29/04/03 : commitsure - I don't get any exception. the data just
doesn't show in the DB. (no updating/deletion of
records)
as I wrote before - when the the programm commits the
changes and does the next select command it seems as
if the data was changed/deleted but if I check the DB
with access or if I restart the prgoram then I see
that the data didn't change.
Access/jdbc-odbc has a problem where modifications are not 'commited' when the statement completes. Instead one must do one of the following:
1. Explicit commit.
2. Simple select after statement.
3. Close the connection.
Presumably you are doing 1.
Since other than this it does work, it suggests one of the following.
1. Something is wrong with your environment. For instance you are looking at the wrong database. Or not refreshing. Or something else like that.
2. You are using something besides a simple connection - like opening it with 'scroll insensitive'.
3. The complexity is causing it to lose an error message. This can be tested by doing each statement individually and verify that none produce an error.
4. Maybe you found a bug. You can turn on ODBC tracing via the applet panel and see if digging through all of the detail provides any clues (you can also do this with 3 above.) -
Creating Update and deleting Records Forms
Hi Guys
Hopefully some one can help me with this, I am using php and
mysql, I already have a page that shows all the records of
customers details, which I can navigate through the pages of
records.
I have created a update page, using the update wizard, which
works but only shows the first record. I have added a repeat region
and page navigation which allows me to choose individual records
but wont update those records.
I also took a look at a tutorial video that had you adding an
extra column and add the word update to add a hyperlink that took
you to the update form with that particular record for updating,
the video was using cold fusion the link was update page address
then this ?ID=#ID#, I tried different versions of this with no
success.
I also tried to alter the record set and added a filter using
Member_ID and = paramater URL, this made my cusomter detail page
stop working.
can some one help please
Cheers
Markburkeslaw wrote:
> Is it that I have to create the update form manually and
then select it and
> add the update form behaviour? Is there an Go to
Detailed Page server behaviour
> for php, or is this just for ASP technology.
I'm not familiar with the ASP server behaviors, but there is
a Master
Detail Page Set for PHP (it's on the Insert > Data Objects
menu).
Creating an update page is very easy.
1. Create a page that lists all records in the database.
2. Alongside each record, create a link to the update page.
3. When creating the link, click the Parameters button inside
the Select
File dialog box.
4. In the Name field of the Parameters dialog box, type the
name of the
primary key (ID).
5. Click the lightning bolt icon to the right of the Value
field, and
select the primary key from the recordset.
6. Click OK twice to close both dialog boxes.
7. Save the page and test it in a browser. When you mouse
over each
link, it should display a URL that looks something like this:
update.php?id=3. The name/value pair after the question mark
pass the
details of the record as a URL parameter to the update page.
8. In the update page, create a recordset that uses the URL
parameter as
a filter to select a single record depending on the value
sent from the
previous page.
9. In the update page, create a hidden field to store the ID
from the
recordset (click the lightning bolt icon alongside the Value
field to
insert the dynamic data).
10. Apply an Update Record server behavior. Make sure the
primary key
gets its value from the hidden field in the form.
Alternatively, if you don't want to build your own update
form, replace
steps 9 and 10 by using the Record Update Form Wizard (Insert
> Data
Objects > Update Record > Record Update Form Wizard).
David Powers
Adobe Community Expert, Dreamweaver
http://foundationphp.com -
How to create a bapi to update and add record 2 abap r3 table created by me
i have created a abap r3 table and i now want to insert records into it through SAP netweaver(Web-Dynpro). So i need a bapi to udate and insert records in the abap r3 table.if someone can please tell me how to create the bapi..coz i handel the EP part and dont know much about abap.
BAPIs are defined as API methods of SAP business object types.
A BAPI is implemented as a function module, that is stored and described in the Function Builder.
To create BAPI you are supposed to do following steps :
1) create package in SE80.
2) create function group in SE80.
3) create function module in SE37(REMOTE ENABLE) & relased it .
write your logic in that FM.
4) Go in SWO1 to create Object type / object name (write the program name which is SE38 program generated in background )
5) Then go to SWO1
Utilities -> Api methods -> ADD method
write the name of FM which you have created & continue.
6) select your method
a) EDIT -> change release status -> object type -> implement
-> released
b) EDIT -> change release status -> object type component-> implement
-> released
7) go in BAPI & you will get your BAPI. -
APEX time to insert update and/or records
Hello everyone,
I know how to get the time APEX needs to load a repor! But how can I get the time APEX took to insert, update and or delete a records!! Does this work with #TIMING# as well??? If it does where to put this...
Thank you
Regards
SebastianI use the APEX version 2.0.1 provided by the Oralce Database 10g XE!
And I wanna know how long it takes to insert, update or delete a records???
I may should add that I link the different buttons to the specific processes to running the approproated sql statements!
When I use the debug mode as mentions there is no hit how long APEX took to insert, update or delete a records. It just shows the basic time values how long it takes to load the whole application.
Regards
Sebastian -
Unable to update and delete record in table
Hello All,
Kindly help me regarding the below mentioned issue plz
When I want to update or delete record in table from form developed in 6i give no error message but no action and when I run same form on other system updation and deletion are successfully done.
Any suggestionHello
More explanation is as under:
1. I am working on only one table say A
2. Wants to update only one row of Table A at one time in single user envoirment.
3. My form is successfully update some rows as well but not on all rows on one PC while same form able to update all rows on other PC.
4. I drop the table and re-create the table again but problem persist.
Any advice plz. -
Insert, update and select Chinese characters
Dear all,
I fail to use my application to insert, update or select Chinese characters into Oracle DB using oracle instant client 9i. Do I need to do to setup for NLS_LANG?
My OS is WIN 2K prof.
Regards,
KennethSet the environment variable NLS_LANG to include the correct value for the Chinese codepage that you want.
Does the problem go away?
Yours,
Laurenz Albe -
How to update and delete records in a text file?
Hi,
I had a text file in which contains records line by line with ',' as delimiter as I use stringtokenizer and vector to read the data.
The format in the text file likes: Name, Sex, Age.
I want to add 2 functions:
(1) update the record by name, sex or age;
(2) delete the whole line of record;
Do I need to open a temp text file to do it?
And, what is the algorithm can be suggested?
For both of them, I want to firstly read the total line numbers. Then, the line number + Name, Sex, Age will be displayed on the console window. User can choose which line of record to update or delete.
Or, user can search name in order to do that.
But, what is the backend algorithm to handle it? If I have 10 lines of record, I want to delete 7th line, the 7th line of the text file will be blanked. How can I move 8th, 9th and 10th lines of records up by one line in order to fill the blank line?
Do I need to copy the first 6 lines to a temp text file and copy the last 3 lines of records to the same temp file first? and then copy all the content of that temp file back to the original text file? If so, how can I copy the same format of the original file (with '\n') to the temp file? I need the same data structure likes Name, Sex, Age.
However, when I add records, I need to append the text in the original text file, not override it's current content.
Any advice?
Thanks
gogoIf your file is not designed to be amazingly large, then you don't need to use a temporary file -- you can just read the data into memory and manipulate it there. (Like, into a Document object or something.)
But if you are dealing with really large files, you might want to consider using a database back end instead of a text file, which is a completely different approach I know but... well, that's why databases were invented. -
JDBC Syncron message whit Update and select
Hi.
I'm trying to make an syncron (RFC <==> JDBC) message where I got an request from an RFC. This request should update an DB and then return with the updated fields.
The updata works fine, but I did not get the changed fields back in my responsmessage.
I use two mappingprogram. One for the update(RFC => JDBC and one for the respons JDBC = > RFC.
But my respons like like this.:
- <InsertStatement_response>
<update_count>1</update_count>
<insert_count>0</insert_count>
</InsertStatement_response>
I will be very happy if someone could give me an link to an exampel which describe this scenario.
Thanks/ perarneBut my respons like like this.:
- <InsertStatement_response>
<update_count>1</update_count>
<insert_count>0</insert_count>
</InsertStatement_response>
The response is quite valid.
This request should update an DB and then return with the updated fields.
Do a normal RFC_Req --> JDBC_Req mapping.....in the response mapping (JDBC_Resp to RFC_Resp) inlcude a JDBCLookup which will lookup (select) for the updated fields....then you can use the output of the lookup to send to RFC_Resp. -
Update and Select from the same table
Hello,
i have this select - i tested it and its working
[code]
select
case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTBT
else DTF_REEW_201301.KTBT - CTF_REEW_KUM_201301.KTBT
end
as KTBT_ISO,
case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTZN
else DTF_REEW_201301.KTZN - CTF_REEW_KUM_201301.KTZN
end
as KTZN_ISO,
case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTAB
else DTF_REEW_201301.KTAB - CTF_REEW_KUM_201301.KTAB
end as KTAB_ISO,
DTF_REEW_201301.brnrn,
DTF_REEW_201301.ktat
from
reewcore.CTF_REEW_KUM_201301 CTF_REEW_KUM_201301,
reewdq.DTF_REEW_201301 DTF_REEW_201301
where
(DTF_REEW_201301.BRNRN = CTF_REEW_KUM_201301.BRNRN
and DTF_REEW_201301.KTAT = CTF_REEW_KUM_201301.KTAT)
and CTF_REEW_KUM_201301.KTMO = (DTF_REEW_201301.KTMO - 1)
[/code]
With the result from KTBT_ISO, KTZN_ISO and KTAB_ISO i want to update the table "reewdq.DTF_REEW_201301" - and this table is in the select-statement!
I believe, i tried every update-statement - but no update is working.
I need something like this:
[code]
update reewdq.DTF_REEW_201301 t1 set t1.KTBT_ISO=
select
case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTBT
else DTF_REEW_201301.KTBT - CTF_REEW_KUM_201301.KTBT
end
as KTBT_ISO
from
reewcore.CTF_REEW_KUM_201301 CTF_REEW_KUM_201301,
reewdq.DTF_REEW_201301 DTF_REEW_201301
where
(DTF_REEW_201301.BRNRN = CTF_REEW_KUM_201301.BRNRN
and DTF_REEW_201301.KTAT = CTF_REEW_KUM_201301.KTAT)
and CTF_REEW_KUM_201301.KTMO = (DTF_REEW_201301.KTMO - 1)
t1.KTZN_ISO=
select
case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTZN
else DTF_REEW_201301.KTZN - CTF_REEW_KUM_201301.KTZN
end
as KTZN_ISO
from
reewcore.CTF_REEW_KUM_201301 CTF_REEW_KUM_201301,
reewdq.DTF_REEW_201301 DTF_REEW_201301
where
(DTF_REEW_201301.BRNRN = CTF_REEW_KUM_201301.BRNRN
and DTF_REEW_201301.KTAT = CTF_REEW_KUM_201301.KTAT)
and CTF_REEW_KUM_201301.KTMO = (DTF_REEW_201301.KTMO - 1)
t1.KTAB_ISO=
select
case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTAB
else DTF_REEW_201301.KTAB - CTF_REEW_KUM_201301.KTAB
end as KTAB_ISO
from
reewcore.CTF_REEW_KUM_201301 CTF_REEW_KUM_201301,
reewdq.DTF_REEW_201301 DTF_REEW_201301
where
(DTF_REEW_201301.BRNRN = CTF_REEW_KUM_201301.BRNRN
and DTF_REEW_201301.KTAT = CTF_REEW_KUM_201301.KTAT)
and CTF_REEW_KUM_201301.KTMO = (DTF_REEW_201301.KTMO - 1)
[/code]
But this code isn´t working. Has someone an idea please? Can someone please help me.
Best regards
HeidiUse MERGE:
merge
into reewdq.DTF_REEW_201301 t1
using (
select case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTBT
else DTF_REEW_201301.KTBT - CTF_REEW_KUM_201301.KTBT
end as KTBT_ISO,
case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTZN
else DTF_REEW_201301.KTZN - CTF_REEW_KUM_201301.KTZN
end as KTZN_ISO,
case
when DTF_REEW_201301.KTMO =1 then DTF_REEW_201301.KTAB
else DTF_REEW_201301.KTAB - CTF_REEW_KUM_201301.KTAB
end as KTAB_ISO,
reewdq.ROWID as rid
from reewcore.CTF_REEW_KUM_201301 CTF_REEW_KUM_201301,
reewdq.DTF_REEW_201301 DTF_REEW_201301
where DTF_REEW_201301.BRNRN = CTF_REEW_KUM_201301.BRNRN
and DTF_REEW_201301.KTAT = CTF_REEW_KUM_201301.KTAT
and CTF_REEW_KUM_201301.KTMO = DTF_REEW_201301.KTMO - 1
) t2
on (
t1.rowid = t2.rid
when mathed
then
update
set t1.KTBT_ISO = t2.KTBT_ISO,
t1.KTZN_ISO = t2.KTZN_ISO,
t1.KTAB_ISO = t2.KTAB_ISO
SY. -
Condition Update and Condition Record
Hi Friends
We have maintained Condition record validity and same will be used for u201CCondition updateu201Dfeature.
Condition Update says that Condition record to be executed only first 10 orders for one customer as per our configuration and from 11th order on ward new condition record to be triggered automatically.
Note: we are not sure that how long customer will take time to finish first 10 orders.
So kindly let me know if there is any way to resolve above mentioned issue.
Warm Regards
Vijayhi Raghu,
thanks for the your response but condition record is based on material ....and you must be expecting if it is on customer based we can manage it through validity right ....but how can we sure that customer will be closing his orders by some time.
please let me know if you have any volition.
warm regards
Vijay -
Select records based on criteria and update those records once read
hi,
I am very new to bpel and DB adapters.
I have a requirement where in I need to query two tables to fetch some records and update these selected records with a new value for field to indicate that bpel has processed these records.
Once I select these I needs the output to be mapped to the output variable.
I am able to select the records based on criteria , but how will i lock these records so that these records do not get processed again. This should be a very simple usecase just that I am not aware.
Thanks,
RobinOnce you have finished reading the records fire an update query , update some field in the table so that it does not get picked up next time.
if you are using polling for picking up the records, then use logical delete scenario, refer....http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/adptr_db.htm#BABEEBIH
Maybe you are looking for
-
[SOLVED]Alsa: No sound in flash64, works in flash32
Hi Everyone, So I had a devel of a time getting audio working on my computer, largely because I was an idiot. I got oss working fine, but then it wouldn't work with either chromium or firefox. With help from mich41 (https://bbs.archlinux.org/viewtop
-
Updated my ipad yesterday to ios7. Now it won't sync to my iMac ( error message telling me it needs a more up to date version of itunes). When I check ipad....it says all software up to date! The iMacs software is also showing as up to date.
-
I have two OC4J standalone (10.0.3.0.0 build 040227.1923) The containers work on Windows2000 in different machines connected by the LAN. First container has JMS queue (jms.xml): < queue name = "ITCQueue1" location = "jms/ITCQueue1" > <description> Qu
-
Adobe Media Encoder Fails to convert the H264 movs from may Canon 5D mark 2, to Cineform AVI's
It fails no mater what codec settings I have tried.....forcing me to use the HD Link that came with NeoScene( Cineform)....Once converted by HDLink, the Adobe Media Encoder is fine transcoding the Cineform avi's to any format it normally works with.
-
Seeking LR5 Solution for Dolby 5.1 sound
Many AVCHD video cameras (including models from SONY and Panasonic) have the ability to record Dolby 5.1 surround sound. These sound tracks can be played on any Windows 7 system with Windows Media Player. They can be played and edited in Premiere CS