REFRESH

  • Post
    sayo
    משתתף
    היי, בניתי מסך שליפה שבכניסה אליו הוא מציג את כל הנתונים.
    הנתונים המוצגים הם מס' של תעודות פתוחות\סגורות וכו' ולכן נתונים אלו כל הזמן משתנים.
    איך אני יכולה לבצע רענון של המסך מבלי שהמשתמש יצטרך לצאת ולהיכנס למסך?
    תודה
מוצגות 11 תגובות – 1 עד 11 (מתוך 11 סה״כ)
  • Replies
    assaf
    משתתף
    מתוך ה-sdk:

    Form Refresh
    Generally, the data retrieved in any given form are relatively static. That is, changes are usually made by one user at a time. Sometimes, however, the data displayed in a form are highly dynamic — updated periodically by the system. In the former case, it is enough to retrieve records once; in the latter, a periodic refresh of the form is in order.
    If you want a form to be refreshed periodically by the system, you need to fill in the Refresh Form form, a sub-level of the Form Generator form. Indicate the number of seconds that should pass without user input between one form refresh and the next. Also indicate whether all existing records should be retrieved during the refresh (this is important if new records have been added since the last update) or only those that were retrieved previously. The form refresh works per node on the form tree. That is, it only affects the specific form for which it is designated; it does not affect any sub-levels. As the automatic refresh involves access to the server, it should be used sparingly and with caution. When it is employed, the TIMEOUT constant is disabled.
    Additional ways of forcing a form refresh are:
    Include the REFRESH command in a form trigger.
    To refresh all retrieved records following a Direct Activation, include
    :ACTIVATEREFRESH = 1 in the PRE-FORM trigger of the form in question.
    sayo
    משתתף
    כן קראתי את ה-SDK והכנסתי את פקודת ה-REFRESH ולא עובד לי.
    אשמח להסבר מה בדיוק לעשות ממישהו שכבר עשה זאת

    תודה

    אלמוני
    אורח
    צריך לכתוב REFRESH 1, לא רק REFRESH
    sayo
    משתתף
    כן, זה מה שעשיתי ועדין לא עובד…
    הכנסתי את זה ל-PRE-FORM
    assaf
    משתתף
    סביר להניח שפה מקור הבעיה:

    PRE-FORM
    Performs operations before a form is opened

    sayo
    משתתף
    אז לאן אני אמורה להכניס את זה?
    sayo
    משתתף
    הי, עדין אין לי פיתרון…
    אשמח לקבל רעיונות
    היי,

    אולי תעשה הפעלה ישירה לFORM , בכל פעם שרוצים להתעדכן ילחצו על ההפעלה הישירה.

    sayo
    משתתף
    ומה להכניס בהפעלה הישירה?
    yitzchok
    משתתף
    IL
    פקודת ה-REFRESH לא הפתרון כאן.

    נקרא שוב מה-SDK ושימו לב למה שהדגשתי:

    Form Refresh
    Generally, the data retrieved in any given form are relatively static. That is, changes are usually made by one user at a time. Sometimes, however, the data displayed in a form are highly dynamic — updated periodically by the system. In the former case, it is enough to retrieve records once; in the latter, a periodic refresh of the form is in order.
    If you want a form to be refreshed periodically by the system, you need to fill in the Refresh Form form, a sub-level of the Form Generator form. Indicate the number of seconds that should pass without user input between one form refresh and the next. Also indicate whether all existing records should be retrieved during the refresh (this is important if new records have been added since the last update) or only those that were retrieved previously. The form refresh works per node on the form tree. That is, it only affects the specific form for which it is designated; it does not affect any sub-levels. As the automatic refresh involves access to the server, it should be used sparingly and with caution. When it is employed, the TIMEOUT constant is disabled.
    Additional ways of forcing a form refresh are:
    Include the REFRESH command in a form trigger.
    To refresh all retrieved records following a Direct Activation, include
    :ACTIVATEREFRESH = 1 in the PRE-FORM trigger of the form in question.

    דהיינו:
    יש למחולל מסכים מסך בן בשם "רענון מסך". יש להגדיר ערך ב"שניות לרענון" לדוגמה 60 יעדכן את המסך פעם בדקה. יש לסמן "שליפה מחדש" כדי לבצע שליפה כמו בכינסה למסך. אחרת הרענון יהיה כמו לחיצה ב-Ctrl-F11 שיעדכן את השורות המוצגות בלבד.

    פקודת ה-REFRESH שמדוברת מאלצת עדכון הערכים שבמסך במקרים בהם הלוגיקה שבמסך לא עושה את זה בעצמו. רק הדרך הנ"ל נותנת פתרון לדרישה של שליפה מחדש עצמאית.

      [ בבקשה לא לשלוח הודעות פרטיות במערכת - אני לא קורא אותן ]
    sayo
    משתתף
    מעולה, תודה
    אנסה זאת
מוצגות 11 תגובות – 1 עד 11 (מתוך 11 סה״כ)
  • יש להתחבר למערכת על מנת להגיב.