Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted by Mina Mohsen ( 15 years ago )
// Override method Start
public void modifiedField(fieldId _fieldId)
{
;
super(_fieldId);
// Override method End
switch (_fieldId)
{
// AddressZipCode = Current TableName
// CountryRegionId = Field Name @ Current Table
case fieldnum(AddressZipCode,CountryRegionId) :
// TimeZone = Field Name @ Current Table
// AddressCountryRegion = Related Table 1
// CountryRegionId = Related Field Between Two Tables
// TimeZone = Modified Field @ current Table
this.TimeZone = AddressCountryRegion::find(this.CountryRegionId).TimeZone;
break;
// AddressZipCode = Current TableName
// State = Field Name @ Current Table
case fieldnum(AddressZipCode,State) :
// TimeZone = Field Name @ Current Table
// AddressState = Related Table 1
// CountryRegionId = Related Field Between Two Tables
// TimeZone = Modified Field @ current Table
this.TimeZone = AddressState::find(this.CountryRegionId, this.State).TimeZone;
break;
}
}
Revise this Paste
Parent: 33684