B2022-124: [JPR] Blank RO Values (All Spaces) printing as "?"

This commit is contained in:
Jake
2022-10-03 17:56:12 +00:00
parent 1fbda4c13b
commit 6712671d04
4 changed files with 630 additions and 25 deletions

View File

@@ -168,13 +168,6 @@ namespace Volian.Controls.Library
tvROFST.SelectedNode = null;
ResetSearch();
//tbROValue.Text = null;
//lbROId.Text = string.Empty;
//btnGoToRO.Enabled = false;
//btnSaveRO.Enabled = false;
//btnCancelRO.Enabled = false;
//btnPreviewRO.Enabled = false;
}
}
}
@@ -640,11 +633,6 @@ namespace Volian.Controls.Library
}
_curROTypeFilter = _roTypeFilter;
//_curROFST = _myROFST;
//_curROFSTLookup = _myROFSTLookup;
//_curROTypeFilter = _roTypeFilter;
}
public void SetFindDocROButton(bool enabled)
@@ -1027,7 +1015,15 @@ namespace Volian.Controls.Library
// tries to process a search while the main tab/procedure is closing
try
{
searchValue = (!string.IsNullOrEmpty(searchValue)) ? searchValue.Replace('\u2011', '-').Replace(@"\u9586?", @"\\").Trim() : searchValue;
// B2022-124: [JPR] Blank RO Values (All Spaces) printing as "?"
if (!string.IsNullOrEmpty(searchValue))
{
searchValue = searchValue.Replace('\u2011', '-');
searchValue = searchValue.Replace(@"\u9586?", @"\\");
if (searchValue.Replace(" ", string.Empty).Length > 0)
searchValue = searchValue.Trim();
}
if (this.Enabled && !string.IsNullOrEmpty(searchValue) && searchValue.Length >= 2 && !searchValue.Contains("#Link:Transition"))
{
@@ -1036,7 +1032,7 @@ namespace Volian.Controls.Library
// B2022-088: [JPR] Find Doc Ro button not working in Word Sections
// B2022-098: [JPR] ROs not being resolved in Word Sections
if (searchValue.StartsWith("<") && searchValue.EndsWith(">")) // RO Link (accPageID)
{
{
ROFSTLookup.rochild roc = MyROFSTLookup.GetROChildByAccPageID(searchValue);
// If RO is valid then select node in tree view