Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

Template slot not working in oj-table

Summary:

Template slot inside oj-table not working properly.

Content (required):

I have an oj-table inside which there are many columns. The data source for this table is a BO in VBCS which is tied to a table in our ATP DB.

I have created templates for 2 columns - Transaction Date and Expenditure Item Date in which we are defining a date format to be displayed. Transaction Date is of type VARCHAR and Expenditure Item Date is of type DATE in our DB.

Below are the template codes.

    <template slot="Transaction Date">
      <oj-input-date value="{{ $current.data }}" readonly="true"
        converter='{"type": "datetime", "options": {"pattern":"MM/dd/yyyy"}}'></oj-input-date>
    </template> 
    <template slot="Expenditure Item Date">
      <oj-input-date value="{{ $current.data }}" readonly="true"
        converter='{"type": "datetime", "options": {"pattern":"MM/dd/yyyy"}}'></oj-input-date>
    </template>
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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