- This topic has 1 reply, 2 voices, and was last updated 11 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Integrated Application Platform
Integrated Application Platform › Forums › General › Printing a report from within an access
Hello, I have an access screen that once its completed, I want to push a button and print a report using that information. I tried to call the report routine using _onbutton method. I have looked through the manual and forum but didnt find any help. Also, This access has a lot of checkboxes on it, I would like to have them initially set to true. I have tried to use the set parameter in the field def but its not working for me.
Here is a sample of the field def:
Field_string
{
Prompt: ‘Tie Downs’
Control: (CheckBox size: 16 set: true)
Format: (Boolean size: 16 strings: #(‘OK’, ‘NA’) width: 19)
}
Thanks and hope everyone has a great Thanksgiving
Benny
There are lots of examples of printing from a button in the sample Accounting application that is available to download at http://www.suneido.com/support/downloads
I would suggest looking at the receivables invoices screen.
I don’t think the set option was designed to be used in a RecordControl. RecordControl will always set the controls values from what is in the record. If you want a checkbox field to default to true (checked), I would suggest using a rule:
The library record name would be something like: Rule_checkboxfieldnamehere, and the code will be:
function ()
{
return true
}