• viv1
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 26
    Questions
  • 15
    Replies
I have a requirement to calculate time needed to load vf page or components of vf pages in controller or through code ??

Is there any way in salesforce to calculate this time ??
  • September 08, 2014
  • Like
  • 0
I have a requirement to calculate time needed to load vf page or components of vf pages in controller or through code ??

Is there any way in salesforce to calculate this time ??
  • September 08, 2014
  • Like
  • 0
I have a requirement to calculate time needed to load vf page or components of vf pages in controller or through code ??

Is there any way in salesforce to calculate this time ??
  • September 08, 2014
  • Like
  • 0

I have a requirement to calculate time needed to load vf page or components of vf pages in controller or through code ??

Is there any way in salesforce to calculate this time ??

  • September 08, 2014
  • Like
  • 0
I have a doc in static resource. i am sending a mail in postinstall script ??
which is post install doc..
but we cant access data in post instal script ..
Is there any way to add atachment from static resorce ??
  • May 14, 2014
  • Like
  • 0

I have written a rest get service..
I have to pass parameter ..
can i pass multiple parameters with same name ??i dont want to sent it comma seperated...

test.com?test=abcsd&test=abcdef

?? can i send like this ??

  • May 09, 2014
  • Like
  • 0

I have to write a Rest service for retreiving data from salesforce object ??

i have 6-7 filters for that..
which i have to send as parameter ..
Data will be ... name of users... 10-15..
other records details..
what should i use for this Get ot Post ????
please suggest... with advantages of using the one..

  • May 08, 2014
  • Like
  • 1

i have custom button on standard opportunity layout..
i have created unmanaged package...

but its not automatically availble on page..

what should i do ?? so that custom button automatically visible after installing unmanaged package ??

  • April 11, 2014
  • Like
  • 0

i want to exexute merge method on contact ...
which is created by other customer portal use..
and my profile do not have delele permission...
ho can i execute this merge method 

can i rum sone code in admin context 

i am getting this error ....

System.DmlException: Merge failed. First exception on row 0 with id 003c000000N0i18AAB first error: INSUFFICIENT_ACCESS_OR_READONLY, cannot merge with entity that is not accessible

  • September 19, 2013
  • Like
  • 0
is there any way i can change contactId of user which is already created ?? not while creation of user.......
  • September 18, 2013
  • Like
  • 0

i have authenticated ....

n have instance URL and access token !!
how should use it andi write http get request to get total no of likes of that user and all contacts records ??
dont know how to write http get() ????

  • June 09, 2013
  • Like
  • 0

i have authenticated ....

n have instance URL and access token !!
how should i write http get request to get total no of likes of that user ??
dont know how to write http get() ????

  • June 09, 2013
  • Like
  • 0

i have activated new sf feature state and country picklist ..
how to add that picklist on vf page ???

  • May 15, 2013
  • Like
  • 0

i am writing test for controller

having attachment functionality !!

 


this is my code..

 

Blob b = Blob.valueOf('Test Data');  
      
           Attachment attachment = new Attachment();  
        attachment.ParentId =doc.Id;  
          attachment.Name = 'Test Attachment for Parent';  
          attachment.Body = b;  
      
           insert attachment;

 

but is giving

error : System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Body]: [Body]

  • April 04, 2013
  • Like
  • 0

i want to disable command link which shows icon..

its disability should be visible in UI !!

how should i do this ???

 

  • April 01, 2013
  • Like
  • 0

my <apex:datatable> has multiple columns containing input field ... selectList...

is it possible to sort my table when header is clicked ??

and if yes... which is best way..using controller function or jquery plugin ??

i have tried tableSorter plugin but its not working properly.....

  • March 12, 2013
  • Like
  • 0

 Script :

 

 

<script type="text/javascript">

                $(document).ready(function()
                    {
                        j$("#recurring").tablesorter();
                     
                    }
                );
                    
            </script>

 

My table code ::

<apex:datatable columns="12" id="recurring" styleClass="table table-striped tablesorter"
    value="{!filteredRecurringExpenses}" var="item" >

<div class="outline-body">
    
                                                    
        <apex:column colspan="2">
             <apex:facet name="header">
                 <apex:outputPanel >
                   <apex:outputText value="{!$Label.Date}"/>
                   <apex:outputText styleClass="requiredStyle" value="*"/>
                 </apex:outputPanel>
            </apex:facet>  
             <apex:inputText value="{!item.transactionDate}"  />
         </apex:column>
          

 

 

but my table  is not getting sort according to header ??

does sorting work on facet header ???

  • March 08, 2013
  • Like
  • 0

i have custom vf page..

which has i input filed assigned with picklist..

and it is dependent on other picklist value..

i have the value of picklist which to set default but how to set it ???

 

<apex:inputField value="{!item.Category__c}">

           

</apex:inputField>

 

is it possible ??

  • March 05, 2013
  • Like
  • 0

can we sort the columns of data table on clck od table header ??

  • March 01, 2013
  • Like
  • 0

<apex:page sidebar="false" >  <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"/> <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"/> <apex:includeScript value="https://www.ittavi.com/bootstrap/js/bootstrap.js"/> <script type="text/javascript"> function calling() {  $('html, body').animate({                         scrollTop: $(".down").offset().top                     }, 5);

}  <script type="text/javascript">          var j$ = jQuery.noConflict();           j$(document).ready(function(){             j$("#ninjaLink").click(function() {                 alert("NINJA STAR TO FACE!!!!!");             });         });      </script>  <script type="text/javascript">  $('#abc').click(function(){       alert('addddd');                                       $('html, body').animate({                         scrollTop: $(".down").offset().top                     }, 5);                    });

</script> <apex:form >    <apex:commandButton value="add" id="abc" ></apex:commandButton><br></br>         <a id="ninjaLink" href="">NINJA ATTACK!</a>1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br>   1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> 1234<br></br> <div class='down'>     <h2>Focus</h2> </div> </apex:form> </apex:page>

 

 

 

 

this is my code..

i want to scroll to focus div whenver add button is clicked..

my jquery is not working !!!

  • March 01, 2013
  • Like
  • 0

I have to write a Rest service for retreiving data from salesforce object ??

i have 6-7 filters for that..
which i have to send as parameter ..
Data will be ... name of users... 10-15..
other records details..
what should i use for this Get ot Post ????
please suggest... with advantages of using the one..

  • May 08, 2014
  • Like
  • 1
I have a requirement to calculate time needed to load vf page or components of vf pages in controller or through code ??

Is there any way in salesforce to calculate this time ??
  • September 08, 2014
  • Like
  • 0

i want to exexute merge method on contact ...
which is created by other customer portal use..
and my profile do not have delele permission...
ho can i execute this merge method 

can i rum sone code in admin context 

i am getting this error ....

System.DmlException: Merge failed. First exception on row 0 with id 003c000000N0i18AAB first error: INSUFFICIENT_ACCESS_OR_READONLY, cannot merge with entity that is not accessible

  • September 19, 2013
  • Like
  • 0
is there any way i can change contactId of user which is already created ?? not while creation of user.......
  • September 18, 2013
  • Like
  • 0

i have activated new sf feature state and country picklist ..
how to add that picklist on vf page ???

  • May 15, 2013
  • Like
  • 0

i want to sort values to popolate in piclist in soql..

sort is done using date(date time ) and then name(string)

i have written a query but its not working

 ===> order by CreatedDate,company__c

  • February 28, 2013
  • Like
  • 0

how to change Public Group Membership of user in trigger ??

or through apex code ???

  • February 12, 2013
  • Like
  • 0

my code is :

trigger createUser on Student__c (after insert) {
Profile p = [select id from Profile where name='Standard Platform'];
for(Student__c stud: Trigger.new)
{
User u = new User(alias = 'student', email=stud.Email_ID__c, emailencodingkey='UTF-8', firstName=stud.First_Name__c, lastname=stud.Last_Name__c, languagelocalekey='en_US', localesidkey='en_US', profileid = p.id, timezonesidkey='Europe/London', username=stud.Enrollment_No__c+'@user.com');
insert u;
stud.User__c=u.ID;
}
}

 

whenever i am creating student record it should create user and associate user with student

but its i s giving an error..

  • February 08, 2013
  • Like
  • 0

i am creating user record through apex ..

using following code :

 

Profile p = [select id from Profile where name='Standard User'];

User u = new User(alias = 'utest', email='kiran_machhewar@persistent.co.in',
emailencodingkey='UTF-8', firstName='First', lastname='Last', languagelocalekey='en_US',
localesidkey='en_US', profileid = p.id,
timezonesidkey='Europe/London', username='kiran_machhewar1234@persistent.co.in');

insert u;

 

 

but i am nor receiving password reset link ??

can i set my password in code itself ??

  • February 07, 2013
  • Like
  • 0

how to Creating Users record not customer portal user through apex ?? is it possible ??

 

  • February 06, 2013
  • Like
  • 0