Show >1 parameter on webpage

For general Flowcode discussion that does not belong in the other sections.
Post Reply
MJU20
Posts: 337
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 93 times
Been thanked: 67 times

Show >1 parameter on webpage

Post by MJU20 »

In https://flowcode.co.uk/forums/viewtopic ... 5073#p5073 I asked a question about showing more then one parameter on a webpage in Flowcode.

But in that post I asked a few other questions so the first one isn't answered yet.
Then problem 2: I want to have another variable on the same webpage.
The index.htm works. I have it running and it reloads every 5 seconds.
But... probably my mistake is that I think that "setoutvalue 1,x" becomes %1 in the HTML code?

Is this wrong? How can I add a second variable in the HTML code of the same page?
When running a webpage I just can't seem to add a second variable to the webpage index.htm.
Any ideas?

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: Show >1 parameter on webpage

Post by BenR »

Hello,

You first need to check the component properties to see how many out variables are allowed.

You can then reference them in your HTML using %1 %2 %3 etc and write to them using the SetOutValue macro.

If you're still having problems then can you post a simple project showing the problem you're having?

Example here for reference - viewtopic.php?p=4165#p4165

Steve-Matrix
Matrix Staff
Posts: 1472
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 204 times
Been thanked: 349 times

Re: Show >1 parameter on webpage

Post by Steve-Matrix »

I have hopefully answered your question in the original thread. Basically, you need to set the outgoing count for variable substitutions to 2 (or however %x values you are using).

(Ben beat me!)

MJU20
Posts: 337
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 93 times
Been thanked: 67 times

Re: Show >1 parameter on webpage

Post by MJU20 »

Thank you both BenR and Steve, this was indeed the problem!

But again this is a problem I was struggling with for a long while (look at the post that was started first).
Maybe you should consider expanding the Wiki with some more explanation because for non-Englisch speaking people this isn't always that obvious what you mean.

But I'm glad that it works now. Thanks!

@Steve, BenR always beats you first with solutions. I would become worried by this fast guy! :-)

Post Reply