Set Cross-Site Column

Discussions about Cross-site Lookup
Locked
RMIC
Posts: 96
Joined: Sun May 10, 2015

18 Dec 2018

Hello,

I will set a cross-site lookup column, but it does not work. In the debugger (F12) I get no error.
My code:

Code: Select all

var Kostenstellennummer_ID;
var Kostenstellennummer_Text;
Kostenstellennummer_ID = fd.field('Kostenstellennummer_ID').value();
Kostenstellennummer_Text = fd.field('Kostenstellennummer_Text').control('data')['Title'];
fd.field('Beantragende_x0020_Stelle').value({Id: Kostenstellennummer_ID, Title: Kostenstellennummer_Text});
What am I doing wrong?

Best regards,
RMIC

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

20 Dec 2018

Hi RMIC!

Have you tried "fd.field('Beantragende_x0020_Stelle').value(Kostenstellennummer_ID);"?

RMIC
Posts: 96
Joined: Sun May 10, 2015

21 Dec 2018

That does not work either.

One more note: In the source column and in the target column, I have several columns displayed. Is there any problem with that?

If I have the variables "Kostenstellennummer_ID" and "Kostenstellennummer_Text" issued via an alert, "undefined" appears.

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

21 Dec 2018

Dear RMIC,

Please, pick up any value in this Cross-Site lookup manually and then run this code in the browser console:

Code: Select all

fd.field('Beantragende_x0020_Stelle').control('data')
It should be like this:

Screenshot_121.png
Screenshot_121.png (12.83 KiB) Viewed 7236 times

Send us a screenshot.

RMIC
Posts: 96
Joined: Sun May 10, 2015

08 Jan 2019

I receive the following result:
sp_froms_skh.PNG
sp_froms_skh.PNG (44.32 KiB) Viewed 7213 times

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

14 Jan 2019

Dear RMIC,

Sorry for a late reply. Could you please provide the screenshot of Cross-Site Lookup settings?

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests