Integrated Application Platform › Forums › General › Printing from a button › Re: Re: Printing from a button
December 12, 2012 at 8:14 pm
#955
Inactive
That seems to have gotten the query to work, but it appears that the value of bill_num is not being passed to the function. I am using an Alert and its giving a null value. I am reposting the corrected function code. The main prog was not changed.
function(bill_num)
{
Window(Object(‘Params’
Object(QueryFormat
{
Query()
{
Alert(.Bill_num) //”returns null value”
return “bol where bill_num is ” $ Display(.Bill_num) $ ” sort bill_num”
}
Output()
{
return Object(“Vert”
#(“Text”, “This is a test”))
Print(‘Test’)
}
}
Bill_num: bill_num
)
title: “BOL Print”
name: “Bol_bol_print”
))
}