Forum Discussion

mouad's avatar
mouad
Ideator I
6 years ago
Solved

Change Item_info

Hello, below is the form of my project : What i want to do is kepping just Created By, Created On, Moodified By, Modified On, Locked_By, state and hide Major Rev and Generation sys prop...
  • Gopikrishnan's avatar
    6 years ago

    Hi Mouad

    You can try something like this. Copy below code and it should work.

     

    <span id="ITEM_INFO_INTERNAL_SPAN"/>

    <script>
    populate_ITEM_INFO_INTERNAL_SPAN = function()
    {
    var property = new Array("created_by_id","created_on","modified_by_id","modified_on","locked_by_id","state");
    document.getElementById("ITEM_INFO_INTERNAL_SPAN").innerHTML = top.aras.uiDrawItemInfoTable(document.itemType,null,property);
    top.aras.uiPopulateInfoTableWithItem(document.item, document);
    style_ITEM_INFO_INTERNAL_SPAN();
    }
    style_ITEM_INFO_INTERNAL_SPAN = function()
    {
    var lg_icn = document.getElementById("large_icon_img");
    lg_icn.style = '';
    var tbl = document.getElementById("itemInfoTable");
    tbl.style.marginTop = "45px";
    var container = document.getElementById("ITEM_INFO_INTERNAL_SPAN");
    }
    window.addEventListener("load", populate_ITEM_INFO_INTERNAL_SPAN);
    </script>

    Thank You

    Gopikrishnan R