CA Service Management

Expand all | Collapse all

Creating a request from a html page outside of SDM and skipping SDM confirmation form

  • 1.  Creating a request from a html page outside of SDM and skipping SDM confirmation form

    Posted 11-12-2018 11:37 AM

    Hello,

     

    I'm looking at setting up a simple html form to be enable to create a incident or a request having all required fields already filled by the "POST" method of the html form. Like this:

     

    <FORM ACTION=https://sdm-url.test/CAisd/pdmweb.exe METHOD=POST>
    <INPUT type=HIDDEN NAME=FACTORY VALUE=in>
    Incident
    <br/>
    Category: <INPUT type=text NAME=category VALUE="pcat:502817">
    <br/>
    User: <INPUT type=text NAME=customer VALUE="56F1CD38B451C046843AB48AA58A075F">
    <br/>
    Group: <INPUT type=text NAME=group VALUE="A663F7808C73004AAFD96DD3DAC7BB24">
    <br/>
    Reporting method (custom field): <INPUT type=text NAME=zreporting_method VALUE="7300">
    <br/>
    Symptom: <INPUT type=text NAME=symptom_code VALUE="900">
    <br/>
    Summary: <INPUT type=text NAME=summary VALUE="the test">
    <br/>
    Description: <INPUT type=text NAME=description VALUE="test 333333333333333">
    <br/>
    <INPUT type=SUBMIT NAME=CREATE_NEW VALUE=" OK ">
    <br/>
    </FORM>

    When I click the submit button, it shows the incident form and fills only Summary and description which are directly related to Factory IN. Other fields use other objects like "cnt", "symptom" etc. Is there a way to fill other fields related to other objects?

    I couldn't find example anywhere except the explanation showed on this page: 17.1  https://docops.ca.com/ca-service-management/17-1/en/building/building-ca-service-desk-manager/web-interface-modifications/advanced-modifications/integrating-with-your-own-web-pages or 14.1 https://docops.ca.com/ca-service-management/14-1/en/building/building-ca-service-desk-manager/web-interface-modifications/advanced-modifications/integrating-with-your-own-web-pages

     

     

    When submitting the same with <a> tag it fills every field (even Customer, symptom and group) but still show the form so I have to click "save". I'd like to be able to skip that part on both ways.

     

    I've read that if you have all required fields it could skip that window, is that true or I mistaken something?

     

    My goal is to let our Intranet management develop an html form being able to send required informations and these informations being saved based using user's SDM access (by default: Employee).

     

    Thanks for you constant help, it's appreciated

     

    Have a nice day CA community !



  • 2.  Re: Creating a request from a html page outside of SDM and skipping SDM confirmation form

    Posted 11-16-2018 01:17 PM

    Anyone got an idea or an example to share?

     

    Actually found out that when a field is a DropDown or a Textbox it fills up in the SDM form but not when it is a field with a search option. So the information is still probably being sent, but the form keeps appearing so that I cannot skip completely SDM.

     

    Thank you



  • 3.  Re: Creating a request from a html page outside of SDM and skipping SDM confirmation form

    Posted 11-19-2018 05:49 AM

    hi,

     

    ootb sdm uses form fields with SET.*** and KEY.*** names. normally in KEY.*** is stored the display value and in SET.*** is stored the object value...

     

    <INPUT type=text NAME=SET.symptom_code VALUE="900">

    <INPUT type=text NAME=KEY.symptom_code VALUE="the_name_of_the_symptom_code">

     

    so, i would try to use SET.*** fieldnames to store values for related attributes

     

    regards, pacy