OT: MySQL...minus (-), decimals & display

I'm a little confused about using negative integers in a
MySQL database.
First, imagine a column with just three rows, with the
following values:
100
98.3
1.07
If I create a database table field with the specs DECIMAL
4,1, then it
should display as follow, right?:
100.0
98.3
1.0
Now imagine that I add a fourth row with a negative value:
100.0
98.3
1.0
-100.5
Let's say I want to display the following on my webpage:
100.0
98.3
1.07
-100.5
Would the same specs - DECIMAL 4,1 - still work, or do I need
to change
it to DECIMAL 5,1 to accommodate the minus sign? And when I'm
finished,
will PHP or JavaScript interpret this as a numerical field,
or will the
minus signs introduce a little confusion? Will I be able to
make the
table columns sortable, or do I have to use PHP or JavaScript
to handle
the minus signs?
I should be able to figure it all out by experimenting, but I
thought I
could save some time by asking someone who's already done
this. Thanks.
www.geobop.org - Family Websites
www.invisible-republic.org - Adult political websites (Mature
adults only)

> database table field with the specs DECIMAL 4,1
DECIMAL (4,1) will handle a range of values from -999.9 to
999.9
http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • Decimals displayes in the List of Totals

    Dear experts,
    When executing the list of totals records the system displays the amounts in JOD with the following format "30.000" instead of "300.00". This is due to the settings in table TCURX where currency JOD is with 3 decimals.
    But I would like to display the data with the usual format, i-e "300.00" : which setting do I have to change ?
    NB : when requesting the data in a cube (via Listcube) you have the possibility to select or not the "Do not use any conversion" option. This option deals with this kind of problem. But how do you do for the List of totals ?
    Thanks for your help
    Regards,
    Thibaud

    Sorry, my case was not clear.
    In fact, the problem comes from BCS Flexible Upload for figures with currency key that have more than 2 decimals (in my example 3 decimals for JOD). In that case, the list of totals displays the figures with a default output conversion, that is to say with these 3 decimals. The problem is that when uploading the flat file, the first step that should be done (that is to say storage with 2 decimals only) is not performed by the system automatically ( indeed if you do a load from data stream, the system multiplies the amount by 10 => standard behaviou). As a result, you need to use the output and input conversion in the mapping tab of the flexible upload.
    Regards,
    Thibaud

  • MySQL  will not display table data

    I correctly set the datasource connect to MySQL I can update the table from within creator but I cant get Creator to view the data.

    Duplicate of http://swforum.sun.com/jive/thread.jspa?threadID=51486&tstart=0

  • Custom module pool + Amount field decimals display same as standard screen display

    Hi All,
    Requirement: A custom module program screen field has to be designed which displays decimal values of amount fields same as amount fields in standard screen.
    Standard screen behavior: If the standard screen fields are observed, they refer to data elements WRBTR or AZSOL_F05A (transactions FB50/FB03/FB01). However, number of decimal places that are visible on screen are dependent on the currency that is provided.
    Both the data elements have 2 decimal places.
    For currency USD two decimal places are displayed - in TCURX - decimal places are two.
    For currency JPY or CLP - zero decimal places are displayed  - in TCURX - decimal places are zero.
    i.e., even though the screen field refers to data element or domain that has the characteristic to show 2 decimal places, based on currency, decimal places are adjusted.
    I would like to know how this is happening on standard screen fields.
    Solution Required for: How to make the custom screen amounts to display same number of decimal places as standard screen amount fields.
    P.S: Before posting the query here, research has been done in SDN and other places. It has been identified that quantity fields adjustments are discussed. However for amount field even though discussed earlier, did not reach a conclusion.
    I would like to get a solution for this one.
    Thanks in advance.
    Goutham.

    Thank you all for taking time to take a look at this query.
    This issue has been resolved.
    Resolution: If the standard transactions (FI transactions in specific) are observed, whenever there is a field that displays amount value, there will be a corresponding field (may not be beside the amount field, somewhere on the screen or in the same sequence of screens) where the currency key value would be entered.
    For instance, if you look at FB50 - there is field on top for the user to input currency key value (like USD or CLP or INR).
    When any amount field is declared - this currency key field is provided as the reference field in the screen attributes of the amount field.
    In short, in the custom module pool program, provide a field that holds currency key value and use this field as reference field for the amount fields.
    Do repond to this thread if the resolution is not clear.
    Thank you all once again.
    Goutham.

  • Mac pro works fine, minus the display

    Ok, so this is a bit of an odd question, I think. When I turn on my computer, I can hear it boot up only the display doesn't work. Blank screen. Cnce it's booted up, if I press the volume button, I can hear it changing volume, if I open itunes, I can hear it playing music, so I know the computer is working, just no picture.
    I've ruled out the monitors, as they work fine with other computers. Here's the kicker. If I shut the computer off, open it up, jiggle the video card around a little, and turn it back on it works perfectly fine. Until I shut the computer off again, then we go through the same process. It's an early 2008 mac pro, and I have the 256 MB ati radeon, I think, video card that came with it.
    Any ideas? Thanks!

    Hi,
    It sounds like your Graphics card isn't seated properly.
    Remove all cables from Mac Pro, then remove side, earth yourself to avoid static, then remove the graphics card. You might want to clean out any fans on the Graphics card while it's out. Re-insert the graphics card, replace side panel, then reconnect your cables and try starting your system again.
    If the same thing happens, it could be either the graphics card having an issue, cable of the monitor not properly inserted or possibly an issue on your logic board.
    If re-seating the graphics card doesn't work, contact Apple Tech Support for further assistance.
    Hope this helps.

  • How to display the updated data from db to user interface in sruts framewor

    A beginner in this area, I have been able to read a record from a
    MySQL database and populate in jsp form . Now, my goal is to
    allow the user to edit the contents of the form and then update the
    record in MySQL and then display the same in jsp. page
    The scenario in detail
    1)the data is fetched from db and displayed in non-editable format
    2)Next button is clicked
    3)Now in the same jsp page I view the same data from db in editable format
    4)The user is allowed to change the information
    5)Now update button is clicked
    6)the records are updated in the db -Finished doing till this step
    7)But the updated info in non - editable format to be displayed in jsp page is left pending.
    Here is my code for jsp,i want know how to write an action for this,tried doing the same in java and I'm successful.but what I need is how to fetch the updated information in the user interface.
    I've made both editable as well as non editable info in the same page with different actions.
    pl help me,I'm a newbie
    <%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
    <%@ page language="java" %>
    <%@ page import="java.util.ArrayList,java.util.Iterator" %>
    <%@ page import="com.finocus.common.container.CustomerDetailsTest;" %>
    <html:html>
    <head>
         <title>CUSTOMER DISPLAY</title>
    </head>
    <body>
         <table width="100%" bgcolor="darkkhaki">
         <tr>
              <td><table width="100%" bgcolor="indigo">
                   <tr>
                        <td><font color="white">Display</font></td>
                        <td><font color="white">Update</font></td>
                        <td><font color="white">Verify</font></td>
                        <td><font color="white">Confirm</font></td>
                   </tr>
                   </table>
              </td>
         </tr>
    <%
              //Container for holding data
              ArrayList list = (ArrayList)session.getAttribute("CUSTOMERDETAILS");
              Iterator itr=list.iterator();
              while(itr.hasNext())
              CustomerDetailsTest cust = (CustomerDetailsTest) itr.next();
              System.out.println("testGetCustomerDetails()-successed. retrieved CustomerDetailsTest="+cust.toString());
    %>
    <%
              //Session for checking whether edit or non-edit mode
              String pageMode = (String)session.getAttribute("CUSTOMER_PAGE_MODE");
              session.removeAttribute("CUSTOMER_PAGE_MODE");
              if(null==pageMode)
                   pageMode = "EDIT";
              if(pageMode.equals("EDIT"))
                   //display data in the form
                   System.out.println("Editable mode");
    %>
              <html:form action="/nonedit">
                   <tr>
              <td><table width="100%" bgcolor="darkkhaki">
              <tr>
                        <td><b><bean:message key="label.id"/></b></td>
                        <td><font color="red"><%=cust.getCusId()%></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.Company"/></b>
                        </td><br>
                        <tr>
                   <td><bean:message key="label.cname"/></td>
                   <td><font color="blue"><html:text property="name" value="<%=cust.getCname()%>"/></font></td>
                        <td><bean:message key="label.cphone"/></td>
                        <td><font color="blue"><html:text property="phone" value="<%=cust.getCphone()%>"/></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.caddr1"/></td>
                   <td><font color="blue"><html:text property="address1" value="<%=cust.getCaddress1()%>"/></font></td>
                        <td><bean:message key="label.cemail"/></td>
                        <td><font color="blue"><html:text property="email" value="<%=cust.getCemail()%>"/></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.caddr2"/></td>
                   <td><font color="blue"><html:text property="address2" value="<%=cust.getCaddress2()%>"/></font></td>
                        <td><bean:message key="label.cfax"/></td>
                        <td><font color="blue"><html:text property="fax" value="<%=cust.getCfax()%>"/></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.ccity"/></td>
                   <td><font color="blue"><html:text property="city" value="<%=cust.getCcity()%>"/></font></td>
                        <td><bean:message key="label.czip"/></td>
                        <td><font color="blue"><html:text property="zip" value="<%=cust.getZip()%>"/></font></td>
              </tr><br>
         <tr>
                   <td><b><bean:message key="label.cstate"/></b></td>
                   <td><font color="red"><html:text property="state" value="<%=cust.getCstate()%>"/></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.Admin"/></b>
                        </td><br>
         <tr>
                   <td><b><bean:message key="label.AAname"/></b></td>
                   <td><font color="red"><html:text property="adminname" value="<%=cust.getAname()%>"/></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AAemail"/></b></td>
                   <td><font color="red"><html:text property="adminemail" value="<%=cust.getAemail()%>"/></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AAphone"/></b></td>
                   <td><font color="red"><html:text property="adminphone" value="<%=cust.getAphone()%>"/></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.User"/></b>
                        </td><br>
         <tr>
                   <td><b><bean:message key="label.AUname"/></b></td>
                   <td><font color="red"><html:text property="adminusername" value="<%=cust.getUname()%>"/></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AUemail"/></b></td>
                   <td><font color="red"><html:text property="adminuseremail" value="<%=cust.getUemail()%>"/></font></td>
         </tr><br>
              <tr align="center">
                        <td><html:cancel value="Cancel"/>
                        <html:submit value="Next"/></td>
              </tr>
              </html:form>
    <%               
              }else
                   //display data in the text
                   System.out.println("Non-Editable mode");
    %>
              <html:form action="/edit">
              <tr>
              <td><table width="100%" bgcolor="darkkhaki">
                   <tr>
                        <td><b><bean:message key="label.id"/></b></td>
                        <td><font color="red"><%=cust.getCusId()%></font></td>
                        <td><b><bean:message key="label.status"/></b></td>
                        <td><font color="red"><%=cust.getStatus() %></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.Company"/></b>
                        </td><br>
                        <tr>
                   <td><bean:message key="label.cname"/></td>
                   <td><font color="blue"><%=cust.getCname()%></font></td>
                        <td><bean:message key="label.cphone"/></td>
                        <td><font color="blue"><%=cust.getCphone()%></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.caddr1"/></td>
                   <td><font color="blue"><%=cust.getCaddress1()%></font></td>
                        <td><bean:message key="label.cemail"/></td>
                        <td><font color="blue"><%=cust.getCemail()%></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.caddr2"/></td>
                   <td><font color="blue"><%=cust.getCaddress2()%></font></td>
                        <td><bean:message key="label.cfax"/></td>
                        <td><font color="blue"><%=cust.getCfax()%></font></td>
              </tr><br>
         <tr>
                   <td><bean:message key="label.ccity"/></td>
                   <td><font color="blue"><%=cust.getCcity()%></font></td>
                        <td><bean:message key="label.czip"/></td>
                        <td><font color="blue"><%=cust.getZip()%></font></td>
              </tr><br>
         <tr>
                   <td><b><bean:message key="label.cstate"/></b></td>
                   <td><font color="red"><%=cust.getCstate()%></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.Admin"/></b>
                        </td><br>
         <tr>
                   <td><b><bean:message key="label.AAname"/></b></td>
                   <td><font color="red"><%=cust.getAname()%></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AAemail"/></b></td>
                   <td><font color="red"><%=cust.getAemail()%></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AAphone"/></b></td>
                   <td><font color="red"><%=cust.getAphone()%></font></td>
         </tr><br>
         <td>
                             <font color="brown" face="Courier New"><b>
                        <bean:message key="label.User"/></b>
                        </td><br>
         <tr>
                   <td><b><bean:message key="label.AUname"/></b></td>
                   <td><font color="red"><%=cust.getUname()%></font></td>
         </tr><br>
         <tr>
                   <td><b><bean:message key="label.AUemail"/></b></td>
                   <td><font color="red"><%=cust.getUemail()%></font></td>
         </tr><br>
         <tr align="center">
                        <td><html:submit value="Update"/></td>
              </tr>
              </html:form>
    <%
    %>
    <%
    %>
                   </table>
              </td>
              </tr>
         </table>
    </body>
    </html:html>

    u r using action classes. so after calling the insert method in Action Class to a dao... the next statement should be retrieve statement. so at the time of updating first it will get updated.. the next statement it will execute is retrieve and then set these details in VO or FORM and show it on JSP
    Message was edited by:
    leo_michael

  • Foreign characters not displaying

    Hi... I am developing a web app that includes a database of world cities, many of which have foreign characters in their names. The MySQL database is displaying the characters correctly, but when it comes to displaying them in drop down menus, the foreign characters are displayed as blank boxes.
    The application is a J2EE Java app.
    In the index.jsp file, in the html section, I have specified various types of character sets, including the standard iso-8859-1 and utf-8, but none make a difference.
    The home page with the drop-down menus is at www.your-astrology-report.com/index.jsp. From the pull-down menus, select "International", then "Greece", then "NON-ENGLISH FIRST LETTERS" and you'll see what I mean.
    The database code that puts the city names into the drop down menu is as follows, although as a fragment, it's incomplete.
    try{
         out.print("<select name='city'>");
         out.println("<option value='0'>Select Birth Town - Check Region!</option>");
         if(letter.equals("?")){
              q="select * from "+regid+" where country='"+country+"' AND city NOT RLIKE '^[A-Z]' order by city";
         } else {
              q="select * from "+regid+" where country='"+country+"' AND city LIKE '"+letter+"%' order by city";//city begins with letter
         ResultSet rst=execute_sql_query(q);
         int count=0;
         while(rst.next()){
              out.println("<option value='"+count+"'>"+rst.getString("city")+" - "+rst.getString("subdiv")+" "+SubDiv+"</option>");
              count++;
         out.println("</select>");
    I am very new to Java.
    Is there some basic way of telling either the query and/or the out.print statement to get, preserve, and display these foreign characters correctly?
    Please keep it simple! Like I said, I'm new to all this, and most of the Google queries I've made to try to figure this out have been gobble-de-gook to me! LOL!
    Thanks,
    Fartian

    Thanks everybody for your suggestions. So far, I'm sorry to say, none of your suggestions have helped, though.
    I suspect, though, that the reply concerning character streams (PaulClapham) holds the answer. I just don't know how to implement this in my case, i.e. how to apply this to the out.println statements in the previously given code block. My experience with Java is limited. Any ideas?
    I should probably tell you how all this is structured in terms of one file calling another:
    First we have the index.jsp (www.your-astrology-report.com/index.htm), which has dynamic input fields, the one in question being this:
    <td colspan="2"><div id="cities"><select name="city"><option value="">Select City</option></select></div></td>
          <td colspan="2">Select First Letter of City First!</td>div id="cities" refers to a function in a second file, xmlhttp.jsp, which is called by the dynamic input field located just above the "cities" field.
    Here is the function:
    function handleCityU(regid_letter_country){
         document.getElementById("cities").innerHTML="Loading cities...";
         url="internal_requestU2.jsp?regid_letter_country="+regid_letter_country.value;
         var xmlhttp=myXMLHttpRequest();
         xmlhttp.open("GET",url,true);
         xmlhttp.onreadystatechange=function() {
              if(xmlhttp.readyState!=4)return;
              document.getElementById("cities").innerHTML=xmlhttp.responseText;
         xmlhttp.send(null);
    }This function passes the variable "regid_letter_country.value" to yet another file that then parses the variable, requests the required database data, and creates the out.println statements that then populate the dynamic pull-down menu that displays the cities in the original index.jsp file.
    THIS IS WHERE I NEED IT TO BE DISPLAYING INTERNATIONAL CHARACTERS. The code for this part is what I originally posted.
    Help!
    Many thanks...
    Edited by: Fartian on Mar 20, 2008 7:49 PM

  • ODBC - Oracle to MySQL - Syntex Error Generated!

    Dear All,
    Finally I am able to connect to MySQL from Oracle Database using ODBC connector.
    Database is 11gR1 on Linux and MySQL is 5.1 in Windows.
    I can connect MySQL using database link.
    I can describe tables and view using command desc abc_a@bssdata structure of mysql table is displayed
    BUT when i try to select columns or select * from tables it is giving the following error:
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [MySQL][ODBC 3.51 Driver][mysqld-5.1.30-community-log]You have an error in your
    SQL syntax; check the manual that corresponds to your MySQL server version for
    the right syntax to use near '"EMPLOYEE_ID" FROM "BSSDATA"."ABC_A" A1' at line
    1
    ORA-02063: preceding 2 lines from BSSDATA
    Can you please help me in getting out of this error.
    Regards,
    Imran

    There's a much better forum for this kind of questions:
    Heterogeneous Connectivity
    Werner

  • BLOB display in flash

    First, please do not post about using a file system for
    images rather than storing them in mysql as I know how to do this
    and I want to store the images in a database. If you can explain
    more of the security of a file system then I will listen as that is
    the only issue I'm having with the file system. However, all I want
    to know is how to take an image in a blob field in a mysql database
    and display it in a flash movieclip. I can use php to echo the
    image straight to a browser no problem. I've read I may have to
    create a temporary image on the server and display that, but there
    is little documentation, actually none, aside from using a file
    system on how to handle images in mysql and display them in flash.
    Please advise as I can't believe it's this difficult to display an
    image in flash from a mysql database.

    Thanks for the reply. It answered my question, but left me
    wondering how to load multiple images. Do i have to call the same
    php file and string a different variable for multiple instances of
    the component? Such as:
    loader1.contentPath = "pics.php?&picid="+picnumber+"";
    loader2.contentPath = "pics.php?&picid="+picnumber2+"";
    It seems like hell for the php file on the server with all
    the request. Is there a way to get all the pictures I need with one
    call to one php file? Please advise.

  • - minus signs appearing in Query

    Hi
    Certain key figures get minus signs in front of them in one of our queries. When the data is browsed in the Infocube / ODS, there is no minus sign.
    We have checked the +/- symbol in 'sign change' for the key figures in Bex but no matter what setting I choose, I still get the minus sign displayed.
    Anyone have any ideas?
    Thanks
    Conor

    Hi,
    edit the query properties. Goto Tab Page: Value Display.
    Display of +/- Signs
    Here you specify how the minus sign is displayed. The following display options are available for negative values:
    &#9679; Before the Number -123.45: The minus sign is positioned before the value (default setting).
    &#9679; After the Number 123.45-: The minus sign is positioned after the value.
    &#9679; In Parentheses (123.45): Negative values are displayed in parentheses.
    http://help.sap.com/saphelp_nw70/helpdata/EN/1e/99ea3bd7896f58e10000000a11402f/frameset.htm
    Hope this helps.
    Regards
    Andreas

  • Negative number cannot be displayed in table if the column is too narrow

    Hi, All
    When a number is formatted  as a certain formatting(not locale formmatting),Negative number cannot be displayed in table if the column is narrower than the negative number, just minus is displayed.
    Can you help me? Thanks.
    Version: EHP1 for netweaver 7.0 SP3
    Best regards,
    Jiande Ding

    Hi,
    I think this has nothing to do with positive and negative numbers, By default the alignment of the text is Left, if you dont want to see '-' sign initially then you can change the alignment of the text to center or right in the display tab of properties for that column.
    As you as saying that at runtime the numbers are visible if manually adjusted. to icrease the width of that column permanently goto Layout tab of the story board and increase the size of the table and then increase the width of the column.
    the Fit Contents in the Layout should be set to "Actual Size".
    Regards,
    Rk.

  • Adding pictures to mysql

    I would like to upload a picture in flash that will send it to a php page which sends the picture to mysql database and displays it in flash.

    You wouldn't put the picture into the database; rather, you'd put the image name in the database.  Then you can get the image on the page by placing the path to the image's location in the HTML and adding the filename from the database.  One common way to do this is to use PHP as a scripting language to a) extract the filename from the database and b) place the path/filename into the image's src attribute.
    So - what is your question?

  • Images from MySQL

    Hi;
    I'm comfortable sending data to and from python scripts and as3, but what about blobs? I have images stored in MySQL. How should I get these into as3?
    Thanks,
    Terry

    Chrisjuk wrote:
    > I would be greatly appreciative if someone could
    > do me a quick guide to saving images to MYSQL and then
    displaying them in
    > Dreamweaver.
    Here's an extremely quick guide to saving images in MySQL (or
    any other
    database for that matter): DON'T DO IT.
    Databases are for storing data, not images. Store the images
    in the
    normal file system, and use the database to store details of
    where the
    image is located.
    Yes, you can store images in a database, but it leads to
    table bloat,
    and fragmented tables. It also involves quite a lot of
    scripting, which
    is not automatically generated by Dreamweaver.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • div hide and display problem

    I have a button ' + ' on it's click event i show one <div > and block display of button -(minus) , This works fine when there is single + button with multiple + button .. How can i accomplish same task ,,
    Please suggest solution

    BalusC wrote:
    Why are you asking a simple JS question in a Java forum? They have nothing to do with each other.Yes it's simple js issues , i made it work with single button but i want this for multiple buttons where button will appears dynamically ,, Suppose i want 2 buttons displayed in two <tr id ="1">
    <%
    for (int i-0;i<2;i++){ %>
    <tr>
    <td id="plus" style="display:block"> <input type=button name="plus" value="+" onClick="showminus(this)"></td>
    <td id="minus" style="display:none"> <input type=button name="plus" value="-" onClick="showplus(this)"></td>
    </tr>
    <%}%>This dosent work beacuse because my <td > id value is same for all + and - buttons
    plase suggest solution on this

  • Question on retrieve image from mysql

    i want to retrieve image from mysql database and display on GUI
    can anyone tell me how to do
    Thank you

    You can use the JDBC API for Java Database Connectivity. With this you can obtain data from the database using Java. There is an excellent tutorial here at Sun.com: http://www.google.com/search?q=jdbc+tutorial+site:sun.com You can get the MySQL JDBC driver at their own site: http://www.google.com/search?q=download+jdbc+driver+site:mysql.com Get the most recent version which suits your environment. There is also good documentation available over there.
    For displaying in the UI, the approach differs per UI. As you didn't mention which UI you are using, I can't help you further in detail.

Maybe you are looking for