search by LastName

1
0
-1

I want to do search by LastName using filter in rest api but don't work I have Rest Api like this one :
../API/bdm/businessData/com.company.model.DemandesConges q=findByLastName&p=0&c=100&f=LastName=={{searchValueNom}}

this my requete :SELECT d FROM DemandesConges d
WHERE d.LastName= :LastName
ORDER BY d.persistenceId

persistenceId_string | filter:searchValueNom, idDemandeur | filter:searchValueNom, LastName | filter:searchValueNom, FirstName | filter:searchValueNom, nombreJours | filter:searchValueNom, dateDebut |date | filter:searchValueNom, dateFin | date | filter:searchValueNom, dateRetours |date | filter:searchValueNom, typeConge | filter:searchValueNom, motifConge | filter:searchValue, manager | filter:searchValueNom, estApprouveeLabel | filter:searchValueNom, solde | filter:searchValueNom, estApprouveeLabelSolde | filter:searchValueNom
home?preview=dmd.png
home?preview=dmd.png

1 answer

1
0
-1

Hi,

It looks like there are two typos in the REST call. Is it only a copy/paste issue or is it the one you were using? In any case, here is what I would try:

../API/bdm/businessData/com.company.model.DemandesConges?q=findByLastName&p=0&c=100&f=LastName={{searchValueNom}}

Cheers

Comments

Submitted by helaguesmi on Thu, 07/27/2017 - 09:57

same don't work

Submitted by antoine.mottier on Thu, 07/27/2017 - 10:14

Maybe you can export your diagram as a .bos file and share it so we can give it a try?

Submitted by antoine.mottier on Thu, 07/27/2017 - 11:11

The link you shared are not publicly accessible. Can you please update them?

Thanks

Submitted by helaguesmi on Fri, 07/28/2017 - 11:45

what is the error !!

Notifications