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

Below is the HTML code for the Item_Info:

<span id="ITEM_INFO_INTERNAL_SPAN"/>
<script>
populate_ITEM_INFO_INTERNAL_SPAN = function()
{
document.getElementById("ITEM_INFO_INTERNAL_SPAN").innerHTML = top.aras.uiDrawItemInfoTable(document.itemType);
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>


Is there any solutions please for this Subject ?

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

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

Children