Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
New to visualforce, trying to get a picklist of object fields on a page and not sure how to do it.
Post Body

A picture explains what I'm trying to do more than trying to explain it in text would: http://i.imgur.com/m8OnQZ7.png

Basically, I'm trying to make a page where the user can select a field (going to be on the opportunity object), and say what it shouldn't be equal to. I built a batch earlier that takes opps of a certain type, and creates transactions (a custom object we've built) from them. However, I want the user to be able to go to this page and say "Okay, if an opp has insert field equal to insert value then I don't want it to be added on the next batch run."

The batch already does a lot of querying of different maps (I had to make it so that it would run dynamically on anyone's Salesforce that has our app installed). I'm hoping I can setup this page so that when they determine what should prevent an opp from going in, it can save those rules to either a custom setting or a field, and my batch can look those up along with everything else and take it from there.

I'm completely new to visualforce and javascript, though. I know APEX really well, but this part is new to me. I just can't figure out how to get a picklist of every field name in an object, like the picture above. Any ideas for me?

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,160
Link Karma
2,165
Comment Karma
2,995
Profile updated: 1 day ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
11 years ago