Sign InSign Up

Rocketbot Forum

Rocketbot Forum Logo Rocketbot Forum Logo

Rocketbot Forum Navigation

  • Academy Rocketbot
  • Tutoriales
  • Documentación
Search
Ask A Question

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/ Questions/Q 3346
Next
In Process

Rocketbot Forum Latest Questions

Anonymous
  • 0
  • 0
Anonymous
Asked: Junio 24, 20212021-06-24T12:09:27+00:00 2021-06-24T12:09:27+00:00In: 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 Answers
  • 7k Views
  • 0 Followers
  • 0
Share
  • Facebook

    4 Answers

    • 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
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on 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
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on 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
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on 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
        • Reply
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp

    Leave an answer
    Cancelar respuesta

    You must login to add an answer.


    Forgot Password?

    Need An Account, Sign Up Here

    Sidebar

    Ask A Question

    Stats

    • Questions : 1k
    • Answers : 2k
    • Posts : 0
    • Comments : 0
    • Best Answers : 163
    • Users : 6k
    • Popular
    • Comments
    • Tags

    Related Questions

      • Answers: 4

      No me ha llegado la licencia

      • Answers: 3

      MYSQL y PostgreSQL

      • Answer: 1

      que usuario me conecta al FTP del academy

      • Answer: 1

      No recibo el mail de registro. No puedo registrar mi ...

      • Answer: 1

      NO ME DEJA REGISTRARME EN ACADEMY

    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.

    Insertar/Editar enlace

    Ingresa la URL de destino

    O enlaza el contenido ya existente

      No se especificó ningún término de búsqueda. Se mostrarán los elementos recientes. Busca o usa las flechas arriba y abajo del teclado para seleccionar un item.