Hi,

I created a view of a pending request. Everything would work, if I just could get in the RID, the relationship request ID.
Can I get it by using custom fields and what php code, would put a new placeholder, like [rid], to the placeholder, I can use to rewrite the field?

I saw a php-script here: http://drupal.org/node/188433#comment-1824164, but can I also make the placeholder available by PHP?

thanks for any help,
;arc

Comments

karc2008’s picture

I forgot, this php-code is for removing friends and seems to get is data out of the current relationships. How can I get in the relationship ID of pending requests?
I also found this script: http://drupal.org/node/188433#comment-1846060 (in a view export).

I tried both, but none of them gets me the relationship ID displayed, so I could get sure, how to get and print it.

Thanks for any help,
Marc

alex.k’s picture

Not sure I understand you correctly. You can add a field in your view for the relationship id. Is that not what you are looking for?

karc2008’s picture

I guess, I didn´t explain it precisely. What I need is the individual relationship request-ID, not the relationship type ID (this would be easy, I just got one relationship type, so this is always "1").

Every new request, is using a new individual ID, 1.....unlimited.

Or is there a field that puts out the individual request ID? I searched over and over and wasn´t able to find it.

I found a code ( http://drupal.org/node/409432#comment-1848482 ), which should make it available, but in my result, the data is empty.

thanks anyway for your reply,
Marc

mrf’s picture

Status: Active » Closed (fixed)

Assuming this request has been resolved. If you are involved in this issue and still having problems, feel free to re-open. If not please open a new support request describing your issue.