Display Record Number/Name in Retired by/Created by fields instead of GUID

1550
14
11-23-2021 02:18 PM
Status: Open
SamMontoia1
New Contributor III

Display Record Numbers/Names in Parcel/Parcel line Fields that depict "Retired by" and "Created by" attributes instead of GUID of the Record.  The GUID is definitely less useful when trying to determine parcel lineage to a user. 

14 Comments
AmirBar-Maor

@SamMontoia1 

Thanks for posting your expression to display the retired record name as part of the post "See the Record Name as part of the parcel properties".

Why we do not simply hide the GUID field?

1. When publishing data for editing the service itself becomes the schema. Hiding fields can be done when authoring maps (in the Pro client as well as web).

2. We made a conscious decision not to hide any table or any fields. We have learned from the ArcMap parcel fabric that hiding things later requires you to have special tools to 'unhide' them. It also makes them 'special' which translates to risk in terms of software quality.  

3. GlobalIDs are the new ObjectIDs. None of them are meaningful or pretty but highly required. The open possibilities for new and exciting workflows across different clients, connected and disconnected as well as between organizations.

4. Hiding them, or any other field to that matter is very easy.

jcarlson

@SamMontoia1  here's one:

// Retired Record globalID
var g = $feature['createdbyrecord']

// Records featureset
var r_fs = FeatureSetByName(
    $datastore,
    "kendall_pf_Records",
    ['name', 'recordtype'],
    false
)

// Filter, grab initial record
var r = First(Filter(r_fs, 'globalid = @g'))

// If not imported, spit out record name
if(r['recordtype'] != 11){
    return r['name']
}

 

That last bit may not apply. All our imported features were assigned to import records with a type of 11, and I don't want those to show up, since they're not actual document names like we have in our records layer.

Use the same expression, but include the recordeddate field instead of the name to get the date.

AmirBar-Maor
Status changed to: Under Consideration
 
AmirBar-Maor
Status changed to: Open