How to display a listView vertically with multi columns?

Hi,
Refer to the sample HTML
ListView item templates sample. If I want to display the listView (in scenario1.html) in three columns with vertical scroll bar, what should  I do?
I try to change 'layout' property of listView from 'GridLayout' to 'ListLayout' in scenario1.html, like this:
<div id="listView"
class="win-selectionstylefilled"
data-win-control="WinJS.UI.ListView"
data-win-options="{
itemDataSource: myData.dataSource,
itemTemplate: regularListIconTextTemplate,
selectionMode: 'none',
tapBehavior: 'none',
swipeBehavior: 'none',
layout: { type: WinJS.UI.ListLayout }
}">
</div>
The listView will be vertical but with only one column. 

You should modify your Template to something like:
<table >
<tbody>
<tr data-win-control="WinJS.Binding.Template" id="regularListIconTextTemplate" >
<td data-win-bind="textContent:a"></td>
<td data-win-bind="textContent:b"></td>
<td data-win-bind="textContent:c"></td>
</tr>
</tbody>
</table>
And position that Table where you want the items to appear. I put some binding examples (attributes a,b and c) but you use whatever attributes and content you need in each column.
For a working example I used the following HTML on an empty "default.html":
<div id="listView" class="win-selectionstylefilled" data-win-control="WinJS.UI.ListView" data-win-options="{ layout: { type: WinJS.UI.ListLayout } }">
</div>
<table >
<tbody>
<tr data-win-control="WinJS.Binding.Template" id="regularListIconTextTemplate" >
<td data-win-bind="textContent:a"></td>
<td data-win-bind="textContent:b"></td>
<td data-win-bind="textContent:c"></td>
</tr>
</tbody>
</table>
Then on the default.js I used:
app.onactivated = function (args) {
if (args.detail.kind === activation.ActivationKind.launch) {
if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
// TODO: This application has been newly launched. Initialize
// your application here.
} else {
// TODO: This application has been reactivated from suspension.
// Restore application state here.
args.setPromise(WinJS.UI.processAll());
var chartlines = new Array();
chartlines.push({a: '1-1', b: '1-2', c: '1-3' });
chartlines.push({ a: '2-1', b: '2-2', c: '2-3' });
chartlines.push({a: '3-1', b: '3-2', c: '3-3' });
chartlines.push({a: '4-1', b: '4-2', c: '4-3' });
var listView = document.getElementById("listView").winControl;
listView.itemTemplate = document.getElementById("regularListIconTextTemplate");
listView.itemDataSource = (new WinJS.Binding.List(chartlines)).dataSource;
Hi,
Essentially, this method creates an one-column listView, too. My purpose is to create a vertical listView with three items in each row.
If I add a rotation style to the listView in 'scenario1.html' of the  sample HTML
ListView item templates sample, like this:
<div style ="transform:rotate(90deg)" id="listView"
class="win-selectionstylefilled"
data-win-control="WinJS.UI.ListView"
data-win-options="{
itemDataSource: myData.dataSource,
itemTemplate: regularListIconTextTemplate,
selectionMode: 'none',
tapBehavior: 'none',
swipeBehavior: 'none',
layout: { type: WinJS.UI.GridLayout }
}">
</div>
The listView seems to 'vertical', and is like what I want. But, I do not change the listView essentially. The listView I want is that which layouts vertically and has three separated items in each row. 

Similar Messages

  • How to display the message along with a value using BBP_CHECK_BADI

    Hi Gurus,
    I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
    Thanks,
    Neelima

    Hi,
    you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
    See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD

  • Working with Multi-column text in Illustrator CS6 - highly irritating! How do I do the following ...

    Hi ...
    I'm finding working with multi column\row text box ("table") in Illustrator CS6 really irritating and non-intuitive. Maybe just my ignorance but I can't find simple ways to do the following:
    1. Click in a different cell of the "table" to the one currently active. Cursor does not move to new cell. How do I move focus to a different cell?
    2. Begin entering text in an empty table - I can't get the cursor to appear, despite clicking inside cell area, on text box border etc.
    Is there any simple way to perform these basic, simple tasks?
    Thanks
    Richard

    In my quick test I was able to enter the text by beginning at the upper left of the box and clicking. When I entered the text it appeared in the first box. Then I was able to tab through to the other boxes.

  • How to display the selection screen with icons as well as with text element

    How to display the selection screen with icons as well as with texts (written in text elements) for PlantDate, OrderType,WareHouse..

    Report zex33.
    type-pools: icon.
    selection-screen begin of line.
    selection-screen comment 1(20) text_001.
    parameters: p_werks type marc-werks.
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_002.
    parameters: p_whouse(10).
    selection-screen end of line.
    selection-screen begin of line.
    selection-screen comment 1(20) text_003.
    parameters: p_auart like vbak-auart.
    selection-screen end of line.
    initialization.
      write ICON_PLANT  as icon to text_001.
    concatenate text_001 text-001 into text_001 separated by space.
      write ICON_WAREHOUSE  as icon to text_002.
    concatenate text_002 text-002 into text_002 separated by space.
      write ICON_ORDER  as icon to text_003.
    concatenate text_003 text-003 into text_003 separated by space.

  • How to display horizontally to vertically column in oracle

    Dear All
    How to display horizontally to vertically column in oracle,Please give me Sol. ASAP

    Sunil,
    Which column is the sal column? I can’t see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you can’t build sums on string columns. If you want to build sums in an updateable report / tabular form, then don’t use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
    Regards,
    Marc

  • How to display a Math symbol with Subscript(like  "Xad", make the "ad" be Subscript )

    How to display a Math symbol with Subscript(like  "Xad", make the "ad" be Subscript )
    I need to show "Xad"(ad is Subscript )
    I try to find the letter subscript......but ,Unicode set is not have.....
    I try to use  X<sub>ad</sub>   show it  whit Text.htmlText,   but is not used,   I think Flex's HTML is  not support the <sub> mark.
    can you tell me , how to display a Math symbol with Subscript(like  "Xad", make the "ad" be Subscript )
    thank you very much.....

    http://blog.ggshow.com/index.php/how_to_use_subscript_aamp_superscript_in?blog=11
    http://jasonbejot.com/superscript-and-subscript-in-actionscript
    and thank you very very muck

  • How to display the content of a BLOB column in a ADF/BC pages ?

    How to display the content of a BLOB column in a ADF/BC pages ?
    There is some image in database table blog column. And we want to display image on the screeen.
    There is some example about upload and dowload blog columns.
    (steve not yet document example page etc...)
    But We want to display blog picture in a image component...
    is there any basic way to do it ?
    Thanks a lot...

    Ali,
    You could just download the sample app... but... here is the servlet code from the demo (look at it just for technique - you'll obviously have to change it for your needs)...
    John
    package oracle.fodemo.storefront.servlet;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Key;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    import oracle.jbo.domain.BlobDomain;
    import oracle.jbo.domain.DBSequence;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.ViewObjectImpl;
    public class ImageServlet
      extends HttpServlet
      private static final String CONTENT_TYPE =
        "image/jpg; charset=windows-1252";
      public void init(ServletConfig config)
        throws ServletException
        super.init(config);
      public void doGet(HttpServletRequest request,
                        HttpServletResponse response)
        throws ServletException, IOException
        response.setContentType(CONTENT_TYPE);
        response.setContentType(CONTENT_TYPE);
        String detailProductId = request.getParameter("detail");
        String thumbnailProductId = request.getParameter("thumbnail");
        boolean thumbnail = true;
        String productId = null;
        OutputStream os = response.getOutputStream();
        String amDef = "oracle.fodemo.storefront.store.service.StoreServiceAM";
        String config = "StoreServiceAMLocal";
        ApplicationModule am =
          Configuration.createRootApplicationModule(amDef, config);
        ViewObjectImpl vo =
          (ViewObjectImpl) am.findViewObject("ProductImages"); // get view object (the same as used in the table)
        if (detailProductId != null)
          productId = detailProductId;
          thumbnail = false;
        else
          productId = thumbnailProductId;
        vo.defineNamedWhereClauseParam("paramThumbnail", null, null);
        vo.defineNamedWhereClauseParam("paramProductId", null, null);
        vo.setWhereClause("DEFAULT_VIEW_FLAG = :paramThumbnail AND PRODUCT_ID = :paramProductId");
        vo.setNamedWhereClauseParam("paramThumbnail", (thumbnail? "Y": "N"));
        vo.setNamedWhereClauseParam("paramProductId", productId);
        vo.executeQuery();
        Row product = vo.first();
        BlobDomain image = (BlobDomain) product.getAttribute("Image");
        InputStream is = image.getInputStream();
        // copy blob to output
        byte[] buffer = new byte[10 * 1024];
        int nread;
        while ((nread = is.read(buffer)) != -1)
          os.write(buffer, 0, nread);
        os.close();
        vo.setWhereClause(null);
        vo.removeNamedWhereClauseParam("paramProductId");
        vo.removeNamedWhereClauseParam("paramThumbnail");
        Configuration.releaseRootApplicationModule(am, false);
    }

  • How to justify text vertically in multi-column frame

    How do I justify text vertically in a multi-column frame but within the baseline grid?
    Working at a very busy publication, fitting text evenly in multi-column text boxes are crucial to be done quickly! I understand that it can be done manually by adjusting the tracking in order to force the text to end evenly on bottom. However I'm looking to achieve that result automatically, pretty much like the "Justify Vertically" feature except by doing so it spreads the last column lines out, but I need to keep the text on the grid.

    You can ask over in scripting: InDesign Scripting

  • How to display double byte characters with system.out.print?

    Hi, I'm a newbie java programmer having trouble to utilize java locale with system io on dos console mode.
    Platform is winxp, jvm1.5,
    File structure is:
    C:\myProg <-root
    C:\myProg\test <-package
    C:\myProg\test\Run.java
    C:\myProg\test\MessageBundle.properties <- default properties
    C:\myProg\test\MessageBundle_zh_HK.properties <- localed properties (written in notepad and save as Unicode, window notepad contains BOM)
    inside MessageBundle.properties:
    test = Hello
    inside Message_zh_HK.properties:
    test = &#21890; //hello in big5 encoding
    run.java:
    package test;
    import java.util.*;
    public class Run{
      public static void main(String[] args){
        Locale locale = new Locale("zh","HK");
        ResourceBundle resource =
            ResourceBundle.getbundle("test.MessageBundle", locale);
        System.out.println(resource.getString("test"));
      }//main
    }//classwhen run this program, it'll kept diplay "hello" instead of the encoded character...
    then when i try run the native2ascii tool against MessageBundle_zh_HK.properties, it starts to display monster characters instead.
    Trying to figure out what I did wrong and how to display double byte characters on console.
    Thank you.
    p.s: while googling, some said dos can only can display ASCII. To demonstrate the dos console is capable of displaying double byte characters, i wrote another helloWorld in chinese using notepad with C# and compile using "csc hello.cs", sure enough, console.write in c# allowed me to display the character I was expecting. Since dos console can print double byte characters, I must be missing something important in this java program.

    after google a brunch, I learned that javac (hence java.exe) does not support BOM (byte order mark).
    I had to use a diff editor to save my text file as unicode without BOM in order for native2ascii to convert into a ascii file.
    Even the property file is in ascii format, I'm still having trouble to display those character in dos console. In fact, I just noticed I can use system.out.println to display double byte character if I embedded the character itself in java source file:
    public class Run {
         public static void main(String[] args) throws UnsupportedEncodingException{
              String msg = "&#20013;&#25991;";    //double byte character
                    try{
                    System.out.println(new String(msg.getBytes("UTF-8")) + " new string");  //this displays fine
                    catch(Exception e){}
                    Locale locale = new Locale("zh", "HK");
              ResourceBundle resource = ResourceBundle.getBundle("test.MessagesBundle", locale);
                    System.out.println(resource.getString("Hey"));      //this will display weird characterso it seems like to me that I must did something wrong in the process of creating properties file from unicode text file...

  • How to display the detailed navigation with the Search Results

    Hello Gurus,
    I was able to display the search results in the same frame rather than opening the new window and getting it displayed. Now when the search results are displayed, my detailed navigation and portal favorites etc.. all the iviews are automatically suppressed.
    Please help me displaying the search results with Navigation Panel.
    Regards
    V.

    Hi Vaibhav,
    What do you mean by suppressed?
    Is it gone, or just closed?
    If it is just closed, you can try 2 things:
    1. Check if the property "Initial State of Navigation Panel" of the page has any influence.
    2. There is a javascript method that opens it.
    You can see it by importing the file '<b>com.sap.portal.layouts.framework.par.bak</b>'.
    Navigate to
    System Administration -> Support -> Support Desk -> Portal Runtime -> Browse deployment
    then the folder
    ROOT/WEB-INF/deployment/pcd
    and press download.
    Import from par to Developer Studio, and check the javascript files under dist/PORTAL-INF for a function called something like 'expandTray'.
    Hope that helps,
    Yoav.

  • How to display and edit the clob datatype column from Data base

    Hi ,
    I have a requiremsnt as below
    1) One Table having some columns with CLOB data type along with varchar columns
    2) need to display the data from DB in search screen and need to be edited clob column in edit screen
    I created EO and VO with that Table and how to display the clob value into the input box for editing.
    using Jdev 11.1.1.5.0 version.
    Can you please help on this.
    THanks & REgards,
    Madhu

    Hi,
    If you are using an inputText component to display a Character Large Object (CLOB), then you will need to create a custom converter that converts the CLOB to a String.
    For custom convertor refer below link,
    http://docs.oracle.com/cd/E2438201/web.1112/e16181/af_validate.htm#BABGIEDH
    (section7.4 Creating Custom JSF Converters)
    Thanks,
    Santosh M E

  • How to display MySql query results in multiple columns?

    Hi, I know how to display PHP/MySq
    l query results in a single column, but I am really stuck at displa
    ying the results in multiple columns in DW CS4.
    Can anyone help me with a code example?. I am new to php/mysql. Thanks

    Are you asking how to pivot the results of the query? Do a search for horizontal looping. If that's not what you are asking, please provide more details.

  • Problem with MULTI-COLUMN Data Store

    I am using multi column store on 2 CLOB columns in the table while creating a context index. After creating the context index, when i run my contains clause for certain words; it actually returns all the records in that table. When i search the $i table for these words, it shows that the word occurs in all the records even though it doesn't. I assume that when indexing the words, the special characters aren't being handled at all. So, i need a way to efficiently handle the special characters in the text. Also, need to know; how are the special characters handled when context index is created on a single column (As i haven't been facing any problems when mining data such columns).
    The script i used for creating the context index is given below :
    BEGIN
    ctx_ddl.create_preference ('MLT_COLUMN_STORE', 'MULTI_COLUMN_DATASTORE');
    ctx_ddl.set_attribute ('MLT_COLUMN_STORE',
    'columns',
    'column1,column2'
    EXECUTE IMMEDIATE 'CREATE INDEX routine_task_ctx_idx '
    || 'ON routine_table (column1) '
    || 'INDEXTYPE IS CTXSYS.CONTEXT '
    || 'PARAMETERS '
    || '(''DATASTORE MLT_COLUMN_STORE'
    || ' FILTER CTXSYS.NULL_FILTER'
    || ' STOPLIST CTXSYS.EMPTY_STOPLIST'
    || ' LEXER CTXSYS.BASIC_LEXER'')'
    || ' PARALLEL 2';
    END;

    Hi,
    is it possible to give an example of how your data looks like? What are these special characters? Oracle Text includes option like printjoins and skipjoins which give special meanings to characters. So an example will guide us for helping you.
    Herald ten Dam
    http://htendam.wordpress.com

  • Help with multi column drop down menu

    HI all,
    I am attaching an image from the ESPN web site, in the hopes that someone sheds some light on what is the name of the pull down menu that is shown there?
    and how you go about creating such menus, even larger (even as wide as the Navigation bar itslef)?
    thanks!

    Multi-Column Drop-Down Menus:
    Plug-in for jQuery -
    http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm
    CSS Play has another version -
    http://www.cssplay.co.uk/menus/multi-column.html
    DHTML - multicolumn menu: (30 day trial + purchase)
    http://dhtml-menu.com/menu/dhtml-pulldown-menu-multicolumn-sample.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • In BEx, how to display hierarchy Upper Node with selected Lower Nodes only

    Currently I am displaying the Cost Centre (GFL Responsibility Cost Centre) hierarchy in a workbook. I want to be able to filter on this hierarchy dynamically. E.g. the upper node must be displayed including the rolled up results for this node, together  with a selection of the lower nodes e.g 2 nodes ( not all the lower nodes related to the upper node must be displayed in the query).
    What's possible when filtering :
    To filter on the 2 lower nodes only ( results are displayed as required)
    Not possible:
    When I include the higher node of the 2 lower nodes in the query, All the lower nodes of the higher node are displayed, and the filter selection of the lower nodes are over written.
    This is logically what's expected when the higher node is included in the filter.
    Creating a hierarchy variable gives the same problem, I am not able to filter on the hierarchy nodes as required.
                      <b>Upper Node</b>
              <b>Lower Node1 LowerNode2 LowerNode3</b>
    Filter the report for UpperNode and LowerNode 2 & 3 only
    <b><i>Thanking YOU in advance. Will reward points for the correct help</i></b>

    Hi
    Do you want to show particular node or particular level ?
    If you want particular node , then create hierarchy node variable and restrict to that node ( 3rd node)
    If you want particular level, what does that mean  say i am taking employee hierarchy and the hierarchy is as below.
    Ihe setting that we have is to expand upto n levels but  if yiou say i need level 2 what does that mean and how do you want to show in report ?
           A -
    (level 1)
           B,C,D( --child of A ) --- level 2
              E(Child of B), F(Child of C)   -
    level 3.
    Regards
    vamsi

Maybe you are looking for