Asset Listing - Get value for column dynamically


(Shyana555) #1

Hi, Im a newbie. I'm trying to create an asset listing page based on metadata values, however one column is going to "Policy-Status" which should display dynamically based on a metadata date value.

For EX : My asset listing page looks like this --

 

Policy Name || Policy Last Updated || Policy Status

 

I get the values of the first 2 columns by getting the values from metadata. However I have no idea of how to display status value in asset listing. I have a metadata field set for Status, however the status field's value should change dynamically depending on the current date. I have a javascript code for this, but I dont know how to use in asset listing for a specific column (Can I use a trigger) or can i write any code in (Default Format). Please Help. Thanks


(Bart Banda) #2

Hi Shyana, welcome to the forums. 

 

I'm not quite sure I follow the requirement, but sounds like you would be best of using JS on the front end to change the status value based on today's date, but you could also try keyword modifiers. But it all depends on what the rules are for showing the statuses based on the date?


(Shyana555) #3

Hi Bart, Thanks for your reply.

 

Yes I used javascript in the bodycopy to set the status accordingly and it worked :)