Code Monkey home page Code Monkey logo

Comments (9)

davidstillwell avatar davidstillwell commented on July 19, 2024

Congrats, it sounds like you're doing some neat stuff.

You shouldn't have any issues connecting a data output to two data inputs. Perhaps the issue is that the scores output is already a list, so you can probably just connect scores directly without doing the list(scores=scores) transform.

We are considering changing the colours of the inputs/outputs depending on what data type a node is. This should make it easier in future to tell that the scores output is a list already.

Please let me know if it works so I can close this.

from concerto-platform.

tangi75 avatar tangi75 commented on July 19, 2024

I tried various things in the Questionnaire-scores to Save_data-new_data link :

  • list(scores=scores)
  • scores$profile = paste(ifelse(scores$IE < 0, "I", "E"), ifelse(scores$SN < 0, "S", "N"), ifelse(scores$FT < 0, "F", "T"), ifelse(scores$JP < 0, "J", "P"), sep="") [newline]
    list(mbti=scores$profile)
  • scores=scores

I get no error (even in the javascript console in debug) but nothing get into the database.

from concerto-platform.

tangi75 avatar tangi75 commented on July 19, 2024

Here is my test flow to make it clear:
image

from concerto-platform.

davidstillwell avatar davidstillwell commented on July 19, 2024

Ah, the problem is that the save_data node needs to be part of the flow, otherwise it never gets called. So you'll need to connect the in/out connections - you can connect it between questionnaire_v2 and info_v2. So your execution flow will be:

  1. Run questionnaire
  2. Store results
  3. Show info page

from concerto-platform.

tangi75 avatar tangi75 commented on July 19, 2024

from concerto-platform.

tangi75 avatar tangi75 commented on July 19, 2024

With the following test flow, I get the scores saved correctly:
image
They nevertheless aren't passed along to the Info node. I tried to add a link between save_data/data_bank and info/inserts with various values without success.
How to pass scores from the save_data node to the info node?

from concerto-platform.

davidstillwell avatar davidstillwell commented on July 19, 2024

Make another connection from questionnaire_v2|scores to info_v2|inserts - i.e. you can use the same output data node twice.

from concerto-platform.

tangi75 avatar tangi75 commented on July 19, 2024

It works perfectely! Thank you David.

from concerto-platform.

tangi75 avatar tangi75 commented on July 19, 2024

Hello David,

Here is a tutorial I wrote based on what I learned from implementing this test flow:

Test flow tutorial.md.txt

I tried to create a pull request on the wiki repo (having added this new file on a new branch) but I obviously don't have the required rights to do so.

from concerto-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.