Hello All,
At the CA Plex WinC Generator we had been given the following API:
&(1:)=ObPanelAPI::GetCurrentLogicalEvent(NULL);
in order to be able to retrieve the Current Logical Event Name.
This was used by us in our templates in order to implement Event Level Security,
that is in the Events Handler we had an Event statement block into which we
called the above API and retrieved the Current Logical Event Name in order to
check it with the current user in our Security Database using our version of
Security Check function.
So, we need to be able to do the same in the .Net CA Plex
generator environment.
Is there already an analogous API available ?
If not we need something like the following:
namespace ObWPF.ObWPFCtrl
{
public class ObPanel : Window, IObUIMain, IObUICtrl, IObContextMenuOwner, IObDragAndDropControlWPF
{ /* ...other definitions...*/
public int CurrentAction { get; set; }
/* ...other definitions...*/
public void RegisterLogicalEvent(int id, string name);
/* ...other definitions...*/
public string GetLogicalEvent(int id); /* <== ***This is what we need*** */
public string GetCurrentLogicalEvent(); /* <== ***OR This is what we need*** */
/* ...other definitions...*/
}
}
That is, to be able to Get the Logical Event Name that is Registered with the specific id,
or to Get the Current Logical Event based on the CurrentAction.
So, I can do such a call:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sLogicalEventName = GetLogicalEvent(CurrentAction); /* GetLogicalEvent From Action */
/* OR */
sLogicalEventName = GetCurrentLogicalEvent();
- - - - - - - - - - - - - - - - - - - - - - -
Kind Regards,
Nicolas Mavroeidis
------------------------------
Senior Software Engineer
BASIS SA
------------------------------