• amoldavsky
  • NEWBIE
  • 50 Points
  • Member since 2012

  • Chatter
    Feed
  • 2
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 20
    Questions
  • 16
    Replies

Hi,

 

I am experiencing a really strange problem where I am not able to send email to the Administrator. It's just swallowing anything sent to the Admin user. I did confirm that the email are sent out if I add another admin and to me I think I traced it down to two columns in the User table...

 

I have ran this questy

for(User u : [SELECT u.Id, u.Profile.Name, u.ProfileId, u.Email, u.ReceivesAdminInfoEmails, u.ReceivesInfoEmails, u.Username FROM User u]) {

}

and this gives me a list of users in my dev environment. For some reason the Admin user that initially was used to create this account has ReceivesAdminInfoEmails = false and ReceivesInfoEmails = false, while any other created Admin account has both of these fields set to true.

 

Does anyone has an idea what is happening? and am I able to change both of these boolean flags to trye somewhere from  the Salesforce account setup?

 

Thanks!

 

Hey,

 

I am trying to get the Administrator's email for the given organization from within Apex code. How can I get it?

Is it always gauranteed to be there?

 

It seems to me that there should always be one because when you first register you use a valid real email address which becomes the Admin users for that organization. Later on you can configure sub account that may or may not correlate to real addresses... am I missing something?

 

Thanks!

Hey,

 

I am having trouble to control who is going to see our cutom tab when our app is installed from the app exchange. I can easily control that behaviuor in our instance but I do not know how to ship a default set of permissions with that tab when it's in a package. The tab should be only visible to the Admin upon installation of the app, any ideas?

 

Thanks

Hey,

 

I cannot see my custom tab under Setup -> Customize -> "Rename Tabs and Labels". Is it because it is not a custom object tab?

 

Thanks

Hey,

 

If I create custom fields for the Lead, Account, and Contact objects, then define custom mapping from the Lead to the other custom field, how do I make sure that this mapping is carried over in my application when it is installed from the app exchange?

 

Thank you!

When I try to upload my managed package (clicking the upload button) I get this error:

 

Cannot Modify Managed Component

 

The component you are attempting to modify is part of a managed package, and cannot be modified.

 

 

 

I have already built beta menaged packages from that code base abd now it doesn't let me build anything at all... any ideas?

 

Thanks

-Assaf

Hi,

 

Does anybody know how I can get all Lead Sources, created in the specific org, from within APEX code?

 

 

Thanks!

Hey,

 

Does anyone know how to export Custom Setting meta data out of Salesforce so that I can commit that into our SVN repoditory with the rest of the SF code?

 

Thanks

Hey,

 

Does anyone know how to export Custom Setting meta data out of Salesforce so that I can commit that into our SVN repoditory with the rest of the SF code?

 

Thanks

-Assaf

Hey,

 

I am trying to utilize a custom setting and I after lurking through the doc I am absolutely clueless to how to update/insert/delete data from a custom setting.

 

My goal is at this point is to insert data into a custom setting like so:

ZoomSession__c session = ZoomSession__c.getInstance();
session.Name = '0101010101';
session.user_id__c = '0101010101';
session.id_token__c = '1111';
session.id_token_expire__c = Datetime.now();
session.session_token__c = '2222';
session.session_token_expire__c = Datetime.now();
session.modified_ts__c = Datetime.now();
insert session;
System.debug('\n\n\n\n' + ZoomSession__c.getAll() + '\n\n\n\n');

 

But I ge an exception:

System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, field integrity exception: SetupOwnerId (id value of incorrect type): [SetupOwnerId]

 

 But i do not have a field called SetupOwnerId...

 

I am totally lost, can anybody give me a hand with this please?

 

Thanks

-Assaf

Hey,

 

I am unable to set a persistent cookie via Apex, I can only hack my way in through Javascript.

Whatever you set for "maxAge" except for 0 or -1 results in expiration time of:
Sun 07 Dec 1969 03:28:36 GMT

new Cookie(ZIID_COOKIE_NAME, ziid, null, 315360000, false);

 

 

 

Which indicated it is expired. So basically the cookies can either be session length or expired.

That does not make any sense to me whats so ever, any ideas?

Hey,

 

For some weird reason I am unable to access cookies on first page load. For instance I open an Account, I see no cookies in Apex, but I do see them all with a Javascript. After I redirect to a different page and come back I do see the cookies in Apex and Javascript. That does not make any sense at all to me...

 

I have a debug code that fires on page load before anything else does (it is set as the first Extension):

String cookieStr = '';
for(String k : ApexPages.currentPage().getCookies().keySet()) {
	cookieStr += k + ': ' + ApexPages.currentPage().getCookies().get(k).getValue() + ' || ';
}
System.debug('\n\n\nAssaf1: ' + cookieStr + '\n\n\n\n');
System.debug('\n\n\nAssaf2: ' + ApexPages.currentPage().getUrl() + '\n\n\n\n');

 Here is the output when I open an Account:

Assaf1: 




13:43:27.484 (1484955000)|SYSTEM_METHOD_EXIT|[40]|System.debug(ANY)
13:43:27.484 (1484971000)|SYSTEM_METHOD_ENTRY|[41]|ApexPages.currentPage()
13:43:27.484 (1484977000)|ENTERING_MANAGED_PKG|
13:43:27.485 (1485028000)|SYSTEM_METHOD_EXIT|[41]|ApexPages.currentPage()
13:43:27.485 (1485048000)|SYSTEM_METHOD_ENTRY|[41]|System.PageReference.getUrl()
13:43:27.485 (1485082000)|SYSTEM_METHOD_EXIT|[41]|System.PageReference.getUrl()
13:43:27.485 (1485104000)|SYSTEM_METHOD_ENTRY|[41]|System.debug(ANY)
13:43:27.485 (1485109000)|ENTERING_MANAGED_PKG|
13:43:27.485 (1485116000)|USER_DEBUG|[41]|DEBUG|


Assaf2: /apex/zoominfodev__ZoomAccountProfile?id=001d000000Ctfjl&inline=1


 

Because the cookies are "invalud" (do not exist) I have to forward the user to a Login page where these cookies are recreated and re-saved. Here is how:

String callbackUrl = ApexPages.currentPage().getParameters().get('callbackUrl');
PageReference callbackPage = new PageReference(callbackUrl);
callbackPage.setRedirect(true);
callbackPage.setCookies(ApexPages.currentPage().getCookies().values());

 

I then redirect back to the page I came from (Account page based on the callbackUrl) and then I do see the cookies both under Apex and Javascript. Debug output:

14:22:06.521 (521708000)|USER_DEBUG|[40]|DEBUG|


Assaf1: ziid: mYf-cYbIJ9SMVeMyK1jsCkn1hbjgRseBvXQ5YMGfvTQ4wz67jKUtC3DVoDRZZcNMrUXyDyOFx50T-pBjh0Bpfg || zisession: dIFsqCKSyDHHQSn0bool0PkIceMmqWnHOzVJdL0KlxWBdBJtm853v3DVoDRZZcNMrUXyDyOFx53u2_RkupKuSu6DxxY_-6kS3rv18myyAzP9uh-aWEhH8Qp451OiK57LLRHFCHYawdkd-OOEoZBojCcvakbGt2L4eRsgTnrpHcM || 




14:22:06.521 (521727000)|SYSTEM_METHOD_EXIT|[40]|System.debug(ANY)
14:22:06.521 (521744000)|SYSTEM_METHOD_ENTRY|[41]|ApexPages.currentPage()
14:22:06.521 (521750000)|ENTERING_MANAGED_PKG|
14:22:06.521 (521805000)|SYSTEM_METHOD_EXIT|[41]|ApexPages.currentPage()
14:22:06.521 (521827000)|SYSTEM_METHOD_ENTRY|[41]|System.PageReference.getUrl()
14:22:06.521 (521870000)|SYSTEM_METHOD_EXIT|[41]|System.PageReference.getUrl()
14:22:06.521 (521895000)|SYSTEM_METHOD_ENTRY|[41]|System.debug(ANY)
14:22:06.521 (521900000)|ENTERING_MANAGED_PKG|
14:22:06.521 (521907000)|USER_DEBUG|[41]|DEBUG|


Assaf2: /apex/zoominfodev__ZoomAccountProfile?id=001d000000Ctfjl&inline=1%3Fid%3D001d000000Ctfjlinline%3D1




14:22:06.521 (521917000)|SYSTEM_METHOD_EXIT|[41]|System.debug(ANY)

 

 

 

Any ideas why I don't get those cookies when I open the Account the first time arround?

this surely smells like a bug

Hey,

 

I have a method in my controller that returns PageRerence to itself. However, when I submit a form what it attached to this method I get a page refresh but the URL parameters are lost...

 

Code in the controller method:

public PageReference login() {
	return ApexPages.currentPage();
}

The original url when I open that page for the first time:

https://zoominfodev.na14.visual.force.com/apex/zoominfodev__login?inline=1&callbackUrl=%2Fapex%2Fzoominfodev__ZoomAccountProfile%3Fid%3D001d000000Ctfjl%26inline%3D1%3Fid%3D001d000000Ctfjlinline%3D

 The url after I submit the form (the method login() executed):

https://zoominfodev.na14.visual.force.com/apex/login

 

Same goes for cookies, if I set Cookies on the currentPage() and then return it, I lose them after the refresh.

 

Any ideas what I'm doing wrong?

 

Thank you!

-Assaf

Hey,

 

I keep getting this exception in the VF iframe whenever I try to redirect anywhere...

Content cannot be displayed: Exception common.page.PageInterruptException

 

The code that generates this is:

public PageReference appInit() {
	if(false) return null; // for now
	PageReference pageRef = Page.Login;
	pageRef.setRedirect(true);
	return pageRef;
}

 

This method is called from here (on the VF page)

<apex:page language="en" StandardController="Account" showHeader="true" standardStylesheets="true" sidebar="false" extensions="StartupExtension,ZoomAccountExtension" action="{!appInit}">

 

Is I return null I stay on the same page and I do not get this exception but if I try to redirect no matter where I get this exception.

 

Any ideas? please help!!

 

 

-Assaf

I am trying to write unit test to test a class dealing with cookies and it is complaining that is can't find the variable Page.

 

Code:

PageReference page = new Page.Login;
String zisession = '123';
Integer maxAge = 10000;
Cookie ziSessionCookie = new Cookie(ZoomSessionManager.ZISESSION_COOKIE_NAME, zisession, null, maxAge, false);
page.setCookies(new Cookie[]{ziSessionCookie});
Test.setCurrentPage(page);

 IDE Error:

Save error: Variable does not exist: Page.Login

 

I followed the examples provieded by SalesForce but that clearly does not work out:

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_error_handling.htm

 

I should note that the test code is in a separate unit test class and the Page.Login does work fine in the destination class (ZoomSessionManager.cls), just doesn't exist in the unit test for some reason...

 

 

Any ideas what I might be doing wrong?

Thanks!

 

 

Hey,

 

I have an objects in SF which I would like to update from an external (non SF) location with a periodic HTTP call. So basically, let's say I have a website www.mycoolsite.com and I have an object over the SF app that contains a numeric value X=10. I would like every day to make a single call (behind the scenes) from www.mycoolsite.com to a particular installation of my SF app and deduct 1 from X. How can I achieve this? is this even possible? sync or bulk API?

 

Thank you!

Hey,

 

Is there a facility for temporary storage for the duration of the session or even a page refresh?

 

I want to carry over some data between the frame reloads (in the App) while the user is paging through some lost list of results. Now I can do that with cookies or localStorage/sessionStorage but it would be simpler to use a ready facility if there is one.

 

Any ideas?

 

Thanks

-Assaf

Hey,

 

I have setup a test account with no writing permissions.

When I update an account nothing happends and there is no error message, how can I check if the user is allowed to update an account object?

 

Sample code:

try {
  reportToZoom(null);
  System.debug('update start');
  update acct;
  System.debug('update end');
} catch (DMLException e) {
  System.debug('exception: ' + e);
  ApexPages.addMessages(e);
}

 

The logs had this (nothing regarding permissions...):

12:29:22.163 (163884000)|USER_DEBUG|[340]|DEBUG|update start
12:29:22.163 (163892000)|SYSTEM_METHOD_EXIT|[340]|System.debug(ANY)
12:29:22.163 (163961000)|DML_BEGIN|[341]|Op:Update|Type:Account|Rows:1
12:29:22.235 (235801000)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Account
12:29:22.254 (254011000)|WF_RULE_EVAL_BEGIN|Assignment
12:29:22.254 (254033000)|WF_RULE_EVAL_BEGIN|Response
12:29:22.254 (254044000)|WF_RULE_EVAL_BEGIN|Workflow
12:29:22.254 (254071000)|WF_CRITERIA_BEGIN|[Account: Microsoft Corporation 0017000000SM7cL]|BillingState|01Q70000000BG1c|ON_ALL_CHANGES
12:29:22.255 (255022000)|WF_RULE_FILTER|[Account : Billing State/Province not equal to null]
12:29:22.255 (255113000)|WF_RULE_EVAL_VALUE|Washington
12:29:22.255 (255122000)|WF_CRITERIA_END|true
12:29:22.256 (256320000)|WF_SPOOL_ACTION_BEGIN|Workflow
12:29:22.256 (256813000)|WF_ACTION| Field Update: 1;
12:29:22.256 (256829000)|WF_RULE_EVAL_BEGIN|Escalation
12:29:22.256 (256836000)|WF_RULE_EVAL_END
12:29:22.256 (256906000)|WF_ACTIONS_END| Field Update: 1;
12:29:22.256 (256915000)|CODE_UNIT_FINISHED|Workflow:Account
12:29:22.257 (257656000)|DML_END|[341]
12:29:22.257 (257724000)|SYSTEM_METHOD_ENTRY|[342]|System.debug(ANY)
12:29:22.257 (257787000)|USER_DEBUG|[342]|DEBUG|update end
12:29:22.257 (257802000)|SYSTEM_METHOD_EXIT|[342]|System.debug(ANY)
12:29:22.257 (257823000)|SYSTEM_METHOD_ENTRY|[348]|System.debug(ANY)
12:29:22.257 (257859000)|USER_DEBUG|[348]|DEBUG|returning
12:29:22.257 (257871000)|SYSTEM_METHOD_EXIT|[348]|System.debug(ANY)
12:29:22.261 (261433000)|CODE_UNIT_FINISHED|ZoomAccountExtension invoke(UpdateAccount)

 

 

Any ideas?

 

Thanks

-Assaf

Hey guys,

 

Am I right by concluding that VisualForce pages do not have server side comments?

Something from the Java (JSP pages) world would be <%-- my comment --%> or <% /* some comment */ %>

This is very different from an HTML comment such as <!-- comment --> by the fact that the client still has to download what's ever in it.

 

I have found this old thread:

http://boards.developerforce.com/t5/Visualforce-Development/Visualforce-Server-Side-Comment-Syntax/td-p/98450

 

Which concluded with no asnwer, tried to google but was unsuccessful.

If I use the <!-- --> syntax VisualForce just masks whatever characters are in those comment tags.

This is still a problem because I do not want the client to download junk.

 

Is there a way to make server side comments? If not, then maybe a hack to wrap the comment in some custom apex block element?

 

Below is what I see in the HTML source using the <!-- --> syntax:

 

 <!--
*****************************************
**********************
******************************
***********************************************************************************
**
**********
******
******************************************************************************************
***********************************************************************************
******
********************************************
**************************************************************
********************************************
*******************************
**************
******************************************************
**************************************************************************
******************************************************************************
**************************
********************
*******
********
************
*********************************
*****************************************
*******************************************************************************
****************************************************************************
***************************************************************************************
*************************************
**************************
********************
********
*******
***************************************
*******************************************
****************************************************************************
***************************************************************************************
*************************************
*******
******************
*******
*****
****
***
******
*-->

 

 

Thank you!

Hey guys,

 

I am totally confused about the licensing and apps, I read the docs but can't make any sense out of it...

So let's say that for our company we would purchase the Enterprise Edition which has X number of licenses.

So the app I develope could be installed for X users of our company. Now if I want to start installing the app for some or all of our customers (outside of our company) how does that work? Do we need to get additional licenses? Would appreciate if anybody can explain.

 

Another issue im totally confused on is storage. So let's say we install our app for 50 customers (not in our company). I want to store some (temporary) data in a centralized location from all these 50 customers (they can be from different organizations). Is that possible? or will I have to use some outside sotrage and use the Web API?

 

Thanks in advance!

Hey,

 

For some weird reason I am unable to access cookies on first page load. For instance I open an Account, I see no cookies in Apex, but I do see them all with a Javascript. After I redirect to a different page and come back I do see the cookies in Apex and Javascript. That does not make any sense at all to me...

 

I have a debug code that fires on page load before anything else does (it is set as the first Extension):

String cookieStr = '';
for(String k : ApexPages.currentPage().getCookies().keySet()) {
	cookieStr += k + ': ' + ApexPages.currentPage().getCookies().get(k).getValue() + ' || ';
}
System.debug('\n\n\nAssaf1: ' + cookieStr + '\n\n\n\n');
System.debug('\n\n\nAssaf2: ' + ApexPages.currentPage().getUrl() + '\n\n\n\n');

 Here is the output when I open an Account:

Assaf1: 




13:43:27.484 (1484955000)|SYSTEM_METHOD_EXIT|[40]|System.debug(ANY)
13:43:27.484 (1484971000)|SYSTEM_METHOD_ENTRY|[41]|ApexPages.currentPage()
13:43:27.484 (1484977000)|ENTERING_MANAGED_PKG|
13:43:27.485 (1485028000)|SYSTEM_METHOD_EXIT|[41]|ApexPages.currentPage()
13:43:27.485 (1485048000)|SYSTEM_METHOD_ENTRY|[41]|System.PageReference.getUrl()
13:43:27.485 (1485082000)|SYSTEM_METHOD_EXIT|[41]|System.PageReference.getUrl()
13:43:27.485 (1485104000)|SYSTEM_METHOD_ENTRY|[41]|System.debug(ANY)
13:43:27.485 (1485109000)|ENTERING_MANAGED_PKG|
13:43:27.485 (1485116000)|USER_DEBUG|[41]|DEBUG|


Assaf2: /apex/zoominfodev__ZoomAccountProfile?id=001d000000Ctfjl&inline=1


 

Because the cookies are "invalud" (do not exist) I have to forward the user to a Login page where these cookies are recreated and re-saved. Here is how:

String callbackUrl = ApexPages.currentPage().getParameters().get('callbackUrl');
PageReference callbackPage = new PageReference(callbackUrl);
callbackPage.setRedirect(true);
callbackPage.setCookies(ApexPages.currentPage().getCookies().values());

 

I then redirect back to the page I came from (Account page based on the callbackUrl) and then I do see the cookies both under Apex and Javascript. Debug output:

14:22:06.521 (521708000)|USER_DEBUG|[40]|DEBUG|


Assaf1: ziid: mYf-cYbIJ9SMVeMyK1jsCkn1hbjgRseBvXQ5YMGfvTQ4wz67jKUtC3DVoDRZZcNMrUXyDyOFx50T-pBjh0Bpfg &#124;&#124; zisession: dIFsqCKSyDHHQSn0bool0PkIceMmqWnHOzVJdL0KlxWBdBJtm853v3DVoDRZZcNMrUXyDyOFx53u2_RkupKuSu6DxxY_-6kS3rv18myyAzP9uh-aWEhH8Qp451OiK57LLRHFCHYawdkd-OOEoZBojCcvakbGt2L4eRsgTnrpHcM &#124;&#124; 




14:22:06.521 (521727000)|SYSTEM_METHOD_EXIT|[40]|System.debug(ANY)
14:22:06.521 (521744000)|SYSTEM_METHOD_ENTRY|[41]|ApexPages.currentPage()
14:22:06.521 (521750000)|ENTERING_MANAGED_PKG|
14:22:06.521 (521805000)|SYSTEM_METHOD_EXIT|[41]|ApexPages.currentPage()
14:22:06.521 (521827000)|SYSTEM_METHOD_ENTRY|[41]|System.PageReference.getUrl()
14:22:06.521 (521870000)|SYSTEM_METHOD_EXIT|[41]|System.PageReference.getUrl()
14:22:06.521 (521895000)|SYSTEM_METHOD_ENTRY|[41]|System.debug(ANY)
14:22:06.521 (521900000)|ENTERING_MANAGED_PKG|
14:22:06.521 (521907000)|USER_DEBUG|[41]|DEBUG|


Assaf2: /apex/zoominfodev__ZoomAccountProfile?id=001d000000Ctfjl&inline=1%3Fid%3D001d000000Ctfjlinline%3D1




14:22:06.521 (521917000)|SYSTEM_METHOD_EXIT|[41]|System.debug(ANY)

 

 

 

Any ideas why I don't get those cookies when I open the Account the first time arround?

this surely smells like a bug

Hey,

 

I am trying to get the Administrator's email for the given organization from within Apex code. How can I get it?

Is it always gauranteed to be there?

 

It seems to me that there should always be one because when you first register you use a valid real email address which becomes the Admin users for that organization. Later on you can configure sub account that may or may not correlate to real addresses... am I missing something?

 

Thanks!

When I try to upload my managed package (clicking the upload button) I get this error:

 

Cannot Modify Managed Component

 

The component you are attempting to modify is part of a managed package, and cannot be modified.

 

 

 

I have already built beta menaged packages from that code base abd now it doesn't let me build anything at all... any ideas?

 

Thanks

-Assaf

Hi,

 

Does anybody know how I can get all Lead Sources, created in the specific org, from within APEX code?

 

 

Thanks!

Hey,

 

Does anyone know how to export Custom Setting meta data out of Salesforce so that I can commit that into our SVN repoditory with the rest of the SF code?

 

Thanks

Hey,

 

Does anyone know how to export Custom Setting meta data out of Salesforce so that I can commit that into our SVN repoditory with the rest of the SF code?

 

Thanks

-Assaf

Hey,

 

I have a method in my controller that returns PageRerence to itself. However, when I submit a form what it attached to this method I get a page refresh but the URL parameters are lost...

 

Code in the controller method:

public PageReference login() {
	return ApexPages.currentPage();
}

The original url when I open that page for the first time:

https://zoominfodev.na14.visual.force.com/apex/zoominfodev__login?inline=1&callbackUrl=%2Fapex%2Fzoominfodev__ZoomAccountProfile%3Fid%3D001d000000Ctfjl%26inline%3D1%3Fid%3D001d000000Ctfjlinline%3D

 The url after I submit the form (the method login() executed):

https://zoominfodev.na14.visual.force.com/apex/login

 

Same goes for cookies, if I set Cookies on the currentPage() and then return it, I lose them after the refresh.

 

Any ideas what I'm doing wrong?

 

Thank you!

-Assaf

Hey,

 

I keep getting this exception in the VF iframe whenever I try to redirect anywhere...

Content cannot be displayed: Exception common.page.PageInterruptException

 

The code that generates this is:

public PageReference appInit() {
	if(false) return null; // for now
	PageReference pageRef = Page.Login;
	pageRef.setRedirect(true);
	return pageRef;
}

 

This method is called from here (on the VF page)

<apex:page language="en" StandardController="Account" showHeader="true" standardStylesheets="true" sidebar="false" extensions="StartupExtension,ZoomAccountExtension" action="{!appInit}">

 

Is I return null I stay on the same page and I do not get this exception but if I try to redirect no matter where I get this exception.

 

Any ideas? please help!!

 

 

-Assaf

I am trying to write unit test to test a class dealing with cookies and it is complaining that is can't find the variable Page.

 

Code:

PageReference page = new Page.Login;
String zisession = '123';
Integer maxAge = 10000;
Cookie ziSessionCookie = new Cookie(ZoomSessionManager.ZISESSION_COOKIE_NAME, zisession, null, maxAge, false);
page.setCookies(new Cookie[]{ziSessionCookie});
Test.setCurrentPage(page);

 IDE Error:

Save error: Variable does not exist: Page.Login

 

I followed the examples provieded by SalesForce but that clearly does not work out:

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_error_handling.htm

 

I should note that the test code is in a separate unit test class and the Page.Login does work fine in the destination class (ZoomSessionManager.cls), just doesn't exist in the unit test for some reason...

 

 

Any ideas what I might be doing wrong?

Thanks!

 

 

Hey,

 

I have an objects in SF which I would like to update from an external (non SF) location with a periodic HTTP call. So basically, let's say I have a website www.mycoolsite.com and I have an object over the SF app that contains a numeric value X=10. I would like every day to make a single call (behind the scenes) from www.mycoolsite.com to a particular installation of my SF app and deduct 1 from X. How can I achieve this? is this even possible? sync or bulk API?

 

Thank you!

Hey,

 

Is there a facility for temporary storage for the duration of the session or even a page refresh?

 

I want to carry over some data between the frame reloads (in the App) while the user is paging through some lost list of results. Now I can do that with cookies or localStorage/sessionStorage but it would be simpler to use a ready facility if there is one.

 

Any ideas?

 

Thanks

-Assaf

Hey guys,

 

Am I right by concluding that VisualForce pages do not have server side comments?

Something from the Java (JSP pages) world would be <%-- my comment --%> or <% /* some comment */ %>

This is very different from an HTML comment such as <!-- comment --> by the fact that the client still has to download what's ever in it.

 

I have found this old thread:

http://boards.developerforce.com/t5/Visualforce-Development/Visualforce-Server-Side-Comment-Syntax/td-p/98450

 

Which concluded with no asnwer, tried to google but was unsuccessful.

If I use the <!-- --> syntax VisualForce just masks whatever characters are in those comment tags.

This is still a problem because I do not want the client to download junk.

 

Is there a way to make server side comments? If not, then maybe a hack to wrap the comment in some custom apex block element?

 

Below is what I see in the HTML source using the <!-- --> syntax:

 

 <!--
*****************************************
**********************
******************************
***********************************************************************************
**
**********
******
******************************************************************************************
***********************************************************************************
******
********************************************
**************************************************************
********************************************
*******************************
**************
******************************************************
**************************************************************************
******************************************************************************
**************************
********************
*******
********
************
*********************************
*****************************************
*******************************************************************************
****************************************************************************
***************************************************************************************
*************************************
**************************
********************
********
*******
***************************************
*******************************************
****************************************************************************
***************************************************************************************
*************************************
*******
******************
*******
*****
****
***
******
*-->

 

 

Thank you!

Hey guys,

 

I am totally confused about the licensing and apps, I read the docs but can't make any sense out of it...

So let's say that for our company we would purchase the Enterprise Edition which has X number of licenses.

So the app I develope could be installed for X users of our company. Now if I want to start installing the app for some or all of our customers (outside of our company) how does that work? Do we need to get additional licenses? Would appreciate if anybody can explain.

 

Another issue im totally confused on is storage. So let's say we install our app for 50 customers (not in our company). I want to store some (temporary) data in a centralized location from all these 50 customers (they can be from different organizations). Is that possible? or will I have to use some outside sotrage and use the Web API?

 

Thanks in advance!

I am developing a Salesforce Sites application that has a requirement for creating a cookie that will persist if the Browser is closed and reopened.  Using the APEX Cookies class it appears that only session cookies are created.  Is this true?  Is there a recommended work-around. 

 

Thank you!