cancel
Showing results for 
Search instead for 
Did you mean: 

table to populate form - copy instead of reference

Former Member
0 Kudos

Hello,

I use a table to populate an input form.

the input form defines the table's fields as default,

when clicking a row in the table the form is populated / updated.

the input form has a submit-button which triggers the CLEAR event on this form.

however the row selected in the table to populate the form is also cleared, it seems there is some reference instead of a rowdata-copy.

any idea how to copy the selected data from the table into the form instead of creating sth like a reference, which is affected by a CLEAR-event?

thanks,

kai

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kai,

The behavior you describe is the default behavior in VC.

As you already noticed the table in your model is connected to the form in in Bind Link.

Bind links differ from other links in their green color and right angels. As seen in the attached image "bing_link.png".

There is no straight forward way to connect a table to a form with a map link (curved blue line, with a notch near its start).

Here is one way:

- Drag a Switch Operator onto the board and place it between the table and the form.

- Right click the Switch Operator and select "Remove Port" so you will have only a single port on the Switch.

- Connect the Table output port to the Switch input port

- Right click the switch and select "Define Operator".

- Use the plus button on the Define Switch popup to add fields tp the operator. Add a field for every field you wish to map from the table to the form.

- Map each input field to an output field with the same name (the default behavior). See attached screenshot "define_switch.png" to see how it should look.

- Connect the from to the Switch.

- Right Click the form and select "Define Data". Set all the data fields to be visible on the form.

- Add a clear button to the form.

- See attached model screen shot "mapping_using_switch.png"

I hope this helps,

Shai

Former Member
0 Kudos

this makes perfect sense, thank you very much.

however the images are "broken"...

Former Member
Former Member
0 Kudos

Thanks alot Shai!

Answers (0)