Hi,
My protocol has a table that is populated by a QAction (screenshot below). What I'd like to do is for rows that have a ticket number, the button text should be the ticket number. And for rows that do not have a ticket number, the text should be "Create Ticket".
For example in the screenshot the button in the 2nd row should say "INC0167563" (instead of "Create Ticket").
Is that possible?
Hi Trong,
Please could you elaborate why you would like to update the text displayed in the button? Could it be the case that you would like to avoid a customer clicking the button 'Create Ticket' when there is already a ticket available? If this is the case, a possible option could be using the following protocol feature disableWrite.
For example, you could update the column that display the button as follows:
<Type options="custom=disableWrite:2006=Yes" width="110">button</Type>
In the example above, the column parameter can be disabled based on the value of another parameter (with PID=2006). In this case, the button will be disabled if the value of column parameter with PID=2006 is equal to 'Yes':
Hi Trong,
Keep in mind that when you set the parameter to https://myTicketingPlatform/myTicket123, DataMiner will display automatically the hyperlink. When clicking on the hyperlink, DataMiner will try to open the hyperlink with the default browser configured in the local PC.
Hi Trong Huynh. I don't think that's currently possible. With references like {pid:1005} the Value of a discreet can be made dynamic, but not the Display.
This is a good idea though, and would probably be useful for other users as well, so I propose to post it as a feature suggestion.
Hi Miguel,
Thank you for your response. What I’d like to do is for rows that have a ticket, clicking on the button will open up the ticket; for rows that do not have a ticket, clicking on the button will create a ticket.
But the option you suggested could work as a workaround.
Thanks.