BUG ALERT: Client Script + Commands -> $Page contextual data is not updated

BUG ALERT: Client Script + Commands -> $Page contextual data is not updated

When using the new Client Script Commands feature, there is an issue with the Client Script $Page contextual data not accurately being updated each time a Command is run.

Assuming a Client Script Command called "Client Script Command Bug" with the following code:


var msg = "!Name: " + $Page.name + "\n";
msg += "!Module: " + $Page.module + "\n";
msg += "!Record Id: " + $Page.record_id + "\n";
msg += "!URL: " + $Client.url + "\n";

ZDK.Client.showAlert(msg);


When the Command is first run within the Page Details context of a Leads record, the following is correctly shown in the alert dialog:





However, if you navigate to a different Module, the following is incorrectly shown:



In fact, as you navigate around between Modules/Views/Canvas/Records, the value returned by the $Page contextual variable is wildly inconsistent/inaccurate.

===================
Powered by Haiku
===================