Gossamer Forum
Home : Products : DBMan : Customization :

Spreadsheet3 mod question

Quote Reply
Spreadsheet3 mod question
Hi!

I have added spreadsheet3 mod from JPD and it is working nice BUT I need spreadsheet only in viewing records while now it shows it also when you add/modify success record page which is not needed and also much more unreadable. Is there any possibility to change this so it is used for viewing only?

Bye,
Sasa
Quote Reply
Re: [atomant] Spreadsheet3 mod question In reply to
Sure.

Create a separate sub html_record that displays your record the way you want it for add/modify success. Name it sub html_record_other (or be creative and name it something else :) ). Then, in the subroutines where you want it to use the other html_record subroutine, substitute

Code:
print qq|
<TABLE><TR><TD>FieldName</TD><TD>FieldName</TD><TD>FieldName</TD><TD>FieldName</TD></TR>\n
<TR>|;
&html_record(&get_record($in{$db_key}));
print "</TR></TABLE>";


(which is there from the mod)

with

Code:
&html_record_other(&get_record($in{$db_key}));



(or whatever you named your new subroutine)


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] Spreadsheet3 mod question In reply to
Thanx, it works. Smile

Now I can customize myself each screen differently.