Skip navigation
Currently Being Moderated

Comments via Web App

Jun 22, 2012 9:38 AM

A project needs something like the Comments module, but will need quite a few more fields, so we will be using a web app instead.

 

The comments will apply to one of many thousands of web app items (different web app), and the user will already be viewing the relevant web app item when they add their comment.

 

How can I pre-fill the data source field of the comment web app item to be the web app item that the user is currently visiting? 

 
Replies
  • Currently Being Moderated
    Jul 15, 2012 5:36 PM   in reply to FriscoTX

    Hi Frisco,

    Here's how you could do it:

     

    Let's assume that the two web apps are: 1- Hotels 2- Comments

     

    The first thing to do would be to give the comments web app a data source of Hotels.

     

    Next, use {module_url} on all links leading to the web app detail view.

     

    Lastly, adjust the form's data source select tag then simply call the {module_url,*********} as the option value and the web app name as the option just like demo-ed below;

     

    <select name="" id="" class="cat_dropdown">

    <option value="{module_url,*********}" selected>{tag_name}</option>

    </select>

     

    Be sure to read up on the {module_url} via http://kb.worldsecuresystems.com/145/bc_1455.html?bc-partner

     

    Good luck

     

    Dave Black

    @webmosphere

    www.webmosphere.co.uk

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points