質問

SO MYフォームのフィールドに基づいて、そのフィールドが変更されたときに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