Integrated Application Platform › Forums › General › Printing from a button › Re: Re: Printing from a button
December 12, 2012 at 8:28 pm
#956
Keymaster
Here’s a simple example that works for me. I had to use .Access.GetData() instead of just .Data
Controller
{
Controls: #(Access 'stdlib' (Vert name (Button Print)))
On_Print()
{
id = .Access.GetData().name
Dialog(.Window.Hwnd, Object('Params'
Object(QueryFormat
{
Query()
{
return "stdlib where name is " $ Display(.Data.id) $ " sort name"
}
}
Data: Object(id: id)
)
title: "BOL Print"
name: "Bol_bol_print"
))
}
}
Note: Normally we would use Dialog(.Window.Hwnd, … instead of Window