Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Angie A. Vergara 6.Oct.10 08:25 PM a Web browser
Domino Designer 6.5.6 Windows XP


Hi...

I have a program in LN wherein i am going to dump the data to SQL by using the INSERT method... My problem is when im going to UPDATE the multiple value fields all the entries will have the same values. Example :

During my first insert to SQL...

itemno Name
1---------A
2 --------B
3---------C

During Updating to SQL... (this is where im having my problem)... All the entries will have the same values..

itemno Name
1-------- A
1-------- A
1-------- A


Here's my cose


mpno = doc.tpo_pono(0)

For x = 0 To ub

mitemno = doc.tpo_itemno(x)
mquantity = doc.tpo_quantity(x) 'integer
mskugroupsize = doc.tpo_sku(x)
mgroup = doc.tpo_group(x)
mdescription = "--"
msize = doc.tpo_size(x)
mkind = doc.tpo_kind(x)
munitprize = doc.tpo_price(x) 'integer
mcost = doc.tpo_cost(x) 'integer
mremarks = doc.tpo_remarks(x)



mvalues = mpno + "," + Cstr(mitemno) + ", " +Cstr( mquantity) + ",' "+ mskugroupsize + "', '" + mgroup + "', '" + mdescription + "' ,'"+ mkind + "' ,'" + msize + "', " + Cstr(munitprize) + ", "+ Cstr(mcost)+" , '" + mremarks + "'"

Set qry.connection = con

If uidoc.isnewdoc Then
qry.SQL= "Insert into U_PO_itemDtl VALUES (" + mvalues + ")"
Else
qry.SQL= "Update U_PO_itemDtl set item_no = " + Cstr(mitemno) + ", item_qty = "+ Cstr(mquantity) +", item_sku_GrpSize = '" +mskugroupsize +"', item_group = '"+ mgroup+"', item_description = '"+mdescription+"', item_kind = '"+ mkind +"', item_size = '"+msize+ "', item_unitPrice = " + Cstr(munitprize) + ", item_cost = "+Cstr(mcost) +", item_remarks = '"+mremarks+"' where Po_no = " + Cstr(mpno)+Cstr(mpno) + " and item_No = " + Cstr(mitemno) + ""
End If

Set res.query = qry

If Not res.Execute Then
Messagebox res.GetExtendedErrorMessage,, res.GetErrorMessage
Exit Sub
End If

Next

Thanks..








  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow