IngresarRegistrarme

Rocketbot Forum

Rocketbot Forum Logo Rocketbot Forum Logo

Rocketbot Forum Navigation

  • Academy Rocketbot
  • Tutoriales
  • Documentación
Search
Realiza una Pregunta

Mobile menu

Close
  • Home
  • Popular
  • Categorías
  • Tags
  • Preguntas
    • Nuevas Preguntas
    • Más votadas
    • Más visitadas
    • Más respondidas
  • Academy Rocketbot
  • Tutoriales
  • Documentación
Home/ Preguntas/Q 3346
Siguiente
En Proceso

Rocketbot Forum Latest Preguntas

Anonymous
  • 0
  • 0
Anonymous
Asked: junio 24, 20212021-06-24T12:09:27+00:00 2021-06-24T12:09:27+00:00En: Academy

Return Data to Father Bot

  • 0
  • 0

Hello,

Does any one know how to use Return Data method in Rocketbot?

I have one child bot where in variable section I have one variable with value which I want to use in Father bot.

I have create same variable in Father bot and when I execute from DB the child bot , i am getting error as «string indices must be integers».

 

Thank you!

how to return data to father bot using return data methodquestion
4
  • 4 4 Respuestas
  • 5k Vistas
  • 0 Seguidores
  • 0
Compartir
  • Facebook

    4 Respuestas

    • Voted
    • Oldest
    • Recent
    1. Bender
      Bender
      2021-06-24T13:51:23+00:00Added an answer on junio 24, 2021 at 1:51 pm

      Hello Anonymous,

      To return the data to the parent, you must use the Set Variable command, in the «Data» input you must enter the child’s variable (the value you want to share, in double quotes if it’s a string) and in the other input you must enter the father’s variable (where you want to store the value).

      ex:

        • 0
      • Responder
      • Compartir
        Compartir
        • Compartir en Facebook
        • Compartir en Twitter
        • Compartir en LinkedIn
        • Compartir en WhatsApp
    2. nikhil.agnesh1@gmail.com
      nikhil.agnesh1@gmail.com
      2021-06-24T15:49:58+00:00Added an answer on junio 24, 2021 at 3:49 pm

      Hello Bender,

      Thank you very much. It works.

      Do you know why we have «Return Data» method under Scripts sections which says return data to the father bot? It is really confusing.

      Thank you.

        • 0
      • Responder
      • Compartir
        Compartir
        • Compartir en Facebook
        • Compartir en Twitter
        • Compartir en LinkedIn
        • Compartir en WhatsApp
    3. Bender
      Bender
      2021-06-25T19:53:59+00:00Added an answer on junio 25, 2021 at 7:53 pm

      Hi Nik,

      Yes, I attach a description of this command.

      Return Data
      This command is useful for sending information to a Parent robot. The parent robot must call the child robot with the rocket.start() instruction.

      Example:
      We have a parent robot, which contains a variable {res} which will be where we will receive the response from the robot called Return_Info

       

      In the child robot (Return_Info) we will have the Return Data command with the following example data:

      We can send any type of information, string, booleans, dictionaries, lists, etc.
      When the parent executes the child, it will receive the information in its {res} variable.

        • 0
      • Responder
      • Compartir
        Compartir
        • Compartir en Facebook
        • Compartir en Twitter
        • Compartir en LinkedIn
        • Compartir en WhatsApp
      • nikhil.agnesh1@gmail.com
        nikhil.agnesh1@gmail.com
        2021-06-29T09:23:18+00:00Replied to answer on junio 29, 2021 at 9:23 am

        Thank you Bender, appreciate it.

          • 0
        • Responder
        • Compartir
          Compartir
          • Compartir en Facebook
          • Compartir en Twitter
          • Compartir en LinkedIn
          • Compartir en WhatsApp

    Leave an answer
    Cancelar la respuesta

    You must login to add an answer.


    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Realizar Pregunta

    Stats

    • Preguntas : 1k
    • Respuestas : 2k
    • Posts : 0
    • Comentarios : 0
    • Mejores Respuestas : 163
    • Usuarios : 5k
    • Populares
    • Comentarios
    • Tags

    Related Questions

      • Respuesta: 1

      Error al iniciar Rocketbot

      • Respuestas: 0

      Error al conectar a BD oracle

      • Respuestas: 4

      error al ahcer click en objeto

      • Respuestas: 3

      Without access to Academy Rocketbot and its courses

      • Respuestas: 3

      Bot final Level 2

    Users

    Explore

    • Home
    • Popular
    • Categorías
    • Tags
    • Preguntas
      • Nuevas Preguntas
      • Más votadas
      • Más visitadas
      • Más respondidas

    Footer

    rocketbot white

    Rocketbot SpA | Todos los derechos reservados 2018 - 2020

    © 2020 Discy. All Rights Reserved
    With Love by 2code.

    es_ES
    en_US es_ES

    Insertar/editar un enlace

    Introduce la URL de destino

    O enlaza a contenido ya existente

      No se ha especificado ningún término de búsqueda. Mostrando los elementos recientes. Busca o utiliza las teclas de flecha arriba y abajo para seleccionar un elemento.