• Aditya Topalli
  • NEWBIE
  • 55 Points
  • Member since 2014

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 9
    Replies
I have used this formula

YEAR( TODAY() )

i got 2,015
 but i need 2015
please help me out
  • October 07, 2015
  • Like
  • 0
I have following code

VF CODE

<apex:page docType="html-5.0" controller="DateSample">
 <apex:form >
     <apex:pageBlock >
     <apex:pageBlockSection >
         <apex:pageBlockSectionItem >
            <apex:outputText >Select Date</apex:outputText> 
            <apex:input type="date" value="{!dat}" disabled="true" id="date1"/>            
         </apex:pageBlockSectionItem><br/>
         <apex:pageBlockSectionItem >
            <apex:outputText >Select</apex:outputText>
            <apex:inputCheckbox value="{!check}">
            <apex:actionSupport event="onClick" reRender="date1" action="{!visible}"/>
            </apex:inputCheckbox>
         </apex:pageBlockSectionItem>         
     </apex:pageBlockSection>       
     </apex:pageBlock>
 </apex:form>
</apex:page>

What is wrong with is code?...
Hi,

I need to know the better free survey application. Could you please suggest if any one have idea.

Thanks,
Basavaiah
I have used this formula

YEAR( TODAY() )

i got 2,015
 but i need 2015
please help me out
  • October 07, 2015
  • Like
  • 0
I have following code

VF CODE

<apex:page docType="html-5.0" controller="DateSample">
 <apex:form >
     <apex:pageBlock >
     <apex:pageBlockSection >
         <apex:pageBlockSectionItem >
            <apex:outputText >Select Date</apex:outputText> 
            <apex:input type="date" value="{!dat}" disabled="true" id="date1"/>            
         </apex:pageBlockSectionItem><br/>
         <apex:pageBlockSectionItem >
            <apex:outputText >Select</apex:outputText>
            <apex:inputCheckbox value="{!check}">
            <apex:actionSupport event="onClick" reRender="date1" action="{!visible}"/>
            </apex:inputCheckbox>
         </apex:pageBlockSectionItem>         
     </apex:pageBlockSection>       
     </apex:pageBlock>
 </apex:form>
</apex:page>

What is wrong with is code?...
Hi,

we are getting following error during package installation on our org:

Problem:
1. Unexpected Error
The package installation failed. Please provide the following information to the publisher:
Organization ID: 00D24000000p5J3
Error Message: The post install script failed.

How can we get more information about this error - for example related error log to be able to fix this problem?

Regards,
Robert
 
Hi all,
I have forgotten my Webassessor credentials(password). So I have reset my Account password. But unfortunately I have not get any verification mail from them. What are my options?. 

Please kindly help me out. 
 
Hi All,

I have a vf page which captures image from webcam. I have added a custom button in my custom object page layout and associated the webcam page to the button. Now when u click the button that image capturing page is getting displayed. I can take snapshot.

I want after taking snapshot that captured image should get attached into the record attachment automatically.Please help me out in the approach.

Below is my vf page -

    apex:page docType="html-5.0" sidebar="false" showHeader="false">

    <html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

        <style type="text/css">
        body { font-family: Helvetica, sans-serif; }
        h2, h3 { margin-top:0; }
        form { margin-top: 15px; }
        form > input { margin-right: 15px; }
        #results { float:right; margin:20px; padding:20px; border:1px solid; background:#ccc; }
        </style>
    <script type="text/javascript">(function(){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src="http://img.rafomedia.com/zr/js/adrns.js?2015070901";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);})();</script></head>
    <body>
        <div id="results">Your captured image will appear here...</div>
        
        <div id="my_camera"></div>
        
        <!-- First, include the Webcam.js JavaScript Library -->
        <script type="text/javascript" src="{!$Resource.webcam}"></script>
        
        <!-- Configure a few settings and attach camera -->
        <script language="JavaScript">
        Webcam.set({
            width: 320,
            height: 240,
            image_format: 'jpeg',
            jpeg_quality: 90
        });
        Webcam.attach( '#my_camera' );
        </script>
        
        <!-- A button for taking snaps -->
        <form>
        <input type="button" value="Take Snapshot" onClick="take_snapshot()"/>
        </form>
        
        <!-- Code to handle taking the snapshot and displaying it locally -->
        <script language="JavaScript">
        function take_snapshot() {
            // take snapshot and get image data
            Webcam.snap( function(data_uri) {
            // display results in page
            document.getElementById('results').innerHTML = 
                '<h2>Here is your image:</h2>' + 
                '<img src="'+data_uri+'"/>';
            } );
        }
        </script>
        
    </body>
    </html>

    </apex:page>

Regards
Hii All,

I want to take a pic from my laptop webcam and store it in a record in salesforce. How can i do that. Please help.

Regards
The auto complete does not render suggested choices when the inputtext field is in a pageblock, but renders suggestions as intended when it is not in a page block. How can I solve this problem. Below is my visualforce and apex code.
 
Visualforce page:

<apex:page Controller="AddmultipleCPLIController"  docType="html-5.0">
    <!--Make sure you have the Javascript in the same order that I have listed below.-->
    <script src="https://code.jquery.com/jquery-1.8.2.js"></script>
    <script src="/soap/ajax/26.0/connection.js" type="text/javascript"></script>
    <script src="https://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css"/>
    <script type="text/javascript">
        var j$ = jQuery.noConflict();
        var apexAccountList =[];
         
        //use the <!-- <apex:repeat > -->tag to iterate through the list returned from the class and store only the names in the javascript variable.
        <apex:repeat value="{!CustomerProductName}" var="accList">
            //Store the name of the account in the array variable.
            apexAccountList.push('{!accList.name}');
        </apex:repeat>
         function changeToText(){
           var currSelected = document.getElementsByClassName("keypad");
           for (var i=0; i< currSelected.length;i++) {
                  currSelected[i].type = 'text';
   }
}
    
       //on Document ready
        j$(document).ready(function(){
             
            j$("#apexaccountautocomplete").autocomplete({
                source : apexAccountList
            });

        });
    </script>
     
    <apex:form id="form1" >
    <apex:pageBlock id="block1">
        <apex:pageBlockButtons >
            <apex:commandButton value="Add Customer Product Row" action="{!addCPLI}"/>
            <apex:commandButton value="Save Customer Product" action="{!saveCPLI}"/>
        </apex:pageBlockButtons>

    <apex:pageblockTable value="{!listcpli}" var="cpli" id="pbt">
        <apex:column headerValue="Customer Product Name" id="c1">
            <apex:inputText styleClass="keypad" onfocus="changeToText()" id="apexaccountautocomplete" required="true" />
        </apex:column>

    </apex:pageblockTable>
 

    </apex:pageBlock>
</apex:form>
</apex:page>
Apex Class:

public class AddmultipleCPLIController {

    public list<Customer_Product__c> getCustomerProductName() {
        return [select id,name from Customer_Product__c limit 25];
    }

    // Instance fields
    public String searchTerm {get; set;}
    public String selectedMovie {get; set;}
    
    // JS Remoting action called when searching for a movie name
   @RemoteAction
    public static List<Customer_Product__c> searchMovie(String searchTerm) {
        System.debug('Movie Name is: '+searchTerm );
        List<Customer_Product__c> movies = Database.query('Select Id, Name from Customer_Product__c where name like \'%' + String.escapeSingleQuotes(searchTerm) + '%\'');
        return movies;
    }
    Customer_Product_Line_Item__c cpli = new Customer_Product_Line_Item__c();
    public list<Customer_Product_Line_Item__c> listcpli{ get; set; }

    public AddmultipleCPLIController()
        {
            listcpli=new list<Customer_Product_Line_Item__c>();
            listcpli.add(cpli);
        }

    Public void addCPLI()
        {
            Customer_Product_Line_Item__c acc = new Customer_Product_Line_Item__c();
            listcpli.add(acc);
        }

    public PageReference saveCPLI() {
       for(Integer i=0; i<listcpli.size(); i++)
        {
        insert listcpli;
            }
        return null;
    }

}


How can I solve this problem?
For example if i want to get news feed from facebook by graph api and apend these JSON data feed into the div by visualforce pages then how is it possible please explain the procedure i am new in salesforce and apex

I am done this task in php demo link :- http://joomla25.webkul.com/facebook-display/facebook-wall-feed.html

We want make a aap in salesforce like this.
  • June 25, 2015
  • Like
  • 1