Questions tagged [dynamic]

The tag has no usage guidance.

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

Dynamic Apex: find relations between sObjectTypes

I am trying to create a class that can dynamically execute its function independent of the sObjects and sObjectTypes provided. The class should check, wheter the sObjects provided do have existing ...
2
votes
1answer
453 views

How to use a Dynamic List Type of SObject getted by ID

I'm trying to do a Dynamic List of a SObject gutted from an ID. My goal is SEND a SObject info via mail. (Opportunity, Case...) From a list of selected records, I send by argument their IDs with ...
0
votes
2answers
249 views

Dynamic picklist values in standard relatedlist

The problem occurs in the opportunity related list of a custom object. I have create a custom picklist on the custom object with dynamic values. Eg. You select the product eg a pullover and you get ...
2
votes
1answer
676 views

Find AggregateResult Fields Dynamically

I ran across some code a while back to find fields within an AggregateResult dynamically to do some processing irregardless of what was in it. AggregateResult results = [SELECT COUNT_DISTINCT(...
-1
votes
2answers
536 views

Dynamic display the records with label

I have different fieldset for recordtype. On click of recordtype i am getting all the fields and doing soql and getting the result into a list and passing the list to a VF page. Now I need to display ...
0
votes
2answers
850 views

How to get parameters from a dynamic field in visualforce page

Image below is my visualforce page to select what are the fields I want to add to the Booker Information. This is my apex code for the form/fields: public PageReference BookerInformation(){ ...
0
votes
3answers
1k views

How can i resolve Unknown property 'accounts' referenced in error?

I have created controller and visual force pages. In my controller using field sets it's working fine. My VF pages having problem for unknown property. What should I need to change in my Visual force ...
0
votes
2answers
5k views

how to display a table with dynamic columns in vf page based on the selection of picklist? [closed]

My picklist values: model,version model,version,option model,version,option,discount If I choose "model,version" the table displayed with 2 columns like model,version. If I choose "model,version,...
0
votes
2answers
607 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/...
1
vote
1answer
552 views

Rendered Special characters romanian in PDF

I am creating a PDF using Visualforce Dynamic components where i show data from Map Object. This data contains text a Romanian Language with special characters such as ă,ș,ț... This data gets ...
2
votes
2answers
128 views

Load an Apex class structure dynamically

Looking for a way to dynamically set a class structures fields by list or map of the string version. I know we can do this with Objects. Here is kinda of what I am wanting to do. This is a simple ...
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 ...
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 ...
2
votes
2answers
715 views

Passing string of sobject name via trigger on …how to fetch the sobject name of type sobject in class

Passing string of sobject name via trigger on ...how to fetch the sobject name of type sobject in class.. class { method(String operationType,list <Sobject> ,list<sobject>,string ...
0
votes
1answer
335 views

Two Dynamic Headers for the email

We have a requirement where we need a different header for the same email based on the condition in the code which triggers that email. So in our ET account there are two headers set up HeaderOne ...
4
votes
3answers
897 views

Apex Describe Field pulling unavailable field for SOQL

My describe call is pulling some of these fields (accountname,islocked,middlenamelocal,personkeyid,mayedit) on Contact object. There are few more.And my Dynamic SOQL is complaining that those ...
1
vote
4answers
1k views

Using a string as an If statement expression

I am creating dynamic code so I am creating a string that I would like to use as the expression inside an if statement. if (string) { } The string that i have created will have to act as the "...
9
votes
3answers
3k views

Is it possible to Upsert a List<SObject> with external ID specified

I'm getting an error when attempting to compile my Apex: Upsert requires a concrete SObject type In my code, I'm unable to create a concrete declaration for the container which I want to upsert. ...
2
votes
1answer
300 views

Custom Create new view

i need to replicate the custom create new view functionality,after selecting the condition i have to store the data in to some object .is this possible to achieve the functionality??Could you please ...
1
vote
1answer
915 views

Subject line AMPscript issue

I am pulling in First Name from subscriber information but it has been encrypted before the data is pushed up to ExactTarget, I need to use AMPscript to decrypt and check the data to make sure it is ...
1
vote
2answers
2k views

Schedule Dashboard Refresh with a Dynamic Dashboard

How to schedule a dynamic dashboard refresh. Requirement: 1. While communities allow portal users to view Dashboards, Salesforce doesn’t allow community users to refresh/schedule dashboards. Our ...
0
votes
1answer
525 views

Dynamically get all properties of particular field

My requirement is : I have to dynamically get all properties of particular field e.g : Map <String, Schema.SObjectField> fieldMap = schemaMap.get('Account').getDescribe().fields.getMap(); ...
1
vote
1answer
420 views

Custom link uses hard-coded ids

I am working on a client org, and it uses hard-coded ids in a custom button/link which are pointing to Account (sobject) fields. This particular detail page button is going to create "New Contact" ...
6
votes
3answers
1k views

Dynamic components on a Visualforce page

I want to create a VF page inside which I will have component, where the user will have the flexibility to change the component without touching the code of the page. Dynamic, like this: <apex:...
1
vote
2answers
2k views

Populating lookup fields using an external ID with Object type as String

My question is pretty much the same as here. But the difference is I'll have to do it generically. As in the object type is sent as text and I'll have to typecast in the code. Eg., //create an in-...
1
vote
1answer
81 views

Resource for Learning Dynamic VF

I am looking for a good place to learn dynamic VF. I did google it but did not find anything great. Does anyone know of a good resource where i can learn? Thanks.
0
votes
1answer
3k views

Display list of list on visual force page. Search results of inputtext from all objects using sosl

I am trying to search for a text from all the objects. The method in the controller returns the results as List of List. I am trying to display the results in the visualforce page but no results get ...
8
votes
2answers
331 views

Is there an API method to execute or evaluate visualforce or workflow functions dynamically?

I want to store scripting in an SObject field so that I can evaluate it using apex code. Is there some API method that would allow me to evaluate a string in a manner similar to public class myclass{...
0
votes
1answer
2k views

how to retrieve data based on created date and group them

I need to query the child objects and group them based on contact and created date example. customobject records queried based on account - gets me 100 records unique contacts among 100 records - ...
0
votes
2answers
737 views

Updating data using dynamically generating rows and a static section

I have two section in which one is dynamically updated rows... I need top create cases using the first section and each row of the dynamic rows generated. I have used the following code but I am not ...
0
votes
0answers
370 views

One field set which contains every field from All objects

Question for you knowledgable salesforce people Aim- to create one field set , which holds all fields from every object, and dynamically populate the field sets when new fields add to the object I ...
3
votes
1answer
104 views

“MyClass object = (MyClass) t.newInstance()” considered harmful

I hope this turns out to be a still unknow security flaw that will be soon fixed by Salesforce.com. From code in my managed package I was able to call the constructor of a packaged class of another ...
5
votes
1answer
9k views

Is there a simple way to convert any value direct to String in production code?

When I do a System.debug(whatever), SFDC doesn't care whether whatever is a String, a Date, a Datetime, a Boolean, etc... it just makes a string of it and dumps it in the log. But in the following ...
4
votes
1answer
526 views

How can I dynamically transverse SObject fields in Apex?

I am trying to dynamically create a CSV file from Case records. The fields for the CSV file will be determined in custom settings (and therefore shouldn't be hardcoded). Moreover, the fields may ...
1
vote
2answers
136 views

AMPscript to Order Content based on Scores within the database

I'm trying to write AMPscript that will arrange content in an email based on a user's score across a number of variables. The higher the score, the higher the positioning within the email. For ...
5
votes
3answers
1k views

Dynamic Apex Question

I am trying to extend a apex metadata coding example for retrieving the record types for all objects in my org. I know this is basic but I am working my way through coding examples for my 501 ...
0
votes
2answers
1k views

AMPScript for Dynamic Content

I want to start out by saying I am new to AMPScript though I have a lot of programming/scripting experience. I am trying to figure out a way to do the following.I have a customer who has multiple (...
2
votes
2answers
3k views

A multiple lookup relationship - How to create a field with multiple associations, or dynamic fields

Our client has accounts, and there is a ‘category’ picklist that one of the entries in this picklist is ‘sightseeing/receptive’ (Receptive Operator). The idea of this entry is that a company can do ...
2
votes
3answers
2k views

Dynamic From Names Based On Email Content

What I have is multiple email templates that are associated with different organizations and artists in one ExactTarget account. I want to be able to set an AMPscript or SSJS variable that would be ...
1
vote
2answers
878 views

How to get the Label of a Formula field dynamically

I'm trying to use Salesforce describe methods to get an object dynamically, and they get all the labels to that object. I am trying to use the following code, but the map being returned doesn't ...
1
vote
1answer
624 views

How can I copy the rule for a Dynamic Content box (created in ET content templates) into my HTML for an HTML paste email?

Should be pretty simple. I set up two different content boxes in ET with 2 different versions of a section of my email. I then created a Dynamic Content rule on when to use either one, using ET's ...
2
votes
1answer
479 views

Dynamic content adding extra code to my email

I'm trying to create an email using Templates with Dynamic content but have issues in Hotmail. Exact Target is adding ALL this extra code (I found this viewing source from Hotmail): <table ...
2
votes
1answer
915 views

How can i create dynamic filtering report with the user input?

I need to get the pc0 and pn0 and pv0 from the user input fields <apex:page> <html> <script type="text/javascript"> function changeText2(){ var userInput0 = ...
1
vote
2answers
14k views

Dynamically display fields based on Picklist for create page

I have a requirement to build a page that displays a different set of fields based on the value in picklist that I have on the page as an inputfield. I have this working for both the detail page, and ...
11
votes
4answers
12k views

How can I dynamically render required fields using a Dynamic Component

Background I have a Visualforce page on which I am rendering a lot of fields using a Dynamic Component (which is an Output Panel that contains all of the fields). The fields are added based on a ...
2
votes
1answer
4k views

Dynamic picklist values in visualforce based on users profile

I have status field with picklist values draft,send to Rep,Return to Manager,Complete.I want to show only one picklist value (Return To Manager)for one profile (Rep profile) when user is on Send To ...
3
votes
1answer
3k views

How can I build a complex Visualforce Dynamic Binding dynamically?

How can I build a complex Visualforce Dynamic Binding dynamically? Yeah, I realize the question seems a bit redundant, but I couldn't think of a better way to describe what I'm trying to do. The short ...
2
votes
1answer
338 views

Show Formula Field Changes in Edit Form

My system setup involves Opportunities having an extra "Billing Contact" field, and when Sales Reps change this field, I want to be able for them to see, on the Opportunity Edit form/page, a property ...
2
votes
3answers
1k views

How to use Dynamic DML operation?

I’m having a requirement, where I guess I’ve to use Dynamic DML.But I’m new to Dynamic Apex as well as Dynamic DML. When I will create a Folder in Box.com server by using API call, I will get a ...
4
votes
1answer
4k views

Using 'rendered' with Dynamic Visualforce Component

I am considering using Dynamic Visualforce components for a project, however I have hit a potential showstopper with my approach. If you consider the following (valid) Visualforce: <apex:...