Adding more than one macro to a reference field

amaradiswamy
Kilo Sage

Hi All,

i want to implement a requirement to show the incidents and requests created by the selected caller in the "Caller" reference field. For that i have created two Ui macro to show the incidents & requets(one is for incident and another is for requests). if adding only one macro it is showing the records correctly. when i have added one more macro to that field only one macro is visible.I have used the below syntax to add macros 'ref_contributions=show_ci_incidents;macro_2;macro_3′. in the dictionary attribute

One more question i have whenever i am adding the ui macro one semi colon is appending be fore the icon. Can anyone please help me to acheive my requirement.

the scrren shot if i add only one ui macro is                                                   the screen shot if i add two ui macros ref_contributions=macro1;macro2

ui.JPGui 2.JPG

Thanks & regards,

swamy

6 REPLIES 6

David OBrien
Kilo Guru

Do you actually have the ref_contributions=... in quotes?   It shouldn't be.   I have this setup on a form and am using the dictionary attribute:



ref_contributions=sherpa_user_show_incidents;show_user_locations



Which gives me a result of:


ui macro.JPG



Do both of your UI Macros work if you use only one of them at a time?   It could be something in the UI Macro not working correctly.


Hi David,


I have a similar issue that almost seems to involve cacheing?   Not sure though.   I am wanting 2 macro icons on a reference field to display the last 3 tickets of the table it is for...   I finally got the tickets for a user on the incident table to work with a macro and then I just copied the macro and changed the identifying pieces such as table to enable it to work the same way for another table.   The problem is, the 2nd icon worked for the 2nd table, but when using the 1st icon to look at the 1st table, I still get the data from the second icon.   I left the page and went back in and now it seems that it is always showing the 2nd table and I'm wondering if it has to do with the dictionary ref_contribution attribute order?   Have you heard of this issue and is there something that I can do?



Thanks,


Trena


I haven't seen something of that nature before.   Is it possible there is some overlap in your UI Macros that is having them cross the data they're looking at?  



Have you tried clearing the instance cache?   If not and you think it's a caching issue, you could try that.   Just type cache.do into the 'Type filter text' box and it should flush the instance cache.   Once that finishes you can go back to your form and see if it helped or not.


Hi Trena,



we have also added two Ui macros next to the caller field to show the incidents and requests separately created by the selected caller from the last month.


find_real_file.png


And we didn't face the stated issue, please check your script thoroughly or follow the instructions given by david.



Thanks and regards,


Swamy