How do I get the entry id?

1 reply [Last post]
Joined: 06/26/2010
Points: 8

Does anyone have a working example of the onContributionWizardAfterAddEntry javascript function that enables getting the entry id?

This is my code and it doesn't work:

function onContributionWizardAfterAddEntry(entries) {
alert(entries.length + " media file/s was/were succsesfully uploaded");
for(var i = 0; i < entries.length; i++) {
alert("entries["+i+"]:EntryID = " + entries[i].entryId);
window.location.href = "http://www.videobio.biz/dolphin7/upload_video2.php?entryid=" + entries[i].entryId);
}

}

Then I can get the entryid from the url but this doesn't redirect...

Any help would be appreciated.

Luis

Joined: 05/17/2011
Points: 117

I never got that feature to work either...

I suspect it might only work if you have something else turned on, which causes a third page to be presented in the KCW sequence. I've forgotten what that is.

Fortunately, I was able to work around this for my needs, by using the UNDOCUMENTED partnerData field on a KalturaMediaEntry, to put "User: $user; Role: $role;" in, which is populated by the &partnerData you pass into KCW (under-documented).

I then copied that partnerData when I created an embed widget with the API, so both the Entry and its widget[s] have the same partnerData.

For reasons beyond my ken, the widget has a filter for the documented partnerData field on that particular class.

If this helps you great. If not, sorry, I got nothing.