we have a customer that wants to see all registered requests registered on a customer.
The way we do this is to create a web panel (in a ticket) that shows a data table containing all the requests registered on the same cust_id.
The Data Table contains this:
- Simple values
callbackDisplay = callbackDisplay
callbackInit = callbackInit
callbackSort = callbackSort
urlAppendField = ticket.id
url = ticket.fcgi?action=listTicket&ticketId=
String callbackDisplay(SearchEngine se, String field)
Void callbackInit(SearchEngine se)
se2.addCriteria("ticket.id", "OperatorEquals", getCgiVariable("entryId"));
se.addCriteria("ticket.cust_id", "equals", se2.getField("ticket.cust_id"));
String callbackSort(SearchEngine se, String value)
This works, and i get the results i expect back, yey!
My question/issues are as follows:
1. When I click on one of the requests i expect it to open that request.. It actually opens the request, but only in the small window/web panel on the original one.
My screen then looks like this:
I would like it to open in the "main window", as its logical that i want to open the request i am clicking on in the table.
2. I havent been able to figure out how i can color-format the rows depending on Status of the request.
I tried looking in the documentation but I cant find any usefull input on how this is done, but i see Static Table v2 has some 'better options' for doing this. Is it possible to color the row depending on Status? in the documentation they insert the fields in simple values, then add a hidden field named author, then color format this spesific field depending on the status, but neither include the fields in simple values or want just 1 field to be colored.
The reason for not adding the fields in simple values is that i want the users to themselves be able to adjust the table/layout/columns themselves.