![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Problem is that FM doesn't seem to do that AFAIK, and the best I can hope for is a repeating field of two containers. Yet, I get this problem with "Square/Circle": if my two shape names are entered in repeating fields, and I specify my calculation as ShapeTable::Shape, I get a square in one and nothing in the other, yet if I have Extend(ShapeTable::Shape), I get either squares in both or circles in both. So how do I make it so that I have a square in one and a circle in the other? |
#3
| |||
| |||
|
|
Suppose you have a table called ShapeTable with a name field called Shape Name and a container field called Shape, and another table with a field Shapes that takes up to two Shape Names (say that it is a repeating field, but it could very well be two fields, a multi-key field, or some other form). I want to make a calculation that returns a container containing their corresponding shapes (so if I have entered "Square/Circle", then I get a square and a circle in the one container). Problem is that FM doesn't seem to do that AFAIK, and the best I can hope for is a repeating field of two containers. Yet, I get this problem with "Square/Circle": if my two shape names are entered in repeating fields, and I specify my calculation as ShapeTable::Shape, I get a square in one and nothing in the other, yet if I have Extend(ShapeTable::Shape), I get either squares in both or circles in both. So how do I make it so that I have a square in one and a circle in the other? |
#4
| |||
| |||
|
|
You'd be best to use two separate sets of fields. Then you can type "Square" into one field and a square appears in the first Container field, and type "Circle" into a second field and have a circle appear in the second field. |
#5
| |||
| |||
|
|
You'd be best to use two separate sets of fields. Then you can type "Square" into one field and a square appears in the first Container field, and type "Circle" into a second field and have a circle appear in the second field. Well, it is an obvious solution. However, I also need to encapsulate the information that you could have up to two shapes, so I need something that accomodates "Square" and "Square/Circle". These need to be ordered for presentation purposes (so if I enter "Square/Circle" and "Circle/Square", they would be presented in that order) but is not needed for the internals (ie. FM would consider "Square/Circle" and "Circle/Square" be the same). I've also tried multi-keys, but the ShapeTable::Shape only returns the first shape. (ie. the square if "Square/Circle" is entered) I've tried to avoid having a separate table, but it may be the case that I have to resort to doing that. |
#6
| |||
| |||
|
|
You'd be best to use two separate sets of fields. Then you can type "Square" into one field and a square appears in the first Container field, and type "Circle" into a second field and have a circle appear in the second field. Well, it is an obvious solution. However, I also need to encapsulate the information that you could have up to two shapes, so I need something that accomodates "Square" and "Square/Circle". These need to be ordered for presentation purposes (so if I enter "Square/Circle" and "Circle/Square", they would be presented in that order) but is not needed for the internals (ie. FM would consider "Square/Circle" and "Circle/Square" be the same). I've also tried multi-keys, but the ShapeTable::Shape only returns the first shape. (ie. the square if "Square/Circle" is entered) I've tried to avoid having a separate table, but it may be the case that I have to resort to doing that. -- I am only a mirage. |
![]() |
| Thread Tools | |
| Display Modes | |
| |