NetTalk Central

Author Topic: How to add Print button to Browse  (Read 3206 times)

LSlowick

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
How to add Print button to Browse
« on: October 21, 2014, 09:19:56 AM »
Hi,

I want to add the 'Print' button to  a NetWebBrowse but when I check the 'include Print Button' on the / form tab / print tab window it does not seem to add the button.

Is there something else I need to do to get this to work?

I have a multi-tabbed form, on one tab I have a browse and I want to call a report procedure based upon the browse row that is selected.

Is this the correct way to go about this or is there some other way that this should be done?

Thanks for the help.
Lee

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: How to add Print button to Browse
« Reply #1 on: October 21, 2014, 11:15:06 PM »
the Print button does not do anything yet. Use a normal "other" button to call your report procedure.

cheers
Bruce

LSlowick

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: How to add Print button to Browse
« Reply #2 on: October 22, 2014, 04:16:35 AM »
Sorry I have to ask this, but where is the 'other' button? I've never used one before.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: How to add Print button to Browse
« Reply #3 on: October 22, 2014, 09:36:30 PM »
Add a browse column of type "Button".
then on the General tab set the Action to "Other".
Then on the OnClick tab you can enter the procedure name of the report you want to call. (Typically setting the "target" to '_blank'
so the report comes up in a different tab.

cheers
Bruce

LSlowick

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: How to add Print button to Browse
« Reply #4 on: October 23, 2014, 04:10:12 AM »
Bruce

Ah, ok... didn't think of it that way within the browse. That will work.

For future reference.. if I wanted to add a  'print' button of some sort on a form tab and when pressed it would call a report. Can that be done and how?

Thanks

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: How to add Print button to Browse
« Reply #5 on: October 23, 2014, 06:57:12 AM »
yes that can be done too. Add a field of type "Button", with the button type set as "Other" and set the Proceudre and target.

Or, put another way, it's exactly the same as doing it for a browse.

cheers
Bruce

LSlowick

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: How to add Print button to Browse
« Reply #6 on: October 23, 2014, 07:06:04 AM »
Bruce

Thanks. I will keep that in mind too.

LSlowick

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: How to add Print button to Browse
« Reply #7 on: October 24, 2014, 10:26:40 AM »
Sorry, but it's been awhile since I've worked on this Nettalk app and I have a few other questions...

1) I put the print button on the form and it is calling the report procedure. The form has multiple tabs with related browses on other tables but the primary file is the Order table. Do I have to use setvalue, setsessionvalue or filetosessionqueue so that the Order# field is available for the report procedure to 'get'?

2) I see in the report procedure init section where the nettalk code is doing a post(event:accepted,?Pause). I'm not seen the pause /accepted embed code executing... or will it NOT run. In that embed I have some code to get other data and setup some local values. Should I expect that pause/accepted embed to run?

Thanks
LEE