hi andy,
you helped me with something similar before. i have a text file that contains the following lines:
%db_radio_fields = ( Graphics => 'Yes,No,Line,No Ad,Generic',Red_Flag => 'Yes,No',Jumbo => 'Jumbo,no',Table => 'Yes,No');
# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
'AD_Size' => 'Line,Business Card,Quarter Page,Half Page,Full Page,No Ad,Inside Front Cover,Inside Back Cover,Back Cover,3x6 Banner,4x8 Banner,Digital Banner,Jumbo,Table',
'Art' => '--------Kenny-------,Pickup new art,------For Reps------,Use art on File,Waiting for art,Scott will make Ad,ASE will make Ad,No Ad,Line,Generic,---Art Department---,Working on art,Completed,Do not have art,---Banner---,We have the Banner,We do not have the Banner,The customer has the Banner,Use art on File',
'Graphics' => 'Yes,No,Line,xxx,Generic,Cancel,Retrieve,Change',
'Proof' => 'Art Dept to send Proof,Rep to send Proof,Proof Ready,Proof out,Approved,No Proof needed,Wrong Pagination,Poor Quality',
'Bump' => 'Yes'
);i need to read the file and find the line that starts with %db_select_fields. the easiest thing for me would be to make %db2_select_fields = %db_select_fields so i can reference it the same way in a different database. is this possible? if not, how can i have a fieldname Art with the select options listed above?
thanks!
you helped me with something similar before. i have a text file that contains the following lines:
Code:
%db_radio_fields = ( Graphics => 'Yes,No,Line,No Ad,Generic',Red_Flag => 'Yes,No',Jumbo => 'Jumbo,no',Table => 'Yes,No');
# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
'AD_Size' => 'Line,Business Card,Quarter Page,Half Page,Full Page,No Ad,Inside Front Cover,Inside Back Cover,Back Cover,3x6 Banner,4x8 Banner,Digital Banner,Jumbo,Table',
'Art' => '--------Kenny-------,Pickup new art,------For Reps------,Use art on File,Waiting for art,Scott will make Ad,ASE will make Ad,No Ad,Line,Generic,---Art Department---,Working on art,Completed,Do not have art,---Banner---,We have the Banner,We do not have the Banner,The customer has the Banner,Use art on File',
'Graphics' => 'Yes,No,Line,xxx,Generic,Cancel,Retrieve,Change',
'Proof' => 'Art Dept to send Proof,Rep to send Proof,Proof Ready,Proof out,Approved,No Proof needed,Wrong Pagination,Poor Quality',
'Bump' => 'Yes'
);
thanks!