formalPopupFiles: Right-Click gets item on which the right-click is perform

Hello!

How can i get the item on which the right-click in the formalPopupFiles has been performed?

I.e: I have inserted a show History Item in a rightclick.dxl which ist in the following directory :

C:\Program Files\IBM\Rational\DOORS\9.2\lib\dxl\config\formalPopupFiles

The content just is:
createItem(null, "Show History",'n','Ü', null,null,null,null, "showHistory.dxl");

The showHistory.dxl has the following content:
ack name(current) " " type(current);

1. The problem is, that current is not containing the right-clicked object, how can i access this?

2. Another question: When an object is in edit-mode and the cursor is in it, the Show History item is not visible. Is there a way to customize this? I want an DXL which is inserting a Hyperlink here.

With best regards,
Björn
Bjoern_Karpenstein - Mon Jul 30 03:54:04 EDT 2012

Re: formalPopupFiles: Right-Click gets item on which the right-click is perform
SystemAdmin - Mon Jul 30 05:38:23 EDT 2012

Item SelectedItem = getSelectedItem()
if(!null(SelectedItem)) {
// Do something...
}

Re: formalPopupFiles: Right-Click gets item on which the right-click is perform
SystemAdmin - Mon Jul 30 05:42:55 EDT 2012

Should read the post properly first...

This works ok for me:

Object SelectedObject = current()
if(!null(SelectedObject)) {
// Do something...}

Re: formalPopupFiles: Right-Click gets item on which the right-click is perform
Bjoern_Karpenstein - Mon Jul 30 10:45:22 EDT 2012

SystemAdmin - Mon Jul 30 05:42:55 EDT 2012

Should read the post properly first...

This works ok for me:

Object SelectedObject = current()
if(!null(SelectedObject)) {
// Do something...}

Hello thank you very much.

Is there a posibility to show a menu point only, when you are just editing an object text?