I am calling an agent from a view action via the following code:
@SetProfileField(“EnvironmentVariables”; “FormName”; “Contact”; @UserName);
@PostedCommand([ToolsRunMacro]; “lsCreateNewBasedOnCurrent”)
This works fine. However, when I use the same code from a hotspot on a page, I get the “Document has not yet been saved” error. When I click ‘OK’ in the error dialog box, the code runs as it should, so I suspect the error is occurring before the code even runs but I can’t figure out why. I’ve been trolling around this forum for a couple of hours now. I’m sure it’s simple…Thanks in advance.