Jump to content

shayeb

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About shayeb

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I solved the issue here is the code cr::z_update_usm_values(...) { if( ! is_null(external_system_ticket)) { string arr[3]; split(arr,(string)external_system_ticket,"-"); send_wait(0, this, "call_attr", "zusmrequestid", "set_val", (int)arr[2], "SURE_SET"); send_wait(0, this, "call_attr", "zusmrequestitemid", "set_val", (int)arr[1], "SURE_SET"); send_wait(0, this, "call_attr", "ref_num", "set_val", arr[2], "SURE_SET"); } return; }
  2. split () and extract () not allowed on object attributes: dest 02/21 14:47:24.16 Demo spelsrvr 2640 ERROR script.y 3882 C:/PROGRA~2/CA/SERVIC~1/site/mods/majic/z_update_usm_values.spl at (8) Variable type mismatch 02/21 14:47:24.16 Demo spelsrvr 2640 ERROR script.y 3882 C:/PROGRA~2/CA/SERVIC~1/site/mods/majic/z_update_usm_values.spl at (11) Object attribute "dest" can't be an array 02/21 14:47:24.16 Demo spelsrvr 2640 ERROR intpnoex.c 640 Error 3 processing Spell f
  3. ///////////////// MOD FILE ///////////// OBJECT cr{ TRIGGERS { POST_VALIDATE z_update_usm_values() 100 FILTER( ( EVENT("INSERT"))); }; }; ////////////// SPL FILE ///////////// O cr::z_update_usm_values(...) { if( ! is_null(external_system_ticket)) { string dest[]; split(dest,external_system_ticket,"-"); send_wait(0, this, "call_attr", "ref_num", "set_val", dest[2], "SURE_SET");} return; }
  4. Dears, I am trying to update cr ref_num in sdm version 17 to be as catalog request id using external_system_ticket ( CASC-0000-0000) I wrote a post_validate trigger on cr when insert, When trying to use strinh split () function then my spell server down. Is there any way to update the ref_num ?
  5. Dears, I am trying to update cr ref_num in sdm version 17 to be as catalog request id using external_system_ticket ( CASC-0000-0000) I wrote a post_validate trigger on cr when insert, When trying to use strinh split () function then my spell server down. Is there any way to update the ref_num ?
×
×
  • Create New...