in drupal 7 i can't group field same as multigroup for drupal 6. there isn't a method for group field by delta ? i would create a table with field by delta.

p.s. sorry for my english.

CommentFileSizeAuthor
#3 Senza-titolo-1.jpg26.15 KBdrupalsim91

Comments

drupalsim91’s picture

please, it is important...

dawehner’s picture

Puh i would like to help you, though i have no idea what multigroup allowed you to do.

If you want to have a row foreach delta you could disable "Display all values in the same row" under multiple field settings in the field configuration.

drupalsim91’s picture

StatusFileSize
new26.15 KB

hi, thanks for the reply.

I can not use your advice because it result:
image

dawehner’s picture

Just found some interesting code in http://drupalcode.org/project/cck.git/blob_plain/refs/heads/6.x-3.x:/mod... which seems to support that.

I totally got your problem, that's actually an interesting question!

drupalsim91’s picture

but the patch is for drupal 6x and i have drupal 7.14. the solution can work the same?

dawehner’s picture

Maybe yes, though someone would have to do some prototype resarch to be able to say that.

drupalsim91’s picture

I'm no expert in these things, I do not know how.

markdatter’s picture

Component: Code » fieldapi data

I believe I am experiencing the same issue as drupalsim91. Perhaps I can explain a little better.

I have a content type with two fields. The two fields are set to have unlimited values. Following the example of drupalsim91 (as closely as possible), I might create a node from this content type and populate the fields like this:

Field 1:
A
B
C

Field 2:
A1
B1
C1

I want to use Views to make a table that looks like this:

Field 1 | Field 2 |
A | A1 |
B | B1 |
C | C1 |

But I keep getting this:

Field 1 | Field 2 |
A | A1 |
A | B1 |
A | C1 |
B | A1 |
B | B1 |
B | C1 |
C | A1 |
C | B1 |
C | C1 |

I have some module that has given me a "delta" value related to each multiple-value field. This value is equal to the indices of the values in the multiple-value fields. This seems like it should help me obtain the desired result, but I have found nothing so far.

Does anyone have a solution to this problem?

Thanks!

Jason

maski’s picture

Add 2 fields with delta values and hide them:
- field1_delta
- field2_delta

In Filter Criteria add GlobalPHP field with condition:
if (field1_delta != field2_delta) return TRUE;

esmerel’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.