• AndBu
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi all
I try to install managed beta package to sandbox and get an error:

1.  Encryption Key Unavailable
The encryption key number {0} used to encrypt this data was deleted. Contact your administrator to get access to the data.

Any ideas to solve this problem?
  • June 10, 2015
  • Like
  • 0
Hi!
I trying to get access to the camera via SF1, I'm using code below, but when I press on button, I can add only existing photos. 
I'm using Android 4.4.4.
How can I get access to the camera? Maybe I forgot about some settings?
<apex:page docType="html-5.0"   showHeader="false" sidebar="false" standardStyleSheets="false"  contentType="text/html">
 <script type="text/javascript">   
    function previewFile() {
  var preview = document.querySelector('#preview');
  var file    = document.querySelector('input[type=file]').files[0];
  var reader  = new FileReader();
 
  reader.onloadend = function () {
    preview.src = reader.result;
  }
 
  if (file) {
    reader.readAsDataURL(file);
  } else {
    preview.src = "";
  }
}
</script>
<form>
  <input type="file" onclick="previewFile()" />
 
<h1>Preview</h1>
 <div style="height:200px">
  <img src="" id="preview" height="200" alt="Image preview..." />
 </div>
</form>
</apex:page>

 
  • May 04, 2015
  • Like
  • 0
Hi all!
I create a new custom button with onclick javascript. And when I trying to get Id of current record, I get a message: "a04w000000OXtAN is not defined", where a04w000000OXtAN - Id of current record.
Here my code:
{!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')}
{!REQUIRESCRIPT('/soap/ajax/29.0/apex.js')}


try{
var user = sforce.connection.getUserInfo();
var STE = new sforce.SObject("Object__c");
STE.Id={!package_prefix__Object__c.Id};
}
catch(er)
{
alert(er);
}

 
  • October 25, 2014
  • Like
  • 0
Hi!
I trying to get access to the camera via SF1, I'm using code below, but when I press on button, I can add only existing photos. 
I'm using Android 4.4.4.
How can I get access to the camera? Maybe I forgot about some settings?
<apex:page docType="html-5.0"   showHeader="false" sidebar="false" standardStyleSheets="false"  contentType="text/html">
 <script type="text/javascript">   
    function previewFile() {
  var preview = document.querySelector('#preview');
  var file    = document.querySelector('input[type=file]').files[0];
  var reader  = new FileReader();
 
  reader.onloadend = function () {
    preview.src = reader.result;
  }
 
  if (file) {
    reader.readAsDataURL(file);
  } else {
    preview.src = "";
  }
}
</script>
<form>
  <input type="file" onclick="previewFile()" />
 
<h1>Preview</h1>
 <div style="height:200px">
  <img src="" id="preview" height="200" alt="Image preview..." />
 </div>
</form>
</apex:page>

 
  • May 04, 2015
  • Like
  • 0
Hi all!
I create a new custom button with onclick javascript. And when I trying to get Id of current record, I get a message: "a04w000000OXtAN is not defined", where a04w000000OXtAN - Id of current record.
Here my code:
{!REQUIRESCRIPT('/soap/ajax/29.0/connection.js')}
{!REQUIRESCRIPT('/soap/ajax/29.0/apex.js')}


try{
var user = sforce.connection.getUserInfo();
var STE = new sforce.SObject("Object__c");
STE.Id={!package_prefix__Object__c.Id};
}
catch(er)
{
alert(er);
}

 
  • October 25, 2014
  • Like
  • 0