CA Service Management

 View Only
  • 1.  17.1.02 USS/widget function does not work as in SLCM-GUI

    Posted Jul 25, 2019 09:21 AM
    Hi,
    wrote script in custom_form_example.js.
    It is called in SLCM-GUI and widget/USS as onChange but effects are different:
    With a checkbox I'm hiding a table and set MinimumSelectLines to 0.

    In SLCM-GUI no table-entries are necessary when sending request.
    In widget/USS it says that there is some mandatory field to be filled.

    SLCM-GUI does it right.

    Here the code snipped:


    Setting minimum selected rows means for SLCM GUI: There have no lines to be filled.
    In widget-/USS-GUI it means nothing.

    Does anybody know a workaround? Table may not be mandatory when hidden. In form Minimum lines are set to 0.

    Regards,
    Peter

    ------------------------------
    Senior Technical Consultant
    Fujitsu Services
    ------------------------------


  • 2.  RE: 17.1.02 USS/widget function does not work as in SLCM-GUI

    Broadcom Employee
    Posted Aug 15, 2019 04:04 AM
    Hi Peter,

    I'll have no idea about your question, sorry. But FYI the code snippet you included is not appearing.

    Also, if you have some screenshots and/or exact output of messages/results that may be helpful.


    Thanks, Kyle_R.


  • 3.  RE: 17.1.02 USS/widget function does not work as in SLCM-GUI
    Best Answer

    Posted Aug 19, 2019 12:43 AM
    Hi Kyle,
    it's easy and I found a workaround last Friday:
    ca_fdSetMinimumSelectedRows(FormID,'table_1',-1); //set to -1 instead off 0: no row expected

    This fuctions sets how many table-rows have to be filled before form can be sent.
    In Catalog GUI you can set it to '0' - After this no row has to be filled and you can send form without filling Table.

    In widget/USS/ServicePoint you have to set it to '-1' to get this effect.
    This is a workaround because not described in catalog this way.

    I found this workaround because of ca_fdGetMinimumSelectedRows returns '-1' in catalog GUI when it was set to '0' befor with set-function.
    So ...
    Found the workaround myse
    lf.

    Thanks and regards,
    Peter

    ------------------------------
    Senior Technical Consultant
    Fujitsu Services
    ------------------------------



  • 4.  RE: 17.1.02 USS/widget function does not work as in SLCM-GUI

    Broadcom Employee
    Posted Aug 19, 2019 12:47 AM
    Great, thanks Peter.

    Appreciate the technical detail in the reply so that others can benefit.

    Kyle_R.