• aryten
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies

Hi there,

 

I'm running the following scenario:

I have a Mobile Hybrid App connected to my org in SF. This app uses REST services to get data from Salesforce.

I found the way to get Images as Attachments from the SF using a custom Apex REST (wich returns the Blob Body of the Attachment, encoded in base64 format) and i'm currently displaying those images in my app.

 

I uploaded a PDF file and a PPT to Salesforce Document, and want to access them by using my App.

Then i created an Apex REST service to return the Body in base64 format..

 

Questions:

1) Is it possible to display that base64 representation of PDF in my App (HTML5)?

2) Can i use the base64 rep to store a file (by using Phonegap FileWriter) in my device and then access it from external app?

3) Is there a way to directly display the document without prompting for salesforce login?

 

Thanx in advance for your support..

  • April 25, 2012
  • Like
  • 0

 

Hi,
 
I have read that Salesforce expose some fields about Report in the Metadata API. How can i access those fields in an Apex class?
 
Example: i have created a Report (called "Rep01") and i want to retrieve its fields or filters. I supposed to do like that:

 

 

 

List<Report> reps = [SELECT Id,Name FROM Report WHERE Name =: 'Rep01' ];
Report r = reps.get(0);

String repField = r.columns[0].field; // ** ERROR ** : Invalid field columns for SObject Report

 

 

 

Since i get the error.. what is the correct way to access those fields listed in the API here ? Please help..

 

Thanx in advance for the answer...

 

Hi there,

 

I'm running the following scenario:

I have a Mobile Hybrid App connected to my org in SF. This app uses REST services to get data from Salesforce.

I found the way to get Images as Attachments from the SF using a custom Apex REST (wich returns the Blob Body of the Attachment, encoded in base64 format) and i'm currently displaying those images in my app.

 

I uploaded a PDF file and a PPT to Salesforce Document, and want to access them by using my App.

Then i created an Apex REST service to return the Body in base64 format..

 

Questions:

1) Is it possible to display that base64 representation of PDF in my App (HTML5)?

2) Can i use the base64 rep to store a file (by using Phonegap FileWriter) in my device and then access it from external app?

3) Is there a way to directly display the document without prompting for salesforce login?

 

Thanx in advance for your support..

  • April 25, 2012
  • Like
  • 0

Is there any way to retrieve the Report data? I didnt find the any API call for salesforce which supports this.

Your response is appreciated. 

 

Thanks

shaan 

  • July 22, 2009
  • Like
  • 0
Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and
.jar files), images, stylesheets, JavaScript programs, and other files.

Salesforce have provided examples on how to include images and JavaScript but I have not found any examples using jar files. I have created a simple executable "Helloworld" jar file to test with.

Has anyone managed to do this, example code would be great. Thanks.