Skip to content
This repository was archived by the owner on Oct 15, 2026. It is now read-only.
This repository was archived by the owner on Oct 15, 2026. It is now read-only.

LoginView example code #75

Open
Open

Description

@Allan-Nava

I need a callback when the signIn button is clicked and call a handler to login passing the email and password

Screenshot 2021-07-20 at 15 26 30

telegram-cloud-photo-size-4-6032885629068621267-y

Activity

  1. RokuChris commented on Jul 20, 2021

    @RokuChris
    Contributor

    This is not an SGDEX view, so I can't offer much help. But one thing I notice immediately is that you are observing a buttonSelected field on your view. The only way that will work is if the field is an alias of the buttonSelected field on the button itself.

    https://developer.roku.com/docs/references/scenegraph/widget-nodes/button.md

  2. Allan-Nava commented on Jul 20, 2021

    @Allan-Nava
    Author

    I don't get it , inside the LoginView.brs the callback it works but I need to call a function inside the LoginViewLogic.brs
    Screenshot 2021-07-20 at 18 14 54

  3. Allan-Nava commented on Jul 21, 2021

    @Allan-Nava
    Author

    This is not an SGDEX view, so I can't offer much help. But one thing I notice immediately is that you are observing a buttonSelected field on your view. The only way that will work is if the field is an alias of the buttonSelected field on the button itself.

    https://developer.roku.com/docs/references/scenegraph/widget-nodes/button.md

    Is there any example of this alias?

  4. Allan-Nava commented on Jul 21, 2021

    @Allan-Nava
    Author

    Fixed with

            <!-- @Public -->
            <!-- @ReadOnly  -->
            <!-- Is set when button is selected by user. Should be observed in channel.
            Can be used for showing next View or start playback or so. -->
            <field id="buttonSelected" type="integer" alias="signInButton.buttonSelected" />
    

    THNKS

  5. Allan-Nava commented on Jul 21, 2021

    @Allan-Nava
    Author

    Now the problem is to call an API and show the main component
    Screenshot 2021-07-21 at 16 45 06

    Screenshot 2021-07-21 at 16 44 32

  6. Allan-Nava commented on Jul 23, 2021

    @Allan-Nava
    Author

    Any news?

  7. Allan-Nava commented on Jul 25, 2021

    @Allan-Nava
    Author

    News?

  8. Allan-Nava commented on Nov 23, 2021

    @Allan-Nava
    Author

    Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions