Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Printing a portal road


cschmitz

Recommended Posts

Quick question. I have a layout that contains a portal that is used to fill out shipping forms. I have a print button in the portal that runs a script that says:

 

=============

goto portal row [select; No dialog; Get (PortalRowNumber)]

print setup [Restore; No dialog]

print[restore; no dialog]

print setup [restore; No dialog]

=============

 

What I want the script to do is print the current portal row. What it does is print the first portal row.

 

One possible solution that I see is to have the script open a seperate window that shows information from the portal's source table, preform a find for the record id and then the row number that should be printing, and then print that record, but it seems like there should be an easier way of going about printing a portal row.

 

What am I missing here???

Link to comment
Share on other sites

Nearly all printing of portal records in nearly all solutions is done using some variation of this:

 

Go to Related Records [show only related records, PortalTable, using layout "printable layout of PortalTable"]

Sort [if you're printing multiple portal rows, by appropriate order, no dialog]

Print Setup [restore, no dialog, to something appropriate]

Print [current rec only to print just one portal row, found set to print them all, no dialog]

Go to layout [original layout]

 

 

99% of the time, people want to print ALL portal records; and they put the info of the parent table up in the header, so the result looks like this in layout mode:

 

---header---

ParentRecData...ParentRecData...ParentRecData

---end header part---

List View / skinny body part, portal row data here

---footer---

 

and like this when printed:

 

ParentRecData...ParentRecData...ParentRecData

--------------------

PortalRow01

PortalRow02

PortalRow03

PortalRow04

PortalRow05

PortalRow06

etc

---footer---

Link to comment
Share on other sites

Ok that makes sense. I'll try it out today.

 

This is one of those cases where we'd only want to print one portal row (the shipping form) each time so I think your solution would be best.

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

Terms of Use