Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

nuGetLookupId Wiki Topic is solved

Questions related to using nuBuilder Forte.
Post Reply
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

nuGetLookupId Wiki

Unread post by kev1n »

Hi Steven

Looking at the source code, the description of the 2nd parameter (string2), should be changed to:

string2 = Object id of Lookup Object to populate

https://wiki.nubuilder.cloud/ ... etLookupId
nuGetLookupId(string1, string2)

Parameters

string1 = Primary Key
string2 = Primary Key of Lookup Object to populate

nuGetLookupId() function:

Code: Select all

function nuGetLookupId(pk, id){

	$('#nuLookupList').remove();
	
	var l				= $('#' + id);
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: nuGetLookupId Wiki

Unread post by admin »

kev1n,

How's that now?

https://wiki.nubuilder.cloud/ ... etLookupId


Steven
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: nuGetLookupId Wiki

Unread post by kev1n »

Hi Steven

The description is right now.

Maybe also change the Example from

Code: Select all

nuGetLookupId('5afaa13eb523846', '5afaa13eb523832')
...to:

Code: Select all

nuGetLookupId('5afaa13eb523846', 'firstname')
...to make it more clear that the 2nd parameter is the Object I'd.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: nuGetLookupId Wiki

Unread post by admin »

Done!
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: nuGetLookupId Wiki

Unread post by kev1n »

Thanks!
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: nuGetLookupId Wiki

Unread post by admin »

.
Post Reply