Multiple Views

  1. 7 years ago

    Joel_Eisenstat

    18 Nov 2016 User since 2016

    Hi ,
    Still trying to get a handle on Gravity -
    Attempting to change views with segmented control :
    if (selectedSegmentIndex) == 0 { // first segment
    View1.rowIndex = 1; // where this represents to the view template list order ? second row
    } else { // second segment
    View1.rowIndex = 3; // fourth row of template list
    }

    The error log exploded - any explanation is appreciated
    Regards
    Joel

  2. marco

    18 Nov 2016 Administrator User since 2016

    Hi @Joel_Eisenstat what is View1? a CustomView?
    And what is rowIndex?

    What are you trying to achieve?

  3. Joel_Eisenstat

    18 Nov 2016 User since 2016

    Good morning,
    In a detail window ( under PageSplit navigation) I am using a SegmentedControl to alter View controls , i.e. PersonalView and LedgerView templates.
    Initially I tried to use the bind gui from the Segment control to the View control but the View template property was not seen.
    The submitted code was my attempt to use Gravity to accomplish this.
    View1 is the view control in the Client window, row index is the row of the the view template list , taken from the view class description ;
    <var rowIndex: Int Use this property to set row index in case of view used in a controls that require an array of views.>
    Thanks
    Joel
    Also is there a way to clear the log as to reduce clutter ?

  4. marco

    18 Nov 2016 Administrator User since 2016

    @Joel_Eisenstat please send a project so we can better understand what is happening.
    Log window is usually automatically filled when runtime errors occur, so there is no way to disable it.

    You if you need to clear it, just right click with the mouse and then select "Clear Log" from the contextual menu.

  5. Joel_Eisenstat

    19 Nov 2016 User since 2016

    I am trying to have multiple custom views determined by the segment
    The row index seems to be from the template list of the view :

    var rowIndex: Int Use this property to set row index in case of view used in a controls that require an array of views.
    Assuming the list would adjusted to the index

    Joel

or Sign Up to reply!