• jayanth reddy
  • NEWBIE
  • 10 Points
  • Member since 2018
  • Software Developer
  • Emids technologies pvt ltd

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 3
    Replies
I have a button, on click of that button i need to restrict that button for further clicks?


How can i do it without coding?
Hi 

I have script on click of button i want to work in both lightning and classic

Below is the code


<script> function AttachDocuments(oId) { 
var url="/apex/Project?ProjId=" + oId ;
window.parent.location = url;
return false;
}

function checkDelete(prjId)
{
alert('Are you sure want delete');
var url="/" +prjId;
window.parent.location = url;
return false;
}
</script>
is there any way to restrict buttons only to top in standard page
 
Hi 

I have one visual force tab where it is giving list of projects 

I am unable to see the list for few users

I am able to see it to only system admin profiles

visual force page security is having all the profiles, but still i am unable to access the list


Thanks in advance,
Jayanth
 
I am having an object named abc
That object is related to so many projects 

I want to give access to client based on account


For eg:
1) AbcdId:abc-0001
    name:Ravi
    Acc:bus
    acc owner: suri
    proj:Tyre

For eg:
2) AbcdId:abc-0002
    name:teja
    Acc:car
    acc owner: venkat
    proj:seating


Here are two eg
one record belong to one acc and the other belong to other acc
i want to give access for suri to see only the first record and i want to give access for venkat only for second record
This is the script i am having in classic version 
I want to do it in lightning 
I tried, but it is redirecting to classic version
Can anyone suggest me with solution.
 
<script>
 function AttachDocuments(oId)
        {
            //alert('test');
             var url="/apex/abcd?conId=" + oId ;       
                       
            window.parent.location = url;
            
            return false;
           
        }     
function refreshParent(dId)
        {
            window.parent.location ='https://my.salesforce.com/setup/own/deleteredirect.jsp?retURL=%2F00P%2Fo&delID=00P0v000000FYuXEAW&_CONFIRMATIONTOKEN=VmpFPSxNakF4Tnkwd055MHhOVlF3TWpvME1qb3pPUzQwTVRSYSxaWVhvTllJNlZ0TU1LdzkweTZpWU1FLE5';
            var url="/" + dId ;       
                       
            window.parent.location = url;
            
            return false;
        }
        <!-- Delete attachement -->
        function checkDelete(contactId){
          alert('Are you sure want delete');
             var url="/" + contactId;       
                       
            window.parent.location = url;
            
            return false;
        
        }
    </script>
I am having a button in classic version which is a javascript button 
On click of that button it is picking the email template and send sending emails to that candidate automatically
I want to achieve this in lightning 
What is the procedure?
Hi 

I have one visual force tab where it is giving list of projects 

I am unable to see the list for few users

I am able to see it to only system admin profiles

visual force page security is having all the profiles, but still i am unable to access the list


Thanks in advance,
Jayanth
 
I am having a button in classic version which is a javascript button 
On click of that button it is picking the email template and send sending emails to that candidate automatically
I want to achieve this in lightning 
What is the procedure?