Jump to content

henning1518

Members
  • Content Count

    35
  • Joined

  • Last visited

  • Days Won

    11

henning1518 last won the day on March 9 2018

henning1518 had the most liked content!

Community Reputation

2 Neutral

About henning1518

  • Rank
    Level 3 Contributor

Recent Profile Visitors

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

  1. Hi, there is no way to create a query that will do that, because the transfers only stored in the act_log as a String. There is no existing history. In my opinion you need: 1. A counterfield (z_count_transfers) 2. Spelcode with a trigger --> EVENT("UPDATE") && active == 1 && group { } . The code should count the transfers and incrementing z_count_transfers 3. Stored query (example): type = \'R\' AND open_date > StartAtTime(\'TODAY\') AND z_count_transfers > 0 But that will work for transfers generally....
  2. You can also add +KEEP.RowsPerPage=100 behind a src: <PDM_MACRO name=TAB title="Activity" height=300 id=alg src="OP=SEARCH+FACTORY=alg+QBE.EQ.call_req_id=$args.persistent_id+QBE.EQ.internal=0+QBE.NE.type=PROP_CHANGED+KEEP.RowsPerPage=100" And you don´t need to change the ListPageLength for all lists.
  3. Thanks cdtj, but i have no idea how i can realize that. I can´t find OP=PG+PG in the existing files. Or must i code it completly new?
  4. And that is exactly my problem. I think it is in one of the encrypted spel-files 🤔
  5. I already tried that. It's working for the list, but not for the page navigation under the list... as JalmariO said.
  6. I want make it for one form too. Any ideas ? Thanks.
  7. Hi, it´s really strange. I think this is a bug or something like that. The documentation says it has to work that way. However try: NOT(type='I' AND group = U'A9CD563B7420B747929459DC8F91C87') It works for me.... I can´t create an incident with that group.
  8. You said that the upload crashed when you try to upload more than one attachment. By default you can upload 10 files simultaneously. And now we don´t know the reason why. Navigate to the SDM install folder --> SDM --> Log --> open stdlog.0....9 with an editor and look at the timestamp when you tried it. It can also be the log-file jsrvr.log
  9. I think we need the STD-Log or the upload log from Tomcat (jsrvr.log)
  10. There is an existing function (fmtType) in list_alg.htmpl that you can use for it... I copied it and changed the function a little bit: function formatKD(value) { //format stuff var ret; ret =nx_unescape(value); ret = ret.replace(/(<BR>\s*){3,}/ig, "<br><br>"); ret = "<br>" + ret + "<br><br>"; rs.data(ret); //Change description to KD var alghtml; var argCRPersidEscaped = nx_escape(listcall_req_id); var argCRType = listCRType; var arrtmp = listcall_req_id.split(':'); var argID = arrtmp[1]; var argFactory = arrtmp[0]; if (listtypecode == "KTSOLN" || listtypecode == "KTREJECT" || listtypecode == "KTSUBMIT") { alghtml = "<A CLASS=record TITLE='Click here to see the Knowledge-Documents" + listsession + "' HREF=\"javascript:popup_window('','SHOW_DETAIL', 0, 0, " + "'directories=no,location=no,menubar=no,status=no,gobutton=no,menubar=no','PERSID=KD:" + listsession + "', 'HTMPL=kt_document_view.htmpl', 'opener=search_tools', 'open_mode=2', 'reload=1', 'SOLUTION_OF=" + argCRPersidEscaped + "', 'disable_solution_survey=true', 'TICKET_FACTORY=cr', 'SOLUTION_OF_ID=" + argID + "'," + "'PATH_IDS=" + listaction_desc + "')\">\n"; alghtml += value; alghtml += "</A>\n"; rs.data(alghtml); } } Attach the function for example to the description field (Eof): <PDM_MACRO name=lsCol hdr="Description" attr=description escape=JS2 export=no fmtfunc=formatKD justify="line" sort=no> The function formats like fmtfunc=UnEscapeDesc.... You can also add some text in front of the link: alghtml = "Knowledge-Document: <A CLASS=record TITLE='Click here to see the Knowledge-Documents" + listsession + .....
  11. Hi, why do you need it in the Act_Log? You can show all KD-Documents directly in the ticketform. it can be helpful if you have more than one KD entry or more than one log page.... <PDM_MACRO name=dtlStartRow> document.writeln('<TR><TH ALIGN=LEFT class=detailro colspan=5>Knowledge-Documents</TH></TR>'); <PDM_LIST FACTORY=kdlinks PREFIX=kdlinks WHERE="cr='$args.persistent_id'"> <PDM_MACRO name=dtlStartRow> detailSetRowData('&bull; <a href="?OP=SHOW_DETAIL+PERSID=KD:$kdlinks.kd+HTMPL=kt_document_view.htmpl" target="_blank">$kdlinks.kd - $kdlinks.kd.TITLE</a>'); </PDM_LIST>
  12. Found a solution from cdtj that changes the ticket status with a button. I adapted it with my needs and know it´s really ugly (Hope it will not causes problems in future): function empty_rootcause() { alert("First enter a rootcause!"); window.localStorage.setItem('rootcause_empty', 'yes'); console.log(localStorage); var status = 'KE'; var query_str = cfgCgi + "?SID=$prop.SID+FID=$prop.FID+OP=UPDATE" + "+FACTORY=cr+PERSID=" + "$args.persistent_id" + "+KEEP.new_status=" + status; browseWithURL(query_str); } function open_rootcause() { <PDM_IF "$args.rootcaue" == "" && "$prop.form_name_3" == "edit"> function emptytrue() { if (currentAction == 0 && localStorage.getItem("rootcause_empty") == "yes") { clearInterval(myInterval); ahdframe.document.getElementsByName('SET.status')[0].value = "$args.KEEP.new_status"; jQuery("label[for='df_5_2']")[0].click(); window.localStorage.removeItem('rootcause_empty'); console.log(localStorage); } } if (('$args.KEEP.new_status' != '') && ('$prop.form_name_3' == 'edit')) { var myInterval = setInterval(emptytrue, 100); } </PDM_IF> } ImgBtnCreate("btnSOLN", "Solution", 'empty_rootcause();', 1, 0); <body class="detailro" onload='loadActions();open_rootcause();' onunload="unloadActions()"> Thanks @cdtj
  13. Hi, is it possible to open the rootcause "selection form" in reading-mode when the rootcause is empty and someone is clicking the SOLN-Button? Button: ImgBtnCreate("btnSOL", "Solution", 'openrootcause();', 1, 0); openrootcause() { <PDM_IF "$args.rootcause" == ""> 1. open rootcause selection 2. Update and save ticket } Thanks a lot
  14. Reset the description field on click: function resetDescription() { var d = document.main_form.elements["SET.description"]; d.value = ""; } Add event to field: <PDM_MACRO name=dtlTextbox hdr="Description" attr=description colspan=5 keeplinks=yes rows=10 size=120 evt="onclick='resetDescription()'" spellchk=yes srchknow=no make_required=yes keeptags=yes> That should work.
×
×
  • Create New...