Questions tagged [dynamic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
213 views

Lightning components - expressions in styling issue

I have a custom popup component for displaying help text near form fields. I wanted to make it more dynamic - make the position of the nubin a component attribute. And Now I'm facing a strange ...
0
votes
1answer
379 views

Remove special character in javascript for a dynamic value

I have a javascript method $(document).ready(function() { pageViewed('{!currentName} - Detail Page'); Here currentName can have special characters like a single quote. Is there ...
2
votes
1answer
1k views

ComponentService.createComponents(): 'callback' must be a Function pointer. : false

I want to be able to call $A.createComponents(type, attribute, calllback); with values in an array. SF doc I am following: Dynamically Creating Components. But the obvious value of this would be to ...
4
votes
2answers
838 views

Can't access values of list attribute reference of dynamically create Lightning component

I am creating this Lightning component: <aura:component> <aura:attribute name="record" type="Account" /> <aura:attribute name="recordList" type="Account[]" /> ... </aura:...
0
votes
1answer
167 views

Dynamic Content - based on date

I'm reading up on dynamic content and it all seems to be based only on subscriber attributes or DE/audience attributes. Is there a way to have X number of dynamic content blocks that cycle through ...
0
votes
1answer
1k views

How to get Reference field value for lightning:datatable data attribute

I'm creating the lightning:datatable dynamically and passing the data by querying from contact object, and I have a parent Account.name field in the SOQL query and I have specified the field Account....
2
votes
2answers
2k views

Aura:if use a function as expression

I wish to check a condition inside an aura:iteration. The condition should be dynamically set according to the current item in the iteration. I'm trying to achieve the following : <aura:if isTrue=...
0
votes
2answers
2k views

lightning dynamic component datatable onclick/onrowselection

I have a lightning component that dynamically creates a lightning:datatable when apex returns a list of records. For the most part its working, but im trying to add an onclick event to the row, but ...
0
votes
1answer
281 views

Impression tracking on dynamic content block with amp script

I want to add Impression tracking to a dynamic content block that is added with amp script. So the dynamic content block looks like this in our email template: %%=ContentAreaByName("my contents\...
0
votes
2answers
1k views

cannot access aura:id of dynamically created Lightning Element [duplicate]

When I click on lightning:button(Create), I am able to dynamically create lightning:input element from js controller but When I click on lightning:button(Set Value), I am not able to set value for the ...
2
votes
1answer
136 views

Dynamic Component issues

I am creating a component on click of button using $A.createComponent, which is inside a parent component. <aura:component> <aura:attribute name="displayNoResults" type="Boolean" default="...
4
votes
0answers
250 views

Dynamically created selectOptions not appearing in dynamically created inputSelect from FieldSet

I'm creating components from a fieldset, which means determining that a field in the set is a picklist in real time, then creating that inputSelect dynamically, and then creating the ...
0
votes
1answer
64 views

Why don't changes made to content blocks in dynamic content update automatically?

I have an email with a dynamic content block that has 10 rules and 10 associated content blocks. When I make a change to any of the associated content blocks the content doesn't update in the dynamic ...
0
votes
1answer
478 views

Dynamic link is not working after email sent (gmail, outlook..etc)

We have built a dynamic link for subscriber, below is script and html i used SET @Mid = field(@row,"Meeting_id") Set @FURL = CONCAT('http://www.abc.fr/xyz/meetings/v3/','?meetingId=',@Mid) ...
0
votes
2answers
89 views

How do you avoid values to duplicated?

I'm looking into a DE of past customers transaction, all transactions that contain samples are retargeted with their parent product. In my an email, I'm trying to display up to 4-3 parent products ...
0
votes
1answer
132 views

Can we use Ampscript in Html email body to collect multiple click details?

We have set of journey flow which has decision split for click on all links based on that activity another email will be deployed. But we have to add dynamic field values after click decision split ...
2
votes
0answers
375 views

How to dynamically query in Remote Object Model?

See my code comments in my controller for what I'm trying to do. This article might help as well: Overriding Default Remote Objects Operations Page <apex:page> <apex:remoteObjects &...
1
vote
1answer
839 views

Dynamic visualforce table using Map

I was originally building lists using dynamic query which works great, like so: extension: // initialize lead variables and columns string leadFields = [SELECT lead_fields__c FROM ...
0
votes
0answers
75 views

facing Access Check failure issue with Dynamic Picklist lightning component

I'm trying to dynamically create a picklist in lightning component. But i am facing Access Check Failure Access Check Failed! Component.setupAttributes():'size' of component 'markup://ui:...
2
votes
0answers
321 views

Dynamically Created Custom Lightning Components Creating Old Versions

I have a parent component that dynamically creates child components based on the state of the page. When I make a change to the child component, the page does not create the new version of the child ...
0
votes
1answer
44 views

Using Lookup on Dynamic block

Attempting to use this string within my dynamic content block with rules that are tied to %%KeyField%%. Looking to pinpoint where my issue is coming from and why it isn't working on test/live sends. %...
1
vote
1answer
2k views

Dynamically create a tab in Lightning component

I have a lightning:tabset with one tab containing a list of records. When user clicks on a button next to a record I want to display a second tab with the record detail. My component looks like this: ...
0
votes
2answers
163 views

Is there any better tool than “Send preview” to see emails?

I need to share the emails with others but should be done in a more smooth way than the horrible Send Preview functionality.... Is there any other tool different from sending the itself email to ...
0
votes
2answers
99 views

Which is the best way to update VF page input fields using Javascript? Why?

I have seen both of these being used to update VF page inputs in Javascript dynamically. Approach 1: document.getElementById('{!$Component.thePage.theForm.theField}').required = true; Approach 2: ...
1
vote
2answers
3k views

Adding onclick to dynamically created button

I have a component that dynamically creates buttons which, when clicked, apply filters and then re-query the back end for data. While I can assign onclick events to each button, I can't find a way to ...
1
vote
1answer
304 views

Simple Dynamic Text in outbound SMS

I've been sending SMS through ExactTarget for years, but we want to cater specific info to individuals with SMS. I know nothing about AMPscript, but if I could get help writing a very simple template, ...
1
vote
2answers
1k views

How to dynamically retrieve FieldSet fields using Apex

I'm following the following tutorial: Using field-sets with visualforce I'd like to retrieve and populate a table's columns dynamically based on the fieldset. I would like to do this by somehow ...
1
vote
1answer
1k views

Lightning Dynamic Component Creation

I am creating some dynamic components inside a lightning component. They are created on the click of a button. The code seems to executes or render differently when the button is clicked first ...
1
vote
3answers
666 views

Create list dynamically

I know that the same post exists here for creating list dynamically but i have gone through the posts and got some idea through that but i am still unable to get what i need. List<ZenObject__c>...
4
votes
2answers
7k views

Setting Dynamic style classes for Aura components

As in doc it should be possible to set style classes for #[Lightning] components using a Ternary operator. <div class="{!v.IsTest ? '' : 'slds-hide'}">test</div> But it seems when I do ...
1
vote
1answer
897 views

Ampscript for Footer Content

I have about four footer variations that we use at the bottom of our email templates. I've been trying to place the various footers in: MyContents\Company_Footers\FooterNameHere An example footer ...
1
vote
1answer
38 views

Capturing the Lead deletion log using dynamic apex

I am trying to create an entry in the deletion_log__c object before the lead record gets deleted. I would like to capture all the lead field names along with values in the deletion_log__c object with ...
2
votes
0answers
179 views

What is the best way to remove item from Component.Aura[] type dynamic component list in lightning component?

I've read through most of the questions on this issue of ability to remove an item dynamically from DOM, and did understand that this might not be possible. So I would like to extend the question to ...
1
vote
2answers
215 views

AMPscript to populate order items

I am looking to use AMPscript in Marketing Cloud to populate an email that contains order information which will be housed in the sending data extension. I will need to populate the Item Description, ...
0
votes
0answers
129 views

dynamic pageblockbuttons not showing on bottom location

i'm trying to show pageblock button in bottom side but its not showing on bottom only showing in top location how to set bottom Component.Apex.pageBlockButtons pbButtons = new Component.Apex....
2
votes
1answer
742 views

Salesforce Lightning: Dynamically Create Tabset/Tab

I'm currently having an issue when trying to tabset with dynamic tabs. It appears that I need to use "aura:set" to set the label for each tab. When I do that though, I receive the oh so incredibly ...
0
votes
3answers
242 views

Dynamically route approval to user

I have 3 objects object 1, object 2 and user. object 2 has a lookup to user and object 1 has a lookup to object 2. I want to submit a record of type object 1 for approval to the user as defined by ...
0
votes
2answers
200 views

How to HIDE selective values in a multipick list field at visualforce page according to logged in user

I have a multi-select picklist field 'PermissionsAllowed' at object 'AssignPermissions' with 4 values 'Country A User' , 'Country A Processor', 'Country B User'and 'Country B Processor'. Now ...
0
votes
0answers
252 views

Making detail page to dynamically update without reloading the page

I am using a visualforce page to create child records of an object.This visualforce page is located on the sidebar of detail page. Some actions on this visualforce page are creating a record of "...
0
votes
1answer
2k views

impression tracking for dynamic content

I want to track the clicks and the sends done on the basis of the dynamic content used in the email. I have already got the impression tracking report activated but in the report not getting details ...
0
votes
1answer
472 views

How to dynamically populate text based on data extension cell value

How do I create dynamically populated text displaying within another block of dynamically populated text? The e-mail has a line of script similar to this: %%[VAR @block_a IF ColumnA == "ValueA" OR ...
0
votes
1answer
321 views

Marketing Cloud Creating A Dynamic Look Up using AMPScript.

I currently have 2 Data Extensions that are being imported via FTP into Marketing Cloud. DE1 that contains user information with a primary key Vehicle_Model_ID. DE1 is used to collect the profile ...
0
votes
2answers
575 views

Show dynamic content block based on date and last update

I have created a dynamic content block, which is meant to be added to our email template. It is a top banner, which should only be shown if a customer have made updates to their basket within the last ...
0
votes
1answer
116 views

Query/Filter based off dynamic content sent in 1 send

I have a welcome email, which dynamically (through AMPScript) shows one content to users who have already subscribed, and a different content to new users. Now I want to add a drip two of my ...
3
votes
1answer
1k views

In Lightning/Aura, is it possible to dynamically set the id for ui:inputText and ui:InputSecret?

I'm currently trying to refactor the Discover Lightning Actions source code into something which wouldn't make my eyes bleed on a professional project. Most especially, I wish to reduce all the ...
0
votes
0answers
989 views

if selected field is of type picklist then display Picklist values for that field as input type selectoption next to it on visualforce

I am trying to create visualforce page similar to workflow page(See attached image). I have 3 columns 1st is Field Name 2nd operator 3rd Value I want value field as input type picklist if 1st column ...
0
votes
1answer
52 views

how can I hide a dynamic dropdown menu when its blank

I understand the class='hide' in css but im trying to check when a certain field of my sobject is 'undefined' to hide the div but I keep getting error cant read property 0 of null. Ive tried checking ...
2
votes
2answers
433 views

Dynamic method to take in a list of sObjects, cast and loop through them and perform field logic?

We currently have 2 different classes of code doing essentially the same thing on both the lead and account objects- grab the country and postal code and assign a territory. We are looking to combine ...
0
votes
0answers
1k views

Literal value is required for attribute id, need a work around

So, I have an apex:pageBlockTable generated off of an sObject. Take the following table for example: A1 | B1 | C1 A2 | B2 | C2 A3 | B3 | C3 Let us assume that I have an apex:outputPanel that ...
1
vote
1answer
478 views

Recurring Dynamic Content block in AMPScript

I want to create a dynamic content block using AMPScript as per below conditions I have a Created Date column in a DE I want to implement below condition 0-5 days from created date show image 1 ...