Home Analyst Portal

WorkItem Lookup Page

Brian_WinterBrian_Winter Customer Advanced IT Monkey ✭✭✭

Until Search is able to search Archive, does anyone have a simple html form page for people to enter an IR or SR number and it just jumps to the "https://portal.website.com/Incident/edit/IRxxxx" or "https://portal.website.com/ServiceRequest/edit/SRxxx"?

I'm just too overloaded to chisel this one out.

Best Answer

  • Brian_WinterBrian_Winter Customer Advanced IT Monkey ✭✭✭
    Answer ✓

    ok, finally worked on it and came up with:


    <script>

    function IncidentSubmit(){

        var action_src = "https://portal.website.net/Incident/edit/" + document.getElementsByName("Incident")[0].value;

      var Incident_Form = document.getElementById('Incident_Form');

      Incident_Form.action = action_src ;

    }


    function ServiceRequestSubmit(){

        var action_src = "https://portal.website.net/ServiceRequest/edit/" + document.getElementsByName("ServiceRequest")[0].value;

      var ServiceRequest_Form = document.getElementById('ServiceRequest_Form');

      ServiceRequest_Form.action = action_src ;

    }

    </script>

    <form id="Incident_Form" onsubmit="IncidentSubmit()" target="_blank">

    Incident:</br>

      <input type="text" name="Incident">

      <input type="submit" value="Search">

    </form>

    </br>

    <hr>

    <form id="ServiceRequest_Form" onsubmit="ServiceRequestSubmit()" target="_blank">

    Service Request:</br>

      <input type="text" name="ServiceRequest">

      <input type="submit" value="Search">

    </form>


    NOW, is there a SIMPLE way to embed this into a portal iframe without having to go through the Custom View Panel pain? How To: Create Custom Pages in the Cireson Portal? Just something EASY?

Answers

  • Brian_WinterBrian_Winter Customer Advanced IT Monkey ✭✭✭
    Answer ✓

    ok, finally worked on it and came up with:


    <script>

    function IncidentSubmit(){

        var action_src = "https://portal.website.net/Incident/edit/" + document.getElementsByName("Incident")[0].value;

      var Incident_Form = document.getElementById('Incident_Form');

      Incident_Form.action = action_src ;

    }


    function ServiceRequestSubmit(){

        var action_src = "https://portal.website.net/ServiceRequest/edit/" + document.getElementsByName("ServiceRequest")[0].value;

      var ServiceRequest_Form = document.getElementById('ServiceRequest_Form');

      ServiceRequest_Form.action = action_src ;

    }

    </script>

    <form id="Incident_Form" onsubmit="IncidentSubmit()" target="_blank">

    Incident:</br>

      <input type="text" name="Incident">

      <input type="submit" value="Search">

    </form>

    </br>

    <hr>

    <form id="ServiceRequest_Form" onsubmit="ServiceRequestSubmit()" target="_blank">

    Service Request:</br>

      <input type="text" name="ServiceRequest">

      <input type="submit" value="Search">

    </form>


    NOW, is there a SIMPLE way to embed this into a portal iframe without having to go through the Custom View Panel pain? How To: Create Custom Pages in the Cireson Portal? Just something EASY?

Sign In or Register to comment.