Menu

Resource types

2018-04-19
2021-11-02
  • Louis Yssel

    Louis Yssel - 2018-04-19

    Currently there are only the existing four (4) Resource types, being Material, Labour, Equipment and Other. Where can I maintain these values? I love the application, and even though I am not in the construction industry, but in the Audio Vsual Integration space, I want to change the Resource types to Equipment, Installation, Programming, Configuration and subscriptions.

    I can not seem to find it in the database, unless I am not looking properly.

     
  • Wanhive

    Wanhive - 2018-04-19

    Hello Louis,

    The types have been hard coded in the javascript file named materialAction.js
    The compressed version of the file is available inside script/items/material (this one is the one loaded by the application)
    The uncompressed version of the file is available inside script/uncompressed/items/material

    You may modify the options inside the javascript file and add the modified file directly to the war package to replace the original one.

     
  • Louis Yssel

    Louis Yssel - 2018-04-19

    Thank you so much, as a non Dev, I hope I do not break this. Will try and let you know.

    One more question, when doing projects, nowadays, we deliver BOQ with a combination of once of cost elements like equiment, labour etc, but also subscriptions, which is monthly recurring fees over a typical 36 month period. What is the best way to deal with this, it will be under the resource type of Subscriptions.

     
  • Louis Yssel

    Louis Yssel - 2018-04-19

    Hi, regarding the previous post, I managed to find teh uncompressed file, and edited it with the right values. How do I get that back into the compressed format prior to using jar -cvf to recrate the .war file?

     
    • Wanhive

      Wanhive - 2018-04-19

      Hello Louis,

      We use the YUI Compressor (link provided at the bottom of this message).
      However the javascript file will work just fine even if it is not compressed/obfuscated. The purpose of compressing the files was to save some bandwidth and browser memory.

      http://yui.github.io/yuicompressor/

       
  • Louis Yssel

    Louis Yssel - 2018-04-19

    OK, so I can simply copy the uncompressed edited file to the location where the compressed file was?

     
  • Louis Yssel

    Louis Yssel - 2018-04-19

    This is not working. I did all you suggested, even if I look at the deployed system, the materialAction.js file is updated with the correct values, but when I create a new Resource, the old values are still in the Dropdown.

     
  • fcdsbvfd gvfdsv

    fcdsbvfd gvfdsv - 2021-11-02

    This is exactly the same issue that I am facing while using this extra ordinary feature can someone guide me how can I use the other sources.

     

    Last edit: fcdsbvfd gvfdsv 2021-11-02

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB