• Anil Giri
  • NEWBIE
  • 35 Points
  • Member since 2017

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 7
    Replies
We have a Win Confidence field and we use 1, 2, 3, 4 as picklist options (1 is lowest confidence, 4 is highest). I want to create a formula that will send me an email anytime the Win Confidence moves from 4 to 3, 4 to 2, or 4 to 1.
Below is my simple VF page and I have used tablesorter plug in, (http://tablesorter.com/docs/)
It's working fine but I am not able to get/see Sorting arrows.
<apex:page standardController="Property__c" showHeader="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0" lightningStylesheets="true">
    <apex:includeScript value="{!$Resource.latest}"/>
    <apex:includeScript value="{!$Resource.tablesorter}"/>
    <apex:includeScript value="{!$Resource.metadata}"/>
    <apex:includeScript value="{!$Resource.tablesortermin}"/>
    <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/ui-lightness/jquery-ui.css" type="text/css" media="all" />
    <script type="text/javascript">
    $j = jQuery.noConflict();    
    $j(document).ready(function () {
    $j("[id$=theaddrs]").tablesorter();
    });    
    </script>
    <script>
    $j(document).ready(function() 
                      { 
                          $("#myTable").tablesorter( {sortList: [[0,0], [1,0]]} ); 
                      } 
                     ); 
    </script>
    <script type="text/javascript" src="/path/to/jquery-latest.js"></script> 
    <script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script> 
    <apex:form >
    <apex:includeScript value="{!$Resource.svg4everybody}"/>
    <html xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" lang="en">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
        <head>
            <meta charset="utf-8" />
            <meta http-equiv="x-ua-compatible" content="ie=edge" />
            <meta name="viewport" content="width=device-width, initial-scale=1" />
            <apex:slds />
        </head>
        <body>
            <div class="slds-scope">
                <div class="myapp">
                    <div class="slds-grid slds-m-top_large">
                        <div class="slds-col slds-col_rule-right slds-p-right_large slds-size_12-of-12">
                            <apex:pageblock mode="details" id="theaddrsblock" >
                                    <apex:pageBlockTable value="{!Property__c}" var="index" styleclass="fixme" id="theaddrs" styleClass="tablesorter" headerClass="header">
                                        <apex:column value="{!index.Name}" >
                                        </apex:column>          
                                        <apex:column value="{!index.Phone__c}">
                                        </apex:column>
                                        <apex:column value="{!index.LandMark__c}">
                                        </apex:column> 
                                        <apex:column value="{!index.Block__c}">
                                        </apex:column> 
                                        <apex:column value="{!index.Rent__c}">
                                        </apex:column>
                                    </apex:pageBlockTable>
                                </apex:pageblock>                                  
                        </div>
                    </div>
                </div>
            </div> 
        </body>
    </html>
        </apex:form> 
</apex:page>

 
  • August 28, 2018
  • Like
  • 0
Hi,


I need to upload Japanese into workbench , which takes the value as ''????" instead of the Japanese characters.


I have tried encoding to UTF-8 as .txt/.csv.  I cannot manually put an comma after conversion , because:


1) N number of data

2) Columns with Japanese characters looks merged .



Anyone worked on it or have an idea please let me know the solution for inserting the Japanese characters into sandbox. Thanks in advance. 

We have a Win Confidence field and we use 1, 2, 3, 4 as picklist options (1 is lowest confidence, 4 is highest). I want to create a formula that will send me an email anytime the Win Confidence moves from 4 to 3, 4 to 2, or 4 to 1.
VisualForcePage 
<apex:page controller="ActionController" >
   <script type="text/javascript">
    function validate()
    {
        ClickMe();
        }
    </script>
    <apex:form id="f1">
    <apex:actionFunction action="{!Click}" name="ClickMe" rerender="pg"/>
    <apex:pageBlock id="pg">
        <apex:outputLabel value="Enter Name">
        <apex:inputText value="{!Name}" id="n1"/>
        </apex:outputLabel>
        
         <apex:commandButton value="Refresh" onclick="validate();" />
        </apex:pageBlock>
    </apex:form>
    <apex:pageBlock>
    <apex:outputText value="{!Name1}"></apex:outputText>
    </apex:pageBlock>
</apex:page>
Controller
public class ActionController {
    public String Name{Get;Set;}
    public String Name1{Get;Set;}
public PageReference Click()
{

    Name1=Name; 
    system.debug(Name1);
    return null;
}
}

The function is like, it takes input from the page and displays the same value in the output text in a pageblock,but my action function is not working
is der any fault in my code??
 
I was solving this challenge and my VF code is:

<apex:page standardController="Account" recordSetVar="Accounts" >
    <apex:pageblock>
        <apex:repeat var="a" value="{!Accounts}" rendered="true"  id="account_list">
            <li>
                <apex:outputLink value="https://ap1.salesforce.com/{!a.ID}" >
                    <apex:outputText value="{!a.Name}"/>
                </apex:outputLink>
            </li>
        </apex:repeat>
    </apex:pageblock>
</apex:page>

I am getting the list of accounts as required and on clicking on any of the accouts, it redirects to that accounts detail page.
Still I am getting following error from trailhead:

"The page does not bind to the record ID value (in order to link to the record detail page)"