Script include is not calling from Catalog client script.

Siddhesh Wani1
Tera Guru

The following are the set values:

<Catalog Client Scripts>

    Applies to: A Catalog Item

    Active: True

    UI Type:  All

    Application: Global

    Type: onChange

    Applies on a Catalog Item view: True

SiddheshWani1_2-1704368622844.png

 

<Script Include>

    Name: KnowledgeAjax

    Application: Global

    Accessible from: All application scopes

    Client callable: True

    Active: True

    Protection policy: None

SiddheshWani1_1-1704368340199.png

 

1 ACCEPTED SOLUTION

Siddhesh Wani1
Tera Guru

The issue is resolved. The ACL for the Client callable script include is not available, so we have to create the ACL with the same name as of Script include then it's working. 

 

Thank for the solutions. 

View solution in original post

18 REPLIES 18

Do you need to exted KnowledgeAjaxSNC? if not then replace this with AbstractAjaxProcessor

-Anurag

Yes We need that KnowledgeAjaxSNC

Siddhesh Gawade
Mega Sage
Mega Sage

Hello @Siddhesh Wani1 ,

 

In client script at line no. 6 you are using sysparm_type to call function which is incorrect.

 

try this: 

ga.addParam('sysparm_name', 'getRequestTypeOptions');

 

Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.


Regards,

Siddhesh

Siddhesh Wani1
Tera Guru

The Line number 6 is replace with sysparm_name

Jayesh Varshney
Tera Expert

Hi @Siddhesh Wani1 ,

 

Can you please make 2 changes in the code.

1. instead of giving the script include name in Ajax call try with API name of the script include.

2. in line number 6 is replace sysparm_type with sysparm_name

 

and try to put the logs and alert messages and check where the code having issues.