• razzaz
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies

Hi:

   mostly all my users have the option of resetting there own token key. There is one user which is API enabled and does not have that option of resetting his security token key under his my personal information menu.

 

Does anyone why or is it a setting within his profile?

 

Thanks

Z

  • November 12, 2010
  • Like
  • 0
Hi all:
   I am a developer for Salesforce.com for my workplace. I have built custom S-controls,Triggers,Workflows,salesforce setup, and develop salesforce.com for my workplace. I have 2 years experience in salesforce. I can also help with database migration or consult on a good tool to use for data migration. I have SQL Server 2000 experience(DTS, Store Procedures), AJAX, Javascript, ASP, APEX Code, Eclipse, Triggers, Apatar Tool & Bluewolf ESI Tool experience. I am willing to work remotely, I am looking for part time work ...
 
Please contact me
 

Thanks



Message Edited by razzaz on 04-25-2008 06:37 AM
  • April 08, 2008
  • Like
  • 0
Hi I have the following S-Control and then following the Iframe opening up at the Homepage as a component...
But it is slow to load the homepage when they sign in any one has any ideas how to make it fast...PLZZZ
Code:
<html> 
<head> 
<meta http-equiv=“refresh” content=“600″ /> 
<script type="text/javascript" src="/soap/ajax/10.0/connection.js"></script> 
<script type="text/javascript"> 
window.onload=init_page; 
function init_page() 
{ 
var j= ""; 
var output=""; 
strSQL = "Select Id,AS400_Account_Number__c,Name,BillingCity,SF_DATE_ON_SERVICE__c from Account where OwnerId='{!$User.Id}' and SF_DATE_ON_SERVICE__c = LAST_N_DAYS:30 ORDER BY SF_DATE_ON_SERVICE__c DESC"; 
var result = sforce.connection.query(strSQL); 
var records = result.getArray("records"); 
for (var i=0; i<records.length; i++) 
{ 
j +='<a href="/' + records[i].Id + ' "target=_blank"">' + (i+1) +') ' + records[i].SF_DATE_ON_SERVICE__c + ' - ' + records[i].AS400_Account_Number__c + ' - ' + records[i].Name + ' - ' + records[i].BillingCity + '</a><br>&nbsp;' 
} 
document.getElementById('div_tag').innerHTML = j ; 
} 
</script> 
</head> 
<body bgcolor="#F3F3EC"> 
<font size="2" face="Verdana"> 
<div id="div_tag">No Accts</div></font> 
</body> 
</html>

 
  • January 25, 2008
  • Like
  • 0
Ok I really do not know that much about buttons on salesforce.. actually a newbie but was wondering if anyone has ever disable a button based on a case field...
for example, when a user views a case and the case reason is 'delivery issue", the close button would be disable or not there for them ...i started writing the code but do not know what is the api or object name for buttons on a case....
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script type="text/javascript" language="javascript" src="/js/functions.js"></script>
<script type="text/javascript" language="javascript" src="/soap/ajax/11.1/connection.js"></script>
<script type="text/javascript" language="javascript" src="/js/dojo/0.4.1/dojo.js"></script>
<script>
 
function init() {
var cReason = "{!Case.Reason}";
if (cReason=="Delivery Issues")
{
//Disable the Close button
}
else
{
//do Nothing
}
</script>
 
Please help... thanks
  • January 18, 2008
  • Like
  • 0
Hi:
   Is there a way to place a custom print button on the tickets(Cases) queue screen where an user can select the the tickets they want and hit the print button to print the details of the tickets one by one....
Also, is there a way to disable a button according to the ticket reason... like I would like to disable the close button on the ticket for one special reason?
Thanks
 
  • January 16, 2008
  • Like
  • 0
How does one calculate time in Salesforce...
I tried:
Code:
<html>
<head>
<script type="text/javascript" src="/soap/ajax/10.0/connection.js"></script>
<script type="text/javascript"> 
function initpage()
{

var d = "{!Delivery_Time__c.Actual_Arrival_Time__c}";
var e = "{!Dispatch_Schedule__c.Arrival_Time__c}";

document.getElementById('div_tag').innerHTML = d.getTime() ;
}
</script>
</head>
<body bgcolor="#F3F3EC" onload="initpage()";> 
<font size="2" face="Verdana">
<div id="div_tag">Loading...</div></font>
</body>
</html>
that did not work... does anyone know the syntax
 

hi all:
   I am new to .NET environment but wanted to know in salesforce.com what exactly do you need to write .NET code.. like I try to do a simple query in S-Control in VB.NET and yet the only thing that came up was the code itself...something like this
<html>
<head>

<script>
Public function hrresult()
Dim lead as sforce.Object
dim i as Integer
Dim qr as sforce.QueryResult = binding.query("select name from account")
Do
For i =0 to qr.records.Length
lead=qr.records(i)
Console.writeline(lead.Any(0).InnerText)
Next
if qr.done then Exit Do
qr=binding.queryMore(qr.queryLocator)
Loop
End Function
</script>
</head>

<body onload="hrresult">
</body>

</html>

 
Looking for an experienced Salesforce developer for a 2-4 week project to help design, build and launch a custom app to help 20+ person finance/real estate firm manage transaction workflow and customer interactions. The project will involve creating a custom apps that works with a web based client portal to track interactions and create a secure site for clients to view and download transaction information.
  • March 04, 2008
  • Like
  • 0
Hi:
  I have two queries which I placed into two arrays, then I loop through the records if the first element in the array is the same as the second array then it will display the record ... for some reason it is not working the way I want it to actually its not working at all....Can someone tell me where I am going wrong.....Please thanks
Code:
<html>
<head>
<script type="text/javascript" src="/soap/ajax/10.0/connection.js"></script>
<script type="text/javascript">
window.onload=init_page;
function init_page() 
{
 if ("{!$User.UserRoleId}"=="00E50000000w27b") 
{
 var j = "";

 var strSQL = "Select  OwnerId,AS400_Account_Number__c,Name,BillingCity,SF_DATE_ON_SERVICE__c from Account where SF_DATE_ON_SERVICE__c = LAST_N_DAYS:30 ORDER BY
SF_DATE_ON_SERVICE__c DESC";

var strSQLB = "Select Id,Name from User where UserRoleId In 
('00E50000000w3yvEAA','00E50000000w2ESEAY','00E50000000w5UrEAI',
'00E50000000wA08EAE','00E50000000w2BEEAY','00E50000000w29rEAA',
'00E50000000w2B4EAI','00E50000000w2BJEAY')";

 var result = sforce.connection.query(strSQL);

var resultB = sforce.connection.query(strSQLB);

 var records = result.getArray("records");

var recordsB = resultB.getArray("recordsB");

if (recordsB[0]==records[0])
{
 for (var i=0; i<records.length; i++) 
{
for (var z=0;z<recordsB.length;z++)
{
  j += "<a href=\"" + records[i].Id + "\" target=\"_blank\">("+(i+1)+") 
"+ recordsB[z].Name +" - "+ records[i].SF_DATE_ON_SERVICE__c+" - "+records[i].AS400_Account_Number__c+" - "+records[i].Name+" - "+records[i].BillingCity+"</a><br>&nbsp;";
 }
}
 document.getElementById("div_tag").innerHTML = j;
} 
}
}
</script>
</head>
<body bgcolor="#F3F3EC">
<font size="2" face="Verdana">
<div id="div_tag">No Accts</div></font>
</body>
</html>

 
Hi the following is my code for a submit button:
Code:
z_cal.prototype.submitSelections = function () 
//PRIVATE: submit the calendar's selection variables 
{ 
var dtsdate = new sforce.SObject("Holiday_Vacation__c");
//alert(this.selectedDates[0].toJSDate() + "-" + dtsdate.Opportunity__c);
for(var i=0; i<this.selectedDates.length; i++) 
 dtsdate.Date__c = (this.selectedDates[i].toJSDate());
 dtsdate.Opportunity__c = "{!Opportunity.Id}";
  
var result = sforce.connection.create([dtsdate]);

  if (result[0].getBoolean("success")) {
    alert("new account created with id/Date " + result[0]);
  } else {
   alert("failed to create account " + result[0]);
  }
}; 

 
now the thing is the user will select the dates needed off the calendar and then hit submit and with that I need it to go through the object and place in all the records in the table. I am new to javascript and ajax and salesforce. But I am trying. Can someone please help me figure out how can I loop through to get my array and the id in the table.
something like this:
OpportunityID 3/12/2005
OpportunityID 3/14/2005
OpportunityID 3/16/2005
The opportunity ID will be the same and then the calendar dates from another function goes through an array called this.selecteddates...
Thanks
z