Like/Upvote Functionality

I am collecting user submissions for process improvement ideas using an InfoPath form housed on SharePoint.
I would like to display items from the library behind this form on another page, and allow other users to "like" or "upvote" these ideas. Is there a way to use a webpart to display filtered items from the original library, and then add an
additional column with a button to count clicks.
As an extra measure to that functionality, I'd like to be able to sort this list by popularity (number of likes). I have seen similar functionality on the
www.mystarbucksidea.com page and would like to replicate something similar.
Is this possible to do on SharePoint?

How I've achieved this in the past is to set up a separate "likes" list for tracking the number of likes different things have. The likes list had a lookup column going back to the list that contains the idea being liked. In other
words, each item in the "likes" list was a record indicating that one person liked a specific idea.
On the original ideas list, I then added a lookup column pointing to the lookup column on the "likes" list, and chose the "count related" option. This gives a count of the number of related likes for each idea.
That handled the backend challenge of tracking likes per idea, so the only challenge left was giving people a way to like specific ideas--in other words, to easily add entries to the "likes" list.
I chose to handle this through the JavaScript client object model. My script added an upvote link to the page, with code so that simply clicking the upvote link for an item would create a related entry in the likes list.
To prevent people from liking the same thing multiple times, you can make a column on the likes list (such as Title) be populated with a combination of the author and the lookup field value, then enforce unique values on that column. You could
also check the likes list via the JavaScript client object model and disable the upvote link if the user has already liked the specific thing.

Similar Messages

  • BAPI to reject PO (like ME29N functionality to reject PO)

    Is there a BAPI to reject PO (like ME29N functionality to reject PO).
    The BAPI_PO_CHANGE does not have the functionality to change EKKO-
    PROCSTAT. Is there a BAPI that can update EKKO-PROCSTAT?
    Thanks,
    Apollo

    We just implemented an implicit enhancement to include  MM06EFDCM form MEPO_HEADER_FILL_PROCSTAT. This is being called in the BAPI_PO_CHANGE.
    Here's a sample code I used in my method that rejects the PO:
      data: l_procstat type ekko-procstat value '08'.
      export l_procstat from l_procstat
          to database indx(st) id 'ZWF_POREJECT'.
      l_ebeln = v_zsc_po_hdr-doc_number.
    call function 'BAPI_PO_CHANGE'
        exporting
          purchaseorder = PO number
        tables
          return        = lt_return.
    Here's the implicit enhancement that I created in include MM06EFDCM form MEPO_HEADER_FILL_PROCSTAT:
    FORM mepo_header_fill_procstat CHANGING ch_procstat TYPE ekko-procstat.
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    data: l_procstat type ekko-procstat.
    import l_procstat to l_procstat
        from database indx(st) ID 'ZWF_POREJECT'.
    if sy-subrc = 0.
      delete from database indx(st) id 'ZWF_POREJECT'.
      dekko-procstat = l_procstat.
    endif.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      ch_procstat = dekko-procstat.
      IF ch_procstat IS INITIAL.
        DATA: l_ekko TYPE ekko.
        l_ekko = dekko.
        PERFORM procstate_initialize USING trtyp CHANGING l_ekko.
        ch_procstat = l_ekko-procstat.
      ENDIF.
    ENDFORM.                    "mepo_header_fill_procstat
    Hope this helps.

  • How to see the keyboard shortcuts in pages like " alt " function in word?

    how to see the keyboard shortcuts in pages like " alt " function in word?

    luisandre wrote:
    In word , if you press "alt" show you all the options you have . Appear numbers or letters  in each options of the toolbar. So is more easy to work with the keyboard. How do you do this in pages?
    Go to system preferences/language & text/input sources and check the box for Keyboard Viewer.  Then select Keyboard Viewer from the "flag" menu at the top right of the screen.  It will show all the special characters you can make when you press the alt and alt + shift keys.

  • When downloading an application from the App Store requires a map of all. And I would like the function is deactivated

    When downloading an application from the App Store requires a map of all. And I would like the function is deactivated

    Please post in your native language. This makes no sense.

  • Avoiding choosing any vendor like partner functions in PO

    For a vendor I have several partner functions in the Vendor Master. And several registers for each one.
    For example: Vendor 1 has defined this partners functions
    Vendor                  0001
    Ordering address  0001
    Ordering address  0002
    But in the purchase order I  can choose as partner function "ordering address" any vendor from the Vendor Master (for example anyone different from 0001 and 0002). Is there any way to restrict in the PO so the user can only choose any vendor defined like partner function in the vendor master?
    Thanks,
    Rodrigo

    Hi,
    Try making ordering address partner function as non editable for your PO, then possibly the system will give popuup only from address in vendor master,
    let us know how it works
    reg
    dheeraj

  • Like operator functionality

    We have a simple select query which is using the 'Like' operator on a char(4) column.
    In a oracle windows environment when we have a query such as:
    select col1, col2, col3
    from table1
    where col1 like 'AB'
    it returns everything which is = to 'AB' and doesn't seem to be including the trailing 2 spaces as would be stored becasue the column is char(4)
    In a oracle unix environment when we the same query:
    select col1, col2, col3
    from table1
    where col1 like 'AB'
    it returns nothing...
    It appears as if the version running on a windows environment is truncating the trailing 2 spaces when using the like expression but in a unix environment, it is not. Does anybody have any idea or clue what could be occuring or if there is some database setting which could cause this to occur?

    Quote from Oracle Doc:
    Character Values
    Character values are compared using one of these comparison rules:
    Blank-padded comparison semantics
    Nonpadded comparison semantics
    The following sections explain these comparison semantics.
    Blank-Padded Comparison Semantics If the two values have different lengths, then Oracle first adds blanks to the end of the shorter one so their lengths are equal. Oracle then compares the values character by character up to the first character that differs. The value with the greater character in the first differing position is considered greater. If two values have no differing characters, then they are considered equal. This rule means that two values are equal if they differ only in the number of trailing blanks. Oracle uses blank-padded comparison semantics only when both values in the comparison are either expressions of datatype CHAR, NCHAR, text literals, or values returned by the USER function.
    Nonpadded Comparison Semantics Oracle compares two values character by character up to the first character that differs. The value with the greater character in that position is considered greater. If two values of different length are identical up to the end of the shorter one, then the longer value is considered greater. If two values of equal length have no differing characters, then the values are considered equal. Oracle uses nonpadded comparison semantics whenever one or both values in the comparison have the datatype VARCHAR2 or NVARCHAR2.
    "

  • "Like" sql function not working  in Business Service

    Hi all,
    I have created a query with few Joins (Processing around 4-5 tables).It has Two scenarios, One with Equals and the other with Like function.
    SELECT
    ST.STREET,
    ST.DECOMPLEMENT,
    ST.STATE,
    LC.LOCALITY,
    DS.DISTRICT,
    ST.CDZIP,
    SP.street_type
    FROM
    STREET ST,
    DISTRICT DS,
    Locality LC,
    Street_Type SP
    WHERE
    ST.CDZIP LIKE ?
    AND ST.STARTDISTRICT = DS.DISTRICT (+)
    AND ST.LOCALITY = LC.LOCALITY (+)
    AND ST.STREET_TYPE = SP.street_type (+)
    When There is an Equal Sign after Where clause, The query gives desired output. But when there is a LIKE it does not give any output at all. How can i use this Query using perform operation.

    Hi Arun,
    How are you using it? Using DB Adapter / X-Query function? I have run similar SQL Queries easily through DB Adapter.
    Regards,
    Anuj

  • Can we implement payment(like paypal) functionality from iphone application

    Hi,
    I need to implement payment functionality like paypal which will provide functionality that user can pay the bill of restaurant.
    I want to know that is it possible and if yes then how can i implement this.
    Thanks,
    Hareh.

    I would imagine you would use the PayPal model where the diner would give his account name or number to the waiter. The waiter logs on and creates an invoice against the users account. The user logs on with his name and password and approves the transaction and the money is transferred to the restaurant's account immediately.
    You could write your own app that attaches to the server directly and prompts the user for their name and password, displays all waiting invoices and lets the user approve. This would also be possible from a regular web browser as well. But you could write a lightweight app specifically for that if you want. You could dress it up with a tip calculator and other things to make it fancy. (Although in the French market the tip is usually included in the bill.)
    The most important thing is to use the existing security measures because you will get much better security using https: to conduct your web transactions then writing your own security model. You also get better security holding this information on the server and not in the phone itself.
    I know you're asking about iPhone only but I would open it up to all browsers - Blackberry, laptops etc. Restaurants could even have a web terminal where I could log in and approve the transaction without the phone. The bigger your potential market the greater your chance of success.
    =Tod

  • Creating Frame-Like Resizing Functionality

    So I’m working on a web application at work, and the customer wants a functionality that we’re not sure how to deliver yet. The closest thing I can relate it to is using frames in HTML. If you were to set up a framed web site, with two frames side-by-side, and leave the frame bars visible, you’d have a bar in the middle, running vertically, to show you where the two windows are divided in half. You can drag that bar to the left or right, making the frames bigger or smaller.
    Our web app, being developed using JSP and Rich Faces, presents a lot of information to the user. This information will be divided in half like described above, and he would like to be able to drag a bar in the middle to make one side bigger or smaller.
    I’m new to web development, and we’re not sure how we’re going to accomplish this. We absolutely do not want to use frames. Any ideas?
    Thanks

    You could explore some of the other component libraries out there, such as Primefaces. The trouble is that you are using Richfaces: I know for a fact that it won't play nice with Icefaces, I don't know if Richfaces and Primefaces can be used together without conflicts.
    Otherwise it will be a manual Javascript job I'm afraid. Be careful when using Javascript toolkits - for example I have seen Richfaces components crash and burn when I included the JQuery js library :/

  • How does one publish their calendar from the new mountain lion cloud through iWeb? seems like this functionality has been dropped.

    how do you publish calendar under new mountain lion cloud. seems as though this functionality has been lost.

    There was never a functionality to publish a calendar thru iWeb.
    You could publish a calendar, 100% independent of iWeb, and display it in a browser window.
    Then you could display that window in an iWeb HTML Snippet.
    how do you publish calendar under new mountain lion cloud.
    I recommend asking in either the iCloud or the Mountain Lion forum.

  • If thing 1 is true return true. If thing 2 is true return false. (not quite like select function)

    I have two inputs within my LV program.  I need to output true (or value for true) if input 1 is true but output false (or value for false) if input 2 is true.  The select function allows different outputs but for only 1 input. 

    It should be fairly eeasy to come up with a boolean structure fo this.  For example, you have if input 1 as a true and input 2 as a true, what does it output???
    Normally you can make a table to figure out what structure you could use.  1 = true, 0 = false
    Input 1   Input 2   Output
    0            0            0
    0            1            0  
    1            0            1
    1            1             0 (I am assuming)
    That means if you write it out out need (input 1) * (input 2)' or an And terminal with input 1 wired to a terminal and input 2 wired to a not and then to the other and terminal (see picture)
    Kenny
    Attachments:
    ab not.gif ‏3 KB

  • How can I position self-define ALV function like standard function "SETTIN"

    Hi,
    I want to put a self-difine ALV function with name "Refresh" to the very right side, just one position left as the "Filter" function. During the method get_position I got that, the position of function "Filter" and "Setting" is 901.902. But When I set_position for "Refresh" as 900 or 903. It doesn't work. Does anyone have experience with the same scenario?
    Thanks a lot in advance
    Best regards,
    Wenwen

    if a is your array of movieclips and space is the white space between the end of one movieclip and the start of the next and leading is the space between adjacent lines and width is the max width of your lines and you want your movieclips to start at startX, startY, you can use the function below to arrange your movieclips:
    function arrangeMCF(a:Array,startX:uint,startY:uint,space:uint,leading:uint,width:uint){
    var curentX:Number=startX;
    var currentY:Number=startY;
    for(var i:uint=0;i<a.length;i++){
    if(a[i].width+currentX<width){
    a[i].x=currentX;
    a[i].y=currentY;
    currentX+=a[i].width+space;
    } else {
    currentX=startX;
    currentY+=leading;
    a[i].x=currentX;
    a[i].y=currentY;
    currentX+=a[i].width+space;

  • Is possible to compare a web service like a function module ?

    Hello all,
    I'm new in ABAP web service ( not java, not PI ). I have to create a web service to send some file
    from sap system towards external system and I'm learing some documentation.
    To send a file with web service I need to create an interface with Internet Comunication Manager and
    when this interface is created,
    how can I send my file with web service ? I need to create a FM or other object ?
    tks a lot,
    bye.

    a fm is accessible via ws

  • Script Logic like a function

    Hi all,
    I want to execute a load of data from a year and actual version to year + 1 and budget version based in some assumptions filled in another input schedule. I thought that is possible using a script logic, so i create the script and i don´t know how to call it, Just from de the DEFAULT.LGF but is not my idea for this, cause every change in the data will execute this calculation....  Thats is the scenario:
    Input Schedule
    Time 2011.JAN
    ========== Budget
    Account%        5%
    Real data Query
    Time 2010.JAN
    ==========Actual
    Account1____100
    What i want
    Time 2011.JAN
    ============BUDGET
    ACCOUNT1        105
    There is another way to do that? I
    Thanks

    Hi,
    For executing a script logic, you need to follow few steps.
    1. Create an SSIS package to call your script logic in business intelligence development studio (BIDS) - (please refer to the SSIS package for currency conversion)
    2. Create a DM package to call the above SSIS package (please refer to the DM package for currency conversion)
    You can run the above DM package to execute your script.
    Hope this helps.

  • How can i create a dialog like JOptionPane functionality

    I want to show a dialog to the user by calling a method.
    1. showWindow() method will create an object of a Dialog.
    2. Dialog will return an Integer Data.
    3. this Integer data is the return type of showWindow() method.
    How can I do that?
    For Example,
    public int showWindow(){
            int iSelectedOption = JOptionPane.showConfirmDialog(null,"Do you want to save?");
            return iSelectedOption;
    }Expected:
    public int showWindow(){
            GeneralDialog dialog = new GeneralDialog();
            int iSelectedOption = dialog.selectedValue();
            return iSelectedOption;
    }

    thanks for your help,
    i did a small demo, just chenk and tell me what did is right?
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    public class SimulateOptionPane extends JFrame implements ActionListener
        JButton                 btn    = new JButton("YES");
        JButton                 btn1   = new JButton("NO");
        public static final int YES    = 1;
        public static final int NO     = 2;
        private int             result = 0;
        public SimulateOptionPane()
            JPanel jp = new JPanel();
            jp.add(new JTextField(10));
            JPanel jp1 = new JPanel();
            btn.addActionListener(this);
            btn1.addActionListener(this);
            jp1.add(btn);
            jp1.add(btn1);
            int i = getResult(this, jp, jp1);
            System.out.println("------->" + i);
        public int getResult(JFrame parent, JPanel jp, JPanel jp1)
            JComponent panel = new JPanel(new BorderLayout());
            panel.add(jp, BorderLayout.CENTER);
            panel.add(jp1, BorderLayout.PAGE_END);
            JDialog d = new JDialog(parent, true);
            d.add(panel);
            d.pack();
            d.setVisible(true);       
            return this.result;
        public static void main(String[] args)
            new SimulateOptionPane();
        public void actionPerformed(ActionEvent e)
            if (e.getSource() == btn)
                result = YES;
                dispose();
            else if (e.getSource() == btn1)
                result = NO;
                dispose();
    }thnaks
    daya

Maybe you are looking for

  • Please solve this mysterious broken run arrow

    Everything works great for a while. Then suddenly, this will happen. This is on a PXI chassis using a lot of LVOOP. It happened on my PC so I moved the code all to a VM. It worked fine for a while, then it just came back. These are NI's VIs. The weir

  • One drive connection for uploading and downloading files?

    I wish to use a live account  for uploading files to one drive and downloading them for an application. My need is to upload/download a database for a windows phone 8.1 game which the user cannot open up or access directly anyways because of the game

  • My name not shown on outgoing email

    I used the email set-up function to set up two separate email accounts - one is Gmail, the other my work email. I'm not using Blackberry Enterprise Server. I used the Gmail option to create my personal account and once Gmail was created, in "Options"

  • Can I really trust in Muse?

    It's very long to explain. Witgets not working in Firefox. Images appering in wrong places, etc., etc. I'm very desapointed with Muse. Did I make a mistake suscribing for 1 year? Is Adobe selling a product prematurely?. Have I to wait for more reliab

  • Detect device where pdf is being viewed using adobe javascript

    How can I detect whether a PDF file is being viewed in a Mobile device or PC? Is it possible through Adobe JavaScript API or something else?