Jump to content
  • 0

Invoerlijst maken


Donamd

Question

2 answers to this question

Recommended Posts

  • 0
Posted

Door gebruik te naken van ExecuteSQL() in een global field kun je dit genakkelijk bekomen.

Het is dan context vrij en kan op alle layouts gebruikt worden. Gebruik dat veld in je value list.

Set Field [ table::global ; List ( ExecuteSQL("SELECT DISTINCT(field1) FROM table1" ; "" ; "" ; "") ; ExecuteSQL("SELECT DISTINCT(field2) FROM table1" ; "" ; "" ; "") ; ExecuteSQL("SELECT DISTINCT(field1) FROM table2" ; "" ; "" ; "") ; etc... ) ]

Je kan de waardes updaten dmv een script trigger bij file open, layout load, file close, etc.

Je zou ook UNION kunnen gebruiken, maar er is kans dat je dan aan performantie moet inboeten.

HTH

Vicky

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...