Update Record, please create a Recordset
I created a form, I created a Recordset, used the form to
fetch a single record, display the contents of the record using
Bindings off the Recordset, modify some fields, and now I wish to
update the record.
When I try to apply the update record behavior, I get told to
Create a Recordset. Yet I already have one!
What secret am I missing?
Thanks!
Ross -- using DW8
i have now worked around it but now when i press the update
button it dosn't go to the opperate page i get a HTTP 500 error and
i tdoesn't update the table
Similar Messages
-
Using Dreamweaver MX 2004. I have a recordset created, and
need to update a table. When I select the Update Record server
behavior I get the following message "before using this behavior,
please create a recordset". However the recordset has already been
created, and it tests fine, I can see the data in the tables, and I
am able to insert a record, delete a record, but not update...
Using ASP JavaScript Server model with Access databse. Any help is
much appreciated.
Thanks! :Hi
Have you already made the binding? - it's not obvious from
your posting - but you should have a form with the initial data you
want to update bound to it before you can update.
I won't bang on about this because maybe you did it already.
bfn -
Recordset - updating 2 tables with 1 recordset using application object update record
I have a recordset that uses a field from 2 different tables
with a select statement where clause that joins a userid. I can
display the field’s data just fine. Now I want to use the
Application object “update record” so I can modify
either of the fields. The problem is the Application object
“update record” only allows you to update one table.
How does Dreamweaver mx 2004 allow me to update 2 tables with one
recordset and 1 submit button? Currently using php.
Example of where:
Where member.userid = member_detail.userid
I tried creating the one form with the field from the first
table and that works just fine. I added the other field from the
other table into the form but ofcourse there isn’t any code
that will update the second table so it won’t work.
My application requires me to update alot of fields between 2
tables at the same time.
Does anyone know a way using Dreamweaver mx 2004 to do this?
I don’t have much php experience.jon-rookie wrote:
> DreamerJim,
>
> I am sorry but I don't think you are correct. I just
can't believe that with
> all the powers to be at Macromedia and now Adobe can't
figure out how to update
> two tables at once. There are millions of db's out there
that require this. I
> spent several hours today perusing lots of posts on the
internet. It seems I
> am not the only one out there that has asked this
question. Unfortunately
> there are no good answers yet to my surprise.
>
> I did find a Dreamweaver extension that does exactly
what I myself and many
> others want. The problem is it is no longer available
unless you purchase a
> bundle of software from Adobe.
>
> I have not looked into it in detail so I am not 100%
sure that is accurate!
>
> Still, alot of php programmers do this all the time
without much trouble. I
> just want to know if Dreamweaver mx 2004 has the
capability if a person knows
> the right steps.
>
> Hopefully a Dreamweaver expert will post something to
let us know for sure.
> Until then I am stuck.
>
Not even CS3 has this built in, you will either have to code
it yourself
or buy the extension you have found. Dreamweaver gives you
basic
features to help you develop applications, but if you want to
do
anything really clever you have to do it yourself.
One thing to consider is maybe creating an SQL view that is
can be
updated. I am pretty sure it exists, then you use the view
instead of
the table in the update behaviour. I have never done it
myself, but I am
sure it can be done.
Steve -
Update SO after creating missing condition record
Hi Gurus,
I was getting error message that missing MWST condition in Order, then I investigated and created missing condition record in VK11. Now I would like to update the Sales order and tried update tab on condition but invain.
Initially the document was created on 17.11.2008 and today condition record was created 18.11.2008.
Kindly help me in resolving this.
Thanks
BawaDear Bawa,
While creating Condition Record "MWST" in VK11/ 12;
What were the Dates maintained in Fields:
1. Valid From (try with back-date maintenance)
2. Valid To (Maintain as 31.12.9999)
Once done, try to Update with "G - Copy pricing elements unchanged and redetermine taxes", in Sales Order.
Best Regards,
Amit -
Please create an update to firefox for MAC OS X 10.5.8...I have so many labs that still use this OS and with budget cuts they are not planning to update for the next few years. It cannot be that difficult.
You can use TenFourFox, which is a third-party build of Firefox that works on Mac OS X 10.4 or 10.5.
* http://www.floodgap.com/software/tenfourfox/
Mozilla already ended support for Leopard a month ago. The developers believe that the resources spent supporting the older operating system would be better used elsewhere. Realistically, one or more enthusiasts asking not to end support isn't going to change the fact the user base isn't large enough to make that kind of effort worthwhile.
* https://blog.mozilla.org/futurereleases/2012/10/04/we-bid-you-adieu-spotted-cat/ -
When trying to install a new app on my iPhone 4S, i received a message: "This is not a Test User account. Please create a new account in the Sandbox environment". What does this mean? I cannot update or download any app. Thanks
Common on jailbroken iPhones, not so on non-jailbroken iPhones. Thus, if your phone is not jailbroken, restoring from backup will hopefully fix the issue.
-
Need help to insert and update records in MDM
Hi ,
I am trying to develop an webdynpro application which can create and update records in tables of a repository of MDM . For example .. I want to insert values and later update values in Vendor table.
I am new to webdynpro and MDM. If any one can help step by step or can send a sample code which I can be ready to use that would be great help.
If anyone can have a sample code .. kindly mail to "[email protected]"
It is urgent. Please help.
Regards,
Niraj
Edited by: Niraj Kumar on May 23, 2008 6:50 AMHi Niraj,
Are u going to work with webdynpro Java/ABAP?
some materials which are found useful are sent.
Cheers,
Mary -
Mapping problem with compressed key update record
Hi, could you please advise?
I'm getting the following problem:
About a week ago replicat abened with "Error in mapping" error. I found in discard file some record looking like:
filed1 = NULL
field2 =
field3 =
field4 =
field5 =
datefield = -04-09 00:00:00
field6 =
field8 =
field9 = NULL
field10 =
Where filed9 = @GETENV("GGHEADER", "COMMITTIMESTAM"), field10 = = @GETENV("GGHEADER", "COMMITTIMESTAM"), others are table fields mapped by USEDEFAULTS
So I got Mapping problem with compressed key update record at 2012-06-01 15:44
I guess I need to mention that extract failed in 5 minuts before it with: VAM function VAMRead returned unexpected result: error 600 - VAM Client Report <[CFileInfo::Read] Timeout expired after 10 retries with 1000 ms delay, waiting to read transaction log or backup files. To increase the number of retries, use SETENV (GGS_CacheRetryCount = n) in Extract parameter file. To control retry delay time, use SETENV (GGS_CacheRetryDelay = n). handle: 0000000000000398 ReadFile GetLastError:997 Wait GetLastError:997>.
I don't know if it has ther same source as data corruption, could you tell me if it is?
Well, I created new extract, starting 2012-06-01 15:30 to check if there was something with extract at the time, but got the same error.
If I run extract beging at 15:52 it starts and works.
But well, I got another one today. Data didn't look that bad, but yet one column came with null value:( And I'm using it as a key column, so I got Mapping problem with compressed key update record again:(
I'm replicating from SQL Server 2008 to Oracle 11g.
I'm actually using NOCOMPRESSUPDATES in Extract.
CDC is enabled for all tables replicated. The only thing is that it is enabled not by ADD TRANDATA command, but by SQL Server sys.sp_cdc_enable_table, does it matter?
Could you please advise why does it happen?Well, the problem begins somewhere in extract or before extract, may be in transaction log, I don't know:(
Here are extract parameters:
EXTRACT ETCHECK
TRANLOGOPTIONS MANAGESECONDARYTRUNCATIONPOINT
SOURCEDB TEST, USERID **, PASSWORD *****
exttrail ./dirdat/ec
NOCOMPRESSUPDATES
NOCOMPRESSDELETES
TABLE tst.table1, COLS (field1, field2, field3, field4, field5, field6, field7, field8 );
TABLE tst.table2, COLS (field1, field2, field3, field4 );
Data pump:
EXTRACT DTCHECK
SOURCEDB TEST, USERID **, PASSWORD *****
RMTHOST ***, MGRPORT 7809
RMTTRAIL ./dirdat/dc
TABLE tst.table1;
TABLE tst.table2;
Replicat:
REPLICAT rtcheck
USERID tst, PASSWORD ***
DISCARDFILE ./dirrpt/rtcheck.txt, PURGE
SOURCEDEFS ./dirdef/sourcei.def
HANDLECOLLISIONS
UPDATEDELETES
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
MAP dbo.TPROCPERIODCONFIRMSTAV, TARGET R_019_000001.TPROCPERIODCONFIRMSTAV, COLMAP (USEDEFAULTS , field5 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed6= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (filed1, field2, field3);
Rpt file for replicat:
Oracle GoldenGate Delivery for Oracle
Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
Windows x64 (optimized), Oracle 11g on Apr 22 2011 00:34:07
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
Starting at 2012-06-05 12:49:38
Operating System Version:
Microsoft Windows Server 2008 R2 , on x64
Version 6.1 (Build 7601: Service Pack 1)
Process id: 2264
Description:
** Running with the following parameters **
REPLICAT rtcheck
USERID tst, PASSWORD ***
DISCARDFILE ./dirrpt/rtcheck.txt, PURGE
SOURCEDEFS ./dirdef/sourcei.def
HANDLECOLLISIONS
UPDATEDELETES
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
MAP dbo.TPROCPERIODCONFIRMSTAV, TARGET R_019_000001.TPROCPERIODCONFIRMSTAV, COLMAP (USEDEFAULTS , field5 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed6= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (filed1, field2, field3);
CACHEMGR virtual memory values (may have been adjusted)
CACHEBUFFERSIZE: 64K
CACHESIZE: 512M
CACHEBUFFERSIZE (soft max): 4M
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 1G
CACHESIZEMAX (strict force to disk): 881M
Database Version:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
Database Language and Character Set:
NLS_LANG = "AMERICAN_AMERICA.CL8MSWIN1251"
NLS_LANGUAGE = "AMERICAN"
NLS_TERRITORY = "AMERICA"
NLS_CHARACTERSET = "CL8MSWIN1251"
For further information on character set settings, please refer to user manual.
** Run Time Messages **
Opened trail file ./dirdat/dc000000 at 2012-06-05 12:49:39
2012-06-05 12:58:14 INFO OGG-01020 Processed extract process RESTART_ABEND record at seq 0, rba 925 (aborted 0 records).
MAP resolved (entry tst.table1):
MAP tst.table1, t.table1, COLMAP (USEDEFAULTS , filed9 = @GETENV("GGHEADER", "COMMITTIMESTAMP"), filed10= @CASE(@GETENV("GGHEADER", "OPTYPE"), "SQL COMPUPDATE", "U", "PK UPDATE", "U",@GETENV("GGHEADER", "OPTYPE")) ), KEYCOLS (field3);
2012-06-05 12:58:14 WARNING OGG-00869 No unique key is defined for table table1. All viable columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
Using the following default columns with matching names:
field1=field1, field2=field2, field3=field3, field4=field4, field5=field5, field6=field6, field7=field7, field8=field8
Using the following key columns for target table R_019_000001.TCALCULATE: field3.
2012-06-05 12:58:14 WARNING OGG-01431 Aborted grouped transaction on 'tst.table1', Mapping error.
2012-06-05 12:58:14 WARNING OGG-01003 Repositioning to rba 987 in seqno 0.
2012-06-05 12:58:14 WARNING OGG-01151 Error mapping from tst.table1 to tst.table1.
2012-06-05 12:58:14 WARNING OGG-01003 Repositioning to rba 987 in seqno 0.
Source Context :
SourceModule : [er.main]
SourceID : [er/rep.c]
SourceFunction : [take_rep_err_action]
SourceLine : [16064]
ThreadBacktrace : [8] elements
: [C:\App\OGG\replicat.exe(ERCALLBACK+0x143034) [0x00000001402192B4]]
: [C:\App\OGG\replicat.exe(ERCALLBACK+0x11dd44) [0x00000001401F3FC4]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x000000014009F102]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x00000001400B29CC]]
: [C:\App\OGG\replicat.exe(<RCALLBACK+0x11dd44) [0x00000001400B8887]]
: [C:\App\OGG\replicat.exe(releaseCProcessManagerInstance+0x25250) [0x000000014028F200]]
: [C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0xd) [0x000000007720652D]]
: [C:\Windows\SYSTEM32\ntdll.dll(RtlUserThreadStart+0x21) [0x000000007733C521]]
2012-06-05 12:58:14 ERROR OGG-01296 Error mapping from tst.table1 to tst.table1.
* ** Run Time Statistics ** *
Last record for the last committed transaction is the following:
Trail name : ./dirdat/dc000000
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 249 (x00f9) IO Time : 2012-06-01 15:48:56.285333
IOType : 115 (x73) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 44 AuditPos : 71176199289771
Continued : N (x00) RecCount : 1 (x01)
2012-06-01 15:48:56.285333 GGSKeyFieldComp Len 249 RBA 987
Name: DBO.TCALCULATE
Reading ./dirdat/dc000000, current RBA 987, 0 records
Report at 2012-06-05 12:58:14 (activity since 2012-06-05 12:58:14)
From Table tst.table1 to tst.table1:
# inserts: 0
# updates: 0
# deletes: 0
# discards: 1
Last log location read:
FILE: ./dirdat/dc000000
SEQNO: 0
RBA: 987
TIMESTAMP: 2012-06-01 15:48:56.285333
EOF: NO
READERR: 0
2012-06-05 12:58:14 ERROR OGG-01668 PROCESS ABENDING.
Discard file:
Oracle GoldenGate Delivery for Oracle process started, group RTCHECK discard file opened: 2012-06-05 12:49:39
Key column filed3 (0) is missing from update on table tst.table1
Missing 1 key columns in update for table tst.table1.
Current time: 2012-06-05 12:58:14
Discarded record from action ABEND on error 0
Aborting transaction on ./dirdat/dc beginning at seqno 0 rba 987
error at seqno 0 rba 987
Problem replicating tst.table1 to tst.table1
Mapping problem with compressed key update record (target format)...
filed1 = NULL
field2 =
field3 =
field4 =
field5 =
datefield = -04-09 00:00:00
field6 =
field8 =
field9 = NULL
field10 =
Process Abending : 2012-06-05 12:58:14 -
This window service has timer for update record once in a day at 5 pm.
Hi Guys Please help me.
Actully i create a window service. This window service has timer for update record once in a day at 5 pm.
I have write a code but it is not working fin
Here is my code.
App.Config File:-
<appSettings>
<add key="IsTrace" value="YES"/>
<add key="SourceServerPath" value="Server=DATASERVER\SQL2008R2;database=WDSBHN;User ID=Wireless;pwd=chetu@123"/>
<add key="ArchiveServerPath" value="Server=CHETUIWK091\SQL2008R2;database=Demo;User ID=sa;pwd=Chetu@123"/>
<add key="ReportHour" value="22"/>
<add key="ReportMinut" value="01"/>
<add key="ReportSecond" value="20"/>
<add key="ReportMilisecond" value="230"/>
<add key="DailyTimer" value="tmrProductionDataTransfer"/>
<add key="MonthlyTimer" value="tmrProductionCleanUp"/>
<add key="ActionParameter" value="WDS-DataTransfer"/>
</appSettings>
Vb.Net Code:-
Protected Overrides Sub OnStart(ByVal args() As String)
' Add code here to start your service. This method should set things
' in motion so your service can do its work.
Try
LoggingTracing.WriteTrace("DataTransfer Service START " & Now.ToLongDateString & " " & Now.ToLongTimeString())
'***Get the Time of service run
Dim svcRunTime As System.DateTime = Configuration.ConfigurationManager.AppSettings("ServiceRunTime")
'***differance of these two time
Dim ts As TimeSpan = DateTime.Now.Subtract(svcRunTime)
'***production data transfer
tmrProductionDataTransfer.Enabled = True
tmrProductionDataTransfer.Interval = 1000
tmrProductionDataTransfer.Start()
Catch ex As Exception
LoggingTracing.WriteError(ex.ToString())
End Try
End Sub
Private Sub tmrProductionDataTransfer_Elapsed(sender As Object, e As Timers.ElapsedEventArgs) Handles tmrProductionDataTransfer.Elapsed
Try
Dim time As Date = Date.Now
Dim currHour As Integer
Dim currMinute As Integer
Dim currnSecond As Integer
Dim reportHour As Integer
Dim reportMinute As Integer
Dim reportSecond As Integer
Dim reportMiliSecond As Integer
Dim actionParameter As String = Configuration.ConfigurationManager.AppSettings("ActionParameter")
Dim actionTimerName As String = Configuration.ConfigurationManager.AppSettings("DailyTimer")
currHour = time.Hour
currMinute = time.Minute
currnSecond = time.Second
reportHour = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportHour"))
reportMinute = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportMinut"))
reportSecond = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportSecond"))
reportMiliSecond = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportMilisecond"))
If currHour = reportHour AndAlso currMinute = reportMinute AndAlso currnSecond = reportSecond Then
ObjProductionDataTransfer.CopyDataToArchiveServerDayWiseDL(Configuration.ConfigurationManager.AppSettings("SourceServerPath"), Configuration.ConfigurationManager.AppSettings("ArchiveServerPath"),
actionTimerName, time, actionParameter)
End If
Catch ex As Exception
LoggingTracing.WriteError(ex.ToString())
End Try
End Sub
It is running at 5 pm , but run 3 times, for that records has updated 3 time
How i can resolve it, If any problem in this code please give me the write direction or code. And this thing i have been searching for 3 days , but stile i didn't get any solution
soneshSonesh,
Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a planning and scheduling application. I suggest you delete this post and find a more appropriate forum.
John -
After Creating a RecordSet using Wizard, Unable to Create RecordSet Paging - Error Occurs
I created a record set using the wizard and it tested just fine using the test button. So my next step was to create the "RecordSet Paging" "Move to First Record", whe I select this I get the error "Before using this Server Behavior, please create a record set"
The record set is there, it is even checked off in the binding list as being there, yet I can not do anything, I even went in and deleted it and tried again with the same result, this is getting very annoying and is causing me a lot of extra work.
Is this a BUG!!!
I have seen this issue several times now.
Running Version 11.0 build 4993
Signed
Frustrated!!!!!Hi,
For questions regarding dynamic site development, hop over to the following forum. You'll get better answers there.
Dreamweaver Application Development Forum
http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Inserting and Updating records in ORACLE using WebDynpro Java
Hi All
I got connected to oracle backend (using my previous thread), but now i want to insert and update the records
i have created views for insert and update,
Thanks in advance
SushmaHi shusma..
chk this link..
<b><u>Creating Connection</u></b>
package com.sap.xirig;
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
public class DBLookup {
String Conn_Status = "Not Connected";
String Language_Desc = "Empty";
String Language_Cd = "Empty";
Connection conn;
Context ctx;
DataSource ds;
//Constructor for the DBLookup object
public DBLookup {
try {
ctx = new InitialContext();
if (ctx == null) {
throw new Exception("Boom - No Context");
// If JDBC 2.0 connection is used please create the DataSource object as below
// ds = (DataSource) ctx.lookup("jdbc/ORACLEDATASOURCE");
// If JDBC 1.0 connection is used please create the DataSource object as below
// ds = (DataSource) ctx.lookup("jdbc/notx/ORACLEDATASOURCE");
if (ds == null) {
throw new Exception("Boom - No dataSource");
catch (Exception e) {
e.printStackTrace();
public String getLanguageDesc(String v_str) {
Statement stmt = null;
ResultSet rst = null;
try {
if (ds != null) {
conn = ds.getConnection();
Conn_Status = "Could not get connection to
datasource";
if (conn != null) {
Conn_Status = "Got Connection " +
conn.toString();
stmt = conn.createStatement();
rst = stmt.executeQuery("SELECT
LANGUAGE_DESC FROM LANGUAGETRANSLATION WHERE LANGUAGE_CD='" + v_str +
if (rst.next()) {
Language_Desc = rst.getString(1);
conn.close();
catch (Exception e) {
e.printStackTrace();
finally {
if (rst != null) {
try {
rst.close();
catch (Exception e) {
e.printStackTrace();
if (stmt != null) {
try {
stmt.close();
catch (Exception e) {
e.printStackTrace();
if (conn != null) {
try {
conn.close();
catch (Exception e) {
e.printStackTrace();
return Language_Desc;
http://e-docs.bea.com/wls/docs81/oracle/API_joci.html
Hope this will help u..
URs GS -
Update records using Pl/Sql procedure
Hi
I have wriitten a stored procedure to update the Organisation_Name in a table based on the Full_Org_Nm of an another table.
Though the procodure got executed sucessfully but it is not updating the records.
I even tried executing the procedure by writing Execute <Procedure name>,the database got hanged.
Please find my procedure below.
Create or Replace
PROCEDURE UPDT_ISSUE_USR_ROLE
As
Cursor cur_user_role Is
Select a.org_id,a.user_id
from prts_user a,issue_user_role b
where a.user_id=b.user_id;
v_rows_processed Number:=0;
Begin
For rec in cur_user_role Loop
update Issue_user_role
set User_org_nm=(Select full_org_nm from VW_Org where org_id=rec.org_id)
Where Issue_User_Role.rowid in
(select issue_user_role.rowid
FROM issue_user_role,issue,issue_workflow,Issue_step_dtl_wrkflw
Where Issue_User_Role.Issue_Id=Issue.Issue_id
And Issue_User_Role.Issue_id=issue_workflow.issue_id
And Issue_User_Role.Workflow_compnt_id=Issue_Workflow.CURR_STEP_WORKFLOW_COMPNT_ID
And Issue_User_Role.Workflow_compnt_id=Issue_Step_Dtl_wrkflw.Workflow_compnt_id
And Issue_User_Role.Issue_id=Issue_Step_Dtl_wrkflw.Issue_Id
And Issue.Issue_id=Issue_workflow.Issue_Id
And Issue.Issue_id=Issue_Step_Dtl_Wrkflw.Issue_id
And Issue_workflow.Issue_id=Issue_Step_Dtl_Wrkflw.Issue_id
And Issue_Workflow.CURR_STEP_WORKFLOW_COMPNT_ID=Issue_Step_Dtl_wrkflw.Workflow_compnt_id
And issue_workflow.primry_workflow_flag='Y'
And issue_user_role.user_id = rec.user_id
And issue.issue_status_id in (1636,50738,275,50737,2090)
And issue_step_dtl_wrkflw.Issue_step_status_id in (61248,61249,61250));
v_rows_processed :=v_rows_processed + SQL%ROWCOUNT;
End Loop;
COMMIT;
dbms_output.enable;
dbms_output.put_line('There were '||v_rows_processed||' rows updated');
End;
Please let me know where i am wrong.
Thanks in advance.
CheersHi Blushadow
Now if i want to update say only 10 records at a time what should i put into my Proc?
Please go thru my Proc below..
CREATE OR REPLACE PROCEDURE PRTS.UPDT_ISSUE_USR_ROLE
As
Cursor cur_user_role Is
Select a.org_id,a.user_id
from prts_user a,issue_user_role b
where a.user_id=b.user_id;
upd_rec cur_user_role%rowtype;
v_rows_processed Number:=0;
Begin
Open cur_user_role;
Loop
Fetch cur_user_role into upd_rec;
If cur_user_role%NOTFOUND
Then
Exit;
Else
update Issue_user_role
set User_org_nm=(Select full_org_nm from VW_Org where org_id=upd_rec.org_id)
Where Issue_User_Role.rowid in
(select issue_user_role.rowid
FROM issue_user_role,issue,issue_workflow,Issue_step_dtl_wrkflw
Where Issue_User_Role.Issue_Id=Issue.Issue_id
And Issue_User_Role.Issue_id=issue_workflow.issue_id
And Issue_User_Role.Workflow_compnt_id=Issue_Workflow.CURR_STEP_WORKFLOW_COMPNT_ID
And Issue_User_Role.Workflow_compnt_id=Issue_Step_Dtl_wrkflw.Workflow_compnt_id
And Issue_User_Role.Issue_id=Issue_Step_Dtl_wrkflw.Issue_Id
And Issue.Issue_id=Issue_workflow.Issue_Id
And Issue.Issue_id=Issue_Step_Dtl_Wrkflw.Issue_id
And Issue_workflow.Issue_id=Issue_Step_Dtl_Wrkflw.Issue_id
And Issue_Workflow.CURR_STEP_WORKFLOW_COMPNT_ID=Issue_Step_Dtl_wrkflw.Workflow_compnt_id
And issue_workflow.primry_workflow_flag='Y'
And issue_user_role.user_id = upd_rec.user_id
And issue.issue_status_id in (1636,50738,275,50737,2090)
And issue_step_dtl_wrkflw.Issue_step_status_id in (61248,61249,61250));
v_rows_processed :=v_rows_processed + SQL%ROWCOUNT;
If Mod (v_rows_processed,v_rows_processed)=10
then
COMMIT;
End if;END IF;
End Loop;
Commit;
dbms_output.enable(1000000);
dbms_output.put_line('There were '||v_rows_processed||' rows updated');
Close cur_user_role;
End;
I would appreciate if you can let me know any other alternative way to meet this requirment.
Cheers
Vineet -
How to create a recordset to extract images stored in a directory to preview in browser
I managed to create the upload scripts to upload images and store them in a directory while storing the path in a MySql database but here's now another problem creating a recordset to view the images on a browser. I tried creating one but when you preview the page on a browser, it's like it cant access the images. I would also want to make scripts to automatically resize the images to my desired size upon preview on the browser and also make photo thumbnails. Can somebody please advise me on this?
To Get MySql recordset in dreamweaver.
1. Dreamweaver
2. File>new>html>create>
3. File>save>untitle-1.php (make sure to use a php externsion)
4.Database Panel(Window>Database)
5.Click Application Tab
6.Click Plus sign.
7.click Recordset(query)
8.Name it anything
9.Define your connection
10.Go down to database items
11. Click Tables
12. Click the appropriate table
13. click test
14.click ok
To pull image from MySqlDataBase
1Place cursor on page where you want the image.
2 insert>Image
3Select Image Source box appears.
4Click select file form: Data Source(vs File System)
5 Your recordset will display
6 Select the record.
7 Click ok -
CS5 Update Record behaior deletes the record
Hello
I am having an issue that I just cant seem to understand or resolve.
I am using the CS5 Update Record Server Bahavior to update the user table for a website, but instead if updating the record, it deletes the entire record.
I look at the SQL and it is definately an Update, so I dont see how it deleting the entire record.
What I did:
Passed in record ID through querystring to get the filtered recordset
Created update form for dynamic data (the corrent data is filling form from recoredset)
Created hidden field to hold ID
Clicked the Update Record Server Behavior and matched form variables to appropriate DB fields
Set it to go to page to list all users
Saved page
Run on local server (php/MySQL)
When I edit the user data in the update form and click submit, the record is deleted.
* I checked the MySQL DB and the entire recored has been deleted
Anyone have a clue on why this is happening?
Here's the code from the page:
<?php require_once('../Connections/localconn.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "updateuser")) {
$updateSQL = sprintf("UPDATE users SET fname=%s, lname=%s, uname=%s, password=%s, ulevel=%s WHERE id=%s",
GetSQLValueString($_POST['fname'], "text"),
GetSQLValueString($_POST['lname'], "text"),
GetSQLValueString($_POST['uname'], "text"),
GetSQLValueString($_POST['pword'], "text"),
GetSQLValueString($_POST['ulevel'], "int"),
GetSQLValueString($_POST['id'], "int"));
mysql_select_db($database_localconn, $localconn);
$Result1 = mysql_query($updateSQL, $localconn) or die(mysql_error());
$updateGoTo = "users.php";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $updateGoTo));
$colname_Recordset_users = "-1";
if (isset($_GET['id'])) {
$colname_Recordset_users = $_GET['id'];
mysql_select_db($database_localconn, $localconn);
$query_Recordset_users = sprintf("SELECT * FROM users WHERE id = %s", GetSQLValueString($colname_Recordset_users, "int"));
$Recordset_users = mysql_query($query_Recordset_users, $localconn) or die(mysql_error());
$row_Recordset_users = mysql_fetch_assoc($Recordset_users);
$totalRows_Recordset_users = mysql_num_rows($Recordset_users);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title</title>
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<META NAME="ROBOTS" CONTENT="NOINDEX, FOLLOW">
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
</head>
<body>
<div id="wrap">
<div id="top"></div>
<div id="content">
<div class="header">
<h1><a href="#">FENA </a></h1>
<h2>Content Management System (CMS)</h2>
</div>
<div class="breadcrumbs">
<a href="#">Home</a> · Edit User
</div>
<div class="middle">
<h2>Edit User - <?php echo $row_Recordset_users['lname']; ?>, <?php echo $row_Recordset_users['fname']; ?></h2>
<form method="POST" action="<?php echo $editFormAction; ?>" name="updateuser">
<table>
<tr>
<td>Last Name</td>
<td><input name="lname" type="text" value="<?php echo $row_Recordset_users['lname']; ?>" /></td>
</tr>
<tr>
<td>First Name</td>
<td><input name="fname" type="text" value="<?php echo $row_Recordset_users['fname']; ?>" /></td>
</tr>
<tr>
<td>Username</td>
<td><input name="uname" type="text" value="<?php echo $row_Recordset_users['uname']; ?>" /></td>
</tr>
<tr>
<td>Password</td>
<td><input name="pword" type="text" value="<?php echo $row_Recordset_users['password']; ?>" /></td>
</tr>
<tr>
<td>User Level</td>
<td>
<select name="ulevel">
<option value="<?php echo $row_Recordset_users['ulevel']; ?>"><?php echo $row_Recordset_users['ulevel']; ?></option>
<option value="1">Admin</option>
<option value="2">Editor</option>
</select>
</td>
</tr>
<tr>
<td colspan="2" align="right"><input name="id" type="hidden" value="<?php echo $row_Recordset_users['id']; ?>" /><input name="submit" type="submit" value="Submit" /></td>
</tr>
</table>
<input type="hidden" name="MM_update" value="updateuser" />
</form>
</div>
<div class="right">
<h2>Navigation</h2>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="users.php">Users</a></li>
<li><a href="users_add.php">Add User</a></li>
</ul>
</div>
<div id="clear"></div>
</div>
<div id="bottom"></div>
</div>
<div id="footer">
Developed by Me
</div>
</body>
</html>
<?php
mysql_free_result($Recordset_users);
?>Hi Paul,
I am actually try to a create a submit a process and have it to update the DB.
Thanks,
Han -
Update Record Form Wizard Not Working
This is my first attempt at creating dynamic pages via asp and microsoft access. However I think I've done pretty well for my first go around. Any help would be so greatly appreciated as I've only got 5 hours of sleep in the last 2 days.
I'll try to explain what I did and what's happening. For anyone that may be interested in helping me out, here are the test account login credentials:
username: username
password: password
My property update will not post to the database. Upon clicking update record I get a 500 Internal Server Error. To see an example of whats happening login by going to http://www.rentalpaypro.com/members/index.asp.
Then click on the link "Update Monthly Rent and Delete Properties", click on a Property ID and then click update record.
This is where the error appears and I can not for the life of me figure out what I've done wrong. I'M BEGGING, CAN SOMEONE PLEASE HELP ME OUT?
Thanks,
KenHi Ken,
when looking at the source code of propertyupdate.asp I see that the whole form has been placed outside the document´s body, more precisely preceeding the DOCTYPE declaration.
No clue if this causes your issue, but fixing this is certainly worthwile anyway :-)
However, I also noticed that it´s a manually created form and not done with ADDT, and it´s been assembled using Dreamweaver´s native server behaviours (evidence: the MM_update and MM_recordId hidden fields) -- that said, I think you´d better ask this question in the regular DW application development forums.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver
Maybe you are looking for
-
Is there a way to schedule downloads for off-peak hours? (Hughesnet user)
Our ISP allows a limited download capacity of 15GB per month, but allows another 15GB between the hours of 2AM-8AM. I would like to be able to download the programs during this time. If it were at home, I would wake up and start the downloads, but be
-
Master/Master Matrix Report
May I know is it possible to create a Master/Master matrix report? The example given in the Reports Documentation shows Master/Master Tabular reports only and I have been attempting to create a Matrix one but without success. Thank You. Cheers, Tan
-
How to put the background image in Title Window?
Hi, I'm newbie in flex. I 'm using Flex 4. Can anyone give me some guidelines on how to put the background image in Title Window? Is it possible to do this? Thanks.
-
Photoshop CS5 Print Printing problem: print count and print to ICC profile
Since Adobe still haven't acknowledge the printing issue with CS5, I start this thread to report my own problems. Problem 1: print copy count is not working. The first print is always one print regardless how many copies you set in the dialog window.
-
HI, I has a JMS-XI-IDOC Scenario where i has used BPM to get the response from RFC wehre the RFC input is the message from JMS. The Response Message from RFC is mapped to IDOC .The Scenario is working and the IDOC is getting created in SAP System Iam