Help with creating Announcements with record producer

RudhraKAM
Tera Guru

Hello We are creating a record producer to populate the announcements  as we are pre defining some of the fields i am not able to set portal and Glyph . can some one help me with this ?

the code which i am using is  : current.glyph="fa-heart"; and for selecting portal : i tried 

current.sp_portal.sys_id('67ebcbc913408700be045d622244b029');

current.sp_portal('67ebcbc913408700be045d622244b029');

current.sp_portal.setDisplayValue('67ebcbc913408700be045d622244b029');

 

can some one help me with this , thanks in advance 

 

1 ACCEPTED SOLUTION

You need to add names of glyphs that exist. So

current.glyph="fa-heart" // this won't work

current.glyph="heart" // this will work

If you want to name what the correct name of a glyph is create a record and assign the glyph you want. Save it then right click on the header and click "Show XML". This will show you the actual values of those records. Scroll down to "glyph" and you'll see the value.

View solution in original post

7 REPLIES 7

cczernia
Mega Guru

You are probably setting the glyph but "fa-heart" is not an actual value in the glyphs (it is just heart). So, it loads nothing in the box. If you look at the xml of the record it will show what you set it to in the gliderecord.

The portal you are trying to set looks like it is on another table, so it is not part of the current object.

Set the portal on the announcement record then click the "I" to find the table. It is mostly likely a m2m table that you'll have to do a second gliderecord on.

using the same code for service portal mentioned above its working but its not displaying on the announcments record 

 

and  can you please let me know what to do with that Glyph 

You need to add names of glyphs that exist. So

current.glyph="fa-heart" // this won't work

current.glyph="heart" // this will work

If you want to name what the correct name of a glyph is create a record and assign the glyph you want. Save it then right click on the header and click "Show XML". This will show you the actual values of those records. Scroll down to "glyph" and you'll see the value.

Thank you 

 

And one more last thing , why is my portal not showing on the form, even though its displaying on the portal which is specified in the record producer