Opened 14 years ago

Closed 12 years ago

#811 closed defect (fixed)

Custom naming of object not strictly adhering to AppSettings.txt line

Reported by: Mark J. Millard Owned by: Pete Cyr
Priority: minor Milestone: Post 1.0
Component: Curator Tool Version: 1.8.4.0
Severity: Keywords: AppSettings.txt custom naming
Cc: Database Engine: SQL Server
Operating System: Windows 7 Ultimate 64 bit

Description

I had a second ":" in a custom naming line in AppSetting.txt for get_crop_trait_observations. I could not get the second colon to show up with these combinations ":", "::", " :"

Attachments (1)

Custom_Naming_4-21-2013 7-30-31 AM.png​ (214.5 KB ) - added by Mark J. Millard 14 years ago.
Custom name for second colon not showing

Download all attachments as: .zip

Change History (3)

by Mark J. Millard, 14 years ago

Custom name for second colon not showing

comment:1 by Pete Cyr, 12 years ago

Status: new → addressed

This is working as designed. A feature of the Friendly Name method is that it will automatically strip static strings used to connect fields together if one of the fields contains a NULL value. In your scenario 2 out of the 3 fields were null so depending on where the NULL values where your formula worked or didn't.

Here is your original formula:
{get_crop_trait_observation.crop_trait_id} + ":" + {get_crop_trait_observation.inventory_id} + ":" + {get_crop_trait_observation.crop_trait_code_id} + {get_crop_trait_observation.numeric_value} + {get_crop_trait_observation.string_value}

And if you add two more ":" static strings to concatenate the other NULLable fields you will get the desired result. In the end your formula should look like this:
{get_crop_trait_observation.crop_trait_id} + ":" + {get_crop_trait_observation.inventory_id} + ":" + {get_crop_trait_observation.crop_trait_code_id} + ":" + {get_crop_trait_observation.numeric_value} + ":" + {get_crop_trait_observation.string_value}

Notice the two extra ":" static strings following the crop_trait_code_id and numeric_value fields in your formula.

comment:2 by Mark J. Millard, 12 years ago

Resolution: → fixed
Status: addressed → closed

Again, it is important to realize that any punctuation put in between fields is dropped before a field that has no data.

Note: See TracTickets for help on using tickets.