Gossamer Forum
Home : Products : DBMan : Customization :

display field from external file

Quote Reply
display field from external file
ok, i don't have time today to work on the other problem, but now have a different problem, more urgent!

i'm using build_external_select to build a select list from db2 when adding records to db1. it's working fine. i further refined it to display the name (2nd field) in the file while saving the key (1st field). now my problem: in html_record, i need to look up the value of the field in the external database to display the name (and some other fields) instead of the key that was saved in db1.

i tried creating a version of sub get_record and calling it in html_record_long, but cannot get it to work. i've looked at FAQ and can't find anything except the relational database mod. i don't want to switch to the other database; i just want to lookup something for display in a new variable (perhaps $rec2). i figure it isn't necessary to switch since the build_external_select works without switching. this is what i tried:


Code:


%rec2 = &switch_to_places($rec{'Placeservice'}); ... print qq|
<TR><TD ALIGN="Right" VALIGN="TOP" WIDTH="20%"><p>Service:</p></TD>
<TD WIDTH="80%" VALIGN="TOP" ><p>&nbsp;$rec{'Dateservice'}<br>&nbsp;$rec{'Timeservice'}<br>&nbsp;$rec{'Placeservice'}&nbsp;$rec2[1]</p></TD></TR>
|;


i'm sure i'm not the first to do this. can you point me in the right direction? thanks!
Subject Author Views Date
Thread display field from external file delicia 4147 May 17, 2004, 12:27 PM
Thread Re: [delicia] display field from external file
Watts 4044 May 17, 2004, 1:35 PM
Post Re: [Watts] display field from external file
delicia 4029 May 17, 2004, 2:07 PM
Thread Re: [Watts] display field from external file
delicia 4034 May 17, 2004, 3:31 PM
Thread Re: [delicia] display field from external file
Watts 4040 May 17, 2004, 4:09 PM
Thread Re: [Watts] display field from external file
delicia 4031 May 17, 2004, 4:29 PM
Post Re: [delicia] display field from external file
delicia 4031 May 17, 2004, 4:54 PM