Sharepoint te kullanmak üzere bir infopath form tasarladım. Bu formun Sharepoint üzerindeki listeden o anki kullanıcıya ait veriyi çekmesini istiyorum. GetUserByName servisiyle o anki kullanıcıya ulaşıyorum. İşi kolaylaştırmak için listeye AccountName sütunu ekledim Getuser ilee o anki kullanıcının accountname ini çekip sharepoint listesindekine eşit olduğu zaman ordaki başka bir veriyi çekmeye çalışıyorum. Bunun içinde şu formülü yazdım;
IF( xdXDocument:GetDOM("GetUserProfileByName")/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData/tns:Values/tns:ValueData/tns:Value[../../../tns:Name = "AccountName"]=xdXDocument:GetDOM("İzin Listesi")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:user_id "xdXDocument:GetDOM("İzin Listesi")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:_x0130_zin_x0020_S_x00fc_resi")
hatada bu
Expected value type: ,
Actual value: string
IF( xdXDocument:GetDOM("GetUserProfileByName")/dfs:myFields/dfs:dataFields/tns:GetUserProfileByNameResponse/tns:GetUserProfileByNameResult/tns:PropertyData/tns:Values/tns:ValueData/tns:Value[../../../tns:Name = "AccountName"]=xdXDocument:GetDOM("İzin
Listesi")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:user_id -->"xdXDocument:GetDOM("<--İzin Listesi")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:_x0130_zin_x0020_S_x00fc_resi")
Hatayı çözemedim yardım edebilecek olan var mı acaba
IF(Value[Name = "AccountName"]=user_id, "_x0130_zin_x0020_S_x00fc_resi")
Burası otomatik çekiyor burada listeden buda yazdırılcak veri
soldaki accountname
e göre ayarladım