• Farhad Keywan
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 13
    Replies

Hi,

 

I have created an app on salesforce account and i want to run it on Heroku.

So how can i do this?

 

Thanks,

Soni

Hi,

 

I am developing a appexchange and most of the apex code is based on webservice. There is a apex generated class from wsdl also. So how can i increase my code coverage of test class and minimum 75% code coverage is required to publish app?

 

Thanks,

Soni 

Hi,

 

I want to get data from MySql through java program and call that java program from salesforce.

what steps are required and which type of webservice is suitable in salesforce? 

 

Should i use SOAP or Rest web services?

 

Thanks,

Soni

Hi,

 

I want to get data from MySql through java program and call that java program from salesforce.

what steps are required and which type of webservice is suitable in salesforce? 

 

Should i use SOAP or Rest web services?

 

Thanks,

Soni

 

Hi,

 

I am going to launch an aap on appexchange and i have created a function through javascript code in this to redirect to diffirent page. Page is redirected when callBack function is called. In redirecting i am passing an array in url so how to prevent it from XSS attack. The script of this is given below.

 

<script>

function callback(results, status) {
if (status == google.maps.places.PlacesServiceStatus.OK) {
for (var i = 0; i < results.length; i++) {
var str = results[i].vicinity
var j = str.lastIndexOf(",");
str = str.substring(j + 2, str.length);
if (array1 == null) array1 = str + ';';
else array1 = array1 + str + ';';
}
array1 = array1 + geoip_city();
}


var url = '/apex/searcheventvf2?city=' + array1;
window.open(url, '_self', 'width=400,height=200');
}

</script>

 

I have gone through some links to prevent it from XSS attack but could not understand. Please help me on this.

Hi,

 

I am going to launch an app on appexchange  which contains javascript code and i want to prevent it from XSS Attack. In my code i am getting a list of String from Apex Class and inserting it in Javascript array and i am also harcoding some values like 'My Local' etc. Some lines of this script is given below.

 

<script type="text/javascript">

STATE = new Array();
CODE = new Array();
STATE[0] = "ALABAMA";
CODE[0] = "AL";

carray = new Array();
Keywordarray = new Array();
carray.push('My Local ');
var ci = geoip_city() + ', ' + geoip_region() + ' ';
carray.push(ci);
carray.push('All US ');
</script>
<apex:repeat value="{!KeywordList}" var="req">
<script type="text/javascript">
Keywordarray.push('{!req}');
</script>
</apex:repeat>

 

So what should i do to prevent it from XSS attack. 

I have gone through some links: 

https://www.owasp.org/index.php/XSS

https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet

http://wiki.developerforce.com/images/9/9b/XSS_Protection_S-controls.pdf

 

but could not understand. Please Help.

 

Thanks,

Soni

Hi,

 

I want to build an automatic File upload functionality in Salesforce.File will be stored in some directory in my local system. Salesforce code should read that File and process accordingly.

 

Is this possible in Salesforce ? Please help.

 

 

 

In webservice i am taking data from server and for this i am using soql  but Soql is returning only 250 records.

Is this a new limitation of SOQL?
and  what is the workaround for such a problem ?

Hi,

 

I am developing a appexchange and most of the apex code is based on webservice. There is a apex generated class from wsdl also. So how can i increase my code coverage of test class and minimum 75% code coverage is required to publish app?

 

Thanks,

Soni 

Hi,

 

I want to get data from MySql through java program and call that java program from salesforce.

what steps are required and which type of webservice is suitable in salesforce? 

 

Should i use SOAP or Rest web services?

 

Thanks,

Soni

 

Hi all,

 

I have a requirement where we have data in mysql database and apex should be coded in such a way that it  gets data from mysql and display on visualforce page. I donot have any idea on how to integrate Salesforce with mysql database. 

 

Please help.

 

Thanks,

Pragati

 

Hi,

 

I am going to launch an aap on appexchange and i have created a function through javascript code in this to redirect to diffirent page. Page is redirected when callBack function is called. In redirecting i am passing an array in url so how to prevent it from XSS attack. The script of this is given below.

 

<script>

function callback(results, status) {
if (status == google.maps.places.PlacesServiceStatus.OK) {
for (var i = 0; i < results.length; i++) {
var str = results[i].vicinity
var j = str.lastIndexOf(",");
str = str.substring(j + 2, str.length);
if (array1 == null) array1 = str + ';';
else array1 = array1 + str + ';';
}
array1 = array1 + geoip_city();
}


var url = '/apex/searcheventvf2?city=' + array1;
window.open(url, '_self', 'width=400,height=200');
}

</script>

 

I have gone through some links to prevent it from XSS attack but could not understand. Please help me on this.

Hi,

 

I want to build an automatic File upload functionality in Salesforce.File will be stored in some directory in my local system. Salesforce code should read that File and process accordingly.

 

Is this possible in Salesforce ? Please help.