a guest Jun 16th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- 1. Which of these methods should you use in the code to add a new data record to a cache object? (Products is a data view of the PXSelect<Product> type. The methods are invoked in a graph event handler or a button delegate.) Select all that apply.
- - Product prod = new Product(); Products.Insert(prod);
- - Product prod = new Product(); Products.Cache.Insert(prod);
- - Product prod = Products.Insert();
- 2. What are the differences between an attribute and a graph event handler? Select all that are true.
- - You can cancel the attribute event handler, but you cannot cancel a graph event handler.
- - An attribute event handler is first activated when the –ed events (such as FieldSelected or RowUpdated) take place, while a graph event handler is first activated when the –ing events (such as FieldSelecting or RowUpdating) take place.
- 3. Select all the correct statements about the Optional<> parameter.
- - The Optional<> parameter can work as the Current<> one when a data view is used as a data member for an input UI control.
- - The Optional<> parameter can work as the Required<> one when the user selects the data from a data view.
- - The Optional<> parameter triggers the FieldUpdating event for the specified field.
- 4. Suppose that a form area of the page includes two input UI controls, and that the first control has the CommitChanges property set to True, while the second control does not. If the user modifies the first field and then the second field and clicks Save, how many times will the modifications be posted to the server?
- - 2
- 5. Select all the correct statements about the PXFormula and PXUnboundFormula attributes.
- - The Switch<Case<>,> function can be used in the first parameter of the PXFormula attribute.
- - The system never stores the value in the data field that you specified with the PXUnboundFormula attribute.
- - The PXUnboundFormula attribute can be used with the Switch<Case<>,> function as the first parameter.
- 6. Select all the correct statements about PXSetPropertyException and RaiseExceptionHandling<>() .
- - By using RaiseExceptionHandling<>(), you do not prevent data field values from being applied to a data record in the cache.
- - There is no reason to throw PXSetPropertyException within the RowUpdated event handler.
- - You can throw PXSetPropertyException to prevent the value of a data field from being applied to a data record in the cache.
- 7. For which purposes can you use the optional RowTemplate element? Select all that true.
- - For setting specific properties of an input control or using a different input control
- - To configure the layout of controls in the form view of the grid
- 8. Select all the correct statements about the internal and external field value presentation.
- - The e.ReturnValue parameter of the FieldSelecting event defines the current external UI field value, which can be equal to the internal value.
- - The FieldSelecting and FieldUpdating events transform a field value between the internal and external presentation.
- - The e.ReturnState parameter of the FieldSelecting event returns a set of UI parameters for a control or button.
- 9. What are the differences between the cache-level and record-level attributes? Select all that are true.
- - Changing a cache-level attribute leads to related changes of all data records of the corresponding cache.
- - To set the properties of a cache-level attribute, you pass null to a method of the attribute, while for the record-level attribute, you pass a data record to a method of the attribute.
- - Changing a record-level attribute leads to modifications of specified data records of the corresponding cache.
- 10. Select the correct order and the set of events that are raised for each data field of a record when the Update(record) method is invoked on the cache.
- - FieldUpdating, FieldVerifying, FieldUpdated
RAW Paste Data