CA Service Management

 View Only

SPEL: Dynamic filling of related fields in edit mode 

May 04, 2017 06:05 AM

Disclaimer

This customization is presented as is and was not tested well. Use it at your own risk.

Please remember! Any kind of SPEL customization can cause performance/stability issue which is not responded by CA Support: https://communities.ca.com/docs/DOC-231156196#comment-233917142 

 

Demonstration video

 

What is this

This method is seeking for lookup and hier fields, then determine all related fields. Once parent field being changed, script performing ajax query to fetch all related values (exception: nr associated fields).

 

Installation steps

1. Register new WebEngine OP (more info about Webengine OPs: SPEL: Register custom webengine OP)

- Open $NX_ROOT\site\mods\www\op_custom.cfg;

- Add followed string to end (before footer message) of the config file:

Z_BACKFILL z_backfill MODIFY UPDATE

- Save file;

- Copy z_backfill.spl as: $NX_ROOT\site\mods\www\z_backfill.spl;

- Recycle WebEngine to apply changes.

 

2. Register HTMPL file

- Copy z_backfill.htmpl as $NX_ROOT\site\mods\www\htmpl\web\analyst\z_backfill.htmpl;

- Add followed line to enable backfilling on selected form (such as detail_cr.htmpl, detail_iss.htmpl, etc):

<PDM_INCLUDE FILE=z_backfill.htmpl>

Line should be inserted between <head></head> and <script></script> HTML tags;

- Reset Webcache;

 

Changelog

2017-05-10:

   - jQuery alias fixed;

Statistics
0 Favorited
23 Views
3 Files
0 Shares
20 Downloads
Attachment(s)
zip file
z_backfill.spl.zip   1 KB   1 version
Uploaded - May 29, 2019
zip file
detail_cr.htmpl.zip   7 KB   1 version
Uploaded - May 29, 2019
zip file
z_backfill.htmpl.zip   1 KB   1 version
Uploaded - May 29, 2019

Related Entries and Links

No Related Resource entered.