Getting Started with Custom HTMLControl

Hi @Shivangi_Patankar You can refer to this following section in the documentation to better understand how to access App variables inside a Custom HTML control: Apps - Custom HTML.

  1. If you wish to access all the data in an entity inside an HTML control, you can create an app variable of type ‘ListSource of Entity’. Alternatively, if you want to obtain a specific record in the Entity, you can create an App variable of the respective Entity type.
  2. On the page load event, create a ‘Set value’ rule to assign the variable with entity data using Fetch or Fetchone queries.
  3. Within the HTML control Javascript code, you have the option to use ‘App.getVariable’ or ‘App. onVariableChange’ functions to get the data.