• ursmahi
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 11
    Replies

HI,

can we use installed package visualforce pages in force.com sites.

I have requirement like, I wanted to display few installed visualforce pages in Sites.can we archive this?

 

Thanks in advance......

 

Best,

Mahi

Hi,

I have requriment like,

we have one LIST<> with having many records(records we be dynamic).if list having more then 200 records i wanted to split into 200 recards for each list and that list we wanted to send to  External system(each time 200 records).and we don`t want to use Bach Apex.

how can i archive this.please give me the solutions..

 

Thanks in Advance,

Best,

Reddy

Hi,

      I want redirect page with contact information to Asp.Net Page. and contact information shoud pass the XML form .

Please tell me How can i Achive this?

my xml is:

<?xml version=""1.0"" encoding=""utf-8""?>

<Envelope>

<OpportunityId>AOPP-00000010</OpportunityId>

<ContactName>Mark</ContactName>

</Envelope>

 

and my end point:

like

http://XXXX/Readdata.aspx

Hi,

      I want redirect page with contact information to Asp.Net Page. and contact information shoud pass the XML form .

Please tell me How can i Achive this?

my xml is:

<?xml version=""1.0"" encoding=""utf-8""?>

<Envelope>

<OpportunityId>AOPP-00000010</OpportunityId>

<ContactName>Mark</ContactName>

</Envelope>

 

and my end point:

like

http://XXXX/Readdata.aspx

 

 

public with sharing class mainreports_class {
list<selectoption> v=new list<selectoption>();
public list<selectoption>getGetvalues() {
v.add(new selectoption('Select','--Select Rport--'));
v.add(new selectoption('FR Performance report based on Month','FR Performance report based on Month'));
v.add(new selectoption('MD Order Report','MD Order Report'));
v.add(new selectoption('Region Performance based on CBF','Region Performance based on CBF'));
v.add(new selectoption('Retailer Performance based on Month','Retailer Performance based on Month'));
return v;
}

public String selectedvalue { get; set; }
public String url{ get; set; }
User usr = [Select id,Alias,lastname,ContactId,Profile.name from User where id=:UserInfo.getUserId() Limit 1];
string prof=usr.Profile.name;


public void rpid() {
if(prof=='CMM East Profile')
{
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=East&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=East&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=East&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=East&isdtp=nv';
}

}else if(prof=='CMM South Profile'){
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=South&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=South&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=South&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=South&isdtp=nv';
}

}else if(prof=='CMM North Profile'){
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=North&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=North&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=North&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=North&isdtp=nv';
}

}
else if(prof=='CMM West Profile')
{
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=West&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=West&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=West&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=West&isdtp=nv';
}

}


}



}

 

my test class:

my test class

@istest(seealldata=true)
public class testmainreports_class
{
public static testmethod void test1()
{



mainreports_class c=new mainreports_class();
c.getGetvalues();

 

c.rpid();

}
}

public class mainreports_class {
list<selectoption> v=new list<selectoption>();
public list<selectoption>getGetvalues() {
v.add(new selectoption('Select','--Select Rport--'));
v.add(new selectoption('FR Performance report based on Month','FR Performance report based on Month'));
v.add(new selectoption('MD Order Report','MD Order Report'));
v.add(new selectoption('Region Performance based on CBF','Region Performance based on CBF'));
v.add(new selectoption('Retailer Performance based on Month','Retailer Performance based on Month'));
return v;
}

public String selectedvalue { get; set; }
public String url{ get; set; }
User usr = [Select id,Alias,lastname,ContactId,Profile.name from User where id=:UserInfo.getUserId() Limit 1];
string prof=usr.Profile.name;


public void rpid() {
if(prof=='CMM East Profile')
{
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=East&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=East&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=East&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=East&isdtp=nv';
}

}else if(prof=='CMM South Profile'){
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=South&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=South&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=South&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=South&isdtp=nv';
}

}else if(prof=='CMM North Profile'){
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=North&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=North&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=North&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=North&isdtp=nv';
}

}
else if(prof=='CMM West Profile')
{
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=West&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=West&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=West&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=West&isdtp=nv';
}

}


}



}

 

my test class

@istest(seealldata=true)
public class testmainreports_class
{
User usr = [Select id,Alias,lastname,ContactId,Profile.name from User where id=:UserInfo.getUserId() Limit 1];
string prof=usr.Profile.name;


public static testmethod void test1()
{



mainreports_class c=new mainreports_class();
c.getGetvalues();

 

c.rpid();

}
}

HI,

can we use installed package visualforce pages in force.com sites.

I have requirement like, I wanted to display few installed visualforce pages in Sites.can we archive this?

 

Thanks in advance......

 

Best,

Mahi

Hi,

      I want redirect page with contact information to Asp.Net Page. and contact information shoud pass the XML form .

Please tell me How can i Achive this?

my xml is:

<?xml version=""1.0"" encoding=""utf-8""?>

<Envelope>

<OpportunityId>AOPP-00000010</OpportunityId>

<ContactName>Mark</ContactName>

</Envelope>

 

and my end point:

like

http://XXXX/Readdata.aspx

public with sharing class mainreports_class {
list<selectoption> v=new list<selectoption>();
public list<selectoption>getGetvalues() {
v.add(new selectoption('Select','--Select Rport--'));
v.add(new selectoption('FR Performance report based on Month','FR Performance report based on Month'));
v.add(new selectoption('MD Order Report','MD Order Report'));
v.add(new selectoption('Region Performance based on CBF','Region Performance based on CBF'));
v.add(new selectoption('Retailer Performance based on Month','Retailer Performance based on Month'));
return v;
}

public String selectedvalue { get; set; }
public String url{ get; set; }
User usr = [Select id,Alias,lastname,ContactId,Profile.name from User where id=:UserInfo.getUserId() Limit 1];
string prof=usr.Profile.name;


public void rpid() {
if(prof=='CMM East Profile')
{
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=East&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=East&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=East&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=East&isdtp=nv';
}

}else if(prof=='CMM South Profile'){
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=South&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=South&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=South&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=South&isdtp=nv';
}

}else if(prof=='CMM North Profile'){
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=North&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=North&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=North&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=North&isdtp=nv';
}

}
else if(prof=='CMM West Profile')
{
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=West&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=West&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=West&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=West&isdtp=nv';
}

}


}



}

 

my test class:

my test class

@istest(seealldata=true)
public class testmainreports_class
{
public static testmethod void test1()
{



mainreports_class c=new mainreports_class();
c.getGetvalues();

 

c.rpid();

}
}

public class mainreports_class {
list<selectoption> v=new list<selectoption>();
public list<selectoption>getGetvalues() {
v.add(new selectoption('Select','--Select Rport--'));
v.add(new selectoption('FR Performance report based on Month','FR Performance report based on Month'));
v.add(new selectoption('MD Order Report','MD Order Report'));
v.add(new selectoption('Region Performance based on CBF','Region Performance based on CBF'));
v.add(new selectoption('Retailer Performance based on Month','Retailer Performance based on Month'));
return v;
}

public String selectedvalue { get; set; }
public String url{ get; set; }
User usr = [Select id,Alias,lastname,ContactId,Profile.name from User where id=:UserInfo.getUserId() Limit 1];
string prof=usr.Profile.name;


public void rpid() {
if(prof=='CMM East Profile')
{
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=East&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=East&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=East&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=East&isdtp=nv';
}

}else if(prof=='CMM South Profile'){
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=South&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=South&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=South&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=South&isdtp=nv';
}

}else if(prof=='CMM North Profile'){
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=North&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=North&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=North&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=North&isdtp=nv';
}

}
else if(prof=='CMM West Profile')
{
if(selectedvalue =='FR Performance report based on Month')
{
url='/00Oa0000007nvM7?pv0=West&isdtp=nv';
}else
if(selectedvalue =='MD Order Report')
{
url='/00Oa0000007nvMb?pv0=West&isdtp=nv';
}else
if(selectedvalue =='Region Performance based on CBF')
{
url='/00Oa0000007nvMS?pv0=West&isdtp=nv';
}else
if(selectedvalue =='Retailer Performance based on Month')
{
url='/00Oa0000007nvMH?pv0=West&isdtp=nv';
}

}


}



}

 

my test class

@istest(seealldata=true)
public class testmainreports_class
{
User usr = [Select id,Alias,lastname,ContactId,Profile.name from User where id=:UserInfo.getUserId() Limit 1];
string prof=usr.Profile.name;


public static testmethod void test1()
{



mainreports_class c=new mainreports_class();
c.getGetvalues();

 

c.rpid();

}
}

Hi all

 

 

 

I have written a controller that have null fields that user has to enter.In this case wheen i write test  case for my controller i am gettin argument cannot be null.plz help me to write test case in this kind of situatins