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: Printing from a button

Integrated Application Platform › Forums › General › Printing from a button › Re: Re: Printing from a button

December 12, 2012 at 4:47 pm #954
amckinlay
Keymaster

You’re very close.

– bill_num: bill_num needs to be inside the Object (just move it up one line)

– it needs to be Bill_num: bill_num to make it public so it can be accessed inside the QueryFormat class

– in the query it should be just .Bill_num

Or alternately you could do Data: Object(bill_num: bill_num) and then reference it as .Data.bill_num

Also, I would get in the habit of using Display when merging values into queries

“bol where bill_num is ” $ Display(.Bill_num) $ ” sort bill_num”

This ensures that the value is quoted if it’s a string. This isn’t strictly necessary if the value is a number, but it prevents the equivalent of SQL injection issues.

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

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language