jquery - VF page for line items in related list of opportunity.! -


i had created vf page related list of line items,i trying replace related list vf page. struck these things.please me.

1.i having 2 record types has different fields display on page layout. how can this?

2.i want give show more option user on standard layout.so when clicked on it,it should show products/line items.

3.i want give sorting ability on 1 field.its custom sorting. how can this?using jquery ??i not aware of jquery.please guide me.

4.i created action header edit , del links.but del link doesnt work.it takes me url no longer exists.

​please me.

this vf page:

<apex:page standardcontroller="opportunity">     <apex:form >       <apex:pageblock title="products (standard price book)">        <apex:pageblockbuttons location="top" >         <apex:commandbutton action="{!urlfor($action.opportunitylineitem.addproduct, id)}" value="add product" />           <apex:commandbutton action="!urlfor($action.opportunitylineitem.editallproduct, id)}" value="edit all" />            <apex:commandbutton action="{!urlfor($action.opportunitylineitem.choosepricebook, id)}" value="choose price book" />     </apex:pageblockbuttons>     <apex:pageblocktable value="{!opportunity.opportunitylineitems}" var="oli">      <apex:column headervalue="action">        <b><apex:outputlink value="{!urlfor($action.opportunitylineitem.edit,      oli.id)}">edit</apex:outputlink></b>|<b><apex:outputlink value="  {!urlfor($action.opportunitylineitem.delete, oli.id)}">del</apex:outputlink></b>        </apex:column>      <apex:column headervalue="product">        <apex:outputlink value="{!urlfor( $action.product2.view  ,oli.pricebookentry.product2id)}">{!oli.pricebookentry.name}</apex:outputlink>       </apex:column>      <apex:column headervalue="product code">       <apex:outputlink value="{!urlfor( $action.product2.view  ,oli.pricebookentry.product2id)}">{!oli.productcode}</apex:outputlink>       </apex:column>      <apex:column headervalue="sales price each">       <apex:outputlink value="{!urlfor( $action.product2.view  ,oli.pricebookentry.product2id)}">{!oli.unitprice}</apex:outputlink>       </apex:column>      <apex:column headervalue="quantity">       <apex:outputlink value="{!urlfor( $action.product2.view  ,oli.pricebookentry.product2id)}">{!oli.quantity}</apex:outputlink>       </apex:column>      <apex:column headervalue="totalprice">       <apex:outputlink value="{!urlfor( $action.product2.view    ,oli.pricebookentry.product2id)}">{!oli.totalprice}</apex:outputlink>       </apex:column>    </apex:pageblocktable>   </apex:pageblock>  </apex:form>  

you need write extension class support customisations.

1/ recordtype, need opportunity.recordtypeid , , in visualforce page:

<apex:outputpanel rendered="{!recordtype=='whatever id'}"> <apex:pageblock table> <!-- show columns --> 

2/ show "all" have outputlink new visualforce page, pass opportunityid , display line items on page

3/ use this enhancer sorting - useful.

4/ cannot tell why delete doesn't work, line item deleted?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -