문제

그래서 내 양식의 필드를 기반으로 해당 필드가 변경 될 때 SQL 쿼리를 실행하려고합니다.

ive 데이터 연결을 설정하지만, 볼 수있는 한, 연결은 정적이며 내 양식의 필드를 기반으로 쿼리를 조작 할 수있는 방법이 없습니다.이 문제에 대한이 문제가있는 사람이 있습니까?

나를 위해 외부 데이터 소스를 포함하는 전체 지점이 동적 매개 변수를 기반으로 쿼리 할 수 있도록이 제한이있는 이유를 이해할 수는 없습니다.

도움이 되었습니까?

해결책

Alexandar,

I would suggest you to use a separate Web Service for getting data to InfoPath.. In Web Service, use Object Model to connect database and query!

Or, if you can do VSTA Code on InfoPath form (needs administrative approval for InfoPath form, each time you publish the form).. Here is an example:
Dynamic SQL Data connection in InfoPath

EDIT
Seems possible duplicate of:
Filtering Secondary SQL data connection with value from Main data connection

다른 팁

If you only want to filter your datasource, you can execute the connection for all items, after you get the result of your datasource connection, you can filter the results based on your field on your form. Hope this helps you.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top