Sign InSign Up

Rocketbot Forum

Rocketbot Forum Logo Rocketbot Forum Logo

Rocketbot Forum Navigation

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

Mobile menu

Close
  • Home
  • Popular
  • Categories
  • Tags
  • Questions
    • New Questions
    • Most voted
    • Most visited
    • Most Responded
  • Academy Rocketbot
  • Tutorials
  • Documentación
Home/ Questions/Q 3346
Next
In Process

Rocketbot Forum Latest Questions

Anonymous
  • 0
  • 0
Anonymous
Asked: June 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
  • 5k Views
  • 0 Followers
  • 0
Share
  • Facebook

    4 Answers

    • Voted
    • Oldest
    • Recent
    1. Bender
      Bender
      2021-06-24T13:51:23+00:00Added an answer on June 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 June 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 June 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 June 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
    Cancel reply

    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 : 5k
    • Popular
    • Comments
    • Tags

    Related Questions

      • Answer: 1

      Error al iniciar Rocketbot

      • Answers: 0

      Error al conectar a BD oracle

      • Answers: 4

      error al ahcer click en objeto

      • Answers: 3

      Without access to Academy Rocketbot and its courses

      • Answers: 3

      Bot final Level 2

    Users

    Explore

    • Home
    • Popular
    • Categories
    • Tags
    • Questions
      • New Questions
      • Most voted
      • Most visited
      • Most Responded

    Footer

    rocketbot white

    Rocketbot SpA | Todos los derechos reservados 2018 - 2020

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

    en_US
    es_ES en_US

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.