Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Re: Re: Updating records in a database

Integrated Application Platform › Forums › General › Updating records in a database › Re: Re: Updating records in a database

September 26, 2012 at 6:16 pm #945
Anonymous
Inactive

Thanks for your reply, but Im still not doing something right. I get the following error: ‘uninitialized member: #Class56_data’ when the function is called. I am reposting the new code

//Inv_price_update
function(data)
{
QueryApply(‘inv_customer’, update:)
{ |x|
x.cb_price = data.ncb_price
x.Update()
}
}

//Account Entry
Controller
{
Title: ‘Wagram Paper Stock Customer Price Adjustment’
Xmin: 800
Ymin: 500

Controls:
(Record
(Vert
(Skip)
(Horz (Skip 300)
(Static, “Customer Price Addjustment” font: (name: Arial size: 30)))
(Skip)
(Skip)
(Horz (Skip 150)
(ncb_price)
(Skip 10)
(Static, ‘Official Board Market’))
(Horz (Skip 150)
(now_price)
(Skip 10)
(Static, ‘Official Board Market’))
(Horz (Skip 150)
(ntube_price))
(Horz (Skip 150)
(nnews_price))
(Horz (Skip 150)
(nmixed_paper_price))
(Horz (Skip 150)
(nplastic_bot_price))
(Horz (Skip 150)
(nplastic_film_price))
(Horz (Skip 150)
(naluminum_price))
(Horz (Skip 150)
(nrecyclables_price))
(Horz (Skip 150)
(nsteel_price))
(Skip)
(Skip)
(Horz (Skip 300) (Button, “OK”) (Button, “Cancel”))
)
)
On_OK()
{
.Data.Get()
Alert(‘You are about to update all customer prices’ Title: ‘ALERT’)
Inv_price_update(.data)
}
}

Thanks again

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo
  • Excel

Contact Us | Legal Statement | Privacy Statement | SiteMap

(c) Suneido Software Corporation - Open Source Integrated Database and Programming Language