function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ToddKruseToddKruse 

Question regarding apex:detail tag

I have code now that when using apex:detail subject="{!project}".  It displays the "Project" object just fine.  In that Project pay layout is a section for assignments.  There can be anywhere from 1 to many assignments per project.

 

The current page layout allows me to click the "Create New Assignment" and it takes me to a different page.

 

My boss would like to have it all stay on the same page.  So when the user clicks that "create new assignment" button, we don't leave the project page, but the assignment creation/edit screen displays on that screen.

 

Is this even possible? And if so, any good samples?

 

Thanks

 

--Todd Kruse

 

Anand@SAASAnand@SAAS

It is not possible using hte <apex:detail> tag. The apex:detail emulates the standard salesforce application behaviour. You could however do the following:

1. Create a visual force page for creation of "assignment".

2. Create a "custom list button" for Assignment called "Create new Assignment"

3. Bind the custom button to the visual force page.

 

This way you can popup the new Assignment page and the "Project" page will be on the background.

 

You will not be able to display the "new assignment" page in the Project detail page until you re-write the entire project detail page in visual force.