• Wooter
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

I want the login_portal.jsp to be displayed on an html page.  I have used an iframe.  But, when a valid login occurs, I am still stuck in the iframe embedded on an html page.  I there another way to embed this log in and get to the correct landing page and be in another tab/page of the browser?  All help appreciated.

 

  • September 28, 2010
  • Like
  • 0
//  Include and initialize the AJAX Tookit  javascript library
//

{ !REQUIRESCRIPT ("/soap/ajax/10.0/connection.js")}

//  Get the list of Schedule Line Items that should be deleted.
//  Use the  $ObjectType merge field to indicate the typed of 
//  record Ids that are expected

var idsToDelete = { !GETRECORDIDS ($ObjectType.Scheduled_Line_Item__c) };
var deleteWarning = 'Are you sure you wish to delete ' + idsToDelete.length + ' Schedule Line Items?' ;

if (idsToDelete.length && (window.confirm (deleteWarning) ) ) 
{

//  Delete the records, and pass a function into the call
//  so that the toolkit refreshes the current page
//  asynchronously when the call succeeds.

    sforce.connection.deleteIds (idsToDelete, function () {navigateToUrl (window.location.href) ; } ) ;
}
    else if (idsToDelete.length == 0) 
{
      alert ( "Please select the Schedule Line Items you wish to delete." );
}

Using the above code as using the force.com Cookbook as a reference, I am trying to get a Mass Delete button to work and get "Expected Identifier, string or number" as an error.  Any help would be appreciated!

 

Thanks!

  • August 07, 2009
  • Like
  • 0
//  Include and initialize the AJAX Tookit  javascript library
//

{ !REQUIRESCRIPT ("/soap/ajax/10.0/connection.js")}

//  Get the list of Schedule Line Items that should be deleted.
//  Use the  $ObjectType merge field to indicate the typed of 
//  record Ids that are expected

var idsToDelete = { !GETRECORDIDS ($ObjectType.Scheduled_Line_Item__c) };
var deleteWarning = 'Are you sure you wish to delete ' + idsToDelete.length + ' Schedule Line Items?' ;

if (idsToDelete.length && (window.confirm (deleteWarning) ) ) 
{

//  Delete the records, and pass a function into the call
//  so that the toolkit refreshes the current page
//  asynchronously when the call succeeds.

    sforce.connection.deleteIds (idsToDelete, function () {navigateToUrl (window.location.href) ; } ) ;
}
    else if (idsToDelete.length == 0) 
{
      alert ( "Please select the Schedule Line Items you wish to delete." );
}

Using the above code as using the force.com Cookbook as a reference, I am trying to get a Mass Delete button to work and get "Expected Identifier, string or number" as an error.  Any help would be appreciated!

 

Thanks!

  • August 07, 2009
  • Like
  • 0

I have created a class and trigger to process inbound emails in Sandbox. I get 100% coverage on my class and 94% coverage on my trigger. When I take it into Eclipse to deploy I only get 74% with the same exact code.

 

Is there a way to deploy from Sandbox without using Eclipse?