Dynamic data in v8

How to alter data on the fly as the pages are being rendered after the model has performed its data retrieval.

The idea is that we may need to dynamically change displayed data based on certain criteria for example

For dropdowns, we have dynamic dropdown. YI think yu could write custom js code to make dynamic changes.

We could look at this… and then just add it to ‘customCode’ => …
right?

Yes.

Also you can create a js file.

/custom/modules/MODULE/js/update_data.js

Then call this js file in detailviewdefs.php file.

array (
        0 => 
        array (
          'file' => 'custom/modules/MODULE/js/update_data.js',
        ),
      ),

Thank you Sir, will give this a shot and revert if issues are picked up

I don’t think that technique will work for v8 modules.

You have to work inside Angular, not inject some JS into the views.

Some of the dev insights videos may have solutions for some things. A future version of SuiteCRM will have my add-on PowerFields built into it, which will dramatically expand the options for dynamic stuff using low-code.

When, you may ask? I don’t know, it’s been delayed, but there is still hope :sweat_smile:

Thank you for that response

Hi,

I Take it you have looked at all the updatevalue/updatevaluebackend, show/hide and show/hidebackend that allows you to set values and show hide fields/panels based on content values (and this works as you enter data as well as whatever is already saved).

Regards

Mark