On further investigation, I found that the default value of the "Visibility" checkbox appears to be hard-coded in the Page.js file located at:
'/var/lib/docker/overlay2/9c41018b1a0f8ae4adbb9840104ba9485c6301a30a795778048c58276c4b2180/diff/graphite/node_modules/@maximo/react-components/build/ejs/ui/ChatLog/ChatLog.js'
I attempted to change the value of "visibility" to true directly in this file. However, as expected, the change didn't take effect because this file is part of a precompiled package, and modifying it directly doesn't trigger a recompilation or update in the application.
Any thoughts?
ChatLog.js code below:
var ChatLog = /*#__PURE__*/function (_React$PureComponent) {
_inherits(ChatLog, _React$PureComponent);
var _super = _createSuper(ChatLog);
function ChatLog(props) {
var _this;
_classCallCheck(this, ChatLog);
_this = _super.call(this, props);
_this.deviceSize = Device.get().screen.size;
_this.state = {
summary: '',
longDescription: '',
logType: {},
visibility: false,
dialogOpen: false,
sendDisable: true
};
------------------------------
maximo User
------------------------------
Original Message:
Sent: Thu August 22, 2024 01:17 AM
From: maximo User
Subject: Display "Visibility" Checkbox as Checked when User Creates a new Work Log in Techmobile
Hi all,
I am trying to show the "Visibility" checkbox as Checked by default when user creates a new work log and taps on the expand button on the work log drawer.
Default value for WORKLOG.CLIENTVIEWABLE is already set to 1 in DB config in Maximo.
I can not find the XML code for the "chat-log" control and I have tried several ways to handle this using JS.
Hiding the checkbox is easy but I want to display it and as checked.
Has anyone done it?
Thanks in advance.
------------------------------
Sourabh
------------------------------