I am using two local variables and the data is coming via expression rules (there are multiple columns)
local!empStatus: index(rule!EO_getEmpStatus(),"data",{}), local!empDetail: index(rule!EO_getEmpDetail(),"data",{})
I want to use the data of local!empStatus and local!empDetail into single read-only grid.
Discussion posts and replies are publicly visible
It completely depends on whether the two queries return similar data types, but for example if both were identical, you could append the two arrays to each other and display the resulting data set. Or rather, if the data dictionaries aren't identical but instead one of them offers more details on members of the other, then in your grid, you could index into the "detail" array for the current member of the "main" array, for example. But without further detail as to what these queries pull, and what you want your grid to show, the only thing I or anyone else will be able to offer is this sort of blind guesswork. Is there any further detail that you can provide?
Hi Mike,
Thankyou for your time.
rule!EO_getEmpStatus() is returning empId and status
rule!EO_getEmpDetail() is returning empId, firstName, lastName, band, group etc. fields.
I want to show the data of following columns in my grid on the basis of empId: empId, firstName, lastName, status, band, group
Regards,
Ankita Singh
In general my best suggestion would be to create a database View which could merge the two source tables (i assume these are drawing their data from DB tables, anyway), as already mentioned by Nandhavi in another comment below - this will allow you to create a grid based on a single query of data where it's already a consolidated data set.
Thankyou
I have created a view for this and now its working, I guess this would be a best solution for this scenario, correct me If I am wrong.
Thankyou ankitab0001 , and for your time on this post. I really appreciate your efforts and I have learn that how we can handle this scenario in Appian.