Input box with the same variable

Input box with the same variable

  
Hi.
I have a input box when i write a code, automaticaly shows description in other input box (description).
I need to do more than one Input box associated with the same variable.
It is possible?
How can i do?

Thanks
Hi Vera,

You cannot have the same variable bound to different inputs. What are you trying to achieve? Maybe doing so with a structure with two attributes would be the best way.

Regards,

Paulo Tavares
Hi.
I need repeat variable code and description like a table to introduce different values and send by e-mail (is not necessary write in database).
One row, it works, but i can have multiple rows.

Something like this:

 

I'm new in Outsystems and i don't know how to do...
It is possible?
Hi Vera,

What about using a Table Records, with Inputs instead of Expressions? Is it a fixed number of lines, or a variable one?

Regards,

Paulo Tavares
Hi.
The number of rows is variable (i prefer), but can be fixed.
Can i use a table records with inputs instead of expressions?
Can you help me? How can i do?

Note: Is not necessary to insert into the database, only send information by e-mail

Thanks
Hi Vera,

The way I would do it is the following:

- Have a screen with a local variable of Record List data type, and Record definition being a structure with 4 attributes, in this case: Code, Description, Price_1, Price_2
- Use that variable as source of the Table Record;
- Change the expressions in the Table Record to inputs, pointing to the same variables (which should be something like <TableName>.List.Current.<Structure>.<AttributeName> )
- Have a button that adds a new line to the table. That button executes an action which appends a new line to the list variable, and refreshes the Table Record widget.

Does this make some sense?

I hope this at least gets you started. Let us know how it goes, and feel free to ask about whatever is not clear or doesn't make much sense at first, as well as to send over your eSpace :) 

Regards,

Paulo Tavares
Hi Paulo.

Yes, it does.
I try to do, but doesn't work.
In Table Record doesn't appear inputs (only "no items to show") .
Can you help me?
Send the attached file with the example

Thanks
Hello Vera!

If I understand well, you want a dinamic table, and when you change the number automaticaly refresh the name.

I'm sending to you a solution to do that and a flash movie to see if is the expected behaviour.

Best Regards

Nuno Roxo
Hello Nuno.

Yes, that's it :)
Thank you very much for your help.

Regards
Welcome Vera

We are here to help you!

Best Regards!
Hello!

I need send by e-mail the table with values.
Table values aren't show in the email message.
How can i do?

Thanks
Hi Vera, 

In the e-mail, you should send the values in expressions, and not in inputs. 

Are you doing so?

Regards,

Paulo Tavares
Hi Paulo.

i'm sending the values in expressions, but values do not appear.
Can you help me?

Thanks
Hi Vera,

If you want to send over your eSpace, maybe someone can look into it. It might be easier to see what the problem is.

I would assume that you would pass the list as a parameter of the e-mail, and re-render the table records using that list.

Regards,

Paulo Tavares
Hi Paulo

I think i'm not doing well re-render the table records using list.
Send my eSpace.
Thanks
Hi Vera,

The List variable in your e-mail should be an Input Parameter. You should then, from the "Enviar Email" action pass the List to the Email's input parameter. Use that list as the source for the Table Records. That way it should work.

I hope that makes sense and that it helps.

Let us know how it goes!

Regards,

Paulo Tavares
Hi Paulo.
Can you give me an example?
Thank you
Hello Vera

Take a look at my example...I hope it helps!

Any question you have tell us!

Cheers

Nuno Roxo
Hello Nuno.
In my project have an error: "Error creating Email. index 1 is out of range"

Can you help me?

Thanks
Hello Vera,

Your problem is when you are creating the list to show in your email...

You are trying to assign to your list a array position that does not exist...

Can you send me your eSpace?

Best Regards

Nuno Roxo
Hello Nuno.
Can i send you my eSpace by e-mail?

Thanks
Hello Nuno.
Thank you for your help.

Thanks
Welcome Vera, anytime!

Best Regards

Nuno Roxo