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
atifmohdatifmohd 

how to add the two custom object tabs in one visual force page

how to connect to different objects in visualforce page which is tagged inside an tabs

 

this is my first custom object code

<apex:page standardController="Provider_Group__c" showHeader="true" sidebar="true">
<apex:form >
<apex:detail relatedList="true"/>
<apex:tabpanel switchType="client" selectedTab="tabdetails" id="AccountTabPanel" tabClass="activeTab" inactiveTabClass="inactiveTab" style="Account">
<apex:tab name="Provider Group" label="Provider Group" id="provider">

<apex:pageBlock title="Basic Information" mode="edit" id="providergroup" >
<apex:pageBlockSection columns="1">



<apex:inputfield value="{!Provider_Group__c.Provider_Group__c}" />
<apex:inputfield value="{!Provider_Group__c.Status__c}" />
<apex:inputfield value="{!Provider_Group__c.Type__c}" />
<apex:inputfield value="{!Provider_Group__c.Company_name__c}" />
Notifications*<apex:inputfield value="{!Provider_Group__c.Use_Members_to_Broadcast__c}" />
<apex:inputfield value="{!Provider_Group__c.Group_Worklist__c}" />
<apex:inputfield value="{!Provider_Group__c.Group_Worklists__c}" />
<apex:inputfield value="{!Provider_Group__c.Preferred_Notification__c}" />
<apex:inputfield value="{!Provider_Group__c.Email_Address__c}" />
<apex:inputfield value="{!Provider_Group__c.Comments__c}" />
<apex:inputfield value="{!Provider_Group__c.Currency_Code__c}" />
</apex:pageBlockSection>




</apex:pageBlock>
</apex:tab>

<apex:tab name="Schedule" label="Schedule" id="providerr">
</apex:tab>
</apex:tabpanel>
</apex:form>

</apex:page>

 

i want to connect next program to the tab of schedule which is der in first page

<apex:page StandardController="Schedule__c" standardStylesheets="true">
<apex:form >

<apex:pageBlock title="Schedule">

<apex:pageblockButtons location="bottom" >
<apex:commandButton action="{!Quicksave}" value="save" />
</apex:pageblockButtons>

<apex:pageBlockSection columns="1">

<apex:inputfield value="{!Schedule__c.Time_Zone__c}" />
<apex:inputfield value="{!Schedule__c.Holiday__c}" />

</apex:pageBlockSection>
<apex:pageBlock title="Hours of Operation">
<apex:pageBlockSection >

<apex:pageBlockTable value="{!Schedule__c}" var="opp" cellpadding="5" border="l" headerClass="red" columnsWidth="2" >

<apex:column headerValue="Monday">
<apex:pageBlock title="Hours on Monday">
<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Schedule__c.Monday__c}"/>
<apex:inputField value="{!Schedule__c.Start_Time1__c}"/>
<apex:inputField value="{!Schedule__c.End_Time1__c}"/>
</apex:pageBlockSection>

</apex:pageBlock>
</apex:column>

</apex:pageBlockTable>


<apex:pageBlockTable value="{!Schedule__c}" var="opps" cellpadding="5" border="l" headerClass="red" columnsWidth="5" >
<apex:column headerValue="Tuesday">
<apex:pageBlock title="Hours on Tuesday">
<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Schedule__c.Tuesday__c}"/>
<apex:inputField value="{!Schedule__c.Start_Time2__c}"/>
<apex:inputField value="{!Schedule__c.End_Time2__c}"/>

</apex:pageBlockSection>

</apex:pageBlock>
</apex:column>
</apex:pageBlockTable>

<apex:pageBlockTable value="{!Schedule__c}" var="oppss" cellpadding="5" border="l" headerClass="red" >
<apex:column headerValue="Wednesday">
<apex:pageBlock title="Hours on Wednesday">
<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Schedule__c.Wednesday__c}"/>
<apex:inputField value="{!Schedule__c.Start_Time3__c}"/>
<apex:inputField value="{!Schedule__c.End_Time3__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:column>
</apex:pageBlockTable>

<apex:pageBlockTable value="{!Schedule__c}" var="oppsss" cellpadding="5" border="l" headerClass="red" >
<apex:column headerValue="Thursday">
<apex:pageBlock title="Hours on Thursday">
<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Schedule__c.Thursday__c}"/>
<apex:inputField value="{!Schedule__c.Start_Time4__c}"/>
<apex:inputField value="{!Schedule__c.End_Time4__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:column>
</apex:pageBlockTable>
<apex:pageblockTable value="{!Schedule__c}" var="oppssd" cellpadding="5" border="l" headerClass="red" >
<apex:column headerValue="Friday">
<apex:pageBlock title="Hours on Friday">
<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Schedule__c.Friday__c}"/>
<apex:inputField value="{!Schedule__c.Start_Time5__c}"/>
<apex:inputField value="{!Schedule__c.End_Time5__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:column>
</apex:pageblockTable>
<apex:pageblockTable value="{!Schedule__c}" var="oppsse" cellpadding="5" border="l" headerClass="red" >
<apex:column headerValue="Saturday">
<apex:pageBlock title="Hours on Saturday">
<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Schedule__c.Saturday__c}"/>
<apex:inputField value="{!Schedule__c.Start_Time6__c}"/>
<apex:inputField value="{!Schedule__c.End_Time6__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:column>
</apex:pageblockTable>
<apex:pageblockTable value="{!Schedule__c}" var="oppssu" cellpadding="5" border="l" headerClass="red" >
<apex:column headerValue="Sunday">
<apex:pageBlock title="Hours on Sunday">
<apex:pageBlockSection columns="1" >
<apex:inputField value="{!Schedule__c.Sunday__c}"/>
<apex:inputField value="{!Schedule__c.Start_Time7__c}"/>
<apex:inputField value="{!Schedule__c.End_Time7__c}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:column>
</apex:pageblockTable>

 

</apex:pageBlockSection>
</apex:pageBlock>
</apex:pageBlock>

</apex:form>

</apex:page>

 

 

Can u tell me how to add two custom objects tabs in same visual force page

joshbirkjoshbirk

So the Schedule object is something you can find based on the object being referenced by the standard controller in the first tab, correct?

 

I believe you could add an extension, have the extension find the Schedule object based on whatever is true for that above statement, add that to your first page component and then you can combine the two tabs together.  I can help with that sample, but need to understand the relationship.

rohitrrohitr

Hi,

I need to save the page details in two different standard objects in a single go.

Help me

VishnuEVishnuE

Hi,

I need to save the page details in two different standard objects in a single go.

Help me