About No Insert, No Delete, No Update property

View previous topic View next topic Go down

About No Insert, No Delete, No Update property

Post  Admin on Mon May 24, 2010 8:01 pm

About No Insert, No Delete, No Update property

I was working on a simple requirement to disable Delete in an Applet. This can be done simple by checking the 'No Delete' property in the Applet. But the actual behaviour was different. Event after checking the 'No Delete' property at Applet level, Delete button was enabled. I did some investigation and found below:

1) If you have a Applet User Property - Named Method 1: DeleteRecord, Value: xyx (for eg 'INVOKE', 'RefreshBusComp') then 'No Delete' property will be overridden by Named Method user property and Delete button will still be enabled.

2) If you have a Applet User Property - CanInvokeMethod: DeleteRecord, Value: xyz (for eg [Status] = "Appointment"), it overrides the Named Method User Property and 'No Delete' property at Applet level. The button is enabled or disabled based on condition specified in the Value of 'CanInvokeMethod: DeleteRecord' user property. For eg, 'No Delete' is checked and Named Method is defined and value in CanInvokeMethod evaluates to FALSE, button will be disabled. In case, 'No Delete' is checked and Named Method is defined and value in CanInvokeMethod evaluates to TRUE, button will be enabled

3) If you have a script on PreCanInvokeMethod - It overrides the above 3 properties. For eg, if value in CanInvokeMethod user property evaluates to TRUE and script in PreCanInvokeMethod sets the variable CanInvoke="FALSE", button will be disabled.

4) The same is applicable in case of No Insert.

5) In case, No Delete and No Insert both are checked, and we have Named method defined as below:
a)
Named Method 1: NewRecord - xyz value
Named Method 2: DeleteRecord - xyz value
Only 'No Insert' property is overridden and New button is enabled. Delete button remains disabled. Named Method 2 is not taken into account

b)
Named Method 2: NewRecord - xyz value
Named Method 1: DeleteRecord - xyz value
Only 'No Delete' property is overridden and Delete button is enabled. New button remains disabled. Named Method 2 is not taken into account

c)
Named Method: NewRecord - xyz value
Named Method 1: DeleteRecord - xyz value
Both 'No Insert' and 'No Delete' property is overridden and New and Delete buttons are enabled.

d)
If no number is specified:
Named Method: NewRecord - xyz value
Named Method: DeleteRecord - xyz value
Both 'No Insert' and 'No Delete' property is overridden and New and Delete buttons are enabled.

6) The Named Method property overriding does not hold true for 'No Update' property. If Named Method: WriteRecord user property is defined and 'No Update' property is checked, still the row can not be updated but in Menu item Save Record shows as enabled.
avatar
Admin
Admin

Posts : 21
Join date : 2010-02-25

View user profile http://siebelwithmunav.dodiscussion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum