Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


henning1518 last won the day on March 9

henning1518 had the most liked content!

Community Reputation

2 Neutral

About henning1518

  • Rank
    Level 2 Contributor

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I found a solution that works for me: function zgroupauto() { document.main_form.elements["SET.group"].value = "5F3093F261DB11479D828B6338780664"; document.main_form.elements["group_combo_name"].value = "Testgroup"; } <PDM_SET args.CST_defaultgroup=0> <PDM_LIST PREFIX=list WHERE="member=U'$cst.id'" FACTORY="grpmem" SORT="group"> <PDM_IF "$list.group" == "5F3093F261DB11479D828B6338780664"> <PDM_SET args.CST_defaultgroup=1> </PDM_IF> </PDM_LIST> <PDM_IF "$args.CST_defaultgroup" == 1> <body class="detailro" onload="loadActions();zgroupauto();" onunload="unloadActions()"> <PDM_ELSE> <body class="detailro" onload="loadActions();" onunload="unloadActions()"> </PDM_IF> Can i make it better ?
  2. Hi, is it possible to set a default value for the field "Group" (dtlookup) ? My Code: <PDM_SET args.CST_defaultgroup=0> <PDM_LIST PREFIX=list WHERE="member=U'$cst.id'" FACTORY="grpmem" SORT="group"> <PDM_IF "$list.group" == "5F3093F261DB11479D828B6338780664"> <PDM_SET args.CST_defaultgroup=1> </PDM_IF> </PDM_LIST> <PDM_IF "$args.CST_defaultgroup" == 1> <PDM_MACRO name=dtlLookup hdr="Group" attr=group evt="onBlur=\\\"detailSyncEditForms(this)\\\"" make_required=yes > <PDM_ELSE> ..... thanks.
  3. Hi all, is it possible to change the display name or to expand another field of the CI in CMDB-Visualizer? For example: CI-Name --> CI-Name/serialnumber? thanks.
  4. henning1518

    How to add/modify Request Area

    Hi, thats very simple. You have to seperate the new subcategory with a dot. For example: ITAS.AMS for the first entry. For the second entry create a new category with ITAS.ATM PROVIEW. For a third level category: ITAS.AMS.Test
  5. Hi there, is it possible to search over two factories with PDM_LIST? (org and nr)I have to solve the following task: Display all CI`s from the organization that the customer belongs to... (customer --> organization --> nr) With the location it work´s very well: <PDM_LIST PREFIX=list FACTORY=nr WHERE="location.id=U'$args.customer.location.id' and z_zd IS NOT NULL" ESC_STYLE=HTML> <TD VALIGN=TOP class=detailro>$list.model.sym</TD> <TD VALIGN=TOP class=detailro>$list.z_zd.sym</TD> <TD VALIGN=TOP class=detailro>$list.class.type</TD> .... Thank you.
  6. henning1518

    Clear property fields when copying a CR

    That works fine: function zClearProp() { if (location.href.indexOf('METHOD=copy_cr') > 0) { var i; //Maximum porperties for (i=0; i<=22; i++) { document.main_form.elements["SET.prop"+ i +".value"].value = ""; } } } ........ body class="detailro" onload="loadActions();zClearProp();" onunload="unloadActions()">
  7. Hello, when i copy a cr with filled property values, the fields will also filled in the new cr. How can i prevent this? tmplcopy_site.spl? But i don´t now the right syntax. Thanks.
  8. henning1518

    Using jquery to hide row in table

    Thanks that works
  9. Hi, i have a problem to hide rows in a table with jquery. The rows have only a text value. It works perfect with columns. Codesample of table in cmdb_versioning_tab.htmpl: <table width="100%" height="100%" id="cmdbVersionDetails"> ..... <tbody><tr><td class="data" valign="top"><b>123456<b></b></b></td></tr><tr class="table_banded_row"><td class="data" valign="top">Contacts</td><td class="data" valign="top">Last change by</td><td class="data" valign="top">Doe, John</td></tr><tr class="table_row"><td class="data" valign="top">Location</td></tr> .......... </tbody></table> Hide columns: function hideColumns() { var ownerIndex = jq('th:contains("Changed by")').index(); if(ownerIndex != -1) { jq("#cmdbVersionDetails tbody tr").each(function() { jq(this).find("td:eq(" + ownerIndex + ")").remove(); jq(this).find("th:eq(" + ownerIndex + ")").remove(); }); Hide rows: function hideRows() { var ownerIndex = jq('tr:contains("Last changed by")').index(); if(ownerIndex != -1) { jq("#cmdbVersionDetails tbody tr").each(function() { jq(this).find("tr:eq(" + ownerIndex + ")").remove(); }); I've tried many many combinations..........
  10. henning1518

    Issue with Readonly field

    <PDM_MACRO name=dtlLookupReadonly hdr="Group" attr=Group> That works.
  11. Hi guys, i tried to change the field "Group" or "Assigne" to a ReadOnly field (detail_in.htmpl), but it failed: <PDM_IF "$env.NX_REQUIRE_INCIDENT_GROUP" == "Yes"> <PDM_MACRO name=dtlLookupReadonly hdr="Group" attr=group evt="onBlur=\\\"detailSyncEditForms(this)\\\"" make_required=yes> <PDM_ELSE> <PDM_MACRO name=dtlLookupReadonly hdr="Group" attr=group evt="onBlur=\\\"detailSyncEditForms(this)\\\""> </PDM_IF> Error: AHD04622: Undefined Arguments supplied to EVT MAKE_REQUIRED an PDM_MACRO DTLLOOKUPREADONLY ..... Can somebody help? Environment: SDM 14.1. CUM Thanks.
  12. henning1518

    How i define empty fields after copy CR

    Hi, you just made my day Thank you very much!
  13. henning1518

    How i define empty fields after copy CR

    I want that a message box appears when i copied a CR and a field has a specified or emtpy value. After confirming the alert message the "copy-window" should close. if (z_value1) != '' { alert ("It´s not allowed to copy a ticket with that value") detailCancel(); }
  14. henning1518

    How i define empty fields after copy CR

    do you have a complete code sample for me ? I think i must modify detail_in.htmpl
  15. henning1518

    How i define empty fields after copy CR

    Hi, that works perfect! one last question How i realize that a message (popup) appears, when i copied a cr and a field is filled with a specified value. After that the window must cancel automatically (cancel the copy process). if (z_value1) == 'Not ok' { alert ("That´s not allowed!") window.cancel (); } ..... Which file i must change? THANKS!