CA Service Management

  • 1.  Retrieve Values From Read Only Field to use in Javascript

    Posted Sep 27, 2013 04:31 PM
    I am doing a customization in Change Order detail form in Service Desk. There
    I have many fields set as read only and I want to get the values from them to
    be saved in Javascript variables and then execute a code to validate them according specific conditions.
    When I am in the form where I see the read only fields, the values are not filled in the variables.
    Is it possible those the values are not available when they are in fields as read-only? I changed the read-only textbox to a regular and the values are saved.

    I need this as soon as possible.

    Thanks and Regards,


  • 2.  RE: Retrieve Values From Read Only Field to use in Javascript

     
    Posted Sep 30, 2013 01:22 PM
    Hi All,

    Any ideas here for this one?

    Thanks!
    Chris


    pablomax wrote:

    I am doing a customization in Change Order detail form in Service Desk. There
    I have many fields set as read only and I want to get the values from them to
    be saved in Javascript variables and then execute a code to validate them according specific conditions.
    When I am in the form where I see the read only fields, the values are not filled in the variables.
    Is it possible those the values are not available when they are in fields as read-only? I changed the read-only textbox to a regular and the values are saved.

    I need this as soon as possible.

    Thanks and Regards,


  • 3.  RE: Retrieve Values From Read Only Field to use in Javascript

    Broadcom Employee
    Posted Sep 30, 2013 02:35 PM
    Pablo, can you give some more details? Like how you retrive the field value to the local js variables etc. I did a quick test on detail_chg.htmpl form,
    and for log_agent("created by"), I inserted this:
    alert("$args.log_agent");
    in the loadActions() local js function and was able to see the uuid of the log_agent, though log_agent is used as readonly field. Thanks _Chi


  • 4.  RE: Retrieve Values From Read Only Field to use in Javascript

    Posted Oct 11, 2013 07:53 AM

    chech11 wrote:

    Pablo, can you give some more details? Like how you retrive the field value to the local js variables etc. I did a quick test on detail_chg.htmpl form,
    and for log_agent("created by"), I inserted this:
    alert("$args.log_agent");
    in the loadActions() local js function and was able to see the uuid of the log_agent, though log_agent is used as readonly field. Thanks _Chi
    Hello Pablo,

    I second Chi - more details would definitely help, especially for customisation issues where time is of the essence - they are tricky enough at the best of times.

    This post could benefit from showing screenshots of what you have and where you want to go, for example.

    Let us know if you need assistance and provide information if so.

    Thanks, Kyle_R.


  • 5.  HA: [CA Service Desk General Discussion] RE: Retrieve Values From Read Only

    Posted Oct 11, 2013 08:12 AM
    The same bug again.
    I just clicked "Quick reply", entered "dtlReadonly has propety ID
    specially for usage in DOM in edit forms." and published that.
    Chrome 30.0.1599.69 m



    От: CA Service Management Global User Community
    <CommunityAdmin@communities-mail.ca.com>
    Кому: "mb.2276110.101939462@myca-email.ca.com"
    <mb.2276110.101939462@myca-email.ca.com>
    Дата: 11.10.2013 16:10
    Тема: [CA Service Desk General Discussion] RE: Retrieve Values From Read
    Only Field to use in Javascript



    I am doing a customization in Change Order detail form in Service Desk.
    There
    I have many fields set as read only and I want to get the values from them
    to
    be saved in Javascript variables and then execute a code to validate them
    according specific conditions.
    When I am in the form where I see the read only fields, the values are not
    filled in the variables.
    Is it possible those the values are not available when they are in fields
    as read-only? I changed the read-only textbox to a regular and the values
    are saved.

    I need this as soon as possible.

    Thanks and Regards,
    Posted by:andreygurevich
    --
    CA Communities Message Boards
    CA Service Management/view_message/101939462

    mb.2276110.101939462@myca-email.ca.com
    https://communities.ca.com