Using TableView

  1. 8 years ago

    Trisha Duke

    25 Jan 2016 User since 2016

    What is the difference between DidSelectRow and DidSelectCell event??

    I try using DidSelectCell to open a new window using " Window1.open(Window2);" where window2 has a textview and a label.

    How do i pass the ID from the selected row into Window2?

  2. marco

    26 Jan 2016 Administrator User since 2016

    They are both fired when a cell is selected in a Table. The only difference is the argument passed, row index in DidSelectRow and cell identifier in DidSelectCell. Please note that events are not yet finalized and could change in the upcoming versions.

    In order to pass data between two different windows, the best way is to add a new property to Window2 and the set it before opening it.

    For example:
    Window2.property = value;
    Window1.open(Window2);

    P.S. We are finalizing API in b2 so the right way to open a window will be: Window2.open();

  3. Trisha Duke

    26 Jan 2016 User since 2016

    Let say i have artist and title on the Tableview and i want to pass over the information in the Tableview to 2 control for artist and title, how should i pass those information??

or Sign Up to reply!