Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
1. Correcting CompanyName for the login
Browse files Browse the repository at this point in the history
2. Correcting Exception handling for Project Preferences
  • Loading branch information
DhirenChhapgar committed Nov 7, 2017
1 parent 1c554de commit 0eec549
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Binary file modified AcumaticaSmartsheetIntegration.zip
Binary file not shown.
Binary file modified DeploymentSource/Bin/PX.SmartSheetIntegration.dll
Binary file not shown.
Binary file modified DeploymentSource/Bin/PX.SmartSheetIntegration.pdb
Binary file not shown.
4 changes: 2 additions & 2 deletions PX.SmartSheetIntegration/PM/SetupMaintExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ protected virtual void PMSetup_RowPersisting(PXCache sender, PXRowPersistingEven
if (pmSetupSSExtRow.UsrSmartsheetClientID != null
&& String.IsNullOrEmpty(pmSetupSSExtRow.UsrDefaultRateTableID))
{
sender.RaiseExceptionHandling<PMSetupSSExt.usrDefaultRateTableID>(pmSetupRow, null, new PXSetPropertyException(ErrorMessages.FieldIsEmpty, PXErrorLevel.Error));
e.Cancel = true;
throw new PXRowPersistingException(typeof(PMSetupSSExt.usrDefaultRateTableID).Name, null,
ErrorMessages.FieldIsEmpty);
}
}
#endregion
Expand Down
2 changes: 1 addition & 1 deletion PX.SmartSheetIntegration/SM/MyProfileMaintExt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected virtual void RequestSSToken()
{
PMSetup pmSetupRow = PXSelect<PMSetup>.Select(Base);
PMSetupSSExt pmSetupSSExtRow = PXCache<PMSetup>.GetExtension<PMSetupSSExt>(pmSetupRow);
string loginScopeCompany = PXDatabase.Companies.Length > 0 ? Base.Accessinfo.CompanyName : String.Empty;
string loginScopeCompany = PXDatabase.Companies.Length > 0 ? PXAccess.GetCompanyName() : String.Empty;
string currentScope = String.Format(",{0},{1}", Base.Accessinfo.UserName, loginScopeCompany);
if (pmSetupSSExtRow != null && pmSetupSSExtRow.UsrSmartsheetClientID != null)
{
Expand Down

0 comments on commit 0eec549

Please sign in to comment.