create_new_page

create_new_page

Functions

Name Description
add_new_page Create a new blank dashboard page

add_new_page

create_new_page.add_new_page(
    dashboard_path,
    page_name,
    title=None,
    subtitle=None,
)

Create a new blank dashboard page

:param str dashboard_path: The path where the dashboard files are stored. (This is the top level directory containing the .pbip file and Report and SemanticModel folders). :param str page_name: The display name for the page you just created. This is differnt from the page_id which is only used internally. :param str title: Title to put at the top of the page. This under the hood calls the add_text_box() function. If you would like more control over the title’s appearance use that function instead. :param str sub_title: Title to put at the top of the page. This under the hood calls the add_text_box() function. If you would like more control over the title’s appearance use that function instead.

:returns: new_page_id: The unique id for the page you just created. If you used this function it will be in the format page1, page2, page3, page4, etc. If you manually create a page it will be a randomly generated UUID. To find a page’s page id, consult the report > definition> pages > page.json file and look in the page order list.