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
db.matrix_parameter_row__c.find({ | |
"$or": [ | |
{ | |
"NE__Active__c": true, | |
"Row_Type__c": { | |
"$in": [ | |
"Tariff", | |
"Metering", | |
"Discount" | |
] |
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
public class testclass1_23022017 { | |
/* VF Bindings */ | |
Public String searchStr{get;set;} | |
Public Map<String, List<Map<String, String>>> results {get;set;} | |
/* Action Function */ | |
public void startSearch() { | |
List<List<sObject>> lsResults = [ |
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="testclass1_23022017"> | |
<apex:sectionHeader title="Global Search Box"/> | |
<apex:form > | |
<apex:outputLabel value="Enter you search text here "/> | |
<apex:inputText value="{!searchStr}"/> | |
<apex:commandButton value="Go" action="{!startSearch}" rerender="DisplayArea"/> | |
</apex:form> | |
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 standardController="Opportunity" recordSetVar="Opps"> | |
<style> | |
.ReqHelpText { | |
display : inline-block; | |
width : 3px; | |
background-color : #c00; | |
} | |
</style> | |
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 standardController="Opportunity"> | |
<style> | |
.ReqHelpText { | |
display : inline-block; | |
width : 3px; | |
background-color : #c00; | |
} | |
</style> | |
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
public class testclass6_22022017 { | |
public OpportunityWrapper oppWrapObj {get;set;} | |
public testclass6_22022017() { | |
oppWrapObj = new OpportunityWrapper(ApexPages.currentPage().getParameters().get('Id')); | |
} | |
class OpportunityWrapper { | |
Public String genericName{get;set;} |
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="testclass6_22022017"> | |
<apex:sectionHeader title="Extend the Standard Opportunity Object"/> | |
<!-- Show Opportunty Standard Fields --> | |
<apex:sectionHeader subtitle="Standard Fields"/> | |
<apex:outputPanel layout="block"> | |
<apex:outputLabel value="Name - "/> | |
<apex:outputText value="{!oppWrapObj.opp.Name}"/> | |
</apex:outputPanel> |
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 > | |
<apex:sectionHeader title="Styling based on User Configuration"/> | |
<!-- Show a text with Color, Configured for ORG --> | |
<apex:outputText value="My Sample Text" | |
style="color:{!$Setup.TestSettings__c.Color__c};font-size:{!$Setup.TestSettings__c.Size__c}px;"/> | |
</apex:page> |
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 > | |
<apex:sectionHeader title="This page never expires in session"/> | |
<apex:form> | |
<apex:outputText value="A timer running to send request to server every 5sec"/> | |
<apex:actionPoller interval="5"/> | |
</apex:form> |
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 standardController="Opportunity"> | |
<button onclick="top.location.href = '/{!Opportunity.Id}'"> | |
Click here to refresh | |
</button> | |
</apex:page> |
NewerOlder