Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

InheritedProperty using HTL JavaScript Use API

Avatar

Employee

Can anyone please point me to the correct syntax to get InheritedProperty using HTL JavaScript Use API?

1 Accepted Solution

Avatar

Correct answer by
Employee

Found the correct syntax below

use strict";
use( function() {
    var data = {};
    data.id = inheritedPageProperties.get("id", String.class) || "";
  
    return data;
});

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Found the correct syntax below

use strict";
use( function() {
    var data = {};
    data.id = inheritedPageProperties.get("id", String.class) || "";
  
    return data;
});