• Yishay Haspel 10
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 4
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 4
    Replies
Hi,

We have a vf page with vertical table headers.
It save perfectly to PDF, but the renderAs=pdf doesn't align them vertically.
Did anybody got this problem?
.vertical-heading p {
                 writing-mode: vertical-lr;
                -webkit-writing-mode: vertical-lr;
                -ms-writing-mode: vertical-lr;
                filter: flipH() flipV();
                margin: 0 auto;
            }

<table>
<thead>
<tr>
<th class="vertical-heading"><p>Demo</p></th>
</tr>
</thead>
</table>



Thanks,
Yishay
Hi,

We want to have the SFDC user avaters in our native applications and in our angularJs applications.
What is the best practice to do this?
We want to have the same look and feel as the chatter avatars.

Thanks,
Yishay
Hi all,

we suddenly receive a System.CalloutException: Callout loop not allowed.
We read about this exception and it has no meaning in our case.
1. We get it from a method that callout to an external service we need.

Http http = new Http();
HttpResponse res = http.send(request);
2. It works when we call the method synced manner.
3. When on the other hand the method is called from a future that on turn was called from a trigger we get the exception.
4. It didn't happen at the beginning of week.
5. It doesn't happen in our dev org.

Anyone got something like this and overcome it?
Thanks,
Yishay
Hi,

lately the debug logs have become unusable (many issues).
But today it got to its lowest point ever.
When trying to debug we don't see any of the commands all we got are vage lines like:
ENTERING_MANAGED_PKG|java__util
This is when we're working in our packaging org...

We already tried updating all the debug level parameters to at least DEBUG, even though most of them are not relevant.
Did anyone else had this problems, and how did you manage to overcome them?

Many thanks,
Yishay
Hi,

we get "No 'Access-Control-Allow-Origin' header is present on the requested resource." when trying to consume a packaged RestResource.
We used it until today, and suddently we started getting the CORS error "No 'Access-Control-Allow-Origin' header is present on the requested resource.".
The RestResource class is golbal of course
Did this happen to anyone else?
Anyone had a clue as to how to solve this?

Many thanks,
Yishay
Hi,

We're developing ionic and we use chrome to test the development using forcetk to connect to SFDC, so We can develop locally and deploy versions to the Package org after we finish the UI.
We want to use the ionic emulater, but currently We have a CORS issues.
Did anyone overcome this issues and currently uses ionic emulater to test locally before deploying to SFDC?

Thanks,
Yishay
Hi,

We have a mechnism to share pictures with community users using contentVersion as follows:
1. We have a custom object with an automatic mechnism that creates sharing for the desired community users (not all users can see all the pictures).
2. The SObject is connected to the chatter file (ContentDocument) using a FeedItem (We seen this is the correct way to force the wanted sharing rules over the chatter files.
3. The community users have several visualforce pages, including one that expose their pictures using something like:
https://XXX.force.com/customers/sfc/servlet.shepherd/version/renditionDownload?versionId=06824000000ZGIyAAO&rendition=THUMB120BY90

The above link returns an empty page.
Did we miss something?
Many thanks,
Yishay
Hi,

I want to get the ConnectApi.File for a ContentVersion record, I couldn't understand from the documentation how to achieve that.
A code sample that shows how to get the ConnectApi.File for a ContentVersion will be great.

Many thanks,
Yishay
Hi,

We've got a class implementing Schedulable, Database.Batchable<sObject>, Database.stateful.
The class has the needed global void execute(SchedulableContext SC), but when trying to schedule it I get:
Error: You must select an Apex class that implements the Schedulable interface
What are we missing?

Many thanks,
Yishay
Hi,

did anyone had this issue?
System.debug(
[Select Subject, Description, WhatId, Who.Email, Owner.Name, Owner.Email, 
CC_REID__Last_Date_Reminded__c, ActivityDate 
				From Task 
 Where Id = '00T2400000Iq2PoEAJ'].Who
);
System.debug(
[Select Email 
From Contact
Where Id = '0032400000HWzHYAA1'
]
);

Outputs:
Name:{Id=0032400000HWzHYAA1}

(Contact:{Email=XXX@YYY.com, Id=0032400000HWzHYAA1})


Thanks,
Yishay
Hi,

We have a vf page with vertical table headers.
It save perfectly to PDF, but the renderAs=pdf doesn't align them vertically.
Did anybody got this problem?
.vertical-heading p {
                 writing-mode: vertical-lr;
                -webkit-writing-mode: vertical-lr;
                -ms-writing-mode: vertical-lr;
                filter: flipH() flipV();
                margin: 0 auto;
            }

<table>
<thead>
<tr>
<th class="vertical-heading"><p>Demo</p></th>
</tr>
</thead>
</table>



Thanks,
Yishay
Hi,

we get "No 'Access-Control-Allow-Origin' header is present on the requested resource." when trying to consume a packaged RestResource.
We used it until today, and suddently we started getting the CORS error "No 'Access-Control-Allow-Origin' header is present on the requested resource.".
The RestResource class is golbal of course
Did this happen to anyone else?
Anyone had a clue as to how to solve this?

Many thanks,
Yishay
Hi all,

we suddenly receive a System.CalloutException: Callout loop not allowed.
We read about this exception and it has no meaning in our case.
1. We get it from a method that callout to an external service we need.

Http http = new Http();
HttpResponse res = http.send(request);
2. It works when we call the method synced manner.
3. When on the other hand the method is called from a future that on turn was called from a trigger we get the exception.
4. It didn't happen at the beginning of week.
5. It doesn't happen in our dev org.

Anyone got something like this and overcome it?
Thanks,
Yishay
Hi,

lately the debug logs have become unusable (many issues).
But today it got to its lowest point ever.
When trying to debug we don't see any of the commands all we got are vage lines like:
ENTERING_MANAGED_PKG|java__util
This is when we're working in our packaging org...

We already tried updating all the debug level parameters to at least DEBUG, even though most of them are not relevant.
Did anyone else had this problems, and how did you manage to overcome them?

Many thanks,
Yishay
Hi,

We have a mechnism to share pictures with community users using contentVersion as follows:
1. We have a custom object with an automatic mechnism that creates sharing for the desired community users (not all users can see all the pictures).
2. The SObject is connected to the chatter file (ContentDocument) using a FeedItem (We seen this is the correct way to force the wanted sharing rules over the chatter files.
3. The community users have several visualforce pages, including one that expose their pictures using something like:
https://XXX.force.com/customers/sfc/servlet.shepherd/version/renditionDownload?versionId=06824000000ZGIyAAO&rendition=THUMB120BY90

The above link returns an empty page.
Did we miss something?
Many thanks,
Yishay
Hi,

We've got a class implementing Schedulable, Database.Batchable<sObject>, Database.stateful.
The class has the needed global void execute(SchedulableContext SC), but when trying to schedule it I get:
Error: You must select an Apex class that implements the Schedulable interface
What are we missing?

Many thanks,
Yishay