Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You must determine:</p> <p><strong>1) When does you data change?</strong></p> <p>If it depends on other users activity, so you can't determine whether it's changed without querying DB, you can figure out an optimal time for a refresh, like form loading or on every click, or you can use a timer control to refresh the data in a specific time. </p> <p><strong>2) When does your user need to know about that change?</strong> </p> <p>Try to understand how urgent it is for the user to know about a change. Talk to them. Depending on that, decide when do you need to refresh your data.</p> <p><strong>Finally:</strong></p> <p>There isn't a correct way of doing that. It depends on a software structure, users' needs and on a specific situation.</p> <p>Hope it helps. Good Luck!</p> <p><strong>UPDATE:</strong></p> <p>I can add a solutions, that I used recently. If something won't be clear, just ask.</p> <p>I assume, your refreshing the combo from <strong>MS SQL Server</strong>. </p> <p>If so, </p> <p><strong>1.</strong> Create a table , storing in it Combo's data changing date or a version. </p> <p><strong>2.</strong> onClick event or using timer control, which will check for changes every 5 minutes(or any other time), you can compare last change date (or version) of your combo with last change(or version) in that table we store last date(or version) and only if the date(or version) was changed, refresh the combo. </p> <p><strong>3.</strong> Last date (or version) you can store in a variable or in a textbox control, changing it's value every time you refresh the combo. </p> <p><strong>4.</strong> Update last date(or version) in that table if the data changes. </p> <p>In this case, you'll just need to check for changes, not update them.</p> <p><strong>P.S.</strong> If this solution doesn't feet you, just refresh every time on click event. There's no better event for that case.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload