This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="ContactQueryController" showHeader="true"> | |
<apex:form > | |
<apex:pageBlock title="Query Objects"> | |
<apex:pageBlockSection columns="1"> | |
<apex:selectList title="" size="1" value="{!selectedObject}" > | |
<apex:selectOptions value="{!objectNames}"/> | |
<apex:actionSupport event="onchange" reRender="fieldSelection"/> | |
<apex:outputLabel >Select the object you would like to query</apex:outputLabel> | |
</apex:selectList> | |
</apex:pageBlockSection> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Merchandise__c[] ml = new List<Merchandise__c>(); | |
Merchandise__c m = new Merchandise__c( | |
Name='Pencils', | |
Description__c='Cool pencils', | |
Price__c=1.5, | |
Total_Inventory__c=1000); | |
ml.add(m); | |
Merchandise__c m2 = new Merchandise__c( | |
Name='Notebooks', | |
Description__c='Blue notebooks', |