• Dowithforce
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 40
    Replies

Edit: probably this request does not make sense as more than 1000 items shouldn't be displayed on on page - instead i should use query more and display a "next 1000 items" link on the page

 

hi guys, i need a hint for displaying the results of a query with more than 1000 items. i browse them by doing a for loop but haven't found any example to bind them to a vf-page so far. i wonder if it actually can be done by PageReference Method (as i did with lists returned by queries with less results).

 

any example for such vfpage / class i missed?

 

 

 

 

 

 

Message Edited by jobo on 03-11-2009 06:39 AM
  • March 11, 2009
  • Like
  • 0

Hi all,

 

I need to hide standard save and cancel button form custom page layout, is it possible if yes then how to do?

 

Can we write some javascript code in custom page layout?

 

 

Thanks

Hello All,

 

For this case I have found many post but still problem was not fully solved. So here I am starting new fresh

thread for discussion.

 

As so many developers are working to convert Scontrol to VF, facing common problem for sforce.connection.remoteFunction. Following code is working fine in scontrol for all browsers, but not for VF. Only FF works for VF.

 

 

 

I have found solution acceptance on forum to add code but it is not working in my case?

 

sforce.connection.sessionId = "";

 

 

sforce.connection.remoteFunction({
url : "http://domainname/page",
mimeType: "text/plain",
requestHeaders:{"Content-Type":"application/x-www-form-urlencoded" },
method:"POST",
requestData:"checkvalue="+escape(checkvalue)+"&query="+escape(query)+"&strtodisplay="+escape(strtodisplay)+"&user_name="+escape(username),
async:"true",
onFailure:function(response) { alert(response); },
onSuccess:function(response) { alert(response)}
});

 

 What is the reason?

 

 Google chrome giving error "401 Unauthorized"  error.

 

 Reference link: http://www.christopherstoll.org/2009/04/firefox-beats-chrome-in-enterprise.html

 

 What is the soltuion to code work for all browsers?

 

 

 

 Thanks,

Hello All,

 

I have created Manage package for my application in my salesforcedeveloper account. After installation of package in another developersalesforce account. On custom button click I have to redirect tovisualforce page, but I am getting "Page not found" error.

As per forum I have to update namespace__VF page name but I can'tedit my package now. I have read a lot in documents and I came to knowwe can not delete manage package.(?)

Can you please guide me how I can edit name of my visualforce pages those are manage package componet? 

 

Thanks in advance. 

Hi all,

 

 

Here once again posting.

 

In API say PHP salesforce API we can handle huge data with querymore, querylocator. I have implemented. 

 

In Apex I have implemented standardsetController, paging. it is working fine for records upto 10000. I know its LIMIT and WELL KNOW ISSUE (as everyone taking about this ONLY).

 

I know there are more than 100000 records will return by query, I have to fetch and display with pagination. My concern is fetch and display.

 

 

 

 

Q. How to handle query records more than 100000 in apex?

 

Can anyone please answer this question so I can implement it?

 

 

Thanks 

 

Message Edited by Dowithforce on 10-29-2009 02:27 AM
Message Edited by Dowithforce on 10-29-2009 02:43 AM
Message Edited by Dowithforce on 10-29-2009 02:44 AM

Hello All,

 

As new Scontrol is no longer supported in development.

Is there any risk to use of connection.js and  apex.js in visualforce pages?

 

Just want an expert thought and discussion on this.

 

 

Thanks

Hello All,

 

As new Scontrol is no longer supported in development.

Is there any risk to use of connection.js and  apex.js in visualforce pages?

 

Just want an expert thought and discussion on this.

 

 

Thanks

 

Hello All,

 

As new Scontrol is no longer supported in development.

Is there any risk to use of connection.js and  apex.js in visualforce pages?

 

Just want an expert thought and discussion on this.

 

 

Thanks

 

Hello All,

 

I want to do a Radio button and selectlist combination like as follows:

 

 

(0) Contact missing email selectlist

 

(0) Contact missing email selectlist 

 

(0) Contact missing email selectlist

 

(0) Contact missing email selectlist 

 

I have able to do  radiobutton vertical with layout attribute. How I can make select list align with each radio

button?

 

 

Thanks 

 

 

Hello All,

 

How do I enable  multi-currency support for my developer account?

 

any idea?

 

 

Thanks

Message Edited by Dowithforce on 10-20-2009 08:29 AM

Hello all,

 

Is there any guideline to convert S-control to Visualforce page?

 

 

 

 

Can you please tell me?

 

 

Thanks,

 

 

Hello all,

 

What will be the Security audit process for submitting application to appexchange

 

for my salesforce application? Where I will get all information related to this?

 

 

Thanks

 

 

Hello all, I am getting following error for my PHP API call onwards 1 P.M. (IST)

 

SERVER_UNAVAILABLE: server temporarily unavailable

 

 

Is anybody having the same problem out there?

 

 

Thanks

Hello All,

 

I have to create a dynamic query in apex class method on the basis of its arguments,

 

For example (in short):

 

WebService static String gottheResult (String query)
{

for (Account a : [+query+] )
{
str+= a.id+'||'+a.name+'~||~';
}

 

  }

 

I am getting error as follows:

 

Compile Error: expecting right square bracket, found '+' at line

 

Here is the reference code:

 

String s = 'Acme';
for (Account a : [select id, name from account
where name like :(s+'%')]) {
// Your code
}

 

 in above code s is passed , I think it is possible after where and : combination, please clear on this.

 

 

Can I used argument directly as above, or something else I need to do?

 

Thanks in advance.

 

 

 

 

Hello All,

 

 

I am calling remote server file and write a logic on remote and get response back to Salesforce

using, set content type Content-Type as application/vnd.ms-excel as follows

 

 

function cratecsv()
{
sforce.connection.remoteFunction( {
url :'http://xxxxxxxx',
requestHeaders: {"Content-Type":"application/vnd.ms-excel"},
method: "POST",
requestData: "para=csv",
cache : true,
async: true,
onFailure : function(response) { alert(response); },
onSuccess : function(response) { alert('Success'); alert(response); }
});

 

But I am not getting standard popup to save file as csv/xls, it showing string comma seprated as a response but csv not genrated.

 

I also tried by creating CSV file on remote server and removed content-type from above function, still mot working.

 

Please help me out.

 

Thanks

Message Edited by Dowithforce on 07-29-2009 04:28 AM

Hello All,

 

Is it possible to create csv file using Ajax toolkit for records we are getting by sforce.connection.query?

 

I am sending records from S-control  to my working site and I am getting no response for more records is there any way to get response from remote site, I added salesforce client certificarte as well. Please let me know

if anyone know about this issues.

 

 

Thanks in advance.

Hello All,

 

 I need to fetch all fields of contact object and form a list box like as follows

 

 

  • First Name
  • Last Name
  • Email
  • Phone 
 
by choosing a item from listbox need to form SOQL query with choosen field name for e.g. If I choose 
 
Email field then my query will be 
 
 
data = [Select Phone,Name,email,Title from contact where  Email = NULL   ]  ;  
return data; 
 
I need to add "Email"  field as dynamic value. Here I am getting value of listbox item in controller method, but I am not able to concate string in SOQL. 
 
Can anyone help me? for following task
 
1. Create listbox with fetch fields from Contact object?
2. Create a dynamic field name value in SOQL?
 
 
Thanks 
 
Dowithforce

 

Message Edited by Dowithforce on 03-17-2009 03:09 AM

Hello All,

 

If I will develop application using PHP-API only and code will be on my server,

can I add this application into salesforce appexchange? or it is strictly bound with salesforce palform?

 

 

thanks in advance

Dowithforce 

Hello All,

 

For this case I have found many post but still problem was not fully solved. So here I am starting new fresh

thread for discussion.

 

As so many developers are working to convert Scontrol to VF, facing common problem for sforce.connection.remoteFunction. Following code is working fine in scontrol for all browsers, but not for VF. Only FF works for VF.

 

 

 

I have found solution acceptance on forum to add code but it is not working in my case?

 

sforce.connection.sessionId = "";

 

 

sforce.connection.remoteFunction({
url : "http://domainname/page",
mimeType: "text/plain",
requestHeaders:{"Content-Type":"application/x-www-form-urlencoded" },
method:"POST",
requestData:"checkvalue="+escape(checkvalue)+"&query="+escape(query)+"&strtodisplay="+escape(strtodisplay)+"&user_name="+escape(username),
async:"true",
onFailure:function(response) { alert(response); },
onSuccess:function(response) { alert(response)}
});

 

 What is the reason?

 

 Google chrome giving error "401 Unauthorized"  error.

 

 Reference link: http://www.christopherstoll.org/2009/04/firefox-beats-chrome-in-enterprise.html

 

 What is the soltuion to code work for all browsers?

 

 

 

 Thanks,

We have a new package on the AppExchange that is Managed-Released status.  Let's call it release 1.0.

 

Of course, we plan on enhancing and re-releasing this package over time.  What is the best practice for creating a test release for internal QA to install and test before releasing subsequent versions to our customers?  Assume that we will eventually release Managed-Release 2.0 to our customers.

 

Can you create a Managed-Beta version for QA after you have a Managed-Released version on the AppExchange?  This second QA release would of course have to be modified often during QA as bugs were fixed, and then finally "converted" to a Managed-Released 2.0 status. 

 

If you cannot do this, what is the best practice for the Released->QA->Released->QA->Released... cycle??

 

Thanks!


Dave

 

  • November 11, 2009
  • Like
  • 0

Hello All,

 

I have created Manage package for my application in my salesforcedeveloper account. After installation of package in another developersalesforce account. On custom button click I have to redirect tovisualforce page, but I am getting "Page not found" error.

As per forum I have to update namespace__VF page name but I can'tedit my package now. I have read a lot in documents and I came to knowwe can not delete manage package.(?)

Can you please guide me how I can edit name of my visualforce pages those are manage package componet? 

 

Thanks in advance. 

Hi all,

 

 

Here once again posting.

 

In API say PHP salesforce API we can handle huge data with querymore, querylocator. I have implemented. 

 

In Apex I have implemented standardsetController, paging. it is working fine for records upto 10000. I know its LIMIT and WELL KNOW ISSUE (as everyone taking about this ONLY).

 

I know there are more than 100000 records will return by query, I have to fetch and display with pagination. My concern is fetch and display.

 

 

 

 

Q. How to handle query records more than 100000 in apex?

 

Can anyone please answer this question so I can implement it?

 

 

Thanks 

 

Message Edited by Dowithforce on 10-29-2009 02:27 AM
Message Edited by Dowithforce on 10-29-2009 02:43 AM
Message Edited by Dowithforce on 10-29-2009 02:44 AM

Hello All,

 

As new Scontrol is no longer supported in development.

Is there any risk to use of connection.js and  apex.js in visualforce pages?

 

Just want an expert thought and discussion on this.

 

 

Thanks

 

Hello All,

 

I want to do a Radio button and selectlist combination like as follows:

 

 

(0) Contact missing email selectlist

 

(0) Contact missing email selectlist 

 

(0) Contact missing email selectlist

 

(0) Contact missing email selectlist 

 

I have able to do  radiobutton vertical with layout attribute. How I can make select list align with each radio

button?

 

 

Thanks 

 

 

Hello all,

 

Is there any guideline to convert S-control to Visualforce page?

 

 

 

 

Can you please tell me?

 

 

Thanks,

 

 

Hello All,

 

 

I am calling remote server file and write a logic on remote and get response back to Salesforce

using, set content type Content-Type as application/vnd.ms-excel as follows

 

 

function cratecsv()
{
sforce.connection.remoteFunction( {
url :'http://xxxxxxxx',
requestHeaders: {"Content-Type":"application/vnd.ms-excel"},
method: "POST",
requestData: "para=csv",
cache : true,
async: true,
onFailure : function(response) { alert(response); },
onSuccess : function(response) { alert('Success'); alert(response); }
});

 

But I am not getting standard popup to save file as csv/xls, it showing string comma seprated as a response but csv not genrated.

 

I also tried by creating CSV file on remote server and removed content-type from above function, still mot working.

 

Please help me out.

 

Thanks

Message Edited by Dowithforce on 07-29-2009 04:28 AM

I have enabled some pages at "enable visualforce page access" from the public access settings, but i get "page not found" errors every time i try to load one.

The pages are part of a managed package, the site are active.

 

Thanks in advance

Brx

 

  • May 25, 2009
  • Like
  • 0

I made managed package and released it privately.

I have to change something in the package but I can't.

 

I want to delete the uploaded package first but I cannot find the way to delete or deprecate (the deprecate button is grey..) it.

 

I appreciate your help in advance.

 

thanks... 

1. Is there a newer method of calling out to web services from javascript other than through remoteFunction()?

2. During an attempt to access a web service being hosted outside Salesforce by means of remoteFunction(), I'm seeing a confusing parameter being referenced as the culprit of an error:

 

 

Internal Server Error: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>Server was unable to read request. ---&gt; There is an error in XML document (46, 27). ---&gt; Value cannot be null. Parameter name: dest</faultstring> <detail /> </soap:Fault> </soap:Body> </soap:Envelope>

 

 Neither in the SOAP message I'm constructing to communicate with the web service nor in expected parameters outlined in the WSDL for my web service is there a parameter named "dest." Here's an example of an outgoing SOAP message this error applies to:

 

 

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <Send xmlns="http://my.webservices.com/"> <token>97ed86a3970b48e3887b6978c600f048</token> <meetingId>Meet-002104</meetingId> <toEmailAddresses> </toEmailAddresses> <bccEmailAddresses> </bccEmailAddresses> <participants> <EmailParticipants> <EmailAddress>cgarrett@p4healthcare.com</EmailAddress> <ParticipantDetails> <ParticipantInfo> <Id>a0YS000000065WwMAI</Id> <Name>Chris1 Garrett</Name> <Type>Physician</Type> </ParticipantInfo> <ParticipantInfo> <Id>a0YS000000065WxMAI</Id> <Name>Chris2 Garrett</Name> <Type>Physician</Type> </ParticipantInfo> <ParticipantInfo> <Id>a0YS000000065X1MAI</Id> <Name>Chris3 Garrett</Name> <Type>Physician</Type> </ParticipantInfo> <ParticipantInfo> <Id>a0YS000000065X6MAI</Id> <Name>Chris4 Garrett</Name> <Type>Physician</Type> </ParticipantInfo> <ParticipantInfo> <Id>a0YS000000065X7MAI</Id> <Name>Chris5 Garrett</Name> <Type>Physician</Type> </ParticipantInfo> <ParticipantInfo> <Id>a0YS000000065X8MAI</Id> <Name>Chris6 Garrett</Name> <Type>Physician</Type> </ParticipantInfo> </ParticipantDetails> </EmailParticipants> </participants> <fromEmailAddress>cgarrett@p4healthcare.com</fromEmailAddress> <subject>this is a test; do not reply</subject> <body>test message</body> <useHtml>true</useHtml> </Send> </soap:Body> </soap:Envelope>

 

 Notice the supposed null parameter mentioned in the error message is on line 46, character 27 of this SOAP message. That doesn't quite make sense, as that particular position references the '>' character of "</ParticipantDetails>".

 

Any suggestions?

 

 

  • February 17, 2009
  • Like
  • 0
I'm getting 'Authentication Required' alert when I try to run following S-Control code:

------------------------------------------------------
sforce.connection.remoteFunction({
url : URI,
onSuccess : function(response) {
document.getElementById("result").value = response.textContent;
},
onFailure : function(response) {
document.getElementById("result").value = "Failed " + response;
}
});
}

Output: Failed Error 401: Error reported: 401

------------------------------------------------------
Alert Details:
------------------------------------------------------
Authentication Required

A user name and password are being requested by https://na6.salesforce.com. The site says:
"api.dummy.com"

User Name
Password

OK Cancel
------------------------------------------------------

I've tried following code with Authorization header but that did not work either.

sforce.connection.remoteFunction( {
url : URI,
mimeType: "text/plain",
requestHeaders: {
"Content-Type":"application/x-www-form-urlencoded",
"Authorization" : 'user-pass= ' + username + ':' + pass
},
method: "GET",
async: false, // we really need the auth token to proceed, so wait
onSuccess : function(response) {
document.getElementById("result").value = response.textContent;
},
onFailure : function(response) {
document.getElementById("result").value = "Failed " + response;
}
});
}

------------------------------------------------------

Please let me know how can I avoid this username/password alert.
I can use the listViews tag to show the list views in a VF page

Is there any way of getting the records similar to GetRecordIds?

How would I link a VF button to these records?