简体   繁体   中英

quick way to access splistitem in different list?

I have 2 lists: listA and listB

listA has 2 fields:

Title (text)
PortalID (text)

listB has 3 fields:

Title (text),
listAField(lookup to listA Title field)
UserID (text)

I have a UserID value and I need a quick way to get PortalID value.

Currently I'm using 2 SPQueries:

1.Gets listAField value
2.Gets PortalID value.

Is it possible to do everything using one lookup directly? or some other more efficient way ?

您可以为此使用SPServices,使用级联下拉菜单,可以在此处找到更多信息: http : //www.sharepointkings.com/2010/09/sharepoint-cascading-drop-downs-using.html这为我节省了很多生命次。

when you are making lookup you can check which fields from list A you want to come with title. Just check checkbox with field PortalID

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM