FacetSearchTools.facets

Hi all,
am working ipad application in ATG 10.1.0, facing a problem, didn't get the array of FacetSearchTools.facets. in crs its working. in adapter module its not working. In ATG10.0.3 its working both crs and ipad application, after migration to ATG10.1.0 am facing.
<json:array name="categories">
*<dsp:getvalueof var="facetHolders" bean="FacetSearchTools.facets"/>*
<c:forEach var="currentFacetHolder" items="${facetHolders}">------->its not going inside the for loop
<dsp:param name="currentFacetHolder" value="${currentFacetHolder}"/>
<dsp:getvalueof var="facetName" vartype="java.lang.String" param="currentFacetHolder.facet.label"/>
<dsp:getvalueof var="facetId" vartype="java.lang.String" param="currentFacetHolder.facet.id"/>
<dsp:getvalueof var="facetProperty" param="currentFacetHolder.facet.refinementElement.property"/>
<c:if test="${facetProperty != 'ancestorCategories.$repositoryId'}">
<%@include file="facetCategory.jspf" %>
</c:if>
</c:forEach>
</json:array>
same functionalities in crs, its getting the array of facets
please suggest some points
thanks in advance

Thank you Lisa, I'll get that updated ASAP.
Marina

Similar Messages

  • Facetsearchtools

    Hi all,
    am working ipad application in ATG 10.1.0, facing a problem, didn't get the array of FacetSearchTools.facets. in crs its working. in adapter module its not working. In ATG10.0.3 its working both crs and ipad application, after migration to ATG10.1.0 am facing.
    <json:array name="categories">
    *<dsp:getvalueof var="facetHolders" bean="FacetSearchTools.facets"/>*
    <c:forEach var="currentFacetHolder" items="${facetHolders}">------->its not going inside the for loop
    <dsp:param name="currentFacetHolder" value="${currentFacetHolder}"/>
    <dsp:getvalueof var="facetName" vartype="java.lang.String" param="currentFacetHolder.facet.label"/>
    <dsp:getvalueof var="facetId" vartype="java.lang.String" param="currentFacetHolder.facet.id"/>
    <dsp:getvalueof var="facetProperty" param="currentFacetHolder.facet.refinementElement.property"/>
    <c:if test="${facetProperty != 'ancestorCategories.$repositoryId'}">
    <%@include file="facetCategory.jspf" %>
    </c:if>
    </c:forEach>
    </json:array>
    http://localhost:8180/crs/storeus/adapter/facetSearchProductsForCategory.jsp?csf=Price%20High-Low&q_pageNum=&q_facetTrail=&repositoryId=cat170017
    Response:
    "err": "",
    "categoryId": "cat170017",
    "addFacet": "",
    "facetTrail": "trail=9004:cat170017",
    "removeFacet": "",
    "appliedFacetTrail": "9004:cat170017",
    "sort": "numprop",
    "facets": [
    "categories": [
    here category is not getting
    "products": [
    { // *here getting  products*
    "numResults": "7",
    "q_pageNum": "",
    "pagesAvailable": "1",
    "viewAll": "true",
    "docSort": "numprop"
    normal keyword serach is working in ipad application. eg: shirt
    same functionalities in crs, its getting the array of facets
    please suggest some points
    thanks in advance

    The search server returns the results in the form of groups. You can notice the groupCount value in the xml is set to 100. The value of the groupCount is determined by setting the responseNumberSettings property in the QueryRequest component.
    responseNumberSettings=\
    prop=100,\
    perProp=1,\
    doc=100,\
    perDoc=1
    You can notice here that the value of the doc property is set to 100. It indicates maximum number of document result groups to return. I believe this is the reason why you are only seeing 100 results though the total number of products are more. You can tweak this property in the QueryRequest component and try.
    <ATGDir>\DCS\Search\Query\config\config\atg\commerce\search\catalog\QueryRequest.properties.

  • Trying to make multiple facet/selections work

    I'm assigned a task of making ATG Commerce Reference Store use alternatives in faceted search filtering.
    What do I mean:
    Suppose I have facet "Color" with values "Red", "Green" and "Indigo". I'm located in some top-level category.
    And I filter search results by clicking on "Red" facet value in navigation panel. Search is requested with facetTrail string like: "9004:cat70002:1002:Red".
    But resulting FacetTrail object does not contain information about facet values "Green" and "Indigo".
    Documentation says:
    The search engine filters all facets unless the refinement configuration specifies otherwise. To disable
    filtering of an individual facet, you add the faceting property to the filterProperties array property of
    the /atg/commerce/search/refinement/RefinementConfigurationXMLGenerator component.
    By default, this property is set to:
    filterProperties=\
            ancestorCategories.$repositoryId,\
            ancestorCategories.displayName If you have additional facets that you do not want to be filtered, add the faceting properties to this array.
    For example:
    filterProperties+=paperSizesI added all available in CRS filterProperties in RefinementConfigurationXMLGenerator object as instructed, like so:
    filterProperties+=price,childSKUs.size,childSKUs.color,childSKUs.woodFinish,features.displayNameBut, sadly, this had no effect.
    I'm checking for multiple facet values by running:
    <c:forEach var="currentFacetValue" items="${facetTrail.facetValues}">
        <dsp:getvalueof var="facetId" vartype="java.lang.String" value="${currentFacetValue.facet.id}" />
        <dsp:getvalueof var="facetValue" value="${currentFacetValue.value}" />
        <dsp:valueof value="${facetId}" />
        <c:forEach items="${facetValue}" var="currentMultiValue">
            <dsp:valueof value="${currentMultiValue}" />
        </c:forEach>
    </c:forEach>,where I got $facetTrail object by running:
    <dsp:droplet name="CommerceFacetTrailDroplet">
        <dsp:param name="trail" bean="FacetSearchTools.facetTrail" />
        <dsp:param name="refineConfig" param="catRC" />
        <dsp:oparam name="output">
          <dsp:getvalueof var="facetTrail" param="facetTrail"/>
        </dsp:oparam>
    </dsp:droplet>----------------
    There were some related questions, but they didn't help:
    Search 10.0.1 - Multi facet issue. - no answer given
    multiple facet selection, with OR combination - I re-did the indexing from BCC, but it did nothing back.
    So, how do I get required result? Have I misconfigured something? Or I simply searching results in the wrong place?
    Edited by: 927222 on Apr 13, 2012 5:48 AM

    Ok..so if i get it right here
    your facet trail after selecting red color is coming as "9004:cat70002:1002:Red"
    which means that you are telling search engine to bring all search results that are in cat70002 and of color Red.
    Now why would refinements contain green and indigo.
    Coz when you are in top category your facet trail would be "9004:cat70002", which will say that bring me all results under category cat70002, and which will contain results of Red, Green and Indigo too if they are present.
    By clicking on a color you are basically narrowing your search.

  • Search 10.0.1 - Multi facet issue.

    Hello,
    I am trying to get multi facets operational on storefront and as mentioned in the documentation, I configured filterProperties of RefinementConfigurationXMLGenerator.properties component with the properties to avoid filtering the results for non-selected items. and business has the need to display the matchingDocsCount against the Facet displayed on WEB. Also, FacetSearchTools.properties is configured for not skipping the facet values already in trail (skipValuesAlreadyInTrail=false).
    However, filterProperties does not seems to have taken effect. ATG search response does not contain all the facets against an element; response contain only the facets selected + contained in the products fetched by search. For instance, Color facet has 3 values - Red, Blue & Black. On selecting Black, we are expecting ATG search to return all 3 facet values based on filterProperties configuration.
    can anyone suggest with regards to what additional configurations missed or needed or pointers to get this fixed??
    Many thanks in advance.
    Suresh

    Hi Suresh,
    Can you explain with some example what exactly we are tying to active ?.
    I worked on this component. this component's filtered properties is meant to return all the possible values for that facet.
    eg :
    if we have a product having 3 child skies with 3(r,b,g) colors and we selected a 'r' then in the facets it will return all the values. if we don't configure the color facet in filter properties we will get only 'r' in the search response as facet values for the color.
    -- RAVI K.

  • How can I display "detailStamp" facet selectively for rows in a table ?

    Hi,
    My JDEV version is Studio Edition Version 11.1.1.5.0
    I am trying to display "detailStamp" facet selectively .
    If I read api in link below
    http://docs.oracle.com/cd/E26098_01/apirefs.1112/e17488/oracle/adf/view/rich/component/rich/data/RichTable.html
    Use the "detailStamp" facet on the Table to include a collapsable content area for each table row. Please note that the height of the open detail area will be a set height based on the height of the detailStamp component. Adding a component that changes in height (like showDetail or panelBox) will by default produce strange results when the detailStamp component's height changes.
    Detail Stamp can be selectively displayed for rows in the table by EL binding the "rendered" attribute of the "detailStamp" facet to "true" or "false". The EL binding can contain references to the table "var" attribute since during rendering it will be executed in the context of the row. Disclosure icon is displayed only for rows which have rendered="true".
    I can see that i can achieve it by setting rendered property for that facet. BUT this property is not available in Studio Edition Version 11.1.1.5.0

    Hi Frank.
    Thanks for your quick reply .
    But I am using Studio Edition Version 11.1.1.5.0 . In this version the property RENDERED of f:facet name="detailStamp" is NOT allowed.
    Edited by: user13764942 on Feb 7, 2013 5:48 AM
    Put in another way , I want to render the "detailStamp" facet selectively for rows , so for that I need the RENDERED property of "detailStamp" facet. This property is ONLY available in Jdev version 11.2 . I am using Jdev 11.1.1.5.0 so I need some alternative to RENDERED property as this property is NOT available in Jdev 11.1.1.5.0.
    Please suggest some way to achieve this behaviour of displaying "detailStamp" facet selectively ....
    Thanks!
    Edited by: Mangpal Singh on Feb 7, 2013 11:57 PM

  • Unable to add facet Spring 3.0

    Trying to select Spring version 3.0 results in "Further configuration required".
    The Spring configuration wizzard does not enable Next-button when choosing "Spring Framework Bundle from Spring IDE" as Library type.
    Pressing OK and Apply removes the Spring-selection!

    Could you see if there are any stack traces recorded in the log.
    1. Open Error Log view.
    2. Clear it.
    3. Repeat your steps to add Spring facet.
    4. Did anything show up in the log? If yes, please post here.
    - Konstantin

  • How to use the filter facet on af:column

    I have a column in my VO that is defined as a boolean and that shows as a selectBooleanCheckbox in my table. My table has filters on but above the boolean column it shows a regular input field.
    I checked the filter facet and i also put a selectBooleanCheckbox in it but i don't know how to set the values so the data will be filtered when the value of the checkbox changes.
    <f:facet name="filter">
                        <af:selectBooleanCheckbox id="cbFilt"/>
                      </f:facet>

    For an example that uses a selectOneChoice, easily adaptable to a selectBooleanCheckbox solution, please see:
    Re: how create selectOneChoice in filter facet of af:column _ jdeveloper11g.
    Regards,
    Matthew

  • How to add a facet to an existed project in my plug-in?

    In my plug-in on Workshop, I want to add a facet to a project dynamicly, and I try two ways, but it does't work:
    1: use method "installProjectFacet"
    facetedProject.installProjectFacet(fv,fv.createActionConfig(Action.Type.INSTALL,project.getName()), monitor);
    The exception is :
    org.eclipse.core.runtime.CoreException: Class com.bea.wlw.xmlbeans.feature.XMLBeansBuilderFeatureConfiguration$Factory is not an instance of org.eclipse.wst.common.project.facet.core.IActionConfigFactory.
    at org.eclipse.wst.common.project.facet.core.internal.ProjectFacetVersion.createActionConfig(ProjectFacetVersion.java:141)
    at ilog.integration.bea.workshop.AddXMLBeanFacet.execute(AddXMLBeanFacet.java:171)
    2: use method setFixedProjectFacets
    final Set <ProjectFacet> sourceFixed=facetedProject.getFixedProjectFacets();
                             Set <ProjectFacet> updatedFixed=new HashSet<ProjectFacet>();
                             Iterator it=sourceFixed.iterator();
                             while(it.hasNext()){
                                  updatedFixed.add((ProjectFacet)it.next());
                             updatedFixed.add(f);
                             final Set <ProjectFacet> destFixed=updatedFixed;
                             facetedProject.setFixedProjectFacets(destFixed);
    after executed, there is no changes.
    Can you give me some advice?

    After I add "org.eclipse.wst.common.project.facet.core" to my plug-in dependencies, the above exception does't appeared, the installProjectFacet can be executed without exception.
    But when I release the plug-in and setup on workshop, there was a new exception when executed, I meets a new problem:
    Root exception:
    java.lang.NoClassDefFoundError: org/eclipse/wst/common/project/facet/core/IProjectFacet
    at ilog.integration.bea.workshop.ui.shared.utils.AbstractArtifactsGenerator.importSchemas(AbstractArtifactsGenerator.java:138)
    at ilog.integration.bea.workshop.ui.ws.WSArtifactsGenerator.createTypeMembers(WSArtifactsGenerator.java:93)
    at ilog.integration.bea.workshop.ui.ws.pages.NewDecisionServiceWizardPage.createTypeMembers(NewDecisionServiceWizardPage.java:49)
    at ilog.integration.bea.workshop.ui.shared.pages.NewTypeWizardPage.createType(NewTypeWizardPage.java:1844)
    at ilog.integration.bea.workshop.ui.shared.wizards.DecisionServiceCreationWizard.finishPage(DecisionServiceCreationWizard.java:71)
    at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:117)
    at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:718)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1721)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3844)
    at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Why can’t find the class IProjectFace? I haved added project facet plug-in into my plug-in dependencies, so I am confused. Does our plug-in needs other setting except eclipse plug-in's dependecies?
    no pains, no gains

  • Is there a way to automatically size the facet Top of a pan stretch layout?

    I have the following structure
                <af:panelStretchLayout id="psl1" topHeight="215px" partialTrigger="pbox" >
                        <f:facet name="top">
                               <af:panelBox id="pbox"As you can see the topHeight property of the top facet of the panelStretchlayout is fixed.
    The value can exactly contain the panelBox contained when it is disclosed. When the user undiscloses the panelbox, I want to automatically resize the top facet height to exactly contain the undisclosed panel box.
    Is there anyway to do this via expression language on pre-defined propertries of the components?
    If possible I would like to avoid to create a bean which gets the height programmatically from the panelBox.

    Yes just use "*auto*" like this:
    <af:panelStretchLayout id="psl1" topHeight="auto" partialTrigger="pbox" >
    <f:facet name="top">
    <af:panelBox id="pbox">
    just this will take care of it.... though u will get warning yellow line but is perfectly fine.... i would rather say, jdev should nt show that line instead.
    cheers

  • Help needed for changing Project Facets

    Hi,
    I am facing a problem in publishing a dynamic web project on workshop for weblogic 9.2. i have set the java compiler settings to 1.3. the error displayed is "Java compiler level does not match the version of the installed Java project facet. at ...<web project name goes here>"
    I checked the project facet settings as Java 5.0. this however is not editable. Is building an Ant script the way forward and if it is, what is the tag specific to project facet settings?
    Thanks in advance.

    You can also use a LSMW.
    You are lucky, this is exactly the eg taken in SAP help :
    http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
    Hope this helps,
    Erwan

  • Error while configuring Facet dimension as a Month (Jan..Dec)

    Dear All,
    In SAP BusinessObjects Explorer, I am getting the attached error when I choose to display a dimension 'Month' ( contains values 'January', 'February' .. , 'December') as Dimension with 'Month ( Jan to Dec)'.
    The error message is as below :
    The prompts module failed to initialize.
    Server error occurred while analyzing the prompt. (PS 50201)
    Details : The creation of the prompt input session failed.
    No objects have been modified or deleted in the universe.
    The current System configuration is
    BI 4.0 SP6
    Database: Sybase ASE 15.5
    I followed the below process :
    1. Go to 'Manage Spaces'
    2. Select the universe
    3. Select the explorer and click on 'Index Now'.
    4. After indexing is successful, select 'Configure'
    5. Go to the 'Objects' tab and add the dimension 'Month' from the universe as a Facet.
    6. Select the facet 'Month' and under the Details section, in Dimension drop-down; select 'Months (Jan..Dec)'
    7. click on Validate
    Thanks and Regards,
    Prathmesh

    Hi Nakul,
    Below is the overview
    Database Level : datatype is Date
    Universe : extract the month and using 'case.. when' convert it to respective month names as January, February, March etc
    Explorer Level : I have 2 dimensions as 'Month_Name' (derived month name form date) and 'Date' ( the date column)
    The 'Date' dimension only lets me choose 'Standard' option while the others are disabled
    The 'Month_Name' dimension lets me choose the 'Month ( Jan to Dec)' option but gives the error.
    I hope this explains my scenario
    Thanks and Regards,
    Prathmesh Pai

  • ADF Tree Table Repeats Elements at All Levels in nodeStamp Facet

    Fusion Middleware Version: 11.1.1.5
    WebLogic: 10.3.5.0
    JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
    Project: Custom WebCenter Portal Application integrated with custom ADF task flows.
    Hi
    I have an issue with ADF Tree Table (af:treeTable) whereby if I add a component to a group under the 'nodeStamp' facet it repeats for all levels in the tree even those outside the group.
    Overview:
    - 3-level master-detail structure created using ADF Business Components (3 view objects connected by 2 view links)
    - ADF Tree Table based on master-detail
    - Requirement to show 3 levels of data in the first column as a tree
    - Tree table is rendering correctly showing values for 'node.FullName', 'node.DisplayValue' and 'node.HoursType' respectively in a 3 level tree.
    - When another component is added to the top node in the tree ('node.FullName') for example some output text ('node.TimeBuildingBlockId'), it is displayed along side components 'node.DisplayValue' and 'node.HoursType' as well.
    Code snippet:
          <af:treeTable value="#{bindings.PerPeopleFVO1.treeModel}" var="node"
                        selectionListener="#{bindings.PerPeopleFVO1.treeModel.makeCurrent}"
                        rowSelection="single" id="tt1" styleClass="AFStretchWidth"
                        horizontalGridVisible="true" verticalGridVisible="true"
                        disableColumnReordering="true" summary="Timecard Entry"
                        displayRow="selected" expandAllEnabled="false"
                        contentDelivery="immediate" autoHeightRows="24"
                        columnStretching="column:column1"
                        binding="#{pageFlowScope.TimecardMB.tree_binding}">
            <f:facet name="nodeStamp">
              <af:column id="c1" headerText="Partner Details" width="500">
                <af:group id="g4">
                  <af:outputText value="#{node.FullName}" id="ot3"/>
                  <af:outputText value="#{node.TimeBuildingBlockId}" id="ot1"/>
                </af:group>
                <af:outputText value="#{node.DisplayValue}" id="ot4"
                                inlineStyle="color:Green; font-weight:bolder;"/>
               <af:outputText value="#{node.HoursType}" id="ot5"/>
                <f:facet name="filter"/>
              </af:column>
            </f:facet>
            <f:facet name="pathStamp">
              <af:outputText value="#{node}" id="ot2"/>
            </f:facet>
       <af:column FROM HERE.........>
    Any ideas greatly appreciated.

    Hi,
    Try using a switcher to distinguish all three levels of a tree. You can have three different facets, three different af:group 's.
    When you add in one level, it will not repeat in the other level.
    Please see the below snippet.
    <af:tree value="#{bindings.RefBusinessUnitView1.treeModel}" var="node"
    selectionListener="#{bindings.RefBusinessUnitView1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <af:switcher id="s1"
    facetName="#{node.hierTypeBinding.viewDefName}">
    <f:facet name="model.RefBusinessUnitView">
    <af:group id="g2">       
    <af:outputText value="#{node.Code}" id="ot1"/>
    </af:group>
    </f:facet>
    <f:facet name="model.RefProductFamilyView">
    <af:group id="g3">
    <af:outputText value="#{node.ProductFamilyName}" id="outputText1"/>
    <af:outputText value="#{node.PName}" id="outputText2"/>
    </af:group>
    </f:facet>
    </af:switcher>
    </af:group>
    </f:facet>
    </af:tree>
    Nitish

  • Command links are not rendering properly in panel collection toolbar facet

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Command links are not rendering properly in the toolbar facet of panel collection

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Af:table inside detailStamp facet is slow

    Hi All,
    I am using JDeveloper 11.1.1.6. In my page i have an af:table and inside the table i have a facet="detailStamp" which contains one more af:table. I am having a button which opens the detailstamp facet of the selected row of the outer table. And I am allowing some operations like multiple row selection and processing with the selected rows for the innner table.It is very slow with this design. Especially in IE it is much slower than the other browsers. But if i remove the inner table from detail stamp and place it outside of the first table then it is working as expected with minimum delay. Is there any specific reason for this ? Is there anything that i can do to solve this. Or should i change the design itself? If I have to change the design then is there any way to achieve my UI need (when i click on a button after selecting rows in af:table it should open a section in between rows).
    Thanks,
    Priya.

    Unless things have changed (I didn't see anything with a quick Google search), putting af:table in a detailStamp isn't supported. Why not use af:tree or af:treeTable?

Maybe you are looking for

  • Mail in 10.7.5 suddenly off line on all my devices....HELP

    iMac (24-inch Early 2008) running OS 10.7.5 MacBook Pro (15-inch Mid 2010) running OS 10.7.5 iPad 2 (wifi) running iOS 6.1.3 iPad 4 (wifi) running iOS 6.1.3 Here's the problem. I have internet connection. But suddenly today all my devices are off lin

  • N81 VGA video capture

    Hi, I`m having some problems with my Nokia n81. I can`t capture a VGA video/640x480px/, is it a firmware issue or just a setting? My phone is set to Video Quality-High, but it still captures a clip with resolution 320x240px. In the following specific

  • I have been having problems downloading one email account for over a week. I have removed and re-added account.

    This seems to be a problem brought on by the latest version of TB. Can I roll-back to older version?

  • Accessing DropDownByKey value in Table

    Hi everyone, I have a table and inside it dropdownbykey. I want to go with a loop on the table contents. with the following command: wdContext.nodeResearcherTable().getElementAt(i)... I get the selected row of the table. But, how do I get what the us

  • Commission-agent in Oracle

    Hello We would like to know how to model a commission-agent business model with Order Management. In such an arrangement, the principal delivers (through commissionaire) goods to the customer; commissionaire remits the price received to the principal