-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
4Questions
-
5Replies
Error with Delete Call
<script src="/soap/ajax/11.0/connection.js"></script>
<script src="/soap/ajax/11.0/apex.js"></script>
String[] ids = new String[] { formId };
try {
DeleteResult[] deleteResults = sforce.connection.delete(ids);
}
catch( Exception e ) {
}
}
var qr = conn.query("Select Id....");
formId = record[0].get("Id");
- kMans2k
- February 26, 2008
- Like
- 0
- Continue reading or reply
addError error
if( Current[0].Status__c != 'Open' ) {
trigger.new.Status__c.addError('Status error');
}
}
- kMans2k
- February 19, 2008
- Like
- 0
- Continue reading or reply
Syntax error on code for custom button
function redirect() {
parent.frames.location.replace("/006/e?retURL=%2F{!customObjA__c.Id}&opp3={!customObjA__c.Name}" );
}
redirect();
</script>
- kMans2k
- January 13, 2008
- Like
- 0
- Continue reading or reply
Create New Object
Hello All,
I hope this is the correct forum.
I relatively new to Apex and needing some help achieving this particular task.
I have two custom objects. Call these ObjA and ObjB. ObjB is related to ObjA, and has a look-up field to reference the related ObjA. It has another picklist, say "country". ObjA also has the "country" picklist.
Now when the user chooses to create the related ObjB from the ObjA details page, salesforce automatically populates the reference to ObjA in the ObjB data entry form. Is it possible for me auto-select the "country" picklist in ObjB data entry form based on the related value in ObjA?
Secondly, there's a third custom object, ObjC. I'd like the users to be taken to the data entry form to create new ObjC, if they select "US" in the picklist in ObjB and save ObjB. It'll have to be in the trigger condition, but I unsure as to how to initiate "create new object" screen.
Hope this is not as confusing as it seems to me :) I look forward to your responses and if I do manage to get it solved, I'll post the solution for future ref.
Thanks
- kMans2k
- January 09, 2008
- Like
- 0
- Continue reading or reply
Creating custom buttons.
- Adriana
- January 15, 2008
- Like
- 0
- Continue reading or reply
Syntax error on code for custom button
function redirect() {
parent.frames.location.replace("/006/e?retURL=%2F{!customObjA__c.Id}&opp3={!customObjA__c.Name}" );
}
redirect();
</script>
- kMans2k
- January 13, 2008
- Like
- 0
- Continue reading or reply
Create New Object
Hello All,
I hope this is the correct forum.
I relatively new to Apex and needing some help achieving this particular task.
I have two custom objects. Call these ObjA and ObjB. ObjB is related to ObjA, and has a look-up field to reference the related ObjA. It has another picklist, say "country". ObjA also has the "country" picklist.
Now when the user chooses to create the related ObjB from the ObjA details page, salesforce automatically populates the reference to ObjA in the ObjB data entry form. Is it possible for me auto-select the "country" picklist in ObjB data entry form based on the related value in ObjA?
Secondly, there's a third custom object, ObjC. I'd like the users to be taken to the data entry form to create new ObjC, if they select "US" in the picklist in ObjB and save ObjB. It'll have to be in the trigger condition, but I unsure as to how to initiate "create new object" screen.
Hope this is not as confusing as it seems to me :) I look forward to your responses and if I do manage to get it solved, I'll post the solution for future ref.
Thanks
- kMans2k
- January 09, 2008
- Like
- 0
- Continue reading or reply