• How to convert S-Control to VF
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 23
    Questions
  • 4
    Replies

Hi,

 

Pls tell why Governor limits are in salesforce.

I know Governor limits are run time limits enforced by the Apex run time engine & there are lots of Governor limits are in salesforc.

 

Question is what is the purpose of governor limits and why governor limit comes into the picture in SFDC.

 

Thanks & Regards,

SS

 

Hi

 

I have HTML pages, I have to convert into VisualForce Pages.

Pls help me how to convert these pages in VFP. I think one opetion is using Content Management System Force?

 

Pls help me.

 

Regards,

SS

 

 

Hi,

I have HTML files, I have to convert into VisualForce pages...Pls tell me how to convert so that it will work properly.

 

One option is using CMSF, but dont know how to do?

Pls help me out.

 

Regards,

SS

 

Hi,

 

Pls tell me how to setup Roles & Profiles in the organization.

 

I have Objects/Permission     (Object Name & Fields) and in User Profile I have Indirect Marketing, Channel Marketing, Business Marketing, Sales Team & Administrator.

 

Now how to setup these thing in Roles & Profiles.

 

Thanks,

SS

Hi,

 

I have develpper Edition, now I have to migrate all the data & meta data from Developer Edition to Sandbox.

We can do it throught Eclipse plugin & through Ant.

 

Pls tell me the steps how to migrate through Eclipse from Developer edition to Sandbox.

 

Thanks,

 

 

Regards,

SS

Hi,

 

I have HTML pages, I have to integrate HTML pages with salesforce using content management system Force (CMSF). I have installed CMSF from appexchange to my sandbox.

Pls help me out how to integrate HTML pages in salesforce using CMSF.

 

Thanks,

 

SS

 

Hi,

 

I have HTML pages, I have to integrate HTML pages with salesforce using content management system Force (CMSF). I have installed CMSF from appexchange to my sandbox.

Pls help me out how to integrate HTML pages in salesforce using CMSF.

 

Thanks,

 

SS

 

Hi,

 

How to deploy data and meta data from Developer Edition to Sandbox.

 

Thanks

Hi,

 

I have free developer account. Now I have to transfer all the Data and MetaData from Developer account to Sandbox.

 

Pls tell me how to transfer every thing to sandbox.

 

Thanks,

Regards,

SS

I have to create New Account Page Layout to have the following fields – Name, Description, Type, Industry, Annual Revenue, Employees, Billing Address, Phone, Shipping Address & have relevant related list

 

Still I am not able to get then solution.

 

1. I have created a Record type.

2.Created new page layout

3. clicked on Page Layout Assignment button >  Edit Assignment Button > Select PageLayout to USe----selected newly page layout which I have created > select Profile & > save

 

Now what to do....how would I add new fields & then how I would see only those fields in accounr object.

 

Where can we uninstall third-party applications which we have setup from AppExchange? 

 

Thanks,

Sunil Soni

Hi,

 

I have to create New Account Page Layout to have the following fields – Name, Description, Type, Industry, Annual Revenue, Employees, Billing Address, Phone, Shipping Address & have relevant related lists –  (Please mark fields – Name & Industry as Mandatory).

 

I havw created new page layout in account & new record types as well. now how i would create above fields in New Account Page Layout.

 

Thanks

Create Campaigns based  on the Type of campaigns. How do we set up the Budgeted Cost & Actual Cost for a campaign? 

Hi,

 

Please explain me what are the major difference between Salesforce.com and Force.com.

What we can do using Salesforce.com & What we can't do using salesforce.com & same thing woth Force.com what we can do and what we can't do.

 

Thanks.

 

Regards,

SS

Pls explain me what is Recursive Trigger & how to avoid Recursive problem?

Please explain me ...what is virtualization in cloud computing?

How different is cloud computing from virtualization??

 

How many Parent objects can have for there child object. ( how many parent objects we can create for there child object in salesforce.com )

 

 

Hi,

 

I have written trigger, for deployment in production I need to write test class then I have to create package to deploy in production. I know how to create package but don't know how to how to write test class (unit test class in apex)...

 

Please help me to write test class( how to write & what is the purpose to write test class).

 

Regard,

Soni

Hi,

 I have VFP,whn im trying to save the page, i am geeting error....Error: Unknown property 'AccountStandardController.account..pls help me out to solve this issue...below is my VFP

 

<apex:page standardController="Account">

  <html ><head>

<script src="/soap/ajax/8.0/connection.js" type="text/javascript">

</script>

<script type="text/javascript">

</script>

<script type="text/javascript">

function initialize()

{

try

{

var AccountID = "{!Account.Id}";

var AccountBU = "{!Account.Business_Unit__c}";

//var AccountName = "{!Account.Name}";

var AccountName;

strQuery = "Select Id, Name FROM Account where Id='" + AccountID + "'";

Results12 = sforce.connection.query(strQuery);

if(Results12.size > 0)

{  var records1 = Results12.getArray("records");

AccountName = records1[0].get("Name");

}

document.all("tdMsg").innerText = "Initialising. Please wait ...";

document.all("SelAccBU").value = AccountBU;

document.all("nAccName").value = AccountName;

setTimeout("LoadAccountOpportunities()", 100); }

catch(e)

{

alert("Script Initialization Failed. Please try again.");

redirectToPage(AccountID);

closeWindow();  }}

function LoadAccountOpportunities()

{

setPowerUserSessionID();

var AccountID = "{!Account.Id}";

strQuery = "select Id,Name,Business_Unit__c,Region__c,StageName from Opportunity where AccountId ='" + AccountID + "'";

sforce.connection.query(strQuery,

{

onSuccess: showOpportunityList,

onFailure: loadOpportunitiesFailure  } );

document.all("tdMsg").innerText = "Loading Opportunities.Please wait ...";

}

function showOpportunityList(qryResults)

{

var Id,Name,BusinessUnit,Region,Stage,OppOwnerId;

try

{

if(qryResults.size > 0)

{

document.all("tdMsg").innerText = "Loading Opportunities. Please wait ......";

document.all("tblAccOpps").style.visibility = "visible";

document.all("tblAccOpps").style.display = "block";

var records = qryResults.getArray("records");

 

for(var j=0; j< records.length; j++)

{

Id = records[j].get("Id");

Name = records[j].get("Name");

BusinessUnit = records[j].get("Business_Unit__c");

Region = records[j].get("Region__c");

Stage = records[j].get("StageName");

addDBRow(Id,Name,BusinessUnit,Region,Stage,j+1);

}

}

document.all("tdMsg").innerText = "";

}

catch(e)

{

alert(e + ": " + e.message);

}

}

function loadOpportunitiesFailure(qryResults)

{

alert("Opportunities cannot be loaded. \nTechnical Detail: \nName: " + qryResults.name + "\nMessage: " + qryResults);

}

 

function addDBRow(Id,Name,BusinessUnit,Region,Stage,index)

{

//--------------------------------//

}

 

var AccountName;

var AccountID = "{!Account.Id}";

//var AccountName = "{!Account.Name}";

//Z.A for Special Characters//

strQuery22 = "Select Id, Name FROM Account where Id='" + AccountID + "'";

Results22 = sforce.connection.query(strQuery22);

 

if(Results22.size > 0)

{

var records22 = Results22.getArray("records");

AccountName = records22[0].get("Name");

}

//Special Characters//

 

var AccountBU = "{!Account.Business_Unit__c}";

var AccOwnerID = "{!Account.OwnerId}";

var LUserID = "{!User.Id}";

var NewOwnerID="";

var NewAccID="";

var OppSelected = false;

 

function AccountClone()

{

try

{

//setPowerUserSessionID();

var AccName = document.all("nAccName").value;

var AccBU = document.all("SelAccBU").value;

 

document.all("tdMsg").innerText = "";

 

if(AccName == AccountName && AccBU == AccountBU)

{

//-----------------------------//

}

 

function createAccount(qryResults)

{

try

{

var AccBU = document.all("SelAccBU").value;

var AccName = document.all("nAccName").value;

AccName = AccName.replace(/&/g, "&amp;");

 

if( qryResults.size > 0 )

{

 

var records = qryResults.getArray("records");

 

var objAccount = new sforce.SObject("Account");

objAccount = records[0];

 

var AccIndustry = records[0].get("Industry");

if(AccIndustry == null)

AccIndustry = "";

AccIndustry = AccIndustry.replace(/&/g, "&amp;");

 

var AccDescription = records[0].get("Description");

if(AccDescription == null)

AccDescription = "";

AccDescription = AccDescription.replace(/&/g, "&amp;");

 

var AccBillStreet = records[0].get("BillingStreet");

if(AccBillStreet == null)

AccBillStreet = "";

AccBillStreet = AccBillStreet.replace(/&/g, "&amp;");

 

var AccWebsite = records[0].get("Website");

if(AccWebsite == null)

AccWebsite = "";

AccWebsite = AccWebsite.replace(/&/g, "&amp;");

 

var EstimatedRevenue = records[0].get("Estimated_Revenue__c");

//if(EstimatedRevenue == null)

// EstimatedRevenue = "";

//EstimatedRevenue = EstimatedRevenue.replace(/&/g, "&amp;");

 

var Search_Platform = records[0].get("Search_Platform__c");

if(Search_Platform == null)

Search_Platform = "";

 

var Service = records[0].get("Service__c");

if(Service == null)

Service = "";

 

}

 

function createFailure(objResults)

{

alert("Contact Cloning. \nTechnical Detail: \nName: " + objResults.name + "\nMessage: " + objResults);

redirectToPage(AccountID);

}

 

function ContactClone(objResults)

{

</html>

</apex:page>

Hi,

   I have VFP,when i try to save, i am getting error--"Error: Unknown property 'AccountStandardController.account"...pls help me out to solve this issue......below is my Visualforce Page

 

<apex:page standardController="Account">
  <html >
<head>
<title>Clone Account</title>

<script language="JavaScript1.2" src="/soap/ajax/8.0/connection.js" type="text/javascript">
</script>
<script language="JavaScript1.2" type="text/javascript">

</script>
<script language="JavaScript1.2" type="text/javascript">

</script>
<script language="JavaScript1.2" type="text/javascript">
function initialize()
{
try
{
var AccountID = "{!Account.Id}";
var AccountBU = "{!Account.Business_Unit__c}";
//var AccountName = "{!Account.Name}";
var AccountName;
//Z.A for Special Characters//
strQuery = "Select Id, Name FROM Account where Id='" + AccountID + "'";
Results12 = sforce.connection.query(strQuery);

if(Results12.size > 0)
{
var records1 = Results12.getArray("records");
AccountName = records1[0].get("Name");
}
//Special Characters//

document.all("tdMsg").innerText = "Initialising. Please wait ...";

document.all("SelAccBU").value = AccountBU;
document.all("nAccName").value = AccountName;

setTimeout("LoadAccountOpportunities()", 100);


}
catch(e)
{
alert("Script Initialization Failed. Please try again.");
redirectToPage(AccountID);
closeWindow();
}
}


function LoadAccountOpportunities()
{
setPowerUserSessionID();
var AccountID = "{!Account.Id}";

strQuery = "select Id,Name,Business_Unit__c,Region__c,StageName from Opportunity where AccountId ='" + AccountID + "'";
sforce.connection.query(strQuery,
{
onSuccess: showOpportunityList,
onFailure: loadOpportunitiesFailure

}
);
document.all("tdMsg").innerText = "Loading Opportunities.Please wait ...";
}

function showOpportunityList(qryResults)
{
var Id,Name,BusinessUnit,Region,Stage,OppOwnerId;
try
{
if(qryResults.size > 0)
{
);

for(var j=0; j< records.length; j++)
{
Id = records[j].get("Id");
Name = records[j].get("Name");
BusinessUnit = records[j].get("Business_Unit__c");
Region = records[j].get("Region__c");
Stage = records[j].get("StageName");


addDBRow(Id,Name,BusinessUnit,Region,Stage,j+1);
}
}
document.all("tdMsg").innerText = "";
}
catch(e)
{
alert(e + ": " + e.message);
}
}

function loadOpportunitiesFailure(qryResults)
{
alert("Opportunities cannot be loaded. \nTechnical Detail: \nName: " + qryResults.name + "\nMessage: " + qryResults);
}

function addDBRow(Id,Name,BusinessUnit,Region,Stage,index)
{
Row = document.all("tblOppList").insertRow();
Row.Class = "OppTableRow";
if(index%2==0)
Row.bgColor="#FCFCFC";
Row.id = "tr"+ index;

//--------//

var AccountName;
var AccountID = "{!Account.Id}";
//var AccountName = "{!Account.Name}";
//Z.A for Special Characters//
strQuery22 = "Select Id, Name FROM Account where Id='" + AccountID + "'";
Results22 = sforce.connection.query(strQuery22);

if(Results22.size > 0)
{
var records22 = Results22.getArray("records");
AccountName = records22[0].get("Name");
}
//Special Characters//

var AccountBU = "{!Account.Business_Unit__c}";
var AccOwnerID = "{!Account.OwnerId}";
var LUserID = "{!User.Id}";
var NewOwnerID="";
var NewAccID="";
var OppSelected = false;

function AccountClone()
{
try
{
//setPowerUserSessionID();
var AccName = document.all("nAccName").value;
var AccBU = document.all("SelAccBU").value;

document.all("tdMsg").innerText = "";

if(AccName == AccountName && AccBU == AccountBU)
{
//-----//
return;
}
if(AccBU == "Publisher" && OppSelected == true)
{
//------//
return;
}
if(AccBU != AccountBU && OppSelected == true)
{
//--------//
return;
}

var strQuery1 = "Select IsActive FROM User WHERE Id = '"+AccOwnerID+"' ";
var qryResults1 = sforce.connection.query(strQuery1);

var IsAccOwnerActive;
if(qryResults1.size>0)
{ var records = qryResults1.getArray("records");
IsAccOwnerActive = records[0].get("IsActive");
}

if(IsAccOwnerActive==true)
{
NewOwnerID = AccOwnerID;
}
else
{
NewOwnerID = LUserID;
}

//Z.A for Special Character
AccName = AccName.replace(/'/g, "&#39;");

var strQuery = "Select Id FROM Account WHERE Name = '"+AccName+"' AND Business_Unit__c = '"+AccBU+"'";
var qryResults = sforce.connection.query(strQuery);
var ExistAccID = '';

if(qryResults.size>0)
{ var records = qryResults.getArray("records");
ExistAccID = records[0].get("Id");
}

if(ExistAccID!='')
{
//------------//
i
</table>
</td>
</tr>
</table>
</body>

</html>
</apex:page>

Hi,

 

Pls tell me how to setup Roles & Profiles in the organization.

 

I have Objects/Permission     (Object Name & Fields) and in User Profile I have Indirect Marketing, Channel Marketing, Business Marketing, Sales Team & Administrator.

 

Now how to setup these thing in Roles & Profiles.

 

Thanks,

SS

I have to create New Account Page Layout to have the following fields – Name, Description, Type, Industry, Annual Revenue, Employees, Billing Address, Phone, Shipping Address & have relevant related list

 

Still I am not able to get then solution.

 

1. I have created a Record type.

2.Created new page layout

3. clicked on Page Layout Assignment button >  Edit Assignment Button > Select PageLayout to USe----selected newly page layout which I have created > select Profile & > save

 

Now what to do....how would I add new fields & then how I would see only those fields in accounr object.

 

Hi,

 

I have to create New Account Page Layout to have the following fields – Name, Description, Type, Industry, Annual Revenue, Employees, Billing Address, Phone, Shipping Address & have relevant related lists –  (Please mark fields – Name & Industry as Mandatory).

 

I havw created new page layout in account & new record types as well. now how i would create above fields in New Account Page Layout.

 

Thanks

Hi,

   I have S-control...i have to convert this s-control into visual force page..

i have converted usning

<apex:page>

scontrol
</apex:page>     ways..
now i am getting error
Error: The element type "input" must be terminated by the matching end-tag "</input>"
Pls help me out how to remove this error
Regards,
Sunil