Questions tagged [dynamic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
2k 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....
0
votes
0answers
32 views

insert attachment getcontentaspdf not loading data dynamically

I have a method that call a vf page and render as pdf the following Pagereference test = new Pagereference ('/apex/claire'); return test; that gives me the page I am expecting after that the ...
0
votes
0answers
12 views

Using and tracking the same dynamic bloc used in 2 different emails

I have two Journeys with one email each and I want to use the same dynamic content block in each of the 2 emails. Is it possible to track the Clicks and the Opens for the block used in 2 different ...
0
votes
0answers
19 views

Tracking same dynamic module performance in 2 different emails

Could you please tell me if you know how the following can be done: track the same Dynamic module performance (Clicks, views) used in two different emails within two different Journeys? For example: ...
0
votes
1answer
30 views

How to track Dynamic Content Block?

Is there a new way (or better way) to retrieve the tracking of the Dynamic Content blocks from an Email without using impression tracking? I saw there are few posts about this topic but from many ...
2
votes
1answer
83 views

New Picklist Values added via Metadata API stay inactive

I am using the Metadata API wrapper from https://github.com/financialforcedev/apex-mdapi to dynamically add picklist values to an existing field. @Future(Callout=true) private static void ...
0
votes
0answers
26 views

Add Salesforce Compact Layouts to Custom Dynamic Lightning Component

We are trying to use some of the standard LEX functionality for a Custom Dynamic Lightning Component. We have a custom lightning component where a user would choose one of 5 objects (but could end ...
0
votes
1answer
65 views

Syntax error in visualforce page

listAccount=database.query('select id,name,BillingState,Phone,Website from Account where name Like '+searchString); getting searchString value from vf page Having Following error: expecting a ...
6
votes
2answers
882 views

Dynamically calling methods in Apex

Assume this simple class in a managed package namespaced PKG: global class Semaphore { private static Boolean m_isLocked = false; global static Boolean lock() { m_isLocked = true; } ...
0
votes
0answers
19 views

Dynamic component creation issue in lightning

I am trying to create a component dynamically in lightning. In the following code, I get an error saying, "Error: TypeError: Cannot read property 'getDescriptor' of undefined" The first argument in $...
0
votes
1answer
46 views

AMPScript For Loop Dynamic Variable

I am trying to get a dynamic variable set inside a script block with AMPScript. Here is what I got: FOR @i = 1 to 5 DO TreatAsContent( Concat( "SET @Test", @i, " = ", 'some value' ) ) NEXT @id ...
1
vote
1answer
50 views

Add one item per line using aura: iteration and lightning button

Clicking an "add" button would like the lines below to be always added one below the other. Today I have a problem in which two items are added per line. Right way: Como está hoje (errado): My ...
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 ...
1
vote
0answers
39 views

Populate Contact Information using Selenium

I am very new to Selenium. Basically i need to populate the fields below using selenium web-driver in Visual Studio. Because of the lightning components i am having trouble using XPath. Need help ...
0
votes
1answer
640 views

Cannot read property 'set' of undefined when List<String> return in ui:inputSelect

All I want to do is retrieve picklist options from a custom object and fetch the inputSelect element in a lighning controller. I am trying this way.. but I am getting an error.. If someone knows any ...
0
votes
1answer
35 views

How to make dynamic picklist?

I have one custom object Backlog and I have one picklist field Full_Name_of_the_Specialist__c which is having manually inserted all the Names of the Specialist profile. Now when new employee come, I ...
2
votes
1answer
52 views

Refer to a dynamic variable on a link

I'm facing an issue since yesterday. I wanted to test the fact that, within a FOR loop, i'm able to dynamically create variables for each link. A quick example: %%[ For @u = 1 to 10 do Set @row = ...
1
vote
2answers
144 views

Dynamic Sender Profile not working - Marketing Cloud

I am trying to implement a dynamic sender profile. I have followed instructions from answers on similar questions on stack exchange. From what I understood this should work. However, every time I do a ...
0
votes
1answer
1k views

in lightning component of aura iteration I want to limit of records to be displayed at 5 items per column

Please help me on how to display 5 records per column on aura iteration in lightning component. Let's say I have 10 records from Account object I want to display 5 records per column dynamically so ...
5
votes
3answers
7k views

Dynamic casting of SObject objects?

I have a simple method that I've created as part of an SObjectFactory class. The makeLead() method shown below simply returns a new Lead object. /** * @param valuesByField * Map of ...
0
votes
0answers
21 views

Dynamically created Picklist setting of options [duplicate]

I am trying to manually assign picklist values to a dynamically created component. I can't seem to get the correct syntax for options. I don't know if I can use option when dynamically creating the ...
0
votes
0answers
98 views

Create dynamic rest api url in apex

I have a requirement where I have 4 fields in which a user will fill phone numbers. On clicking save it will make a Rest API call. The 4 phone numbers have to go in an array in the URL as shown below. ...
0
votes
2answers
36 views

Passing argument to onclick event

I am dynamically creating HTML <div> and I need to handle the onclick event : when the user clicks on it, I want to call a controller function and this function requires an argument. How do I ...
0
votes
1answer
66 views

Dynamic DOM : firing event on click

I am dynamically creating some DOM elements inside my component's controller and adding them to the page. I need to set the onclick event on these elements to call another controller function that ...
0
votes
1answer
16 views

Make field names dynamic

I have two fields on Opportunity called FY1 and FY2. Now, my requirement is that the name of the fields need to be dynamic and change every Financial Year e.g first it would be FY18 and FY19, then ...
0
votes
2answers
69 views

Reply Mail Management - Custom Email Body

I am trying to insert the code %%=ContentBlockbyId("370")=%% on my RMM body, but when I got the RMM message SFMC it isn't translated the AMPScript and I am receiving an email with the message %%=...
0
votes
1answer
41 views

Identify users device

Is it possible to identify the device which is using each subscriber and store that info as a variable with a value, and after use that value to do something like the example below? %%[set @...
0
votes
1answer
79 views

How to access a dynamically generated html class name from a JS controller?

I was trying to concat a class name with index from the iteration component. If it's correct, how can I access this value from the JS controller? Component: <lightning:overlayLibrary aura:id="...
2
votes
1answer
143 views

Dynamic lookup? What is the best practices?

I know that lookup is 1-M relationship between just two objects. Tried to find but so far wasn't able a proper way. Maybe someone faced the same case and can share or give an advice? Use case: I want ...
0
votes
0answers
354 views

Dynamically created HTML : link onclick to Controller function

I'm creating some HTML elements in a helper function, and dynamically appending them to the DOM. There is no problem in this step. The only problem I can't solve is the creation of the onlick ...
0
votes
0answers
45 views

Submit record for Approval By Using Apex for Multistep Approval Process

It is possible to set dynamic appover to approval process invoke by apex // Create an approval request for the Opportunity Approval.ProcessSubmitRequest req1 = new Approval....
0
votes
1answer
32 views

Adding new Fields to Sobject or changing field values dynamically

I have a Sobject Record which is already instantiated and fields are added along with values. sObject sObj = Schema.getGlobalDescribe().get(Name of Object).newSObject() ; sobj.put(...
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
1answer
52 views

Give customer keys with batch processing

I need to build a dynamic content with dynamic images with AMPScript. If I use ContentImageByKey(), I need to change the customer key of every picture individually and logically(for example, use the ...
0
votes
1answer
14 views

Folder accessible to non admin but not dynamic report

I created dynamic report in an folder and linked in custom button. Non admins were given viewer permission for the folder. However, it is not accessible via custom button. Am I missing something here? ...
0
votes
1answer
198 views

Lighting:tabset rendering tabs in “more” drop down when tabs are populated dynamically even though it has enough space to display all tabs

My expected result should be, all tabs display in one line with out "more" option by using dynamic code. When i tried dynamic code, Tabset displays only 3 names and rest of them in more option as ...
1
vote
1answer
111 views

Dynamic report through custom link- formatting

I am using Dynamic reports through custom link URL https://xxx.my.salesforce.com/00Om0000000dka3?pv0={!Contact.Contact_Playhouse__c}&pv1={!Contact.Id} The report appears as below onclick of ...
1
vote
1answer
66 views

Can <lightning:flow> be nested inside of </aura:iteration>, getting Uncaught Error in $A.getCallback() [Cannot read property 'startFlow' of undefined]

Trying to display more than one flow in the lighting component. Name of the flow will be passed by apex class <lightning:tabset> <aura:iteration items="{!v.lsCustomTabs}" ...
0
votes
2answers
424 views

Dynamically creating lightning:inputField with a div

Currently I have this loop which can dynamically create a lightning:inputField: for(var i = 0; i < editFieldsToRender.length; i++) { $A.createComponent ( "...
0
votes
1answer
582 views

Lightning Component : ui:inputSelectOption : When Default value is set dynamically, user can't change Picklist value

I am working on a Multi-Location Case creation component for our community site. The basic premise is that we use Account Contact Relationships to relate a single User/Contact to multiple accounts. ...
1
vote
3answers
3k views

Add multiple rows in Lightning component

I am new to lightning. I have one requirement and I am not sure how to achieve it. any help is appreciated. Requirement is : we have to build custom lightning component, where in user will key in few ...
8
votes
1answer
4k views

Dynamically create a lightning component and put it into a custom lightning component

Is it possible to dynamically create a lightning component and put it into a custom lightning component? For example, I have the following custom lightning component: <aura:component> <...
3
votes
1answer
779 views

How can I create dynamic CSS in ExactTarget content blocks?

I've attempted to create dynamic content blocks in ExactTarget so that CTA button colors (background color within anchor tag) will match the specific colors for different locations. Each location ...
0
votes
2answers
593 views

Can't access child Data Categories

I'm trying to get all Data Categories from an Article Type through the varius describe calls I've found in the documentation such as https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/...
0
votes
1answer
225 views

ONSUCCESS event doesn't fire on dynamically created recordForm component

I'm trying to get the saved data from my recordForm component handling the onsuccess event but the controller's function handling the event is not triggered. I think this happens because my component ...
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 ...
1
vote
1answer
59 views

Dynamic Button functionality Error as HTML Getting away

I am having a dynamic button on home page side bar problem. I am not much into Jscript and Jquery so any help would be appreciated. I have a button which needs to be displayed only to few users based ...
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 ...
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
2answers
25 views

To add a picture that changes according to the page!

How to Add the picture to the VF page that change its size dynamically according to the page size? If zoom in/out is done it should change itself?