I would like to add a "Print-Ticket" command to the ring menu in my I4GL Form s开发者_StackOverflowo that when my users hit the escape key to update a transaction row they can select the "Print-Ticket" command from the ring menu to print the current row being displayed with an ace report, without exiting the form. I would also like this print capability for any queried transaction row whether it has been updated or not. Can this be done with I4GL forms?
Yes
The action block for 'COMMAND "Print-Ticket"
' can invoke a function which drives an I4GL report (or, indeed, it can execute an ACE report via the RUN statement). In theory, you could write the body of the function that drives the report in the action block, but that would be a diabolical way of abusing the language; it is much better to use a function. If you give the function an argument identifying the ticket to be printed, it just needs to be invoked with the correct ticket number - it does not matter whether to the I4GL function whether it has been updated or not.
精彩评论