console-web-api
Reactive icon

Console Web API

Stable version 2.0.0 (Compatible with OutSystems 11)
Uploaded
 on 2 Sep (3 days ago)
 by 
5.0
 (7 ratings)
console-web-api

Console Web API

Compatible with:
Created on OutSystems 11

Version 2.0.0

Stable
Current
See documentation
Uploaded on 2 Sep (3 days ago) by 
Compatible with:
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.539 to 11.0.615
Database:
All
Release notes:

Internal rewrite plus API cleanup. All JavaScript is consolidated into a single script that registers window.ConsoleWebAPI; every client action is now a one-line delegate over it, replacing 17 independent inline implementations. Four private helpers were removed.

Breaking — consuming apps must be updated before promotion

  • Output is disabled by default. Call the new ConsoleConfigure(True) once from the consuming app's OnApplicationReady, passing a feature toggle or Site Property. Without it, nothing logs and there is no error to explain why.
  • All 24 actions renamed from Console_X to ConsoleX. GetObjectByElementId and PerformanceNow are unchanged.
  • ConsoleAssert: input parameter Arguments renamed to Values.
  • Structure ConsoleDir_Options renamed to ConsoleDirOptions.


Behaviour changes

ConsoleDebug now marshals arguments like the other log levels — a single value is unwrapped rather than nested. An empty Values list contributes no argument where it previously logged a visible []. Labels are trimmed for ConsoleGroup, ConsoleGroupCollapsed, ConsoleCount, ConsoleCountReset, ConsoleTime, ConsoleTimeEnd and ConsoleTimeLog.

New

ConsoleConfigure(IsEnabled) — required, see above.

ConsoleDirXmlById(ElementId) — resolves an element by id and dumps it in one call.

Fixed

Timer labels now pair across ConsoleTime / ConsoleTimeLog / ConsoleTimeEnd, which previously keyed on different strings and silently lost the measurement. 0 and false are treated as labels rather than as absent. console.profile, profileEnd, timeStamp and dirxml are feature-detected instead of throwing on browsers that lack them. Group and timer open/close pairs stay balanced when output is toggled, so the page's console can no longer be left permanently indented. No action can throw into the client action that called it. ConsoleTable warns again on malformed Columns JSON; ConsoleDir no longer warns on blank options.

Application Objects:
Console Web API has 0 AOs.

Version 1.1.0

Stable
See documentation
Uploaded on 5 May by 
Compatible with:
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.539 to 11.0.615
Database:
All
Release notes:

v1.1.0 is a major quality-focused update that transforms the app into a more maintainable and reusable console utility library.

What changed

  • Improved architecture by separating public API actions from internal helpers
  • Reduced duplication by centralizing JSON-like parsing and normalization logic
  • Refactored key console actions to use shared internal helpers
  • Standardized descriptions for better readability and maintenance
  • Removed unused internal helper actions


Internal improvements

  • Added TryParseJsonLikeText
  • Strengthened TryParseJsonLike, NormalizeOptionalText, and InvokeConsoleOptionalLabel
  • Simplified internal action flows for repeated logging and timing scenarios
Application Objects:
Console Web API has 0 AOs.

Version 1.0.1

Stable
See documentation
Uploaded on 30 Apr by 
Compatible with:
Version 11
11.9.2 or higher
11.7.6 to 11.9.0
11.0.539 to 11.0.615
Database:
All
Release notes:

This release focuses on internal quality improvements and metadata completeness over v1.0.0.

🚀 Enhancements

  • Improved Metadata: Added parameter descriptions to helper actions to improve maintainability and design-time clarity:
    TryParseJsonLike
    NormalizeOptionalText
    InvokeConsoleOptionalLabel
  • Documentation: Improved the module’s self-documentation by clarifying the purpose of key input and output parameters used in internal helper logic.

ℹ️ Additional Info

No functional changes were introduced to the public console behavior.

Application Objects:
Console Web API has 0 AOs.