• d.popov
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 28
    Replies

SImple VF page it's work perfect.


<apex:page >
    <apex:includeScript value="{!URLFOR($Resource.Xsolla_Jquery_min, '')}"/>
    <apex:includeScript value="{!URLFOR($Resource.Xsolla_Jquery_custom_min, '')}"/>
    <apex:includeScript value="{!URLFOR($Resource.Xsolla_Jquery_timepicker, '')}"/>
    <apex:stylesheet value="{!URLFOR($Resource.Xsolla_Jquery_css, '')}"/> 
 
    <script language="javascript">
           $(function() { 
                            $('#datepicker').datetimepicker({
                                showSecond: true,
                                timeFormat: 'hh:mm:ss',
                                stepHour: 2,
                                stepMinute: 10,
                                stepSecond: 10
                            });
                        }); 
    </script>
      
    <input type="text" name="date" id="datepicker" value="01.06.2009 00:00"/> 
 
</apex:page>

But in on the page tabPanel, 

 

3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript:265Uncaught TypeError: Object [object Object] has no method 'dispatchEvent'
3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript:106Uncaught TypeError: Object [object Object] has no method 'hasClassName'
3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript:106Uncaught TypeError: Cannot read property 'length' of undefined
3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript:107Uncaught TypeError: Cannot call method 'replace' of undefined

I'am add to code, this fix error, but calendar not show

<script type="text/javascript">

         jQuery.noConflict();

</script> 

 

How to fix this problem?


 

OAuth oa = new OAuth();

Http h = new Http(); 

HttpRequest req = new HttpRequest();

       

req.setMethod('PUT');

req.setEndpoint('api-content.amazon.com/attachment.pdf');

req.setBody(EncodingUtil.Base64Encode(fileBody));

oa.sign(req);

HttpResponse res = h.send(req);

 

 

After upload file is incorrect

This cod is incorrect, uploaded file is corrupted,
How to download file to external service (amazon) with multiple POST

 

 

OAuth oa = new OAuth();

oa.setService('Amazon');

Http h = new Http(); 

HttpRequest req = new HttpRequest();

req.setMethod('PUT');

req.setEndpoint('https://api.amazon.com/file_put');

req.setBody(fileBody.tostring()); 

Please help me solving this problem.

The error occurs when saving.

 

<apex:form >

     <table>

     <td>Account</td>

     <td><apex:inputField value="{!inputAccount.Account__c}"/></td>

     </tr> 

     </table>

     <apex:commandButton value="Save" action="{!save}"/>

</apex:form>

 

 

public class DropboxController {

 

   public DropboxController(){

   }

 

    public SampleFiles__c inputAccount {get; private set;}    

    SampleFiles__c file = new SampleFiles__c(); 

    file.Account__c = inputAccount.Id; 

    insert file;

 

 

}

 

 

Is it possible to download binary files?

If not, what solution to use for downloading to an external service


 

public Blob fileBody{get;set;}  

 

OAuth oa = new OAuth();

oa.setService('AmazonS3');

Http h = new Http();

HttpRequest req = new HttpRequest();

req.setMethod('PUT');

req.setEndpoint('https://amazons3.....');

req.setBody(fileBody);

try {

HTTPResponse res = http.send(req);   

System.debug(res.toString());

System.debug('STATUS:'+res.getStatus());

System.debug('STATUS_CODE:'+res.getStatusCode());

catch(System.CalloutException e) {

}  


 

- Root

  - Folder 1

    - File 1

    - File 2

  - Folder 2

  - ...

 

Information about the directory tree is stored in the database:

ID

Parent

Name

IsFolder 

SImple VF page it's work perfect.


<apex:page >
    <apex:includeScript value="{!URLFOR($Resource.Xsolla_Jquery_min, '')}"/>
    <apex:includeScript value="{!URLFOR($Resource.Xsolla_Jquery_custom_min, '')}"/>
    <apex:includeScript value="{!URLFOR($Resource.Xsolla_Jquery_timepicker, '')}"/>
    <apex:stylesheet value="{!URLFOR($Resource.Xsolla_Jquery_css, '')}"/> 
 
    <script language="javascript">
           $(function() { 
                            $('#datepicker').datetimepicker({
                                showSecond: true,
                                timeFormat: 'hh:mm:ss',
                                stepHour: 2,
                                stepMinute: 10,
                                stepSecond: 10
                            });
                        }); 
    </script>
      
    <input type="text" name="date" id="datepicker" value="01.06.2009 00:00"/> 
 
</apex:page>

But in on the page tabPanel, 

 

3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript:265Uncaught TypeError: Object [object Object] has no method 'dispatchEvent'
3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript:106Uncaught TypeError: Object [object Object] has no method 'hasClassName'
3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript:106Uncaught TypeError: Cannot read property 'length' of undefined
3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript:107Uncaught TypeError: Cannot call method 'replace' of undefined

I'am add to code, this fix error, but calendar not show

<script type="text/javascript">

         jQuery.noConflict();

</script> 

 

How to fix this problem?


 

This cod is incorrect, uploaded file is corrupted,
How to download file to external service (amazon) with multiple POST

 

 

OAuth oa = new OAuth();

oa.setService('Amazon');

Http h = new Http(); 

HttpRequest req = new HttpRequest();

req.setMethod('PUT');

req.setEndpoint('https://api.amazon.com/file_put');

req.setBody(fileBody.tostring()); 

Please help me solving this problem.

The error occurs when saving.

 

<apex:form >

     <table>

     <td>Account</td>

     <td><apex:inputField value="{!inputAccount.Account__c}"/></td>

     </tr> 

     </table>

     <apex:commandButton value="Save" action="{!save}"/>

</apex:form>

 

 

public class DropboxController {

 

   public DropboxController(){

   }

 

    public SampleFiles__c inputAccount {get; private set;}    

    SampleFiles__c file = new SampleFiles__c(); 

    file.Account__c = inputAccount.Id; 

    insert file;

 

 

}