• Vinoth-Apex
  • NEWBIE
  • 0 Points
  • Member since 2011

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

Hi friends,

 

I'm new to this tech.

 

I create 3 pages like page1, page2 and page3

 

in page 1 i've list of book details like book name and description,

 

if i click book name it redirect to page2. page 2 contains full information about book.

 

when i create a site , i done page 1 as home page. but it not redirect to page2

 

this is the url http://ebooksinfo-developer-edition.ap1.force.com/listbooks  

 

 

following is my code in home page

 

<apex:page standardStylesheets="false" showHeader="true" sidebar="false" standardController="Book__c" recordSetVar="Books" >
<apex:stylesheet value="{!URLFOR($Resource.Styles, 'styles.css')}" />
<apex:form >
<h1> Display Records </h1>
 <apex:dataTable value="{!Books}" var="bitem" rowClasses="odd,even" style="margin:10px 0px 0px 20px; border:1px red solid;" cellspacing="5">
 
     <apex:column headerValue="Book Name" >
     <apex:outputText value="{!bitem.Book_Name__c}"></apex:outputText>
     </apex:column>
    
     <apex:column headerValue="Price of the Book">
     <p align="right">
     <apex:outputText value="{!bitem.Price__c}"></apex:outputText></p>
     </apex:column>
     
     <apex:column headerValue="Stock Avilable">
     <p align="right">
     <apex:outputText value="{!bitem.Stock__c}"></apex:outputText>
     </p>
     </apex:column>
     
          
     <!--  <apex:column headerValue="Modify Price">
     <apex:inputText value="{!bitem.Price__c}"></apex:inputText>
     </apex:column>
     
     <apex:column headerValue="Update">
     <apex:commandButton action="{!save}" value="Save" rendered="true"/>
     </apex:column> -->
     
 </apex:dataTable>  
 <apex:commandLink id="CC1" action="http://ebooksinfo-developer-edition.ap1.force.com/page2?id=00190000006KnVu" title="Link1" value="Link" />
 </apex:form>
</apex:page>

 

 

if any mistake i done give me correct solution.

 

Thanks and regards



Hi to all,

 

How we can access our own created objects. (Like Account ) I created one Book Object .

 

<apex:page standardController="Book"  sidebar="false">
    <apex:form >
        <apex:inputField value="{!Book.Book_Name}"/>
        <apex:inputField value="{!Book.Author_Name}"/>
        <apex:inputField value="{!Book.Price}"/>
    <apex:commandButton action="{!save}" value="Save!" />
    </apex:form>    
</apex:page>

 

The Error is Error: Book does not exist

 

Thanks and Regards

                               Vino X

Hi to all,

 

How we can access our own created objects. (Like Account ) I created one Book Object .

 

<apex:page standardController="Book"  sidebar="false">
    <apex:form >
        <apex:inputField value="{!Book.Book_Name}"/>
        <apex:inputField value="{!Book.Author_Name}"/>
        <apex:inputField value="{!Book.Price}"/>
    <apex:commandButton action="{!save}" value="Save!" />
    </apex:form>    
</apex:page>

 

The Error is Error: Book does not exist

 

Thanks and Regards

                               Vino X