Option 1 where you DFDM SY_BatchManager.M4L likely would require repeating after an upgrade, option however should not unless something/someone deletes the record out of CM_UIScriptSettings.
Option 2 is my preferred method as it doesn't touch anything that shouldn't be touched and is more flexible because you can control it with scripting to get more advanced results, case in point is being able to leverage roles.
------------------------------
David Speck II
Tennessee Software Solutions
------------------------------
Original Message:
Sent: 03-26-2020 17:37
From: Dan Burleson
Subject: Customize Library Master panels?
@David Speck II Would this change need to be made after every version upgrade?
------------------------------
Dan Burleson
Software Consultant
Connex Software
Corvallis OR
541-224-6642
------------------------------
Original Message:
Sent: 03-25-2020 15:07
From: David Speck II
Subject: Customize Library Master panels?
Two options.
- DFDM SY_BatchManager.M4L and append "H" to field 21 on all records for BT_Delete.
- Create a UI Post Load event script on any other panel and then use DFDM on CM_UIScriptSettings.
- Locate the record created.
- Modify the library name to "SY_BATCHMANAGER.M4L". Click Yes when prompted to remove the old key.
- Modify the panel name to "DBATCHSEL". Click Yes when prompted to remove the old key.
- Modify the script accordingly.
- At the very least, your script needs to contain the following.
oScript.SetUIControl "BT_Delete", "Hide"
- You can also use a role to determine whether to hide or show the button.
sControlState = "Hide"If oSession.IsMember("CanDeleteBatches") = 1 Then sControlState = "Show"oScript.SetUIControl "BT_Delete", sControlState
- Compile the UI scripts. Make sure to delete the *.M4L.vbs file created when first adding the script to the panel in the very first step.
------------------------------
David Speck II
Tennessee Software Solutions
Original Message:
Sent: 03-25-2020 03:14
From: Dan Burleson
Subject: Customize Library Master panels?
I don't think you can attach a script. GL_CompanyActiveBatch (where the batch data is stored) doesn't have a business or a UI object.
------------------------------
Dan Burleson
Software Consultant
Connex Software
Corvallis OR
541-224-6642
Original Message:
Sent: 03-24-2020 12:00
From: Kevin Moyes
Subject: Customize Library Master panels?
Pre-Delete script with a Role check? I'm not sure where to attach the script though (and what is possible)... it wouldn't help to block deleting the batch header, if the transactions were deleted before that event is triggered.
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON