- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
08-15-2011 11:10 PM
I have designed a VF page and there is a section to generate a new task. So i wonder is there any way that i can just embed the Task Standard Paglayout in my VF Page as i dont want to hardcode the layout. Apart from that i have multiple layouts assigned to different different profile and my VF page will be accessed by all these profile .
So if there is no other way, then i have generate a section for each profile and render them accordingly. but if there is any change in the pagelayout then i have to modify my VF page also. so i dont want to use this approach.
If anybody have any solutuion then please help me.
08-16-2011 01:02 AM
I think you'll need to use an apex:iframe to pull in the standard new task page, as there's no standard component that allows you to get at the New page for an sobject.
08-16-2011 02:00 AM
Thanks for the prompt reply.
but i think that wont solve my purpose as well. As i want to grab the page block sections part only not the buttons. Also i want to controll the task creation from other sections in the VF Page.
is it possible in that way?
08-16-2011 04:42 AM
In that case I think you'll need to recreate the sections on your VF page. You should be able to alleviate the worst of things by using field sets to control which fields get output. Here's a blog post of mine on the subject:
08-16-2011 05:01 AM
Thats exactly what i am using rightnow but just checking if anybody know better solution than this.
As in this case also, i have to create multiple fieldsets as per record type and profile and have to render that particular fieldset the current record type and profile.
Thanks for taking interest in my problem...
08-16-2011 06:27 AM
Yeah, that is a bummer. I was hoping to be able to iterate all the field sets defined for an object and decide programmatically whether to use them, but that doesn't work either.