Rating with Form-Based Publishing

Hi everybody,
i'm trying to get the Portal rating service to work with XML form-based publishing. The items to be rated are news, which are in a folder on which i already activated the repository service. Then I modified the layout set, adding in the resource renderer the appropriate command group to be displayed.
The result is that i now have a command bar below the news, which can be clicked by users to rate it.
Now I have to make the mean rating to be displayed, but it is more difficult than i thought. Here is a picture of what i would like:
[Image|http://www.mypicturehost.com/show.php/57948_Immagine.jpg.html]
where the red circle is the part still missing.
Do you have any idea on what to do? I suppose that if i want to display the data, i have to add something to the XML, and to the XLST rendering it, too. I just don't know where to get that data, and how.
Thank you in advance.

Hello,
I assume your layout set is rendering one of the forms you developed on a xml form project,
open you project and check your Data Model, under Properties > Collaboration you might find
the property Rating.
If you can't see this property there, go on portal
Content Management > Metadata > Property Metadata > Properties
and search for cm_rating, make sure the Hidden+ parameter is uncheked, if it isn't, do so,
save, refresh your data model and it should be visible.
You can then assign it to a Control Selector and based on its values display the stars properly,
or just assign it to a label and display as integer, doesn't really matter, once you have the Rating value
you can work the way it suits you better
kind regards,
Rafael

Similar Messages

  • TREX Indexing issue. Form based publishing XML files.

    In order to test my TREX indexing functionality, I have created a lot of test XML files (with form based publishing) containg test words.
    What I experiments is that TREX only index the words that is presented on the 'Show' form of the xml document. The template created in the XML Forms Builder that is used to present the document. But thing is, that I only want to index the words from the XML source file, not from the 'Show' form template. Because on that i only have a static label with constant text.
    How do I set TREX to index the source XML file and not the show form template representation of the file?

    Hi Flemming,
    this works as designed. If you want index the whole XML data, you have to store your XMLForms items in a repository on which no "XMLFormsResourceFilter" is defined.
    But if you do that, all the items are rendered as XML and not as HTML. So the SearchResult only gives you links pointing to XML files.
    The only way to index more informations (from my point of view) is to store your additional information into ResourceProperties (you have to design your XMLFormsProject). These properties can be found by the search, if they are set to "indexable=yes".
    Hope this helps
    --Matthias

  • Form-based publishing

    Hi Experts,
    We have an issue with Form-based publishing.
    The documents (News Items) are stored in the KM repository as XML documents, but are edited and viewed in the browser using HTML forms. All of sudden all the News items under KM repository are converted to xml file due to copy/paste method at file system level (Not through KM). And the layout set (NewsBrowser) which we have used to render the news items are not working, it show an empty page.
    What could be the reason and is there any procedure so that we can restore all the news items as Form-based publishing.
    Thank you in advance
    regards
    sunil

    Hi,
    first backup the XML files ;o)
    Then try this (I suppose all the resources are from the same XMLFormsBuilder project):
    1) create a template XML forms news resource in the documents repository
    2) create a destination folder for the news in the KM
    3) copy all the XML to the dest. folder
    4) now goto (you have the ContentManager role) Content Management -> Reports -> Running Reports(related links) -> Goto reports -> Content Administration -> Mass operations -> Propagation of the properties
    5) click Start -> define name, set the location to the destination directory (for example /documents/newsforms/)
    6) click Commands -> check Propagate Properties -> set Property Template Resource to the RID of the template news you have created in the documents repository (for example: /documents/10e87f94-faf4-2b10-1bbb-a1e7aa71470f.xml), Properties for propagation set to "cm_resourcetype", check Overwrite Existing Properties
    7) click "Start"
    8) check the results
    9) enjoy
    Romano

  • Issue with form based Authentication in three tier sharepoint 2013 environment.

    Hi,
    We are facing issue with form based Authentication in three tier environment.
    We are able to add users to the database and in SharePoint.
    But we are not able to login with created users.
    In single tier everything working fine
    Please help , Its urgent ... Thanks in advance.
    Regards,
    Hari
    Regards, Hari

    if the environments match, then it sounds like a kerberos double-hop issue
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How To Use HttpUnit With FORM-based Authentication?

    I'm just getting started with HttpUnit, and I'm having a problem:
    How does one use HttpUnit with FORM-based authentication?
    I have a Web app where I specify a number of protected URLs. When a user tries to invoke one of them in a browser, Tomcat 4.1.30 brings up a login page that I specified and asks for a username and password. The values given by the user is checked against the tomcat-users.xml file. If the user is valid, Tomcat
    forwards the response from the original request. If invalid, an error page is displayed. The user is considered valid until either the session times out or the browser is closed.
    Does HttpUnit have to log into the app every time I run a test? How does it manage subsequent pages after login?

    I don't think that's true. HttpUnit is 100% Java and based on JUnit. HttpUnit has nothing to do with Apache, AFAIK. HttpUnit is for unit testing servlets and JSPs. Apache is a Web server. It doesn't have a servlet/JSP engine, unless you bolt Tomcat on top of it.
    Perhaps we're talking about two different packages. - %

  • Form-Based Publishing / Forms Availability API

    Hi all,
    someone knows if it's possible to manage automatically the forms availability through APIs?
    Or if i can use the RenderConfig.properties instead of the Form-Based Publishing iView of EP6 SP2 pl6, and in wich way.
    thanks!!
    Gennaro

    Hi Gennaro,
    (a) The Forms Availabiliy settings are stored in the ConfigFramework. So you can use the API for setting/getting data from the Config.
    (b) The RenderConfig.properties is deprecated. It should no longer be used. Since SP2 this file is only be read while startup and the data is merged into ConfigFramework
    Kind Regards
    --Matthias

  • XML forms / news no more visible as Form-based publishing

    I 've a very strange behavior on my portal (EP 7.0 SPS10),
    I do publish a news via XML form => the news is displaied )
    After "some time" (sorry I was not able yet to force / understand how to reporduce the error) I can not see anymore the news (and I've full permissions on the folder, this does not seems to be related to validity)
    In fact the xml of the news does still exists (when I browse the folder). His type (Settings -> Properties -> System) has desapear. The news I can see have a Type = Form-based publishing.
    Does anyone already experience this behaviour ?
    How could I reset the property type to "Form-based publishing" ?
    Thank you
    Vincent

    Hello,
    Did anyone already experienced this behaviour, this becomes critical for me.
    I lost all me news one more time : the xml files are still there, but can not be displayed as news ...
    Please help
    Vincent

  • Importing third party XML files into form-based publishing

    Hi,
    I want to import third party XML files into form-based publishing. My problem is that when I open the files, they are presented as normal XML files.
    The 'type' property is not set to "form-based publishing". That's the reason no form is linked to the XML file.
    Is there a way to change the value of this 'type' property? Then I can set it to "form-based publishing".
    Message was edited by: E. van der Palen

    Hi,
       You should take into account two things:
    1. XML Repository filter
    System Administration-System Configuration-KM-CM-Repository Filters-choose XML Forms Repository Filter
    edit it and add your repository.
    After that you have to restart it.
    2. Resource Type.
    You should modify cm_resourcetype property to set form-based publishing.
    You could edit this xml file using form builder and then set this parameter.
    Patricio.

  • Using Windows Vista and IE7 with Forms based applications

    A user has Vista & iexplorer 7 installed on their machine and when they attempt to access the Professional Buyer responsibility (forms based) they receive an error message stating that 'Internet Explorer has stopped working'. When they attempt the same thing using a machine with Windows XP Pro and IE6 they do not have a problem. Could anyone tell me if they have experienced a similar issue and how do you work around it whilst still using Internet Explorer?? Also we are using
    j-initiator version 1.3.1.18

    Microsoft IE 7 on Vista is certified with Apps 11i provided that you meet the following requirements:
    - Applications 11.5.10 plus Maintenance Pack 11.5.10 CU2 or later
    - Oracle Developer 6i Patchset 18 (6.0.8.27.x) or later (Metalink Note 125767.1)
    - Oracle Applications Technology 11i.ATG_PF.H Rollup 4 (RUP 4) (patch 4676589) or later
    - Microsoft Vista desktop clients running Internet Explorer 7
    - Sun Java plug-in (JRE) 1.5.0_12
    Windows Vista + IE7 Certified with E-Business Suite
    http://blogs.oracle.com/stevenChan/2007/11/windows_vista_ie7_certified_wi.html

  • Issues with Form based on Transient VO

    Hi guys,
    I have a jspx page with an ADF Form based on a programmatically View Object, with all of its attributes transient type and both options checked:
    Passivate State
    Including All Transient values.
    After the user has entered some input I clean the form by calling a method that does something like this:
    getUserInfoVO().clearCache();
    Row row = getUserInfoVO().createRow();
    getUserInfoVO().insertRow(row);
    getUserInfoVO().last();
    This works fine. The problem is that when I simulate a Production environment, by disabling Application Module Pooling, the form is created null
    (just showing labels without any fields).
    Is this a kind of bug? As far as I know if I have checked both options, this shouldn't been occurring. Also is causing problems if I try to restore a previously created
    save point, giving exceptions of DeadViewRowAccessException or couldn't get the View Object with a fixed Id.
    Greetings!

    this is not a bug. I guess your application is not activation safe.
    try http://blogs.oracle.com/Didier/entry/set_jboampooldoampoolingfalse_1
    once you find it you need to handle activation and passivation by overridding the methods passivateState(Document doc, Element parent) and activateState(Element elem)
    Also you can refer to
    http://jdeveloperfaq.blogspot.com/2010/05/faq-21-how-to-passivateactivate-adf.html
    Edited by: in the line of fire on Jul 7, 2011 12:15 PM

  • Ask for help with form based authentication & authorization

    Hi:
    I encountered the following problem when I tried the form based authentication & authorization (see the attached part of the config files, web.xml, weblogic.xml & weblogic.properties)
    1. authorization seems not invoked against the rules specfied, it doesn't go the login error page as long as the user/pwd match, even though the user does not have the necessary role
    in the example below, user3 should be denied to access the signin page, but seems no login error page returned, actually I never see any page / error message which complain about the authorization / access control error
    2. after authenticate correctly, always get redirected to the / (context root) url, instead of the url prior the login page, for e.g., signin page
    Any idea ?
    Thanks in advance.
    HaiMing
    attach config files
    web.xml
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>MySecureBit1</web-resource-name>
    <description>no description</description>
    <url-pattern>/control/signin</url-pattern>
    <http-method>POST</http-method>
    <http-method>GET</http-method>
    </web-resource-collection>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>default</realm-name>
    <form-login-config>
    <form-login-page>/control/formbasedlogin</form-login-page>
    <form-error-page>/control/formbasedloginerror</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <description>the customer role</description>
    <role-name>customer</role-name>
    </security-role>
    weblogic.xml
    <security-role-assignment>
    <role-name>
    customer
    </role-name>
    <principal-name>
    customer_group
    </security-role-assignment>
    weblogic.properties
    weblogic.password.user1=user1pass
    weblogic.password.user2=user2pass
    weblogic.password.user3=user3pass
    weblogic.security.group.customer_group=user1,user2

    Hi, Paul:
    Thanks a lot for your reply.
    Firstly let me just correct a little in the attachment I put previously, I think I missed following lines :
    <auth-constraint>
    <description>no description</description>
    <role-name>customer</role-name>
    </auth-constraint>
    So, user1 & user2 are in the customer group, but user3 not, and /control/singin is protected by this security constraint, as a result, when anyone click the link to /control/singin, he was led to the login page, if he tries to login as user1 & user2, he should pass & led to original page (in this case /control/singin, and my code's logic, once /control/signin is used, means that he already login successfully & redirected to the login success page), but if he tries to login as user3, he should only pass the authentication check, but fail the authorization check, and led to login error page.
    What not happen are :
    1. user1 & user2 pass, but redirect to /
    2. user3 also pass, because I see that debug message shows also get redirected to /, instead of login error page
    (login error page will be displayed, only if I try to login as a user with either wrong userid, or wrong password)
    3. one more thing I notice after I first time post the message, the container does not remember the principal, after 1. is done, not even for a while
    And the similar configuration works under Tomcat 3.2.1, for all 3. mentioned above.
    Any idea ?
    HaiMing
    "Paul Patrick" <[email protected]> wrote:
    If I understand what your trying to do, everyone should get access to the
    login page since roles are not
    associated with principals until after they authenticate. If I follow what
    you specified in the XML files,
    authenticated users user1 and user2 are members of a group called
    customer_group.
    The principal customer_group (and therefore its members) is mapped in the
    weblogic.xml file to the role
    customer.
    I can't speak to the reason your being redirected to the document root.
    Paul Patrick
    "HaiMing" <[email protected]> wrote in message
    news:[email protected]...
    Hi:
    I encountered the following problem when I tried the form basedauthentication & authorization (see the attached part of the config files,
    web.xml, weblogic.xml & weblogic.properties)
    1. authorization seems not invoked against the rules specfied, itdoesn't go the login error page as long as the user/pwd match, even though
    the user does not have the necessary role
    in the example below, user3 should be denied to access the signinpage, but seems no login error page returned, actually I never see any page
    / error message which complain about the authorization / access control
    error
    2. after authenticate correctly, always get redirected to the / (contextroot) url, instead of the url prior the login page, for e.g., signin page
    Any idea ?
    Thanks in advance.
    HaiMing
    attach config files
    web.xml
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>MySecureBit1</web-resource-name>
    <description>no description</description>
    <url-pattern>/control/signin</url-pattern>
    <http-method>POST</http-method>
    <http-method>GET</http-method>
    </web-resource-collection>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>default</realm-name>
    <form-login-config>
    <form-login-page>/control/formbasedlogin</form-login-page>
    <form-error-page>/control/formbasedloginerror</form-error-page>
    </form-login-config>
    </login-config>
    <security-role>
    <description>the customer role</description>
    <role-name>customer</role-name>
    </security-role>
    weblogic.xml
    <security-role-assignment>
    <role-name>
    customer
    </role-name>
    <principal-name>
    customer_group
    </security-role-assignment>
    weblogic.properties
    weblogic.password.user1=user1pass
    weblogic.password.user2=user2pass
    weblogic.password.user3=user3pass
    weblogic.security.group.customer_group=user1,user2

  • XML structure from Form Based Published Document

    Hi experts,
    I want to read the contents of a Form Based XML Document to my Web Dynpro project. I'm using this code to do so:
        wdContext.currentContextElement().setText(wdContext.currentTableContentElement().getObjectName());
        readXML(wdContext.currentTableContentElement().getLink());
    IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
    com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
    //create an ep5 user from the retrieved user
    com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
    IResourceContext context = new ResourceContext(ep5User);
    /Specify the path of ur document here./
    RID pathRID = RID.getRID(wdContext.currentTableContentElement().getLink());
    IResource resource = ResourceFactory.getInstance().getResource(pathRID,context);
    InputStream in;
    in = resource.getContent().getInputStream();
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    byte[] buffer = new byte[4096];
    int bytesread = 0;
    while ((bytesread = in.read(buffer)) != -1) {
    out.write(buffer, 0, bytesread);
    String myData = out.toString();
    wdContext.currentContextElement().setText2(myData);
    The problem now is: When I'm reading the contents of a Form Based XML Document I'm getting HTML code from the document.
    When I try to do the same with an XML document that wasn't created by a XML Form, I get the contents in default XML markup.
    My question is: how can I get the Form Based XML Document to my Web Dynpro Project in default XML markup?
    Thanks,
    Edwin van der Palen

    Hi E.,
    I guess this an XML namespace issue. I'm creating XmlForms-style documents and had to add an XML namespace to my root element to make them visible as such:
    Namespace xf = Namespace.getNamespace("xf", "http://www.sapportals.com/wcm/app/xmlforms");
    root.addNamespaceDeclaration(xf);
    So what I'd suggest to you is reading out the IResource and treating the content as XML:
    Document document = new  SAXBuilder().build(content.getInputStream());
    Element root = document.getRootElement();
    Namespace xf = Namespace.getNamespace("xf", "http://www.sapportals.com/wcm/app/xmlforms");
    root.removeNamespaceDeclaration(xf);
    Hope this helps!
    regards,
    Christian

  • Tomcat problem with form based login

    Hi,
    I have a page for form-based login, but the problem is that the image and css files dont load on the login page request. What I gather from other discussions is that this is because these are still protected when the page is requested. How do I exclude them from being protected.
    Nirav

    Hi tolmank,
    Earlier I just filtered out the login page and images based on the extension, but now I am trying the second approach i.e. making a protected directory, but my application does not start. When i start it from the tomcat manager, it gives me this error,
    FAIL - Application at context path /<app dir> could not be started
    <web-resource-collection>
         <web-resource-name><app dir></web-resource-name>
         <url-pattern>/protected/*.jsp</url-pattern>
    </web-resource-collection>
    <login-config>
         <auth-method>FORM</auth-method>
         <form-login-config>
              <form-login-page>Login.jsp</form-login-page>
              <form-error-page>Error.jsp</form-error-page>
         </form-login-config>
    </login-config>
    what could be wrong?

  • Create a Web Service for Exchange with form based authentication ?

    I want to create a Web Service in Apex that can create appointments in my exchange calendar. Exchange is offering web services for that.
    When i try to create the web service reference in Apex i provide the URL and my Exchange login, but it is failing.
    The exchange guys told me, that there is a ISA Server running where i need to authenticate through a form.
    Does anyone know, how i can implement a webservice in Apex, when the access to the wsdl url needs login through a form ?
    Or : what other types of authentication does Apex know ? What possibilities do i have ?
    Thanks for answers.
    Bernd

    Hi
    Presume you've already found this information, but in case not ....
    Exchange 2007 provides out of the box web services, see
    http://msdn.microsoft.com/en-us/library/bb408417.aspx
    As a disclaimer - neither myself of the team I work with have tried to use these web services within APEX.
    Regards
    Chris

  • Problem in Time Based Publishing Content

    Hi every1,
      Im working with Time based publishing.
    Using xml form builder i created 3 contents means 3 xmls.
    Then i created one iView for reading the contents (KM Navigation iView) and i setup the properties like
    layout set, layout set mode, root folder of contents.
    After creation of iView i checked in the preview all 3 contents visible in my iView.
      Now i want to show time based content in that iView.
    Contents displayed as per time based
    for that i enabled time based publishing and life time of particular content(xml)by using the given way
    Time dependant publishing in Km. I clicked on the right hand side of the name of my folder-> go to details -> Settings -> Lifetime. there you have to enable the time dependant publishing. Then i opened the folder and click on the rt hand side of the document-> properties -> lifetime, here give the time span of the document.
    After life time setup , again i seen in the iView for reading the contents (previous created) in the preview
    again all 3 contents displayed including life time expired content also.
       Please give me solution for this, or any more configurations required.
    Note :
    I required to display the contents in between time applicable only ( from time and until time).
    Thanks in advaince
    Vasu

    I have waited more than 3 hours for settings to apply.
    But i couldn't find any changes.
    any other solution?
    Thanks
    Vasu

Maybe you are looking for

  • How to embed interactive flash in PDF

    I am trying to place an interactive Flash .swf file into a PDF. I don't want it to just play through like a movie. I need people to be able to click through it, and interact with it as if it. There are, for example, 4 matching problems. So a person w

  • Electric shock while charging IPod Nano 3rd Gen

    Hello. I bought a new IPod Nano 3rd Generation (4 gigabytes) and I noticed that, if I touch it while it's connected to my PC, it gives me an electrical shock. It's not a hard shock, but you can feel your finger shake and your arm weakens (it's kinda

  • Black screen on boot & Diagnostic errors

    Hi,  I've a HP g62 notebook pc that has some problems when is booting. Sometimes the screen is black when i try to boot or i've a BSOD related with the atikmpag.sys.This PC doesn't have warranty, but i don't know if the problem is only because of the

  • Accessing SQL Server form SAP

    HI, I want to get data on SQL Server from SAP. What is the procedure to do the above. Thanks.

  • So, how do you test things out?

    Hello, I wanted to get some data from the community about how you all have your "test/dev" environment setup, and see how it compares to what we've been running. We have two seperate SCCM sites, one we call "prod" and the other we call "test." We try