info path dropdown shows duplicate entries

S

samir.mistry

Hi guys,
I have two dropdown boxes. Team and Application.
Based on the selection of the Team, I populate the Application which is
a look up dropdown.
Application is populated from sharepoint databound object
Team_Application_User_Roles.
now the problem is,there may be two entries in in the object.
eg.
Webclient - website - sam - develop
Webclient - website - sam - deploy
the following selection gives me two entries in my Application
dropdown. How can I remove the duplicate entries?

/dfs:myFields/dfs:dataFields/dfs:Team_Application_User_Roles/@Application
[
(../@Team =
xdXDocument:get-DOM()/ns1:ChangeManagementRequest/ns1:Request/ns1:project/Team)
and
(../@PbUser =
xdXDocument:get-DOM()/ns1:ChangeManagementRequest/ns1:CurrentUser)
]

Thanks
Sam
 
S

samir.mistry

Thanks Franck,
That was useful.
Hi,

Did you look at this to get started:
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=725

Regards,

Franck Dauché


Hi guys,
I have two dropdown boxes. Team and Application.
Based on the selection of the Team, I populate the Application which is
a look up dropdown.
Application is populated from sharepoint databound object
Team_Application_User_Roles.
now the problem is,there may be two entries in in the object.
eg.
Webclient - website - sam - develop
Webclient - website - sam - deploy
the following selection gives me two entries in my Application
dropdown. How can I remove the duplicate entries?

/dfs:myFields/dfs:dataFields/dfs:Team_Application_User_Roles/@Application
[
(../@Team =
xdXDocument:get-DOM()/ns1:ChangeManagementRequest/ns1:Request/ns1:project/Team)
and
(../@PbUser =
xdXDocument:get-DOM()/ns1:ChangeManagementRequest/ns1:CurrentUser)
]

Thanks
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top