-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
10Questions
-
44Replies
ASF: ruby, Rails - where is it going, roadmap?
Or whoever is picking up this mantra.
I c little recent activity/fixes on the ASF code and several requests/bug fixes needed (namespace prefix etc..)
Where is ASF in SF-land as regards being working on, very active, new releases, stagnating, future roadmap etc...
Lal
-
- Brendan Lally
- September 16, 2008
- Like
- 0
- Continue reading or reply
Maps, cross object join tables and accessing complex multi-relationship record objects
I have object A and B with a join table of AB
If I try the following I get the following - compile error - Invalid type:AB
..Map ab_recs = new Map();
does this mean that x-object join tables cannot be 'mapped'
I know I can run a query that gives me data from A and B via __r but how do I setup an (map) object to receive them. Will this work if its a List?
for example
I can setup
...Map a_recs = new Map();
and happily read in an 'A' record and access its fields via a_recs.get.(i).fieldname
but if I do a query where its pulling back parent/child related recs via __r or '.' notation HOW is that mapped now?
Can't c how I can do a a_recs.get(i).parentfieldname?
don't c any info on this in docs/cookbook etc.
Lal
-
- Brendan Lally
- September 16, 2008
- Like
- 0
- Continue reading or reply
Cannot create Hyperlink formula
I then try and get any Hyperlink formula and I keep getting
Error: Function HYPERLINK may not be used in this type of formula
tried HYPERLINK("anywhere" , "Do stuff")
tried HYPERLINK("00U/e?retURL=%2F006x0000001T8Om&what_id=" & Id, "Create Event")
as per https://na5.salesforce.com/help/doc/user_ed.jsp?section=help⌖=customize_functions.htm&loc=help&hash=HYPERLINK
doesn't like the Id so delete that and then get the 'may not be used'
any ideas?
in developer edition
Lal
-
- Brendan Lally
- September 10, 2008
- Like
- 0
- Continue reading or reply
Trying to use .remove method on a List (sobject) class
Using Lists.add( x); to add my custom record (x) entry's into the Lists array
At one stage (after I delete a record) I need 2 update my array and get rid of the (now) deleted assoc rec.
Using the following code - but getting an error = "Error: Compile Error: Method does not exist or incorrect signature: [SOBJECT:Listings__c].remove()"
..for (Integer i=0; i < Lists.size(); i++)
.....{ if (Lists[i].id = exist_L.id)
.........{ // zap that row from the lists array
.............System.debug(LoggingLevel.INFO,'zapped #'+i+' in Lists, key='+Lists[i].Name);
.............Lists[i].remove(); // P33 and P189 Apex Lang ref
.........}
.....}
Now I know that my sObject doesn't have a remove() method but the List array (Lists) should know it and process it for that position (i)
Lal
-
- Brendan Lally
- August 26, 2008
- Like
- 0
- Continue reading or reply
List views - forcing a refresh on initial entry (or picking a specific view)
that the criteria on what it shows is confusing (I cannot find any documentation on this as regards what steps SF follows).
Some of the time it appears it lists the records dependant on what the user had 'chosen' last (if recently viewed/created/modified has been invoked before). However this is INDEPENDANT of what the choice is within the top 'view' pulldown list.
Its confusing that its not a combination.
1) can I force a default view to be (programatically?) always forced for the user when they come in (at least if its the first time since they've come into this session)
2) can I force a refresh (or at least have a choice of which 'rules') of the view (that is shown when the user comes into the list). As by default it is not refreshed. The user has to press the (view) GO button to really see the records relating to this view
(This is really confusing to a new user (as in "where did all the records Joe showed me are 'gone' ")
3) if neither of the above can I create a message that is show on all views that says (Press the GO button to refresh the data)
4) if I don't use the '/o' at the end of a URL for a list view (for each of my tabbed objects) then I don't get the RV/RC/RM extra 'view' - can I use this by default (any setting?)
PS I have the 'enhanced list view' turned off at the moment
Lal
-
- Brendan Lally
- August 18, 2008
- Like
- 0
- Continue reading or reply
how to turn off A..Z headers on list views
In this case the A..Z for views never makes any sense (as all I have are ID's starting with character 'L')
how do I turn them off
(note: I cannot find any reference in any of the online docs/help mentioning the A..Z 'feature')
Lal
-
- Brendan Lally
- August 18, 2008
- Like
- 0
- Continue reading or reply
Cannot assign a VF page to a button override on a custom object
I am trying to override a standard button (within a custom object) to VF code I've created
When I pick the 'VisualForce Page' button within the override , nothing is available.
I have two VF pages.
I've tried both custom objects and std objects and no difference.
that one I want is called cases_inner_tabs and is setup in Develop/Pages
as <apex: page standardController="Cases__c" showHeader="true" tabStyle="account" extensions="Cases_extn">
I had it used within a Web VF tab but no deleted that so 'Where is this used?' is now empty
If I go 2 my custom object Cases and try and override its View button as a VF - its not there?
Why do they not show up ?
(on Developer account)
Brendan
-
- Brendan Lally
- July 23, 2008
- Like
- 0
- Continue reading or reply
How to return to specify sub Tab layout within Tabbed Accounts example
I've done the same for my custom object and it works pretty good.
On mine I have defined TAB-A, TAB-B, TAB-C
I have extension controller code getting called on one of my extra Tabs (TAB-B) and that works fine too.
However I want it to return the user exactly where they were (in TAB-B) but I cannot find what that tab reference/url is.
It appears to be a Frame with a hidden field (j_id0:CaseTabPanel=TAB-B)
Any ideas on how I'd re-render that back from my controller (via PageReference ?)
Thanks
Lal
-
- Brendan Lally
- July 23, 2008
- Like
- 0
- Continue reading or reply
ReRender not showing 'now deleted' row in detail section using DataTable
I've VF code that gives a better interface when dealing with a Case. It displays one detail record (like an Account) and then a list of listings (sort of like unconnected Contacts). The user can then click on a specific listing (via Action Add2Case) and that listing is then written to the junction table so its now associated.
That works but on the way back I want to re-render the listings so the one just picked is now gone (as Sql query will have that dropped now - I also do an updated on Listings and reset assigned field),
However my re-re-render doesn't seem 2 work?
If I do a refresh when the page comes back the line/row goes.
1) What am I doing wrong?
2) Love to have the ability for the user to select multiple records at a time (like S-Control GETRECORDIDs) but don't see any examples of that.
3) Also if the user comes into this without picking a case id (no ?id= is passed into VF page) how do I redirect back to the 'Cases' standard view (/aOA/o ). I have several views defined on Cases butl can't see how to pick (or redirect from controller) the default (no view selected) view.
Thanks
Lal
<apex: page standardController="Case_to_Listings__c" extensions="CL_extn" showHeader="true" cache="false">
<apex: outputPanel id="msgs">
<apex: messages layout="list"/>
</apex: outputPanel>
<apex: form >
<apex: pageBlock title="Detail">
<apex: detail subject="{!Case_to_Listings__c.Cases__c}" relatedList="Cases__c" />
</apex: pageBlock>
<apex: pageBlock title="Listings that can be associated">
<apex: dataTable value="{!All_Listings}" var="lists" id="AllListings" headerClass="headerRow" rowClasses="dataRow" styleClass="list">
<apex: column >
<apex: facet name="header"><b>Action</b></apex: facet>
<apex: commandLink style="font-weight: bold" action="{!Add2Case}" value="Add to Case" rerender="AllListings">
<apex: param name="listingsId" value="{!lists.Id}"/>
</apex: commandLink>
<apex: actionSupport event="onclick" rerender="AllListings"> </apex: actionSupport>
</apex: column>
<apex: column >
<apex: facet name="header"><b>Listing ID</b></apex: facet>
<apex: outputLink value="/{!LEFT(lists.Id,15)}"> {!lists.Name} </apex: outputLink>
</apex: column>
</apex: dataTable>
</apex: pageBlock>
</apex: form>
</apex: page>
and extn controller
public class CL_extn { private final Case_to_Listings__c curr_CL_rec ; private List<Listings__c> lists = new List<Listings__c>(); public CL_extn( ApexPages.StandardController controller ) { Id id = ApexPages.currentPage().getParameters().get('id'); curr_CL_rec = (Case_to_Listings__c)controller.getSubject(); // if an empty id then send pack (Pageref—) to Cases std view - HOW– loadAllListings(); } private void loadAllListings() { List<Listings__c> sql_lists; sql_lists = [SELECT Id, Name FROM Listings__c WHERE assigned__c <> true ]; for ( Listings__c one_rec : sql_lists ) { lists.add( one_rec);} } public List<Listings__c> getAll_Listings() { return lists; } public PageReference Add2Case() { Id curr_id = ApexPages.currentPage().getParameters().get('listingsId'); Case_to_Listings__c new_CL; // new CL record try { new_CL = new Case_to_Listings__c( Cases__c = curr_CL_rec.Cases__c, Listings__c = curr_id ); Database.insert( new_CL ); //update the Listings record with assigned=true .... } catch (DmlException e) { System.debug(e.getMessage()); } return new PageReference( '/apex/Case2Listings˜id=' + curr_id ); } }
-
- Brendan Lally
- July 22, 2008
- Like
- 0
- Continue reading or reply
Sforce Explorer cannot see many2many objects
-
- Brendan Lally
- July 19, 2008
- Like
- 0
- Continue reading or reply
Best way to conditionally display a page
What would be the best way to do this?
Thought about checking for the existance of the record and then redirecting them to the other page if it does not exist, but not sure how to do this. Could also have two page sections, one displays if there is a record present and one if not, but would this be the best way?
- Luke@TWS
- October 15, 2008
- Like
- 0
- Continue reading or reply
Is it possible to manipulate an attribute from a component controller?
- Luke@TWS
- October 14, 2008
- Like
- 0
- Continue reading or reply
Control when a tabpanel switches to another tab
Is there any way (perhaps through JavaScript) to catch when a user has clicked on a tab's label? I've tried using the various event attributes of the tab and tabpanel components, and while some of them allow me to capture a click on the entire tab, none of them seem specific to a tab's label.
If I can determine whether the user has clicked on a tab's label, is there a way to control whether the page actually displays the contents of the clicked tab?
As a secondary issue, is there any easy way to determine whether the values of any of the form fields have changed? I can think of some ways to do this in JavaScript (for example, when the page is loaded, iterate over the form field values to remember their initial values, then iterate over them again later on to see if anything changed), but is there anything built into Apex to make this easier?
Thank you,
Jeri
- JeriMorris
- October 12, 2008
- Like
- 0
- Continue reading or reply
- knichols
- October 10, 2008
- Like
- 0
- Continue reading or reply
New DE accounts - migration of existing package prefixes?
Yesterday's Winter09 Developer Highlights webinar mentioned some interesting new developer account features. We were advised that we need to sign up for a fresh DE account to receive the new features, because existing DE accounts will not get the new features. However, if I'm understanding correctly, developers that have already published managed-released packages from existing DE accounts will have a package prefix that is tied to their existing DE org. That prefix is also intrinsic to the single managed package that is also tied to that org. As far as I understand it, the tying of the prefix and the managed package to the DE account are key to making the package upgrades work.
So I think this means that existing managed apps cannot be moved to new DE orgs as far as I am aware. Is there a way for these DE accounts to be upgraded to receive the new DE features? Otherwise developers of existing managed packages won't have access to the new DE features. Or maybe there's something I'm missing here?
- ad75
- October 09, 2008
- Like
- 0
- Continue reading or reply
VisualForce documentation
Thx,
Hamayoun
- hamayoun65
- October 06, 2008
- Like
- 0
- Continue reading or reply
ASF: ruby, Rails - where is it going, roadmap?
Or whoever is picking up this mantra.
I c little recent activity/fixes on the ASF code and several requests/bug fixes needed (namespace prefix etc..)
Where is ASF in SF-land as regards being working on, very active, new releases, stagnating, future roadmap etc...
Lal
- Brendan Lally
- September 16, 2008
- Like
- 0
- Continue reading or reply
Maps, cross object join tables and accessing complex multi-relationship record objects
I have object A and B with a join table of AB
If I try the following I get the following - compile error - Invalid type:AB
..Map ab_recs = new Map();
does this mean that x-object join tables cannot be 'mapped'
I know I can run a query that gives me data from A and B via __r but how do I setup an (map) object to receive them. Will this work if its a List?
for example
I can setup
...Map a_recs = new Map();
and happily read in an 'A' record and access its fields via a_recs.get.(i).fieldname
but if I do a query where its pulling back parent/child related recs via __r or '.' notation HOW is that mapped now?
Can't c how I can do a a_recs.get(i).parentfieldname?
don't c any info on this in docs/cookbook etc.
Lal
- Brendan Lally
- September 16, 2008
- Like
- 0
- Continue reading or reply
Cannot create Hyperlink formula
I then try and get any Hyperlink formula and I keep getting
Error: Function HYPERLINK may not be used in this type of formula
tried HYPERLINK("anywhere" , "Do stuff")
tried HYPERLINK("00U/e?retURL=%2F006x0000001T8Om&what_id=" & Id, "Create Event")
as per https://na5.salesforce.com/help/doc/user_ed.jsp?section=help⌖=customize_functions.htm&loc=help&hash=HYPERLINK
doesn't like the Id so delete that and then get the 'may not be used'
any ideas?
in developer edition
Lal
- Brendan Lally
- September 10, 2008
- Like
- 0
- Continue reading or reply
BrainEngine IDE Released
- Ability to work simultaneously with several queries in separate windows
- Editing capabilities: snippets, intellisense, syntax highlight, code folding
- Export data to 8 popular formats: MS Excel, MS Access, MS Word, RTF, HTML, PDF, XML, and CSV
- Import data from MS Excel
- Generate reports on object definition, object schema and relationships
- Generate object ER Diagrams
- View Page Layout Definitions
- Outbound Messaging Support
- Enhanced HTML Page Editor
- Jeff D.ax366
- September 09, 2008
- Like
- 0
- Continue reading or reply
Access outside database from within salesforce
- James_Dean
- September 09, 2008
- Like
- 0
- Continue reading or reply
visual force pages not available for override standard button "New"
I have created one visual force page with Custom Controller
Now i want to override that page on standard button "New".
now when i click on "Override" link from setup it redirects me on proper page but there is no Visual Force pages available in dropdown list of Visual force pages.
What could be the problem?
any idea?
Thanks in Advance
- Shwetal Desai
- September 04, 2008
- Like
- 0
- Continue reading or reply
ListView inside tabPanel refreshing whole page...
I'm having problems with a listview inside a tab panel. I've created two tabs inside the panel, the first one contains a form and the second one a listview. The problem is that once I enter to the second tab (the one with the list view) and click for example a letter in the list view to see only records that start with that letter, the whole VF page is refreshed and I get back to the first tab, the second tab now contains only the records that start with the letter I selected, however since the page was refreshed I landed in the default tab, which is the first one.
I've already tried passing the selected tab name to the controller and setting a String with this name in order to use it in the value property of the tabpanel component:
<script> function updateTab(tabname){ switchTab(tabname); } </script> <apex:form > <apex:actionFunction name="switchTab" action="{!switchTab}" immediate="true"> <apex:param name="tabvalue" value="" /> </apex:actionFunction> </apex:form> <apex:tabPanel id="tabcontainer" value="{!selectedTab}"> <apex:tab id="tab_1" name="tab_1" ontabenter="updateTab('tab_1');"/> <apex:tab id="tab_2" name="tab_2" ontabenter="updateTab('tab_2');"> <apex:listViews type="theObject__c" </apex:tab> And the controller: public String selectedTab{get;set;} public void switchTab(){ selectedTab = System.currentPageReference().getParameters().get('tabvalue'); }
Any help will be very appreciated, thank you very much.
Message Edited by jonathan rico on 09-01-2008 12:34 PM
- jonathanrico.
- September 01, 2008
- Like
- 0
- Continue reading or reply
RUBY : Custom object namespace prefix problem
I wish to define Myklass in ActiveSFDC :
Code:
class Myklass < ActiveRecord::Base include ActiveSalesforce::ActiveRecord::Mixin set_table_name("ALT__Myklass__c") endThis does not work : ActiveSFDC looks for ALT_Myklass (notice only 1 underscore), or defaults back to ALT_Myklass__c (still only 1 underscore). This does not work either if we do not set_table_name : AsctiveSFDC goes llooking for Myklass__c, with no prefix.
ActiveSFDC needs to handle namespace prefixes correctly, just as it handles custom '__c' suffixes.
- Rup
- March 19, 2007
- Like
- 0
- Continue reading or reply