CA Service Management

  • 1.  default value in text field

    Posted Sep 29, 2016 02:04 PM

    Hi Evertone

     

    like putting a default value in a text field.
    I need to add a variable in the code of WSP.

    <PDM_MACRO name = dtlTextbox hdr = "Mark" attr = zEnter>

    Deputy imajen example with the default value I need.

     

     

    Regards,

    Marco Velaquez.



  • 2.  Re: default value in text field

    Posted Sep 30, 2016 03:07 AM

    Hi Marco,

     

    You could perhaps try with a 'default'  data-partition ;-)

     

    Kind Regards,

    Brian



  • 3.  Re: default value in text field

    Posted Oct 03, 2016 09:40 AM

    Hi Marco,

     

    If I can't misundestand you, you can set a default value by using code on htmpl files (WSP code)

     

    if insert a new record (insert time)

     

    var strDefault = "abcd";
    if ("$args.id" == "0" && _dtl.edit)
        document.main_form.elements["SET.zEnter"].value = strDefault;

     

    run the code on body onload event

     

    or if trigger this action by url, you can define PRESET parameter in url code like following sample

     

    $CAisd/pdmweb.exe?OP=CREATE_NEW+FACTORY=cr+PRESET=zEnter:abcd+.....

     

    Regards,

    Türker