Questions tagged [computed-field]
84 questions
10
votes
3 answers
How do you use computed/calculated properties in Angular?
I am tormented by the question: where I should locate my calculated properties in angular project?
For example:
I have model, service to get model and component to show model.
person.model.ts:
export class Person {
firstName: string;
lastName:…

maskalek
- 453
- 5
- 18
6
votes
6 answers
Laravel Nova - How to determine the view (index, detail, form) you are in for a resource's computed field?
I would like to return a different result for a computed field when viewing the index view than when viewing the detail view of a resource.
Basically something like viewIs() below:
Text::make('Preview', function () {
if($this->viewIs('index'){
…

Michael Pawlowsky
- 526
- 7
- 10
4
votes
4 answers
Change an Existing Column to Computed and Persisted without dropping the table/column
I wanted to change an Existing Column in SQL Server to computed and persisted without dropping the table/column.
I have an auto-incrementing ID and another column ReportID which is formatted with this computation:
ReportID =…

Sreeram Nair
- 2,369
- 12
- 27
4
votes
1 answer
Firebird computed (calculated) field on server side
Newbie in SQL and development in general, I have a table (COUNTRIES) with fields (INDEX, NAME, POPULATION, AREA)
Usually i add a client side (Delphi) Calculated field (DENSITY) and OnCalcField :
COUNTRIES.DENSITY=COUNTRIES.POPULATION /…

Stalkium
- 148
- 1
- 11
3
votes
0 answers
How can I read from a computed field? In Odoo 9
I have a computed field in a model called page_price.
Class Page(models.Model):
page_price = fields.Float(compute='compute_page_price')
def compute_page_price(self):
self.page_price = 7 # this value is an example
If I show this…

MouTio
- 1,249
- 23
- 45
3
votes
2 answers
React change state in array (for loop)
I have a State with flights, and I have a slider to change the max price to change visibility of the flight elements.
maxpriceFilter() {
var flightOffer = this.state.flightOffer;
var sliderPrice = this.state.sliderPrice;
for (var i =…

user3611459
- 3,311
- 6
- 16
- 18
3
votes
1 answer
sitecore IComputedIndexField class isn't found / doens't run
I've added a ComputedIndexFields.config files with the following code:
…

Timon
- 1,003
- 1
- 9
- 38
3
votes
2 answers
Sitecore Content Search PredicateBuilder vs IEnumerable
I'm having problem with querying IEnumerable computed index field. Im using Sitecore 7.2 upd2, Lucene, ContentSearch and PredicateBuilder.
I'm trying to query product prices which are available under products section. There is some heavy Logic to…

Bartek KG
- 41
- 4
2
votes
0 answers
Why isn't the field updated odoo v11?
For some reason, the remaining field is not updated when a new value is added ,why can this be?
yearly_pool = fields.Integer(string='Yearly pool')
working_days = fields.Integer(string='Wordkdays count', compute='_compute_working_days',…

SaltySteven
- 45
- 4
2
votes
2 answers
How do I create a computed field on an invoice in Odoo 11 using Python?
Our company pays commissions based on the discount given on a line by line basis. I am trying to show this commission amount on the invoice copy we send to the sales rep.
I am using Odoo studio in v12.0 and created a field x_studio_field_dakHb…

Cameron Wolfe
- 23
- 3
2
votes
1 answer
Sitecore 8.2 Lucene search isn't indexing all terms in a computed field
I have a computed field that takes information from an item's sub-items and concatenates it into a new field on the item.
If I step through the debugger, I can see that the computed field is returning the correct information. If I check the indexes…

Thomas Higginbotham
- 1,662
- 20
- 25
2
votes
2 answers
How can I search by a computed field in Odoo?
I'm trying to search by a computed field in Odoo 9. But it return all record as result.
class Version(models.Model):
_name='product_cars_application.version'
name = fields.Char(compute="_get_name", store=True)
@api.one
def…

Mariano DAngelo
- 920
- 5
- 18
- 39
2
votes
1 answer
I want to Split string Using Computed column in views AX2012
I am using Computed columns in views. I have a string stored in one column of a table. I want to split that string using Computed Columns.
eg.
ColumnA = 0001^93.2
Resullt:
ColumnB = 0001
ColumnC = 93.2
Thanks

shabib raza
- 73
- 1
- 5
2
votes
2 answers
XPages Create Links from Array in Computed Field
I put a computed filed in a XPages and then i created value via this code below. Every line has its own link but before i complete this code i am trying to learn how to remove the comma at the beginning of line. There must be another way to do this.…

Cumhur Ata
- 809
- 6
- 18
2
votes
2 answers
Displaying a computed field with multiple lines? (xpages)
OK, I have a customer name and address and simply want to display this in one computed field instead of separate lines in a table to save real estate. I've tried several iterations of @newline but to no avail. Can someone give me some guidance?
I…

Mike Gonzalez
- 157
- 9