بتاريخ: 17 ديسمبر 200520 سنة comment_54533 السلام عليكم ورحمة الله وبركاتهتحية عطرة لجميع أعضاء هذا المنتدى الرائعأرجو منكم مساعدتي في حل أسئلة سوف أقوم بطرحها بين أيديكمفيعلم الله لم أطرحها إلا بعد أن ضاقت بي السبل حيث لا يوجد لدي مرجع أستند إلى معلوماتهالأسئلة:Can you create a PRE-FORM trigger at the block level? Why not**************************************Explain how changing the Execution Hierarchy property of a trigger a form?**********************************What trigger would you create to replace the default delete processing? What named category does this fall under? What functional category does it fall under?**********************************Is it mandatory that you write triggers to respond to each event? What happens if you don’t?**************************************************Choose the correct answer:1. Which of the following is true about When event triggers?a) Thy augment default Forms processingb Thy replace default Forms processingc) Thy only respond to interface eventsd) Non of above*****************************************2. Where could you attach a POST-QUERY trigger if you want it to populate a display item named STUDENT.LAST_NAME?a) To the primary key item in the blockb To the STUDENT blockc) To the LAST_NAME itemd) To any item in the form that will be queried*******************************************3. When dose the WHEN- VALIDATE-ITEM trigger fire?a) In response to Validate Item eventb When an item is not validc) When the user navigates out of an item and that items value has been changedd) a & c****************************************4. Which trigger should you use to validate an entire record?a) POST- VALIDATE-RECORDb WHEN- VALIDATE-RECORDc) WHEN-NEW- RECORD-INSTANCEd) a & b*******************************************************5. What is FORM_TRIGGER_FAILUAR?a) A built-in to respond to the failure of an eventb A built-in you can use to crash the operating systemc) A built-in exception to help you handle errorsd) An event you can respond to with the ON-ERROR trigger*********************************************************Assume that in the SECTION tables LOCATION column, all the buildings that are named L501,L502, and so on- can seat 15 students or less. When users are inserting or updating section records, you want to prevent them from making the CAPACITY greater than 15 for any rooma) Could you write a Validation trigger to enforce this rule? What would the code be?b If you use a WHEN-VALIDATE-ITEM trigger, which item could the trigger code be attached to?c) If your answer to Question I was CAPACITY, when will the WHEN- VALIDATE-ITEM trigger fire?d) If the user inserted a new row, what would happen if the user set CAPACITY to 25 first and then set LOCATION to L501? Would the validation take place? Why not? تقديم بلاغ
بتاريخ: 18 ديسمبر 200520 سنة comment_54621 Can you create a PRE-FORM trigger at the block level? Why not **************************************لايمكن عمل تريجر PRE-FORM على مستوى البلوك لأن الهدف من هذا التريجر هو تنفيذ تعليمة معينه قبل فتح الفورم لذلك يجب ان يكون على مستوى الفورم وليس مستوى البلوكExplain how changing the Execution Hierarchy property of a trigger a form?What trigger would you create to replace the default delete processing? What named category does this fall under? What functional category does it fall under?Is it mandatory that you write triggers to respond to each event? What happens if you don’t? اجابات الثلاثة اسألة راجعي هذا الرابطhttp://courses.csusm.edu/cs643yo/slides/triggers.htmالاجابات الصحيح 1. Which of the following is true about When event triggers?a) Thy augment default Forms processingb Thy replace default Forms processingc) Thy only respond to interface eventsd) Non of above الجواب a*****************************************2. Where could you attach a POST-QUERY trigger if you want it to populate a display item named STUDENT.LAST_NAME?a) To the primary key item in the blockb To the STUDENT blockc) To the LAST_NAME itemd) To any item in the form that will be queried******************************************* الجواب a3. When dose the WHEN- VALIDATE-ITEM trigger fire?a) In response to Validate Item eventb When an item is not validc) When the user navigates out of an item and that items value has been changedd) a & c**************************************** الجواب c4. Which trigger should you use to validate an entire record?a) POST- VALIDATE-RECORDb WHEN- VALIDATE-RECORDc) WHEN-NEW- RECORD-INSTANCEd) a & b******************************************************* الجواب d5. What is FORM_TRIGGER_FAILUAR?a) A built-in to respond to the failure of an eventb A built-in you can use to crash the operating systemc) A built-in exception to help you handle errorsd) An event you can respond to with the ON-ERROR trigger********************************************************* الجواب b*********************************************************Assume that in the SECTION tables LOCATION column, all the buildings that are named L501,L502, and so on- can seat 15 students or less. When users are inserting or updating section records, you want to prevent them from making the CAPACITY greater than 15 for any rooma) Could you write a Validation trigger to enforce this rule? What would the code be? answer:u can make the trigger in table before-insert and check the count of the location and make comparison between the count and number 15 if less or more and use the where condtion by name or idb If you use a WHEN-VALIDATE-ITEM trigger, which item could the trigger code be attached to? i use the trigger in location failed and check by the namec) If your answer to Question I was CAPACITY, when will the WHEN- VALIDATE-ITEM trigger fire? when the value changed or update or insert new recordd) If the user inserted a new row, what would happen if the user set CAPACITY to 25 first and then set LOCATION to L501? Would the validation take place? Why not no couse the user enter the capacity after that he make like update in the table and do insertهذه الاجابات ليست كاملة ولكن مقتطفات منها او رؤوس اقلام تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.