|
|
منتدى جريت بلينز العام يحتوي على المواضيع التي لا تنتمي الى التقسيمات أدناه. استعرض الأقسام الموجودة قبل كتابة موضوعك في هذا القسم. |
| أدوات الموضوع | انواع عرض الموضوع |
28-Jan-2013, 06:32 PM | #1 | ||
عضو جديد
| close GP automatically if user is idle السلام عليكم لدي سؤال حيرني كثيرا. هل لدى احدكم اي فكرة عن كيفية اغلاق ال GP تلقائيا بعد فترة معينة من الزمن اذا كان اليوزر خامل ؟؟ مشكلتي هي عدد ال concurrent users عندي هو 50 فقط وفي كثير من الاحيان تستهلك جميع ال 50 وبنفس الوقت يكون لدي كثير المن ال يوسرز خاملين. شكرا | ||
01-Feb-2013, 07:50 AM | #2 |
مدير عام منتديات جريت بلينز العربية | يمكنك كتابة الكود التالي في الـ VBA لتجعل البرنامج يغلق بنفسه ..... بعد أن تضيف Dynamics Continuum Integration Library كـ references اك كود: Dim CompilerApp As New Dynamics.Application Dim CompilerMessage As String Dim CompilerError As Integer Dim Commands As String Commands = "" Commands = Commands & "local integer l_file_id; " & vbCrLf Commands = Commands & "local string pathname; " & vbCrLf Commands = Commands & "pathname = Path_GetForApp(1) + ""TEMP.MAC""; " & vbCrLf Commands = Commands & "l_file_id = TextFile_Open(pathname, 0, 0); " & vbCrLf Commands = Commands & "TextFile_WriteLine(l_file_id, ""CommandExec form BuiLtin command cmdQuitApplication; " & vbCrLf Commands = Commands & "TextFile_Close(l_file_id); " & vbCrLf Commands = Commands & "if File_Probe(pathname) then " & vbCrLf Commands = Commands & " run macro pathname; " & vbCrLf Commands = Commands & "end if; " & vbCrLf ' Execute SanScript CompilerError = CompilerApp.ExecuteSanscript(Commands, CompilerMessage) If CompilerError <> 0 Then MsgBox CompilerMessage End If __________________ Monzer Osama Saudia Arabia - Jeddah 00966501826235 Microsoft Certified Business Management Solutions Professional Microsoft Certified Trainer |
19-Feb-2013, 08:24 AM | #3 | ||
عضو نشيط
| بس انا سؤالي استاز منذر اين سوف اقوم بوضع هذا الكود داخل VB تحت شاشه معينه أو module انا ليس لي الخبره الكبيره داخل VB | ||
الكلمات الدلالية (Tags) |
اغلاق تلقائي |
يتصفح الموضوع حالياً : 1 (0 عضو و 1 ضيف) | |
أدوات الموضوع | |
انواع عرض الموضوع | |
|
|
المواضيع المتشابهه | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
رسالة batch has been marked for posting by another user | bana_112 | منتدى جريت بلينز العام | 5 | 04-Nov-2013 09:45 AM |
مشكلة في User level Security | alnawrass | مناقشة المشاكل والأخطاء في برنامج جريت بلينز | 5 | 20-May-2013 11:47 AM |
error :you cannot display this record while another user is editing it | Moh-Farouk | الجزيئ المالي (GL - AP - AR – BM - FA - AC ... ets.) | 2 | 27-Nov-2012 01:23 PM |
How to login to Great Plains [Automatically] .pdf | Mohamed Salah | ملتقى تعارف مطوري ومستخدمي برنامج جريت بلينز | 3 | 27-Jun-2012 03:07 PM |
Eliminating the SA User from GP | Monzer Osama | English GP Forum | 0 | 24-Jan-2012 07:27 AM |