I’m sure this has been answered because I read a few posts about it, but, I don’t seem to be understanding.
Let me break down what I want to do in the most simple terms possible:
I have to repeaters: “Table A” and “Table B”. Using an OnClick action on a droplist, I want to delete a row from Table A and place its contents into a row in Table B.
I’m stumped as to how to do this.
What is the easiest and most proficient way of doing this?
When you say, “…an OnCLick action on a droplist…” could you explain a little bit more fully?
Do you mean that the droplist shows the rows is Table A and when you select one, that is the one that is moved?
Or do you mean to have a button that actually actions the ‘move’?
Or do you mean that there is a number of actions in the droplist (One of which is ‘Move’) and you need to select a row and then click a button to complete the action?
The droplist is of no consequence. It’s the onClick event that triggers the action. I just happen to be using a droplist.
So if its easier, imagine selecting a number of rows, then clicking a button that reads, “Add These Rows to Table Two”. When you do that, those rows disappear from Table One and appear in Table Two.
Make sense?
(Just my two cents, but I wish the repeater were as straightforward as something like “Set Text”)
Here is an alternate solution that goes the marked-row filtering route (rather than Add/Delete rows), using two repeaters with identical data. Not sure if there is any benefit to this method over the Add/Delete rows method. None-the-less, an interesting use of marked-row filters.
There are two examples: one that transfers using transfer buttons, one that transfers by clicking the rows.
Notes:
[ul]
[li]In both examples, the OnPageLoad handler marks all rows in the first repeater than sets filters on both repeaters such that they show only marked rows.[/li][li]These filters remain active the whole time the prototype is in use, so they are set only once.[/li][li]In the first example, no rows are marked or unmarked until the buttons are pressed. [/li][li]Each transfer button moves the shape that displays the number (by 0,0) in order to invoke its OnMove handler, which forces evaluation of every row. The OnMove handler unmarks rows that are selected in the source table and marks the corresponding rows in the target table.[/li][li] In the second example, the unmarking/marking occurs OnClick.[/li][li]The selection color in the first example is defined using the Selected interaction style.[/li][/ul]
I’ve been trying to figure out how to apply it to my situation, but I’m just not understanding how to build it…apologies for being such a newb. Is there an updated method for Axure 8, or is it pretty much the same for Ax 8?
I’m a bit confused still as to how to build this on my own-- am I supposed to create a column that numbers each row? And that column is the variable that is called on in the OnMove handler? Is there any way to get more clarity or a clearer step-by-step of this? Apologies again for being a newb…