Forum Replies Created

Page 2 of 2
  • Prafull

    Member
    April 28, 2016 at 6:11 am in reply to: How to hide a div when click outside of the div?

    You can use this :-

    $( “body”).not(“#toHide”).not(“#YourButtonId”).click(function(){
    $(“#toHide”).hide();
    });

  • Prafull

    Member
    April 28, 2016 at 6:06 am in reply to: What are the tools to help import my data into Salesforce?

    You can use Data Import Wizard and Data Loader tools for importing date. You can use Data Loader io also this will give you more functionality to import data.

  • Prafull

    Member
    April 26, 2016 at 8:07 am in reply to: Replacing Standard Salesforce logo with Custom Logo

    We cannot replace salesforce standard logo with custom company logo. But this is possible by creating custom app. First you have to upload your logo to SF. You have to choose a custom app logo from the document library :-
    * If image size exceeds 300 pixels wide by 55 pixels high, then it will be scaled to fit.
    * You can choose GIF or JPEG format image and less than 20 KB in size.
    * Image should be transparent background image.
    * The Externally checkbox must be selected on the document's properties so that users can view the image.

    Now you have to go to Setup -> Create -> Apps -> click on the app name -> click Edit -> Choose the Image Source for the Custom App Logo

  • Prafull

    Member
    April 16, 2016 at 11:16 am in reply to: Loop Syntax in jQuery

    You can also do the same as below :-

    $("div").each(function(index) {
    $(this).addClass("dummy");
    });

  • Prafull

    Member
    April 16, 2016 at 11:06 am in reply to: How can I get the developer trial version of wave analytics?

    Step 1: You will have to register in WAVE developer Org here – https://developer.salesforce.com/promotions/orgs/Wave-DF15-DE
    Note :- If your existing developer org has Analytics license you can go direct to Step 2.

    Step 2: Now go to link – https://startsurfingthewave.herokuapp.com/actions/enablement

    Step 3: You have to log in into the developer org created in Step 1 and click Allow.

    Step 4: Click on Go to My Org

    Step 5: Click on Enable Analytics

    Step 6: You will have to Verify Setup and Assign Permissions on the Previous Page.

    Step 7: Once the setup is complete, you have to see Analytics in the App picker.

    Step 8: Select Analytics.

  • Prafull

    Member
    April 14, 2016 at 8:55 am in reply to: Is it possible to query to a MySQL database from apex code?

    This is not possible directly. You will have to create a Webservice to proxy the HTTP(s) traffic to mysql protocol.

  • Prafull

    Member
    April 14, 2016 at 8:45 am in reply to: How to hide a div when click outside of the div?

    You can achieve this by below code :-

    $( "body").not("#toHide").click(function(){
    $("#toHide").hide();
    });

  • Prafull

    Member
    April 14, 2016 at 8:33 am in reply to: How to use Switch Clause in Apex as it is used in Java or C?

    Hi Ajit,

    Apex doesn't support switch clause as of now.. Salesforce will release it next year... So instead of switch case you have to use else if condition..

    Thanks

  • Prafull

    Member
    April 14, 2016 at 6:19 am in reply to: Calculation on Visualforce Page without using Controller

    $(document).ready(function(){
    var count = 0;
    count+=$(':input').length;
    count+=$("select").length;
    var datalistCount =$("datalist").length;
    count+= datalistCount;
    count+=$("textarea").length;
    $(".TotalCountOfField").val(count - 1 - datalistCount);
    });

  • Prafull

    Member
    April 6, 2016 at 9:33 am in reply to: How to append a value in html datalist?

    Hi Jitesh,

    This is the solution of your problem. You have to call below function on change of Datalist. This function will remove selected value from datalist and append selected value with checkbox below the datalist.

    //function to remove from datalist
    function CallFunctionToPopulateSectors(selectedSector,idOfSectorDatalist){ 
       var html = '<span id='+selectedSector+'><input type=\"checkbox\" id='+selectedSector+' name="'+idOfSectorDatalist.id+'" value=\"'+selectedSector+'\" onchange=\"callFunctionToRemoveFromPortFolio(this.id,this.checked,this.value,this.name)\">'+selectedSector+'</span>';
       j$("#divForRightSideSelectedSector").append(html) ;
       var optionArr = j$(j$(j$("#divToUpdatePortFolio datalist"))[1]).find("option"); 
       for(var i=0;i<optionArr.length;i++){
           if(j$(j$(optionArr)[i]).text() == selectedSector){
               console.log('j$(j$(optionArr)[i])'+j$(j$(optionArr)[i]));
               j$(j$(optionArr)[i]).remove();
           }
       }
     }
    

    This function will append selected checkbox value with the datalist.

    //funciton to add in the datalist
    function callFunctionToRemoveFromPortFolio(idToRemove, checkBoxChecked, 
            valueToAdd, idOfSectorDatalist){
        j$(j$(j$("#divToUpdatePortFolio datalist"))[1])
        .append('<option value="'+valueToAdd+'">'+valueToAdd+'</option>');
    }

    ID Description :-
    divForRightSideSelectedSector :- div where the selected value from datalist is shown

    divToUpdatePortFolio :- div where the datalist is present

  • Containing link in the mail is with the .html extension? or its just a normal link for download?

  • Prafull

    Member
    March 29, 2016 at 10:25 am in reply to: Data Export Standard Feature

    Formula field is used for display only according to the specified formula. This field is not saved in the Salesforce database. So normally when we export data, this will not be fetched from database.

    If we use Data Loader or Data Loader IO then we can fetch formula field value also.

  • Company can create and use Lightning Component but that component will be static. You can not get dynamic data without using Apex code.

    Lightning and Visualforce Components are just a component which is used for code re-usability in VF page or in application. Lightning Components are only used in Salesforce1 but VF components can be used and viewed in Classic and Salesforce1 also.

    Lightning has been released but still it has some bugs now. Hopefully many bugs will be resolved in upcoming release.

  • Prafull

    Member
    March 22, 2016 at 1:10 pm in reply to: How to include stylesheet in visualforce page rendered as pdf ?

    We can't use external/internal CSS in PDF. We can use inline CSS for best result. PDF will open with no bug in different browser when you use inline CSS.

  • Hi Karen,

    Your ")" is not in correct place in your first line of code. This should be as below:-

    IF(‘{!Account.Type}’ == “New” && ‘{!Opportunity.Ad__c}’ == null){

Page 2 of 2