Jump to content

Search the Community

Showing results for tags 'majic'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CA Service Desk Manager
    • General Discussions
    • Customizations / Modifications
    • Bugs / Errors / Patches
    • Knowledge Tools / Keyword Search
    • Support Automation
    • CMDB
    • Install / Migrate / Configure
    • Product Integration
    • Reporting
    • Workflow
  • Nimsoft Service Desk
    • General
  • General
    • Wiki Article Discussions
    • ITIL & Best Practices
    • Speak Out
    • Employment Opportunities

Categories

  • Getting Started
  • Installation
  • Configuration
  • Customization
  • Integration
    • CA Applications
    • Non-CA Applications
    • Custom Integrations
  • Reporting
  • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Good morning collaborators, I am building a spel code using get_list method to get the amount of CI's which they are element's KPIs in a specific Change Order. For that I used the following code which one works when I put the change order number as hard code as this: chg::zmatriz_riesgo(...) { object obList; int kpi_count, afectados, pruebas, ambiente_homologado, rollback, contingencia, frecuencia; string chg_num; chg_num = argv[3]; // ********** Existencia de Elementos de Configuracion KPI ********** uuid who; send_wait(0, top_object(), "call_attr", "cnt", "current_user_id"); who=msg[0]; send_wait(0, top_object(), "call_attr", "api", "get_list", "lrel_asset_chgnr", who, "chg.chg_ref_num IN '633' AND nr.zkpi IN '1'", -1); if (msg_error()) { logf(SIGNIFICANT, msg[0]); } else { obList = msg[0]; kpi_count = msg[1]; } but now I want to do this usable for any change order and I need to concatenate a variable in where clause after chg.chg_ref_num. I tried this but it doesn't work: chg::zmatriz_riesgo(...) { object obList; int kpi_count, afectados, pruebas, ambiente_homologado, rollback, contingencia, frecuencia; string chg_num; chg_num = argv[3]; // ********** Existencia de Elementos de Configuracion KPI ********** uuid who; send_wait(0, top_object(), "call_attr", "cnt", "current_user_id"); who=msg[0]; send_wait(0, top_object(), "call_attr", "api", "get_list", "lrel_asset_chgnr", who, "chg.chg_ref_num IN '+chg_num+' AND nr.zkpi IN '1'", -1); if (msg_error()) { logf(SIGNIFICANT, msg[0]); } else { obList = msg[0]; kpi_count = msg[1]; } Can you tell me what is wrong in the concatenation in get_list method? Regards.
×
×
  • Create New...