• Hrishikesh Kolhe 3
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Below Code
.js
import { LightningElement,track, wire } from 'lwc';
import getTasks from '@salesforce/apex/TaskManager.getTasks'
export default class TaskManager extends LightningElement {
 
 
   /* @track columns = [
        { label: 'Name', fieldName: 'Name' },
        { label: 'Id', fieldName: 'Id'},
        { label: 'Id', fieldName: 'Id'},
        { label: 'Id', fieldName: 'Id'},
    ];
   @track TaskList; */
   TaskList = [];
   @wire (getTasks) wiredAccounts({data,error}){
    if (data) {
         this.TaskList = data;
    console.log(data);
    } else if (error) {
    console.log(error);
    }
    }
}

.html
<template>
    <div style="height: 500px;">
        <template for:each={TaskList} for:item="ac">
        <template if:true={TaskList}>
            <lightning-card title="Task Card Fast Look"
             key-field="id"
             data={TaskList}
             columns={columns} key={Task_Manager__c.Id}>
            </lightning-card>
        </template>
        </template>
    </div>
</template>

Apex,cls
public with sharing class TaskManager {
 
    @AuraEnabled (cacheable = true)
   public static List<Task_Manager__c>  getTasks() {
    return [Select id,Name,Time_to_Complete_Before__c,Completed__c,Deleted__c from Task_Manager__c WITH SECURITY_ENFORCED ];
   }

Please Help me to understand abpve case
I  am getting error while creating formula field error is
There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Formula has no columnType".

how to resolve................????
I  am getting error while creating formula field error is
There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Formula has no columnType".

how to resolve................????

Hi All

 

I'm trying to add a field of type Formula to a custom object and I'm getting the following error when I hit 'save' at the end of the new field wizard:

 



Validation Errors While Saving Record(s)

There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Formula has no columnType". 

 

I can't find doumentation of this error.

Please does anyone know what does this error mean and what can be the cause of it?

 

Mant thanks

 

 

  • November 04, 2011
  • Like
  • 0