{
a!richTextHeader( text: local!vehicle['recordType!{99b0bb09-e2c0-4f75-a70b-26f247e2d095}AA Vehicle.fields.{41ba4a5a-f36f-474a-b17d-c12f6869260f}make'], size: "MEDIUM" ), a!richTextItem( text: {local!vehicle['recordType!{99b0bb09-e2c0-4f75-a70b-26f247e2d095}AA Vehicle.fields.{19858bdc-1ba7-46b0-8f44-c9bdcbd61fca}model']} )}
I am just wondering how could I write only once the "recordType!{99b0bb09-e2c0-4f75-a70b-26f247e2d095" them be able to get the value in a less verbose way
I mean I don't think this sintaxe `local!vehicle[recordType!AA Vehicle.fields.year]` is ok for each field I want to add.
it should exist something to reduce that syntax and then make it able to just "vehicle.field, vehicle.year, vehicle.color"... Thanks in advance
Discussion posts and replies are publicly visible
What I use as my productivity hack is to have a rule input with the correct record as their data type. Now you can simply use dot operator and start typing your field name and it will also format it once you select.
Once you do it everywhere on the screen, you can just replace the "ri!student" with your local variable.
Yes, I totally forgot this trick. Actually a good trick to reduce time and lot of typing work.
good trick, I like this. But, so don't you think it is better to use rule inputs to store the record instead of local variables in this case ?
a!localVariables( local!vehicleId, local!vehicle: rule!I1_GetVehicleById(local!vehicleId), /*a!cardLayout()...*/ )
there is my code which is only a studying example, nothing so serious.
I imagine that if the local "vehicle" becomes a rule input, then "vehicleId" will be required to become a rule input also?
Unlike local variables, you cannot use one RI in another RI. So my suggestion would be, wherever you have this interface plugged, run this query there and pass the result in vehicle rule input, and then just have one single RI on your screen.