Questions tagged [dynamic-binding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

Calculation in Einstein Analytics Dashboard JSON - dynamic reference line

I am adding a dynamic reference line to a combo widget and the line needs to show an average conversion rate. Monthly conversion rate is presented well, as the column calculating this value is set ...
1
vote
0answers
78 views

Dynamically assign sObject field details in LWC

I have created a inline editable LWC. This solution is dynamic i.e. to add a new field on the table , i just have to add on field set and based upon field type and access, it will be displayed in the ...
1
vote
1answer
129 views

Custom Inline Editable Table in LWC

I have created a Custom Inline editable table in LWC. Here are the details: Apex Class : I am getting the fields to be displayed from Field set and created one wrapper class to pass the fields ...
5
votes
2answers
102 views

LWC best practice call child method

see example https://developer.salesforce.com/docs/component-library/tools/playground/q8rtcVIBf/79/edit Parent component <template> Value in Parent : {objMap.key} Value in Parent : {...
1
vote
2answers
635 views

How to retrieve field attributes from dynamic fields in lightning component

I am loading my fields dynamically trough a fieldset. Using aura:id="requiredField" on the lightning:inputField I can get the fields using a map in the controller. I have made some fields required at ...
0
votes
1answer
54 views

Hot to make a dynamic lightning:inputfield required

I have a fieldset which I get from serverside and load on clientside I am adding the required parameter to the field but my component does not alert on required. I added the values behind the fields ...
0
votes
0answers
30 views

Unable to retrieve records from the dynamic sObject list

I have written some dynamic code for selected object listview. I want to show all recods which belong to the dynamic sObject but I am getting this error ( Invalid field Title for Contact ) for every ...
0
votes
2answers
303 views

Dynamic row values inherits the values from row before in lightning component

I have a lightning component where in I have a few text fields and 2 picklist fields, controlling and dependent. The problem is whenever I try to add a new row dynamically, the new row will take the ...
2
votes
1answer
59 views

Is it possible to rebind for dynamic SOQL in a more scalable way?

I came to the realisation that it isn't difficult to create my own String Interpolation, like this: public class XAP_UTIL_MapInterpolation implements XAP_UTIL_InterpolationIntf { String template; ...
0
votes
1answer
682 views

Error message: Invalid literal value [1, 1]: 'WorkOrder' - Lightning Components - Dynamic Binding

I have a issue, I'm trying to create a Dynamic Form with two lightning Components and fieldsets, each component's related to an Object 'WorkOrder' and 'WorkOrderLineItem'. I pass the API names of each ...
0
votes
1answer
26 views

The dynamic component shows empty when rendered from another component

I am rendering the dynamic component based on the profile the problem is when its loaded it shows the dynamic component in that not the fields which i have in the dynamic component.Below is the code ...
0
votes
1answer
554 views

Dynamic vertical tab lightning component

I am bout to create an dynamic vertical tabbar which gets its content from a query later on. This turns out to be an issue as the aura:iteration seems to be not filled at the point of time the init ...
0
votes
1answer
139 views

How to get related objects and fields of a parent object dynamically?

Can any one suggest me how I can get related objects and their fields of a parent object.Here is the code I have tried so far: public void discoverRelatedAccessibleFields(sObject newObj) { ...
4
votes
2answers
171 views

Can Apex SOQL query variable binding be done in a method other than the method which invokes Database.query?

Apex Commons has some brilliant solutions, but one of the things which I feel is missing is an object-oriented approach to the SOQL query's "WHERE" conditions. I'm presently working on my own ...
15
votes
1answer
119 views

Passing calculated values to components makes them immutable

I'm calculating a value while I pass it to a component. But for some reason this makes it immutable, so I can't update it in my component. These are some cases I played with: <aura:application ...
0
votes
1answer
71 views

How is this markup fixing the error?

In a custom VF page I get the following error :- System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Campaign.Product__c Error is in expression '{!...
3
votes
1answer
284 views

Are dynamically created components bound the same as child components?

I have a lightning component that dynamically renders an indeterminate number of child components. Each child component represents an item in a list. I iterate through the list and create different ...
2
votes
1answer
900 views

Dynamic checkbox only eveluates to true

I have a dynamic checkbox generated trough an iterator.I want to be able to get the true and false values from the current state of the checkbox. When ik check or uncheck my checkbox is always ...
1
vote
1answer
412 views

How to fetch the accounts based on a value checkbox

I have a dynamic checkbox generator which is bound by city on the account which works fine all cities are rendered with a corresponding checkbox. When I select the checkbox a city is added to a list ...
3
votes
1answer
4k views

How to bind dynamic checkboxes to id

I have a couple of checkboxes which I dynamically create trough an iteration. In want to use these to trigger a function. My issue is when I select/check 1 checkbox all the others get checked ...
0
votes
1answer
517 views

Lightning Component Field Binding conditional expression

In a component, initially i was binding a case picklist field value as an attribute. But now, i have requirement to bind it to a different field based on a boolean flag. Original Code snippet (inside ...
0
votes
1answer
923 views

Wrapper class dynamic access to fields [duplicate]

We have wrapper class: public class Meta { @AuraEnabled public Integer total; @AuraEnabled public Integer count; @AuraEnabled public Integer offset; @AuraEnabled public String orderBy;...
12
votes
2answers
6k views

Dynamic field binding in Lightning (e.g. lightning:input)

This is to me the most restricting drawback of Lightning compared to Visualforce. A way to dynamically bind/access properties like values of fields. To make complex component structures fast I don't ...
1
vote
0answers
53 views

Can event.source() be stored as attribute in dynamically created component without destroying source when dynamic component is reloaded

Use Case I have a parent container that has a single reusable modal component. There is also a container with many rows of line items rendered as individual components. In certain circumstances a ...
-1
votes
1answer
354 views

How to pass a String from Visualforce to Apex, then re-rendering the page

I have a VF page that displays a table of records. I'd like the table to be filtered by one of it's String fields, "currency", so if I chose 'USD', it will only show records with 'USD', same for 'CAD',...
0
votes
1answer
695 views

Binding dynamic multiselect step

I would like to bind multi-select dynamic step in a title of a chart but can't figure out how to do that. This is the step: "step_1": { "datasets": [ { ...
0
votes
1answer
3k views

How to get sObject field value

This question is related to more or less that I have asked here My question is, how to get the field value from sObject to little demo you here. Here is my vfp: <apex:page controller="...
0
votes
2answers
812 views

How to bind <apex:inputField> using dynamic sObject

Is that possible to bind the sObject field in the visualforce page? I'm getting the below error but not sure its helping me but I'm sure it has to do with mySobject that I have in the inputField I ...
0
votes
2answers
361 views

Dynamic Component OutputField Bound to SObject

I am trying to bind a field to an outputfield dynamically apex, but in doing so I get value for <apex:outputField> is not a dynamic binding! This does not work: Component.Apex....
0
votes
0answers
137 views

Issue with dynamically rendering inputField from fieldset in Visualforce page

I have a page where inputFields are rendered from a fieldset on Opportunity object. When I load the page, it loads correctly. But when any server side action is done and page is re-rendered an error ...
11
votes
1answer
6k views

Lightning - dynamically creating element and binding it's attributes

I'm trying out to generate input elements dynamically and wasn't able to bind value attribute. I getting following error when trying to display component: testDynamicBinding.cmp <aura:component ...
0
votes
1answer
36 views

JavaScript reading visualforce binded variables

I need some help understand how JavaScript and Visualforce interact. I have a eventListener that works perfectly when the DOM is loaded: window.addEventListener('DOMContentLoaded', function() { if (...
2
votes
0answers
113 views

Is it not possible to use Dynamic binding of sObject fields in a Lightning Component? [duplicate]

I'm trying to loop a list of sObject fields and displaying the fields as column in a table. In Visualforce, we could bind an sObject field like value="{!Contact[fieldName]}". But I'm unable to make ...
0
votes
1answer
110 views

I wanna have a <apex:selectList that automatically fetches select options from an object's field

How to achieve a functionality where i have a <apex:page> <apex:form> <apex:selectList id="countries" value="{!Location__c.Country__c}" size="1" required="true"...
0
votes
0answers
1k views

Can we create a lightning component attribute dynamically and inject it in the component mark up from the controller/helper?

I am trying to create components dynamically in a lightning component. However, the HTML markup or DOM inside which these components are being created are also not static. I am also creating the DOM ...
4
votes
2answers
4k views

Can we create HTML markup dynamically from helper/controller in a lightning component?

Lightning gives us the scope of creating aura components dynamically from the controller/helper using $A.createComponent/createComponents. However, I was wondering if there is a way to create HTML ...
0
votes
1answer
3k views

How to use field sets in a lightning component to create a multi-grid structure form with a lightning look and feel?

I am trying to create a lightning component that would render a form based on a picklist selection. I read this post below and was able to kick start my development How to use fieldsets with ...
0
votes
1answer
90 views

Workaround for WITH DATA CATEGORY clause not supporting bind variables

I have the following code public with sharing class pkb_ArticleController { public KnowledgeArticleVersion[] articles {get { return [SELECT Id, Title, Summary, UrlName, ArticleType , ...
0
votes
1answer
572 views

Link to Report on VF Template

Is there a way to add an Link to a particular report onto the visualforce email template. example:<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+'/'report.id}">...
1
vote
1answer
2k views

Lightning Component: Retrieve values from dynamic forms

I have a list of records and an accordion style form for each record: this is achieved with aura:iteration and few <tr> tags. I've used the indexVar on aura:iteration to uniquely identify ...
1
vote
1answer
430 views

Lightning Component JavaScript - dynamic binding to parent object

I am working on a controller that takes an sObject record and finds the values of a list of field names on an Asset: for (var fid in fsNamesList) { var fieldname = fid; var fieldvalue = ...
2
votes
0answers
696 views

Dynamic Visual Force Binding - getting values to Controller (null)

I am stuck at what I beleived to be a simple implementation using Visual Force Dynamic Bindings. I have the following scenario: A Standard Case has a relationship to a Custom Object (we can call it ...
1
vote
1answer
330 views

Is aura:iteration reactive?

Say I have multiple components nested under each other, one takes collection of Accounts, the component under Account takes a collection of Contacts. Say I want to programmatically remove one of the ...
0
votes
1answer
92 views

Populating Dynamic field using Workflow Rule or Trigger instead of Formula Field

We have a Formula Field named My Team on User object which uses the logged in User and Manager Id of the user record to populate YES or NO. This field is used in a report as a filter. So if a Manager ...
10
votes
2answers
2k views

Accessing child records returned from SOQL via generic SObject

I'm currently querying the records of a custom object, including some related child records. Unfortunately the parent object is unknown, so the returned results from the query is a list of SObjects. ...
0
votes
2answers
157 views

getting Internal Server error with dynamic fieldset and standard controller

I have the following inline visualforce page which gives me an internal server error. <apex:page standardcontroller="Agreement__c"> <apex:repeat value="{!$ObjectType.Agreement__c....
3
votes
1answer
1k views

Issues saving apex:inputfield values to object in controller. Only last field on form saves value

Here's my issue: As per code below, I am trying to display a number of fields dynamically and then allow the user to enter values and save the record (or update it if they are viewing an existing ...
0
votes
1answer
105 views

Binding- SOQL query

I'm trying to pull a query from SOQL explorer to erase some records. My query is trying to make sure the ID from the opportunity matches the ID for the quote presented (there are several quotes, and ...
3
votes
1answer
2k views

Custom URL in Canvas App

I am trying to call dynamic URLs of an external app(having same domain but different paths basis clicking on links inside salesforce) in Salesforce using Canvas app. How can this be implemented? ...
14
votes
2answers
8k views

Picklist Values in Dynamic Lightning Components

Is there an out-of-the-box solution to populate record-type specific picklist values when creating a picklist dynamically (in a Lightning Component) that references an sObject field? At this point ...