Hi together,
Â
I'm working with legacy views and can't manage to pass the value of an augmented attribute of type date to a variable to use it as parameter for KPIs.
Â
The record containing the augmented attribute
 - id: CM_MONTHS
   identifier:
    id: id
    displayName: Id
    pql: '"CM_MONTHS"."MONTH"'
   attributes: <]
   newAttributes: <]
   augmentedAttributes:
   - id: late_creation_deadline_date
     displayName: "Late Creation: deadline date"
     possibleValues: e]
     columnType: DATE
     format: "%Y-%m-%d"
     housekeeping: false
     type: AUGMENTED_ATTRIBUTE
   flags: g]
   priorities: Â]
   triggers: T]
   businessRules: []
   type: RECORD
   origin: PACKAGE
Â
The component to update the augmented attribute
  type: table
 settings:
   data:
   columns:
    - id: 3486adcd-a996-49a5-97e0-af17da07e9af
     field: CM_MONTHS.MONTH
     order: 100
    - id: 10c08937-649f-48a0-88fe-929d3107e824
     field: CM_MONTHS.AUGMENTED_late_creation_deadline_date
     order: 200
     onEdit:
       updateAugmentedAttribute: true
     onClick:
       update:
        variables:
        - name: deadlineDate
   breakdownSelector: {}
Â
By clicking a value in the table, this value is supposed to be written into this view variable (I already tried with and without type):
  name: deadlineDate
  type: date
Â
When for test purposes trying to output the variable via a text component, this is the result: wobject Object]. This is the component:
  type: text-box
 settings:
   title: local
  content: ${deadlineDate}
When trying to pass the variable to a KPI component, that for test purposes is just made to return the variable's value, NULL is the result. This is the KPI:
 - id: dummy
   displayName: " Dummy"
   customAttributes: {}
   pql: "{p1}"
   format: "%Y-%m-%d"
   breakdowns: a]
   aggregations: e]
   parameters:
   - id: p1
     displayName: p1
     defaultValue: "1"
   targets: ]
   allowTargetUpdate: true
   type: KPI
   origin: PACKAGE
   isOverridable: false
This is the view component:
  type: kpi-list
  settings:
   data:
    kpis:
    - id: 179b9091-c3f2-4bee-bc36-1efeb503fcfc
      kpi: dummy
      show: true
      order: 100
      kpiParams:
      - id: p1
        value: ${deadlineDate}
Â
I asume, I have to call a specific property or add some other JS code when passing/accessing the variable. Probably something like ${deadlineDate.value}, but I couldn't figure it out. Please hellp me on this.
Â
Thank you