- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 02:09 AM
In my parent breadcrumb, right now it displays only the number field.
pc.setLabelField("number");
I need to modify my Macro to display both the number field and first 15 characters of the short description.
Format: "<Number>:<15 first characters of Short Description>..."
How can I get it done?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 02:06 AM
Was able to achieve this create a separate field (calculated field). Finally just displayed that field value in the breadcrumb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 03:51 AM - edited 03-07-2023 03:51 AM
Hi @vidhya_mouli ,
Can you please check the syntax you used, its setLabel not setLable
Shravan
Please mark this as helpful and correct answer, if this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 03:54 AM
Sorry it is just a typo here. Yes I did use pc.setLabel(current.number + ":" + current.short_description.slice(0, 15) + "...");
Still does not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 04:14 AM
Hi @vidhya_mouli ,
can you please do some troubleshooting by putting logs as below
gs.log(current.number + ":" + current.short_description.slice(0, 15) + "...");
Shravan
Please mark this as helpful and correct answer, if this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 04:32 AM
This did not work either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2023 04:45 AM
Hi @vidhya_mouli ,
can you give a try this way
pc.setLabel(current.getValue('number') + ':' + current.getValue('short_description').substring(0, 15) + '...');
I hope this will work
Shravan
Please mark this as helpful and correct answer, if this helps you