• cinov8
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 22
    Questions
  • 11
    Replies

I am converting my website to Sites, but have some PHP script running on one page. Can Sites/Force.com host this code so that it continues to run or do I need to host that particular page outside the platform for now?

 

Thanks!

I am trying to create a custom VF page for both a regular Platform user (i.e. the company) and a Portal User (i.e. their client/partner) on the same custom object so they can each have a special view.

 

Do I really need to create two VF pages (even though they are identical) and then somehow display the right one based on the users' profile? I was hoping I could create one, override the "View" of the object and it would work, but I get a permissions error until I finally created two completely separate tabs/pages.

 

I also need a custom VF page when both create an Inspection.

 

Any ideas? 

I created an Opportunity extension class and page, which retrieves related Deals. I could add this page to the Opportunity page layout but not as a related list.

 

Is there a limitation that the VF page can not be added to the related list or it's the way I defined the page? I am new to VF and pointers or useful code snippet will be appreciated.

 

Thanks!

Pr@sh...

 

Message Edited by prabhutum on 04-27-2009 07:13 AM

I am using a tab panel to reorganize an Account page.  The issue is that now users cannot leverage the inline editing functionality within the details page (e.g. click on a field to edit).  Can this be turned on somehow?

 

 

<apex:page standardController="Account" showHeader="true" tabStyle="account"> <apex:tabPanel switchType="client" selectedTab="name2" id="theTabPanel"> <apex:tab label="Details" name="AccDetails" id="tabdetails"> <apex:detail relatedList="false" title="true"/> </apex:tab> <apex:tab label="Contacts" name="Contacts" id="tabContact"> <apex:relatedList subject="{!account}" list="Contacts" /> </apex:tab> <apex:tab label="Opportunities" name="Opportunities" id="tabOpp"> <apex:relatedList subject="{!account}" list="Opportunities" /> </apex:tab> <apex:tab label="Projects" name="Projects" id="tabProj"> <apex:relatedList subject="{!account}" list="Projects__r" /> </apex:tab> <apex:tab label="Open Activities" name="OpenActivities" id="tabOpenAct"> <apex:relatedList subject="{!account}" list="OpenActivities" /> </apex:tab> <apex:tab label="Activity History" name="ActivityHistory" id="tabActHist"> <apex:relatedList subject="{!account}" list="ActivityHistories" /> </apex:tab> <apex:tab label="Notes and Attachments" name="NotesAndAttachments" id="tabNoteAtt"> <apex:relatedList subject="{!account}" list="NotesAndAttachments" /> </apex:tab> <apex:tab label="Expenses" name="Expenses" id="tabExp"> <apex:relatedList subject="{!account}" list="Expenses__r" /> </apex:tab> </apex:tabPanel> </apex:page>

 

 

 

I am developing a custom component that has one SelectList and one Command button.

The selectlist is in multi-select mode so an array of string is prepared to capture user selection.

When the button is clicked, an output label will show the values.

 

Here is the code:

 

 

<apex:component controller="zTestComponent" >

<apex:outputPanel id="thepanel">

<apex:selectList value="{!items}" multiselect="true">
<apex:selectOptions value="{!options}"> </apex:selectOptions>
</apex:selectList>
<apex:commandButton value="submit" action="{!submitMethod}" rerender="thepanel"/>
<apex:outputLabel value="{!message}"></apex:outputLabel>

</apex:outputPanel>

</apex:component>

public class zTestComponent {

public List<SelectOption> options
{
get
{
List<SelectOption> op = new List<SelectOption>();
op.add(new SelectOption('1','test 1'));
op.add(new SelectOption('2','test 2'));
return op;
}
}

public List<string> items
{
get;
set;
}

public string message { get; set; }

public PageReference submitMethod() {
message = '';


if (items != null)
for(string item : items)
{
message += item + ',';
}

return null;
}
}

 

 When the button is clicked, the items variable is always null?!  Any one knows why?

 

I'm trying to view my system.debug statements but they never show up in the system log in Salesforce.  Are there any common reasons why this would happen?  I'm in dev mode and using a system admin account.  Thanks.

I'm trying to modify my Account view from displaying related lists to a tabbed interface.  I have done this successfully with standard objects, but I get an error when I try to append a Custom Object related list.

 

 <apex:tab label="Expenses" name="Expenses" id="tabExp">
         <apex:relatedList subject="{!account}" list="Expenses" />
 </apex:tab>

 

I have a Custom Object "Expense" with a master-detail relationship to Accounts.  I use the proper child relationship name but I get an error stating "Expenses" is not a valid child relationship to the Account entity.

 

Any thoughts? Thanks!

I need to customise my company's customer portal site. I assume I would have to use Visual force for this.
 
Could somebody provide me with documentation of how one does about doing this? Where can I get documentation on this?
 
 
Thanks
 
 
Stephen