Questions tagged [properties]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
38 views

Is it safe to reference property's directly in getter/setter in apex?

I was wondering what your thoughts/concerns are regarding to refering to a property itself in your getter/setter... Is this considered to be always save and correct in apex? Example: private String ...
3 votes
0 answers
650 views

Remove default LWC Tooltip "This property supports using an expression to define its custom label"

In our organisation we have some LWC with configurable fields in the XML As you can see, some of them have description and others have not. Even for the ones that have a description, the help text ...
3 votes
1 answer
311 views

Performance comparison between LWC Reactive property and javascript Property

There two ways we can define property in lwc javascript. We can define reactive property which we can use in HTML page. This reactive property stays throughout the lifecycle of the LWC component. ...
0 votes
1 answer
274 views

What is the difference between the Name and the CustomerKey of a data extension?

I did not understand yet what the difference between the 'Name' - argument in the data extension properties and its attribute 'CustomerKey' is: props = {'Name': 'Test-Name', 'Description': 'Sends ...
0 votes
1 answer
144 views

Pass api property to not connected lwc

Those lwc are on one screen flow, but its only connection between them. I need to pass api property from one lwc to another, but they must be separate. So my '@api selectedProjectId' value must be ...
0 votes
1 answer
61 views

Is it possible to get Access to Send Email (All Email Services) property in Deliverability

I try to get Send Email (All Email Services) property by ant and get metadate. But i really dont know where can i find this property. Can you give me hint what should i include in my package.xml Best ...
3 votes
1 answer
398 views

Apex Final Property Behaves Like a Member Variable

Assume we have a simple class: public with sharing class SomeClass { public String property { get; set; } { property = 'Default Property Value'; } public ...
0 votes
2 answers
252 views

Passing values to property LWC

I'm trying to pass a value after checking that the URL coming from the connectedCallback is valid. When I try to pass the value to the this.frontImage property I'm facing an issue, nothing really ...
0 votes
2 answers
163 views

Update Field Properties

I want to Update Field properties Schema.SObjectField field = fieldMap.get(fieldName); Schema.DescribeFieldResult fieldDescribe = field.getDescribe(); labelMap.put(fieldDescribe.getLabel(),...
1 vote
0 answers
535 views

How to use a JS property in a CSS style?

While making a Lightning Web Component, I am trying to use a JS property in an inline CSS style, but it's more complicated than I thought. My property looks like this: get yesVisColorLabel() { ...
4 votes
2 answers
3k views

Deployment Error: Property 'activateRSS' not valid in version 28.0

I am using ANT to deploy a custom package which includes custom code and managed packages. I have deployed the custom package to multiple environments without any issues but I am now facing the ...
0 votes
1 answer
257 views

Can i create changing variable in apex class

Hello guys i wrote to update class for case object and this object have a many records thats why i cant execute Soql queries, I encountering error: "So many soql queries",i searched i found one way, i ...
0 votes
0 answers
48 views

Controller property set to null after actionPoller execution

I am assigning controller properties with some value in its constructor. I am using <apex:actionPoller /> on VF page and it is rerendering some part of visualforce page section. But it not ...
1 vote
0 answers
213 views

write SFMC [Script activity] [SSJS] object Properties to a DE

i my objective is to write object properties(Folder, DE , etc) to a DE , how can i achieve this? here i tried, unsuccessfully, to write folderID to DE column ID , eventually i would like gather all ...
1 vote
1 answer
656 views

How do I use custom properties that include a colon (like <div :data="data">) in Visualforce?

Many Vue libraries include components that use colons to signify properties, like Buefy's table syntax: <div v-cloak="true" v-if="MyJSONData != null"> <b-table :data="data" ...
4 votes
1 answer
194 views

What is the difference between a variable and an automatic read-write property?

Accordingly to the Apex Developer Guide, An Apex property is similar to a variable; however, you can do additional things in your code to a property value before it is accessed or returned. ...
2 votes
2 answers
41 views

Difference between using and not using get; set; in data passed from backend

What is the difference between using and not using get; set; in data passed from backend? I saw examples like this in Apex: using get; set; public with sharing class MyBackendController { ...
1 vote
0 answers
306 views

Overloaded Getter Methods for Apex Property

I've a little confused by the order of execution in the following very useful class from Adrian Larson. If I call "get" with just an SObjectType, invoking the first method, the cache.containsKey(key) ...
6 votes
2 answers
2k views

Need help understanding get/set methods, weird behavior

I came across this question somewhere which has been kept me engaged thinking why it is behaving this way. Lets say I have an apex class: public class TestController { public String myString{...
0 votes
1 answer
131 views

Repeater 's text box value getting null in method

<section class="panel profile-info"> <apex:inputTextarea rows="2" value="{!pagepost}" styleClass="form-control input-lg p-text-area" id="postingonpage" /> <div class="panel-footer" ...
2 votes
1 answer
103 views

Why does this VisualForce page think I'm referencing a Controller variable, instead a field inside of that variable?

Assume that I have a VisualForce page that looks like this: <apex:page controller="SearchResultController" action="{!storeSearchResults}" id="SearchResultsView"> <apex:repeat value="{!...