Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About lawrencem

  • Rank
    Level 3 Contributor

Contact Methods

  • ICQ

Profile Information

  • Gender
  • Location
    United Kingdom
  • Interests
    I love it when a plan comes together...

Recent Profile Visitors

257 profile views
  1. Hi; so I finally resolved this via a different approach; appreciate all your assistance but I think our pages were too heavily customised for the proposed process to work correctly at our end. I got it working by adapting the employee; update status page as follows: <PDM_MACRO name=button caption="Approve Request" disabled="defer" func="detailSave()" hotkey_name="Save" id="btn001" width=0> <PDM_MACRO name=button caption="Cancel" disabled="defer" func="detailCancel()" hotkey_name="Cancel" id="btn002" width=0> <PDM_MACRO name=button caption="Clear Remarks" disabled="defer" func="document.main_form.reset()" hotkey_name="Clear Remarks" id="btn003" width=0> <PDM_MACRO name=btnEndRow> <PDM_MACRO name=dtlStart> </script> <input type=hidden name=SET.status value="PRBAPP"> <script language="JavaScript"> add_date_field("alg.time_stamp", "$args.alg.time_stamp_INT_DATE"); <PDM_MACRO name=dtlStartRow> <PDM_MACRO name=dtlReadonly hdr="Current Status" attr=status> <PDM_MACRO name=dtlStartRow> <PDM_MACRO name=dtlTextbox hdr="Please enter reasons for approval" attr=alg.description colspan=3 keeplinks=yes rows=8 size=80 spellchk=yes> <PDM_MACRO name=dtlEndTable> My new custo drives the status changes from the save button action; and I have created 3 of these called from my previous links. The base code behind the update status page seems to include the base code to call the page refresh upon save and thereby solves the problem I was experiencing.
  2. Sorry that is what I meant. I have tried using both popupActivityWithURL & display_new_page on my employee role. I noticed that I was currently using the former, on my latest attempt at getting the employee page working. I have now switched back to display_new_page; its still dropping me back to the request, and not the home page. I've noticed that other 'update status' activities (for example - when the user requests close) forces the status change to update the screen. Is there part of the code that can be 'hijacked' for my button to do the same? I'm not actually sure what part of the page calls the screen refresh, whether it's part of the function itself, or java-script or what part of the actual code calls the page re-fresh.(My colleague here is also stumped, he is a bit more 'webpage savvy' than myself and tried your recommended changes above on our test system, with the same results to what we get on live. )
  3. Thanks once again for the reply; Ok, I have supressed pop-ups and now have it all the frames loading in the same window, however my problem is still present. The code for z_customer_chase is the function I have provided all along from the start - but Alas, this is an error on my part, as I did not include the header line of my function I see... function z_customer_chase(persid,factory,type) { var url=cfgCgi+ "?SID="+cfgSID+ "+FID="+fid_generator()+ ect...
  4. Good morning; So, let me start from the beginning. The user opens up the request via an email link; and is presented with 3 buttons; Approve; Partially Approve and Reject, - all are linked to the (above) function. The code behind each of the 3 buttons is ImgBtnCreate("btnzup", "APPROVE ALL", "z_customer_chase('$args.persistent_id', 'cr','BUS_APP')", "defer", 0) ImgBtnCreate("btnzup1", "APPROVE PARTIALLY", "z_customer_chase('$args.persistent_id', 'cr','BUS_PAPP')", "defer", 0) ImgBtnCreate("btnzup2", "REJECT", "z_customer_chase('$args.persistent_id', 'cr','BUS_REJ')", "defer", 0) Each of these buttons requires a comment from the end user, so when one of these buttons in clicked a new window pops-up stating 'Update Required On Request 123456'. The user is required to enter a comment and click Save. When save is clicked the employee is returned back to the request screen; (not home.htmpl). This wouldn't be an issue, except that on the request screen, the status does not show the latest status change - the status remains the same. The only way the employee has of knowing there action was successful, is to scroll down to the activity log; where the latest activity has been written. If the employee returns to the home page, and then goes back into the request, the status change has occurred. I hope this helps.
  5. Hi again, So I have had a week working on other things; back on this today I have retested the code, again this morning, but even with the above 3 statements added to the pages in the correct positions I am still not getting the desired page refresh action on my employee form. Happy to share files if this helps trouble-shoot things, but I can't help but feel I must be missing something here. I can't understand why my analyst form works, yet my employee one does not As always I appreciate the support
  6. Thank you cdtj I will test this further in the morning, alas I have run out of time today. I am hitting a few snags as I have a customised 'home.htmpl' page, so I am trying to debug where this is failing. I will update with my findings in the morning.
  7. Thanks for your continued perseverance I have attached my file detail_alg.htmpl
  8. Yes, this does drop me back to the detail.cr page after the status update is saved (both from an email link and via Service Desk) but the status field, still doesn't show the update that has just occurred, unless I refresh the screen again (manually). Much appreciate all of your help thus far.
  9. Hi sorry, reading that back it wasn't very clear at all was it and sorry if I am causing you stress. I am using on my employee form the following function { var url=cfgCgi+ "?SID="+cfgSID+ "+FID="+fid_generator()+ "+FACTORY="+factory+ "+PERSID="+persid+ "+OP=UPDATE"+ "+ACTIVITY_LOG_TYPE="+type+ "+HTMPL=detail_alg_edit.htmpl" + "+AUTO_OVERRIDE_LOCK=true"; display_new_page(url, "Status" ); } (I have also tried popupActivityWithURL(url, "status" ); on the bottom line. Both solutions however, are not refreshing the employee page automatically - as in, the status change doesn't show (even though it has happened successfully). On my analyst view I get the expected result - the refresh is happening as desired.
  10. Hi and thanks again for yet another response cdtj you're really making my week So I have tried out a few more employee functions, including using display_new_page(url, "Status" ); I have also tired using popup method (as per my working Analyst interface;) as previously mentioned, I do not have any such pdm_if restriction on my employee function file, (it is coded the same way as my analyst one) But I am still not getting the desired result of a page refresh to display that status change. Is there any other known way to achieve this?
  11. If you could be so kind as to allow me to trouble you again? Whilst this is working perfectly for my analyst interface is there any reason that you know of why my popup window fails to close / refresh status when I invoke the same function from the employee interface?
  12. United Kingdom is where I am based. In sleepy Somerset, (cider country).
  13. YES!!! IT WORKS!!! You sir, are a legend! One day, I hope we cross paths, as I owe you a pint (or chilled beverage of preference!)
  14. Now im getting somewhere - thankyou so 'popupActivityWithURL(url)'; is now returning me into the body of the ticket (even if I've opened it from an email link - so an improvement to a broken link on a page...) however; this has now created another problem.. as the ticket window I return to is the original and does not refresh - so the status change that has just occurred, is not apparent. (This status change is being called via a linked event notification association with a 1 second delay) Is there a way to either... 1) Force an auto refresh on the ticket page once the popup window disappears? (This is on a 12.6 installation by the way) which would be the best solution. or alternatively 2) Drop the user back to the home page URL? Once again really appreciate your help. I am shocked that you are unable to find work in this field. Sadly I think a lot of companies are moving over to Jira these days which I really do not like as a Service Desk solution.
  15. Good day; Its a real honour to have a post from yourself cdtj; I have seen a LOT of your posts in the past and how much you have helped people and for that I am really quite humbled. Forgive me ignorance please, but I am really new to functions (having never needed to use them in customisations before), could you please advise me roughly where these variables should sit within the page; (I take it they need to be on the detail.cr; rather than the detail_alg page?) Also should I be substituting display_new_page(url); in favour of ahdframeset.top_splash.next_persid or add this as an addition within the function? Your help once more would be greatly appreciated.