-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
14Questions
-
14Replies
add new button to custom object lookup dialog box
However, for my custom objects, there is no button to create a new record from the dialog box.
Is there a way to have a new button from there? Or is there a way to have a custom button OR link on the Add/Edit pages such that I can quick create a record for a lookup on the parent object without leaving the page.
Otherwise, for all of my custom objects people must go to a number of different lookup objects, create the records, then go to the detail object and add all the fields.
-
- joseph keuler 1
- March 11, 2016
- Like
- 0
- Continue reading or reply
SOQL to accommodate objects
In preparation to build my controller I need a valid SOQL statement and I'm getting nested semi-join sub selects error on the Workbench.
I'm getting errors on the SOQL query:
select agency_acronym__C from account where id in (SELECT AccountId FROM Contact where id in (SELECT ContactId FROM User where id in (SELECT OwnerId FROM Application__c)))
if this where in SQL Syntax I'd just use joins. I'm new to SOQL
select agency_acronym__c from account inner join contact on account.accountID = contact.accountID inner join user on contact.contactid = user.contactid inner join application__c on user.id = application__c.ownerid
Thanks,
Joe
-
- joseph keuler 1
- January 27, 2016
- Like
- 0
- Continue reading or reply
Hide label of inputfield in visualforce page using jQuery
<apex:pageBlockSection id="yearInfoPageBlock" title="Fiscal Year Information"> <apex:inputField value="{!Fiscal_Year__c.name}" onclick="test();"/> <apex:inputField value="{!Fiscal_Year__c.Is_Current__c}" id="isCurrent"/> </apex:pageBlockSection> <apex:includeScript value="{! $Resource.jQuery }"/> <script type="text/javascript"> function test(){ $('[id$="isCurrent"]').hide(); $('[id$="isCurrent"]').hide(); } </script>
-
- joseph keuler 1
- January 21, 2016
- Like
- 0
- Continue reading or reply
Connect to SQL Server Management Studio other than ODBC
Thanks,
Joe
-
- joseph keuler 1
- January 15, 2016
- Like
- 0
- Continue reading or reply
Create field on report detail
An example would be:
Item ---- Qty ---- price --- total (qty*price)
Do I always need to have total on the object or can I create a non-grouped-by report and have a calculated field?
-
- joseph keuler 1
- November 30, 2015
- Like
- 0
- Continue reading or reply
Segment developers between apps - Enterprise Org Structure
We have a large enterprise with a number of different unrelated business units. We are looking to do a smaller Salesforce implementation with some of the smaller business units but would like to keep the enterprise in mind. Everyone is coming from the same domain and will likely use Single Sign On federated through active directory.
Is it possible to delegate admins and developers for apps only? I may have business unit A that has a development staff of 4 and 25 users but what happens when I want to bring on business unit B that has 8 developers and 2000 users?
Do developers have access to all Apex classes in the Org or is there a way those can be partitioned off between business units. I don't want developer in unit A to be able to mess with Developer B's apex class. Nor do I want developer in Unit A to query Unit B's data.
How can an enterprise limit their developer and admin permissions to the app level and have everyone under the same Org? Or is that completely impractical.
Thanks,
Joe
-
- joseph keuler 1
- November 25, 2015
- Like
- 0
- Continue reading or reply
How to use before update and after insert trigger
How can I run this trigger on both record edit and creation (it only works before update)? Better yet, is it possible to update any record "after update" or "after insert"?
trigger CalcBenefit on EA_App__c (before update, after insert) { //works for update only. insert throws error because I'm trying to change value for (EA_App__C ea : Trigger.new){ EA_App__C oldEA = Trigger.oldMap.get(ea.Id); if (ea.X3_Month_Income__c > CalculateBenefit.getMax(integer.valueOf(ea.Family_Size__c))){ ea.App_Status__c = 'DENIED'; ea.Benefit_Amount__c = 0; }else if (ea.X3_Month_Income__c <= CalculateBenefit.getMin(integer.valueOf(ea.Family_Size__c)) && ea.App_Status__c != 'PAID'){ //how to compare to old? //&& (ea.X3_Month_Income__c != oldEA.X3_Month_Income__c || ea.Family_Size__c != oldEA.Family_Size__c) ea.Benefit_Amount__c = 0; ea.App_Status__c = 'SENT FOR APPROVAL'; }else{ ea.App_Status__c = 'PAID'; ea.Benefit_Amount__c = CalculateBenefit.calc(ea.X3_Month_Income__c, integer.valueOf(ea.Family_Size__c), ea.Fuel_Cost__c, '2015'); } }
-
- joseph keuler 1
- November 12, 2015
- Like
- 0
- Continue reading or reply
Field Level Triggers - are they possible?
ObjectA.Field1 on update of Field1 run trigger. On update of ObjectA.Field2 do nothing.
-
- joseph keuler 1
- November 11, 2015
- Like
- 0
- Continue reading or reply
Record locked when updating value via Apex when triggered from Process Builder
@invocablemethod public static void updateBenefit(list<ea_app__c> app){ app[0].Benefit_Amount__c = calcBenefit(app[0].name); // ----> this is the issue here <---- update app; } public static decimal calcBenefit(string appID){ decimal benefit = 0.0; integer coeff = getCoefficient('2015'); decimal max = getMax(getfamilySize(appID)); benefit = (1-(getIncome(appID)/max))*(getFuelCost(appID)/coeff); return benefit; }
-
- joseph keuler 1
- November 10, 2015
- Like
- 0
- Continue reading or reply
Add new button to visualforce page
I'm creating a visual force page that shows a new default list filter to override the standard page of a custom object. How can I get the "NEW" button such that I can open a new form to create a new record.
<apex:commandLink action="{!URLFOR($Action.Fiscal_Year__c.NewFiscal_Year__c)}" value="Create New Fiscal Year"/>
<apex:commandButton action="{! new}" value="create new fiscal year"/>
It seems creating a controller would be overkill because I simply want to go to the add fiscal year form vs adding one directly from this form. Any ideas?
-
- joseph keuler 1
- October 14, 2015
- Like
- 0
- Continue reading or reply
Edit multiple objects on one page layout
I'm new to the platform so I'm trying to figure out how data entry forms should be designed.
Thanks,
Joe
-
- joseph keuler 1
- September 23, 2015
- Like
- 0
- Continue reading or reply
Set Default View on Custom Object Tab Home Page
Is the process different for custom objects? How can I set the default view to a different view?
Thanks,
Joe
-
- joseph keuler 1
- September 22, 2015
- Like
- 0
- Continue reading or reply
Master Detail vs Lookup (pros and cons)
Thanks,
Joe
-
- joseph keuler 1
- September 21, 2015
- Like
- 0
- Continue reading or reply
Routing Records with Approvals - Exercise
see my attached setup.
1) I added the options to the type account object
2) have the logic set on teh approval
3) have the field update options set to Pending for Intial, Customer for approval, Prospect for Rejections
Any ideas?
-
- joseph keuler 1
- September 18, 2015
- Like
- 0
- Continue reading or reply
SOQL to accommodate objects
In preparation to build my controller I need a valid SOQL statement and I'm getting nested semi-join sub selects error on the Workbench.
I'm getting errors on the SOQL query:
select agency_acronym__C from account where id in (SELECT AccountId FROM Contact where id in (SELECT ContactId FROM User where id in (SELECT OwnerId FROM Application__c)))
if this where in SQL Syntax I'd just use joins. I'm new to SOQL
select agency_acronym__c from account inner join contact on account.accountID = contact.accountID inner join user on contact.contactid = user.contactid inner join application__c on user.id = application__c.ownerid
Thanks,
Joe
- joseph keuler 1
- January 27, 2016
- Like
- 0
- Continue reading or reply
Hide label of inputfield in visualforce page using jQuery
<apex:pageBlockSection id="yearInfoPageBlock" title="Fiscal Year Information"> <apex:inputField value="{!Fiscal_Year__c.name}" onclick="test();"/> <apex:inputField value="{!Fiscal_Year__c.Is_Current__c}" id="isCurrent"/> </apex:pageBlockSection> <apex:includeScript value="{! $Resource.jQuery }"/> <script type="text/javascript"> function test(){ $('[id$="isCurrent"]').hide(); $('[id$="isCurrent"]').hide(); } </script>
- joseph keuler 1
- January 21, 2016
- Like
- 0
- Continue reading or reply
Create field on report detail
An example would be:
Item ---- Qty ---- price --- total (qty*price)
Do I always need to have total on the object or can I create a non-grouped-by report and have a calculated field?
- joseph keuler 1
- November 30, 2015
- Like
- 0
- Continue reading or reply
Field Level Triggers - are they possible?
ObjectA.Field1 on update of Field1 run trigger. On update of ObjectA.Field2 do nothing.
- joseph keuler 1
- November 11, 2015
- Like
- 0
- Continue reading or reply
Record locked when updating value via Apex when triggered from Process Builder
@invocablemethod public static void updateBenefit(list<ea_app__c> app){ app[0].Benefit_Amount__c = calcBenefit(app[0].name); // ----> this is the issue here <---- update app; } public static decimal calcBenefit(string appID){ decimal benefit = 0.0; integer coeff = getCoefficient('2015'); decimal max = getMax(getfamilySize(appID)); benefit = (1-(getIncome(appID)/max))*(getFuelCost(appID)/coeff); return benefit; }
- joseph keuler 1
- November 10, 2015
- Like
- 0
- Continue reading or reply
Add new button to visualforce page
I'm creating a visual force page that shows a new default list filter to override the standard page of a custom object. How can I get the "NEW" button such that I can open a new form to create a new record.
<apex:commandLink action="{!URLFOR($Action.Fiscal_Year__c.NewFiscal_Year__c)}" value="Create New Fiscal Year"/>
<apex:commandButton action="{! new}" value="create new fiscal year"/>
It seems creating a controller would be overkill because I simply want to go to the add fiscal year form vs adding one directly from this form. Any ideas?
- joseph keuler 1
- October 14, 2015
- Like
- 0
- Continue reading or reply
Edit multiple objects on one page layout
I'm new to the platform so I'm trying to figure out how data entry forms should be designed.
Thanks,
Joe
- joseph keuler 1
- September 23, 2015
- Like
- 0
- Continue reading or reply
Master Detail vs Lookup (pros and cons)
Thanks,
Joe
- joseph keuler 1
- September 21, 2015
- Like
- 0
- Continue reading or reply
Routing Records with Approvals - Exercise
see my attached setup.
1) I added the options to the type account object
2) have the logic set on teh approval
3) have the field update options set to Pending for Intial, Customer for approval, Prospect for Rejections
Any ideas?
- joseph keuler 1
- September 18, 2015
- Like
- 0
- Continue reading or reply
Why the duplicate lead history values?
select Id, CreatedDate, Field, LeadId, NewValue, OldValue from LeadHistory where (field = 'ownerAssignment' or field = 'Owner')The lead history object has one record where the newvalue/oldvalue is the actual owner/ namequeue name, and then a duplicate record with the exact same CreatedDate time stamp that shows newvalue/oldvalue as the owner id/queue id.
What is going on here? Why does lead history have 2 records for the exact same event?
- jjvdev
- September 04, 2015
- Like
- 2
- Continue reading or reply