• Nikhil
  • NEWBIE
  • 5 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 38
    Replies

Hello,

 

I have created a visual force page with a print button. When I press the print button, I receive this error below. Any ideas on what I'm doing wrong?

 

Please let me know.

 

Thanks!

Good morning.

 

I need to implement a solution in my company but do not know if you can perform this task.

I need to delete a value in ALL the opportunities created inside my base. But this taskmust be performed only ONCE.

This can be done?

If yes. How can I make it?

I appreciate the answers.

 

Customer Portal URL Issue after logged in, copy the URL and paste it some other browser, it will redirect to Salesforce Login screen, instead of the Customer Portal Login Screen

 

Step 1:
Open Firefox
My Login Portal URL : https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000KfQ4&portalId=060900000000mMw
logged in using my creditials and successfully logged in also and its landing now below URL
https://ap1.salesforce.com/home/home.jsp

 

Step 2:
Copy it "https://ap1.salesforce.com/home/home.jsp" Successfully logged in URL and Paste it IE/Chrome browser and enter

 

Step 3:
now page is redirect to Salesforce Login screen
https://login.salesforce.com/?ec=302&startURL=%2Fhome%2Fhome.jsp
instead of the Customer Portal Login Screen (https://ap1.salesforce.com/secur/login_portal.jsp?orgId=00D90000000KfQ4&portalId=060900000000mMw)

 

here i want to redirect Customer Portal Login Screen. its possible?
Please let me know your thoughts.

how to enable charts in developer edition. is there any link to enable this feature and how to interact with salesforce.com to enable this feature.

 

<apex:page>

    <apex:chart></apex:chart>

</apex:page>

 

 

after if i save it giving error; chart is not identified component.

Private Sharing Settings on Case object. 

 

Case creator should be able to change a checkbox field where as case owner should not be able to do this. 

 

Hi,

 

our company would like to integrate with SFDC. Basically, we want to synchronize Leads/Contacts & Response data (hourly) between SFDC and our System. 

The process involves following steps in Salesforce: 
-) User selects/defines a list of contacts/leads 
-) User clicks "sync" 

-> By clicking on "sync", an asynchronous job (@future (callout=true)) will be created, which receives the User.getSessionId() as parameter 

The job would run like every hour, therefore the sessionid should be kept alive. 
-> Is this a potential security issue, or not best practice? 

Or is there a better solution for this issue? 

We also thought of using a OAuth1.0 workflow, where the user authenticates with Salesforce within our application. But there again, is the issue of keeping the sessionid alive -> we would have to make frequent calls to the SF API in order to keep the sessionid alive. 
-> Please correct me if I am wrong.

 

Does someone know of a better approach?

 

Thanks,

Patrick

Hello,

 

How can I create a profile to manage only a few certain objects (ie: Quotes, Followup and Information request objects)?

I'm having a hard time to create a profile described above. I only want my super user to manage only the objects above. Please advice.

 

Thanks

Paul

 

i have used API to integrate, I need to create an account of SFA into my app automatically as soon as i create an account of SFA. Can i use that SFA account directly into my app account directly. Is there any option to create account automatically

We are populating a VF page by editing the Softphone layout and were expecting the call logs will be generated once the call ends automatically as a part of standard feature of spoftphone...

 

Activity logs are getting created if we are not using screen pop ( VF page ) rather service cloud console.. with standard record layout. but not when screen pop VF page is used.

 

Kindly help..

 

How to pass Flow name dynamically like <Flow:Interview name="!{!DynamicName}">

Hi guys!

 

Is it possible to pass Flow name dynamically like <Flow:Interview name="!{!DynamicName}">

 

Also 

 

Can we use a variable associated to flow without initiating a object of that flow in the controller.

 

<apex:page controller="ModemTroubleShootingCusto" >
<flow:interview name="TipCalculator" interview="{!myflow}">

{!TipCalculator.BillValue} is not working... how can i access this variable on page witout creating  interview="{!myflow}"
</flow:interview>
</apex:page>

 

 

Please provide some help here.

Thanks

Nikhil

Hi guys!

 

Is it possible to pass Flow name dynamically like <Flow:Interview name="!{!DynamicName}">

 

Also 

 

Can we use a variable associated to flow without initiating a object of that flow in the controller.

 

<apex:page controller="ModemTroubleShootingCusto" >
<flow:interview name="TipCalculator" interview="{!myflow}">

{!TipCalculator.BillValue} is not working... how can i access this variable on page witout creating  interview="{!myflow}"
</flow:interview>
</apex:page>

 

 

Please provide some help here.

Thanks

Nikhil

Folks,

 

I am trying to check the current  Apex Test Result 


So after clicking RunAllTest i am getting "java.lang.reflect.InvocationTargetException" error. I am doing this from Salesforce.com sandbox Chrome browser.

 

Please let me know the solution if anyone already faced any such issue.

 

Thanks

 

Field is not writeable:Invoice__c.Id

 

public class SampleAcc {

   static testMethod void testAccTrigger(){
  
 Pricebook2 s = [select id from Pricebook2 where IsStandard = true];  
  
 // create the product
    Product2 p1 = new Product2(
        name='Test Product 1',
        IsActive=true,
        Description='My Product',
        ProductCode='12345'
    );
    insert p1; 
   
    PricebookEntry pbe1 = new PricebookEntry(
        Pricebook2Id=s.id,
        Product2Id=p1.id,
        UnitPrice=0.00,
        IsActive=true,
        UseStandardPrice=false
    );
    insert pbe1;  
   
 Opportunity opp1 = new Opportunity(Name='ww',StageName='Qualification',CloseDate=date.today());
 insert opp1;
  
 OpportunityLineItem oli = new OpportunityLineItem();
 oli.Quantity = 1;
    oli.TotalPrice = 1;
    oli.PricebookEntryId = pbe1.id;
    oli.OpportunityId = opp1.id;   
    insert oli; 
 
 Invoice__c inv =new Invoice__c();
 inv.Id=opp1.id;
 inv.name = 'ww';
 insert inv;
  
   Accomodation__C acc = new Accomodation__C();
   acc.name='ww';

   Test.startTest();
   insert acc;
   Test.stopTest();
 }
}

 

shows error in this line

inv.Id=opp1.id;

Field is not writeable:Invoice__c.Id

 

am new to apex .please solve it

I have Look up field in Account - Sales_orgnizaion__c

i need a lookup field in opportunity - Sales_Organization__c

i need to auto populate the opportunity field and editable .

I think we need to use updating the filed update , Can any one please give ,what is the procedure and code  

hello friends,

 

I am facing an issue with Map<>.

 

Step1:- I have created a Map<> with list of products (which is getting from one object, say "Product").

 

Step2:- I am getting records which has product ID from another object (say "Purchase").

 

Step3:- I am looping through each record from Purchase and get the "ProductId"  and reference to the Map<> I have created from the "Product" object.

 

Issue :- If the ProductId is not there in the map<> it will through an error "System.NullPointerException: Attempt to de-reference a null object".

 

How can I avoid the ID's which are not in the Map<>? How can I identify that the ID is not in the Map before I make a refernce to the Map<>?

 

Thanks in advance.

 

Thanks

Asish

Hi...

 

I am trying to set focus to a specified textbox through its controller class(as it is requirement) ...

 

For this in asp we have like "Page.RegisterStartupScript()"...

for eg..

 

private void SetFocus(String controlID)
{
  // Build the JavaScript String
  System.Text.StringBuilder sb = new System.Text.StringBuilder();
  sb.Append("<script language='javascript'>");
  sb.Append("document.getElementById('");
  sb.Append(controlID);
  sb.Append("').focus()");
  sb.Append("</script>")
 
  // Register the script code with the page.
  Page.RegisterStartupScript("FocusScript", sb.ToString());
}

 

 

Is there any method in apex in Force.com to register a javascript on current page through apex code...

 

please reply asap...

 

Thank you!!!

I'm trying to duplicate some of the User maintenance functions in a visual force page, and I'm running into a bit of a problem. In the normal user form, if a user is a delegated administrator, the picklists for roles and profiles only show what they have access to. In my visual force page, the list comes up with all roles and profiles. Does anyone know how to get the same picklist?

 

For example, our delegated administrator for zone 1 can see the roles for his zone and all roles under the zone. He can also see all profiles defined in the delegated administration form. When I put that field on my form, all roles and profiles display.

 

Any help is appreciated - thanks!

Hi Folks,

 

I am trying to import excel data from my local machine in a Flex datagrid (Which is ofcource on a VF page)

.Did any one implemented this or if can guide me 

 

Thanks

Nikhil

I want to do something like this:

 

rendered="{!confirmMessagesExist('CONFIRM')},

 

I have a function defined in Apex class called getConfirmMessagesExist.

 

But each time I save the page, it says can not find function name confirmMessagesExist. Any Idea?

 

Can we pass parameters from visualforce to apex? Thanks!