• Mig
  • NEWBIE
  • 10 Points
  • Member since 2007
  • Sr Dev
  • SWIFT


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 26
    Questions
  • 48
    Replies
This component works but does not validate and gives the following error message:
Step not yet complete... here's what's wrong: 
The CSS does not contain a reference to the background image 
Note: you may run into errors if you've skipped previous steps.

Hi,

I'm tying to launch a custom SOQL query:

SELECT Phone, PersonAssistantName, Owner.FirstName, Owner.LastName, Owner.Username, Owner.CommunityNickname, (SELECT Contact.FirstName, Contact.LastName, Contact.MobilePhone, Contact.Email FROM Account.Contacts LIMIT 1) FROM Account

 

But can't access to the CommunityNickname field of User table.

Looking at the documentation for User, it must exist. What am I doing wrong?

Hello

 

I'm a very new in all the salesforce business

i'm trying to make a new button in the account that will open me a new task with some data in the fields

 

 

Someone can help me ?

 

Thanks

Elad

 

 

In this org:  

Affiliations__c is a non master relationship to Contact. 

If a Contact is deleted, a trigger is fired and will delete the related affiliations! 

 

What I want to do is : if a contact is undeleted, undelete the deleted related affiliations as well

 

My code :   

 

trigger ContactAfterUndelete on Contact (after undelete) {

Affiliation__c[] affiliationsFired ;

Affiliation__c[] affiliationsToUpdate = new Affiliation__c[]{};

affiliationsFired = [Select id from Affiliation__c where isDeleted = true and (Affiliation_From_Contact__c in :Trigger.old or Affiliation_To_Contact__c in: Trigger.old) ALL ROWS] ;

for (Integer i=0 ; i< affiliationsFired.size() ; i++){

affiliationsFired[i].isDeleted = false ;

AffiliationsToUpdate.add(affiliationsFired[i]);

}

update AffiliationsToUpdate ;}

 

I've got an error because isDeleted is non Writeable! 

 

Please, Can you give me some advices on how to solve this issue ? 

 

Tkx,

Mig 

 

Message Edited by Mig on 03-03-2009 04:33 PM

Hi,

 

I am stuck in a issue that looks simple. I have a object which has related record in a child object. If the parent object record is deleted, then the child object record should be deleted. I have implemented this using triggers.

 

But the issue is how to delete already orphaned records. The requirement is to delete orphaned records that does not have any matching parent records.

 

Thanks

 

 

I know that's it's not possible to trigger a worklow by a field update done by another workflow. 

My question is : If My fiest workflow updates a record that will fire my apex trigger and this apex trigger fires a worlfow. Do you think this will work ?

 

If not, do you know if it's possible to enable this functionnality ?

http://ideas.salesforce.com/article/show/10093883/Allow_workflow_or_approval_process_to_trigger_workflow

 ( a guy here says that he thinks it's possible, how can I do it ? )

 

Thanks a lot for all your answers.

 

Cheers,

Mig 

 

hi
 
I want to disable a  custom button on accounts for  particular profiles.How can i do it.
If anybody has worked on similar functionality please let me know.
 
Thanks in advance
Ritika
I'm developing new buttons at the Opportunity Level that will clone the Opportunity with or without some related objects !

The clone works fine (at least I think this is the best way to do it )


Opportunity opp=[Select o.qtyProductGroups__c, o.Won_Lost_Comment__c, o.State__c, o.StageName, o.Selected_Contact_Id__c, o.Remarks__c, o.RecordTypeId, o.Reason_Won__c, o.Reason_Lost__c, o.Probability, o.Primary_Opportunity__c, o.Pricebook2Id, o.Personal_Chance_of_Success__c, o.OwnerId, o.Opportunity_Type__c, o.Opportunity_Description__c, o.One_Shot_Order__c, o.IsWon, o.IsDeleted, o.IsClosed,
o.I_Internal_Status__c, o.I_Account_manager__c, o.HasOpportunityLineItem, o.ForecastCategoryName, o.ForecastCategory, o.FiscalYear,
o.FiscalQuarter, o.Fiscal, o.FAS__c, o.Expire_Date__c, o.Do_not_Show_Total__c, o.Description, o.Delivery_specifications__c, o.Customer_Reference__c, o.CurrencyIsoCode, o.Contractual_Agreement__c, o.Competitor__c, o.Competitor_Products_involved__c, o.Competitor_Pricing__c, o.Competition__c, o.CloseDate, o.Categorisation__c, o.Budget__c, o.Amount, o.AccountId From Opportunity o where id=:getOpportunityId()];
if (opp.Id != null){
Opportunity newOpp = opp.clone(false,true);
newOpp.Name=opp.Name + ' CLONE';
insert newOpp;
}



As you see I need to put in there all the fields to be cloned.
The problem is : if in the future I create a new field, this one will not be transmitted with the clone ! (unless I edit the query here and add this new field) !!!!!! Is there any solution for this ?


Tkx a lot to you all for your answers and support !

Message Edited by Mig on 01-19-2009 06:49 PM
I'd like to re-open the discussion of SortOrder on the OpportunityLineItem object. A thread from 3.5 years ago can be located here:
http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=3154

Looks like people from SF were going to look into it but obviously nothing has come to fruition. The reason I have put this in the Visualforce board is that we have have a few VF applications that could really take advantage of access to this field. Visualforce has also opened up new possibilities to UI design where the ability to manage SortOrder could be useful.

Also, no offense to salesforce.com, but the tool for sorting OpportunityLineItems is not that useful when there are multiple products with the same name. I have actually built a pretty slick sorting application but this is currently useless.

A lot of the concerns were about error handling. What happens if you have 3 line items but sort order is defined as, 1, 2, 2. Or 1, 2, 4. How about just throwing a sortOrder exception and force the developers to write good code?

Ideas? Thoughts?
http://ideas.salesforce.com/article/show/10092062/OpportunityLineItem_SortOrder_to_be_CreatableUpdatable

-Jason


Message Edited by TehNrd on 09-05-2008 01:22 PM
I've got this code :

Code:
var qry = "select q.Price__c from Quotes__c q where q.Id='"+ varID +"'" ;
var result = sforce.connection.query(qry);
resultarray = result.getArray('records');

alert(" PRICE: " + resultarray[0].Price__c ); 

The result of the alert is : PRICE : 567.6789

Although I would like to have this quind of format : EUR 567,68 or USD 567.68
It depends on the user ....

I've got the same problem with the date formats I've got all them in this format YYYY-MM-DD And Ofcourse it should depends on the user who is calling my S-control page . 

PLEASE HELP ME =)

Thank you







Message Edited by Mig on 06-13-2008 10:54 AM
Hi,

I saw this : http://blogs.salesforce.com/features/2008/05/visualforce-pag.html

In Summer 08 Will we be available to create Visualforce pages into Production ? Or it's already available ?

Thank you
Hi,
<apex:commandLink  value="attach" action="{!attach}">
 <apex :param assignto="{!test}" value="{!location.id}"/>
</apex:commandLink>

And I have getter and setter methods in my controller. This works fine. But when I replace it with commandButton it is not working.

Thanks,
Nimdhar
Hello,

I've got a problem.
I'm doing an S-Control with some queries. And I'm getting this error : Index or size is negative or greater than the allowed amount" code: "1 ( With Firebug)

I think it's a query in the Account table.
Is there a maximum queries per day we can use ? My API calls does not attempt the maximum.

Someone an idea on this please ?
when i try to declare a map in an Apex class i get error "Error: Compile Error: unexpected token: map"
I am using a developer login with development mode checked to true. Is it that Map object has to be enabled on developer login?
 
Map<string, string> myMap=new Map<string, string>();
Hi,

I created a List Button :

List Button code :
Code:
{!RequireScript("/js/functions.js")}

var recordsToTransfer = {!GetRecordIds($ObjectType.Order__c)}

function init(){
if(recordsToTransfer.length < 1){
alert(" Please Select a value") ;
}

else if (!document.elementsAddedToPage)
{
for(var i=0; i < recordsToTransfer.length ; i++) {
Edit(recordsToTransfer[i]);
}
}
}
function Edit(OrderID){
var Edit = new sforce.SObject("Order__c");
Edit.Id = OrderID;
Edit.Order_Status__c = "Ready";
var result = sforce.connection.update([Edit]);
window.location.reload();
}

init();

This code will change the Status of the selected Orders. It works fine But a few times (in I.E. 7.0)  I've got a weird error :

Something like : 'Error On Click Javascript  Sforce is not defined ';

Please, can someone help me on this ? I don't understand this error. (Apparently It's only for some no Admin Profile users... and always in I.E. 7.0 even if I had that error once in firefox in admin profile :s but once I refreshed it was ok) I tryed already to update I.E, but does not work!

Thank you in advance for your help; this is really very important ...

Mig


Message Edited by Mig on 02-12-2008 01:13 PM
I have a "full page width" web tab with content generated by an HTML Scontrol. When the content exceeds a certain length a vertical scroll bar appears. It appears that the web tab container is where the overflow occurrs.
 
I would like to eliminate the nested scroll bar. How do I do this?
 
The company standard browser is IE.
 
Thanks in advance.
I know that a delete trigger is not fired for a merge.  What are the other cases where delete triggers are not fired?

My question relates to having our application sit beside other APEX applications.  I want to ensure that a clean database is maintained regardless of other applications.

GlennW