Question

Adding custom classes to fields in detail

Hello All!

 

My end goal is to be able to fill in fields in a detail with dynamic data from within the parent page schema, but not save these values to the database(display only). I am finding it very difficult to target the fields using javascript/JQuery. My thought is that wrapping each of the fields with a custom class would help, but I'm not sure how to go about adding a custom class to the fields as they are on a detail and not on a page. Can anyone point me in the right direction? Or is there a better way to go about adding dynamic display only values to fields in a detail?

 

Edited to add additional information:

The objects already exist, and the data in those objects do need to exist in the database. The data is actually updated on a nightly process,  but we want to be able to show real-time values when a user loads the page. Thus the reason for updating certain columns in the details.

 

Thank you!

Chris

Like 1

Like

4 comments

Dear Chris,

 

In order to implement the required functionality please consider using a virtual detail. Please find the information about how to add the virtual detail on the page in the article by the link below:

 

https://community.creatio.com/articles/add-virtual-detail-page

 

Best regards,

Norton

Hey Norton,

 

I guess I could have added more information, but the objects already exist, and the data in those objects does need to exist in the database. The data is actually updated on a nightly process,  but we want to be able to show real-time values when a user loads the page. Thus the reason for updating certain columns in the details. Because of this I do not think the virtual detail will work for our situation.

 

Any other ideas?

 

Thank you!

Chris

 

Dear Chris,

 

As far as I understand, you have a detail that is filled in with the values from the edit page. Once a day, the values from the page are updated (on a nightly process). Since you said that the detail values do not need to be stored in a database, but only need to be displayed, I think that the virtual detail is a good approach for this task.

 

In case, if this approach is not convenient for you, please clarify your business task so we could offer a more suitable solution.

 

Additionally, please find the information about how to add a custom style on the page in the article by the link below:

 

https://community.creatio.com/articles/how-add-or-edit-css-style

 

Best regards,

Norton

Hey Norton,

 

I think you read my response incorrectly. The data in the detail DOES need to exist in the database, and it is also updated on the nightly process. So the values from the page AND the detail are updated on a nightly basis, and do also exist in the database.

 

I have seen the css post you mentioned, but it's in regards too adding attributes to the body. Is there a function to add attributes to fields? That could be helpful.

 

If something is not clear, please let me know and I can add more detail for that.

 

Thank you!

Chris

Show all comments