Maximo

 View Only
  • 1.  Display "Visibility" Checkbox as Checked when User Creates a new Work Log in Techmobile

    Posted 3 days ago

    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
    ------------------------------


  • 2.  RE: Display "Visibility" Checkbox as Checked when User Creates a new Work Log in Techmobile

    Posted 2 days ago

    The visibility checkbox is there if you expand the worklog details. See my screenshots below.  Tap the touchpoint on the bottom right then scroll to bottom.



    ------------------------------
    Lacey Lurges
    ------------------------------



  • 3.  RE: Display "Visibility" Checkbox as Checked when User Creates a new Work Log in Techmobile

    Posted 2 days ago

    Hi Lacey,

    I know where Visibility checkbox is present :)

    My question is - how can I display it as checked/ticked by default when user taps on the Expand button. It's displayed as unchecked as seen in your screen shot too.



    ------------------------------
    maximo User
    ------------------------------



  • 4.  RE: Display "Visibility" Checkbox as Checked when User Creates a new Work Log in Techmobile

    Posted 2 days ago

    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
    ------------------------------



  • 5.  RE: Display "Visibility" Checkbox as Checked when User Creates a new Work Log in Techmobile

    Posted 2 days ago

    Ah, yes I misunderstood on my initial read through. 



    ------------------------------
    Lacey Lurges
    ------------------------------