Questions tagged [function]

The tag has no usage guidance.

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

How to pass map values on client side from component to controller

I currently have a child component to which I pass some map values from a parent component to an attribute in the child component on the client side. I used an example which gets map values from ...
0
votes
0answers
24 views

Lightning Web Component: Functions Inside an Event-Listener's Function Don't Run

I have a lightning-record-edit-form. I programmatically submit one field at a time, each time a user changes or interacts with a field. lightning-input-field has an onchange property. Only booleans, ...
0
votes
2answers
128 views

Writing and Calling functions in LWC

this might be a stupid question, so if it is please feel free to troll in the comments. I have a sample code here that has a simple function in it. My question is: once you have written a function (e....
0
votes
1answer
25 views

Nested function using inline AMPscript

I'm new with AMPscript. I'm trying to make my AMPscript look better Original script: %%[ var @pointsBalance, @memberLevel set @pointsBalance = AttributeValue("Total") if @pointsBalance > 1000 then ...
2
votes
0answers
60 views

SSJS: Function returns value without return

I hope someone can help me to understand the following behaviour: <script runat=server> Platform.Load("Core", "1.1.1"); function test(args) { for (var i = 0; i < args.length;...
0
votes
2answers
44 views

How to check value of inputfile in apex repeat on save with javascript

I have a visualforce page where I give the option to save 2 files based on an apex repeat. I check when a file is added on change if the filesize does not surpass 5mb and alert the user if needed. On ...
1
vote
1answer
406 views

Importing Function from LWC js File returns 'Is Not Function'

Trying to figure out how to share JS functions with another component. I have followed the documentation on the LWC here Here is the functions.js file reusableLWCFunctions.js const myfunction = (...
1
vote
1answer
46 views

SQL - How to filter the max value

I am in the middle of creating an SQL in SFMC. I have three attributes in the source Data Extension: GlobalID, CategoryDescription MAX (yes, the name is weird, but it is not the point...). What I ...
1
vote
0answers
16 views

Report Formulas - Divide Summary Field by Number of Users

I am trying to find the Average Number of Hours each user logs per week (by Billable vs Non-Billable Hours). I have attached a screenshot. I want the sum of the hours (20.34) divided by the number of ...
0
votes
1answer
340 views

How to call a method in a lightning component in same helper

I have a delay function in a lighting component helper from which I want to call another function I get the error [this.displayToast is not a function] how do I achieve this? Delay function: ...
1
vote
1answer
152 views

[APEX]: Way to iterate over method parameters

I have a method that accepts 4 parameters. I want to do the same action for every parameter if it's not null. Is there a way to iterate over all parameters rather than building if blocks? So for ...