AnsweredAssumed Answered

Any ideas why my find/replace script does not work?

Question asked by user26705 on Oct 30, 2016
Latest reply on Oct 30, 2016 by user19752

I have a solution where the user presses a button and executes a script to import records into a table (Table A) from (Table B).  This works fine and without issue.  The issue is that after the import of records into Table A, I want the script to automatically perform a Find/Replace that replaces all instances of #CE# with the contents of variable $EntityName.


This is the script I wrote is as follows:


Window Freeze


....Import Stuff That Works...


Go to Layout ["Table A" (TableA)]

Go to Record/Request/Page [First]


Perform Find/Replace [With dialog: On ; "#CE#", $CELongName; Replace All]

Go to Layout ["Import Manager" (TableB)]



Here is the issue:


When the script runs the dialog appears and I double check that the variable has set the replace field correctly (which it has) and then tell it to "Replace All" - but nothing happens...nada...


but...if I actually goto the Table A layout manually and perform the Find/Replace (which is still populated with the variables from the script) it works.  It just will not work when called from the script.


Any ideas?