You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to create a table in visual builder using custom array as dynamic columns.

Summary:

Assume user provided start date and end date, on click of button we should generate a table with dates between as column headers and an empty row.

Please provide an approach how to make it possible.

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

I have tried using javascript to get the dates between and also the columns field in oj-table:

 class PageModule {

  }

  PageModule.prototype.getDatesBetween = function(startDate, endDate) {

  const dates = [];

  let currentDate = new Date(startDate);

  while (currentDate <= endDateC) {

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!