Osdu Well Log: Save well log channels and names to xml.

This commit is contained in:
Kristian Bendiksen
2024-07-10 19:51:55 +02:00
parent 36e014d54d
commit 9316715063
2 changed files with 12 additions and 0 deletions

View File

@@ -44,6 +44,13 @@ RimOsduWellLog::RimOsduWellLog()
CAF_PDM_InitFieldNoDefault( &m_wellLogId, "WellLogId", "Well Log Id" );
m_wellLogId.uiCapability()->setUiReadOnly( true );
// Need to save channels for Osdu well logs.
// This reverts settings from RimWellLog constructor.
m_wellLogChannels.xmlCapability()->setIOReadable( true );
m_wellLogChannels.xmlCapability()->setIOWritable( true );
setDeletable( true );
}
//--------------------------------------------------------------------------------------------------

View File

@@ -49,6 +49,11 @@ RimOsduWellLogChannel::RimOsduWellLogChannel()
CAF_PDM_InitFieldNoDefault( &m_depthUnit, "DepthUnit", "Depth Unit" );
m_depthUnit.uiCapability()->setUiReadOnly( true );
// Need to save the name for Osdu well log channels.
// This reverts settings from RimWellLogChannel constructor.
nameField()->xmlCapability()->setIOReadable( true );
nameField()->xmlCapability()->setIOWritable( true );
}
//--------------------------------------------------------------------------------------------------