Use the language of the user perferred in custom plugin

Hi, we have developed a c# format plugin, we need to be compatible with our recent efforts to translate PLM4P in Chinese.  So I have a few questions:

(1) it would not be possible to get the current user's preferred language?  I tried:


string getLanguage = AppPlatformHelper . ServiceManager.GetServiceByType <,IUser,> (). PreferredLanguage.ToString ();


but it does not work. I don't know how the < IUser >.


(2) how I would get the current user's user ID?  I tried:


string = getUSerID ((IUserService)AppPlatformHelper.) ApplicationManager.ServiceManager [typeof(IUserService).] FullName]). UserContext.User.PKID;


but I could be a missing reference.  IUserService is available in a dll for reference?


Thank you

Mike




Here is an example of the code of GetCurrentUser:

Add the two using in your c# plugin code

using Xeno.Prodika.Services;

using Xeno.Prodika.Application;

private IAuthenticatedUser GetCurrentUser()

{

IUserService UserService = (IUserService) AppPlatformHelper.ServiceManager [typeof (IUserService). FullName];

CurrentUser IAuthenticatedUser = userService.UserContext.User;

Then, you can easily get PreferredLanguage and PKID for the current user by currentUser.PKID and currentUser.PreferredLanguage

}

Tags: Oracle Applications

Similar Questions

  • How to use the user with event loop event

    Hello

    I want to communicate between 2 VI, so I have a global variable (boolean) who gives the order to an event tool to run. The problem comes from the fact that event loop accepts no global variable, I found on the forum that I can use the user event. Of course, the second VI works normally when I push the button (boolean) in there to run the event loop. Please can someone explain me how to do this, I am a chemist.

    Thank you.

    You enter the receiver structure of event for the event you want to receive.

    To do this in two screws, you will have to share the user between them event reference.

  • I added the user name to log on to the computer in the active directory after adding, I can't connect to the internal application by using the user name and password...

    Hello

    I added the user name to log on to the computer in the active directory after adding, I can't connect to the internal application by using the user name and password...

    Please give the solution

    What happens when you try to connect?

    If you are able to connect using the different account, try running gpupdate/force.

    If the problem persists, you can open the discussion on:

    http://social.technet.Microsoft.com/forums/Windows/en-us/home

    What is responsible technical issues forum.

  • Is it possible to add a hard drive to a VM running via a script or a program without using the user interface

    I'll try to ask this question clearly, but I ask that read you it carefully, because I can't do a great job of setting out clearly what I'm looking for.

    I know how to create a virtual disk in a batch file or a script.  I know how to have a running virtual machine to detect a newly added hard drive and format it in Linux, BACK, and NetWare. I do not have scripted this part, but I did it manually by adding records via the UI and then by doing the steps manually to make the operating system to detect and format the newly added drive. In each case, these steps are scriptable with the exception of the addition of the drive in the user interface.

    The only way I know to add a new hard disk to a virtual computer running is through the user interface. I don't know in a way that can contain script (for example vmrun or an API call) to make.

    I guess that maybe I can have the virtual machine to go into sleep mode and then add the HDD in the vmx file while the machine is in standby mode, then put the computer to sleep mode, although I have not tested this.

    My question is, ' can a virtual drive be added to a virtual machine running without using the user interface and without put the machine to sleep, or in other words in a script any?

    Have you tried VI SDK?

  • RDP for the CSA MC using the user state

    I'm trying to activate an administrator remote access to the MC via RDP. The rule is triggered, which denies this action is #262. Is there a way to allow access to the box based on user RDP State? I need what the admin group is part of a DHCP pool so I can't nail down to just its address. Documentation is not very clear in the application of States of the user.

    Sorry for the long answer... I hope this helps...

    YES, it is absolutely possible to do. Let's say your MC is in a group called "MC CSA Group. In this group, you have implemented policies. Beside policies are your rule failet etc... So what you need is to create a new strategy (set it to Windows or Linux, if necessary). You then create a new 'Module of rule' that you attach to the new policy that you just created. When you create the new rule Module, you'll see an article that says "steady-state". Select the option "apply this rule module if the following status conditions are met:" click the checkbox beside of "user state:". "» Selection in the State of the user list, click on 'NEW '. Here, you will need to create a user state based on what you want to be able to RDP to the CSA MC. give the new user to the user a state name. Here you have the choice, you can create a specific user (i.e. If only a domain user id must have access), or you can use a domain or Local Group. (I.e. If the Domain Admins need to access the CSA MC to the RDP). Allows that you want to use the group Active directory 'Domain Admins '... "The corresponding to groups" enter the EXACT name of the domain group (Ex: MYDOMAIN\MYGROUP). Click Save. Select the new status for the user, and then save the new rule module. Assign the new rule module to the new policy and implement the new strategy of the Group CSA MC. Finally, you need to navigate the new rule module that you created and add a NETWORK access CONTROL RULE. Create an allow rule that will allow the termsrv.exe as server TCP/3389. No matter what host (you said they were on DHCP. I recommend to create a specific DHCP scope for users, so you can lock it the most). Save the rule and generate.

  • AnyConnect user using the user certificate authentication and LDAP authentication

    Hello

    I'm trying to implement the Anyconnect VPN for my office. Now, I want the user to authenticate the user certificate based (which is install user local system are we) CN value and LDAP authentication. A help how to achieve this requirement. We install Certificate ROOT and INTERMEDIATE Godaddy and even already installed ASA. Also, we have the user certificate installed on each system user to authenticate the user.

    Any help please.

    Hi subhasisdutta,

    This link will certainly help you with the configuration:

    http://www.Cisco.com/c/en/us/support/docs/security/AnyConnect-secure-mob...

    Hope this info helps!

    Note If you help!

    -JP-

  • ODI 11.1.1.7 to connecing HFM 11.1.2.4 failed with the error 'error occurred in driver then the connection to the application of financial management [ApplicationName] on [HFMCluster] using the user name [admin]

    Hi experts,

    I'm trying use odi 11.1.1.7 to load the data in HFM 11.1.2.4 and it failed during the loading in the data store HFMData with the below error message:

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (most recent call changed):
    File '< string >", line 3, in < module >
    at com.hyperion.odi.hfm.ODIHFMAppWriter.loadData(ODIHFMAppWriter.java:240)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)


    com.hyperion.odi.common.ODIHAppException: com.hyperion.odi.common.ODIHAppException: error occurred in the driver when connecting to the application of financial management [IFRSHFM] on [HFMCluster] using the [admin] username.

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:322)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:170)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2472)
    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:47)
    at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:1)
    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:577)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:468)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1930)
    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ 2.doAction(StartScenRequestProcessor.java:580)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
    at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)
    to oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$ StartScenTask.doExecute (StartScenRequestProcessor.java:1073)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: Traceback (most recent call changed):
    File '< string >", line 3, in < module >
    at com.hyperion.odi.hfm.ODIHFMAppWriter.loadData(ODIHFMAppWriter.java:240)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)


    com.hyperion.odi.common.ODIHAppException: com.hyperion.odi.common.ODIHAppException: error occurred in the driver when connecting to the application of financial management [IFRSHFM] on [HFMCluster] using the [admin] username.

    at org.python.core.PyException.fillInStackTrace(PyException.java:70)
    at java.lang.Throwable. < init > (Throwable.java:181)
    at java.lang.Exception. < init > (Exception.java:29)
    to java.lang.RuntimeException. < init > (RuntimeException.java:32)
    to org.python.core.PyException. < init > (PyException.java:46)
    to org.python.core.PyException. < init > (PyException.java:43)
    at org.python.core.Py.JavaError(Py.java:455)
    at org.python.core.Py.JavaError(Py.java:448)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:177)
    at org.python.core.PyObject.__call__(PyObject.java:355)
    at org.python.core.PyMethod.__call__(PyMethod.java:215)
    at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
    at org.python.core.PyMethod.__call__(PyMethod.java:206)
    at org.python.core.PyObject.__call__(PyObject.java:397)
    at org.python.core.PyObject.__call__(PyObject.java:401)
    to org.python.pycode._pyx11.f$ 0 (< string >: 6)
    to org.python.pycode._pyx11.call_function (< string >)
    at org.python.core.PyTableCode.call(PyTableCode.java:165)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.Py.runCode(Py.java:1204)
    at org.python.core.Py.exec(Py.java:1248)
    at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
    ... 19 more
    Caused by: com.hyperion.odi.common.ODIHAppException: error occurred in the driver when connecting to the application of financial management [IFRSHFM] on [HFMCluster] using the [admin] username.
    at com.hyperion.odi.hfm.ODIHFMAppWriter.loadData(ODIHFMAppWriter.java:240)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)
    ... more than 33
    Caused by: com.hyperion.odi.common.ODIHAppException: error occurred in the driver when connecting to the application of financial management [IFRSHFM] on [HFMCluster] using the [admin] username.
    to com.hyperion.odi.hfm.ODIHFMAppConnection. < init > (ODIHFMAppConnection.java:56)
    at com.hyperion.odi.hfm.ODIHFMAppWriter.loadData(ODIHFMAppWriter.java:185)
    ... more than 38
    Caused by: com.hyperion.odi.hfm.wrapper.HFMException: error occurred in the driver when connecting to the application of financial management [IFRSHFM] on [HFMCluster] using the [admin] username.
    to com.hyperion.odi.hfm.wrapper.HFMConnection. < init > (HFMConnection.java:54)
    at com.hyperion.odi.hfm.wrapper.HFMServer.getConnection(HFMServer.java:87)
    to com.hyperion.odi.hfm.ODIHFMAppConnection. < init > (ODIHFMAppConnection.java:50)
    ... 39 more
    Caused by: com.hyperion.odi.hfm.wrapper.HFMException: error loading string resource for the code '103 '. Error code: 1813 (x 715)
    at com.hyperion.odi.hfm.wrapper.HFMDriverJNI.getConnection (Native Method)
    to com.hyperion.odi.hfm.wrapper.HFMConnection. < init > (HFMConnection.java:48)
    ... more than 41

    I've referenced Doc ID 1379286.1 copied below files ODI_HOME\agent\drivers and HFMDriver64_11.1.2.dll renamed to HFMDriver.dll and the file added to the variable 'path ': env

    odihapp_common.jar

    odi_hfm.jar

    HFMDriver64_11.1.2.dll

    msvcr100.dll

    MSVCP100.dll

    And I don't know that HFMDriver.dll is accessible by the studio of ODI (because I can't rename it when ODI studio was opened).

    So can someone please give me some advice? Thank you.

    Eric

    Hi CPR1,.

    Sorry for the late reply (I probably missed the system message), yes I asked the support of oracle and got the answer: KM for HFM 11.1.2.4 module is no longer supported. If I can choose only to customize the interface using the JAVA API or use FDMEE.

    Thanks for all the help, but it seems using ODI to load the data in HFM version 11.1.2.4 + will is no longer supported.

    Eric

  • Export PDF with beaches by using the user interface

    Hello

    Request:

    PDF export with all or Pages in line with the concept of the user interface.

    We need user interface with the concept of dialogue or the Palette.

    So far,.

    myDlg = new Window('palette', 'XXX Export Option');
    myDlg.orientation = 'column';
    myDlg.alignment = 'left';
    //add drop-down
    myDlg.DDgroup = myDlg.add('group');
    
    var DialGroup = myDlg.DDgroup = myDlg.add('group');
    DialGroup.add("statictext", undefined, "Choose Page Nos.");
    DialGroup.orientation = 'column';
    DialGroup.alignment = 'left';
    var myRBAll = DialGroup.add('radiobutton', undefined, "All "); //1
    
    
    var myRBRange = myDlg.DDgroup.add('radiobutton', undefined, "Range");   //2
    var myList = myDlg.DDgroup.add('edittext');
    myList.minimumSize.width = 150;
    myDlg.DDgroup.orientation = 'row';
    
    myDlg.show();
    
    
    with(app.pdfExportPreferences){
    pageRange = mypageRange;
    }
    
    var myPDFFilePath = File("~/Desktop/abc.pdf")
    app.activeDocument.exportFile ( ExportFormat.pdfType, myPDFFilePath, false);
    
    
    myRBAll.addEventListener('click', function(event) {
    });
    
    myRBRange.addEventListener('click', function(event) {
        myList.enableBehavior = true;
    ////~ alert("Clicked RadioButton: " + this.text + "\nValue: " + event.target.value);
    });
    
    

    Screen Shot 2015-10-13 at 13.44.01.png

    Thanks in advance

    Siraj

    Try this,

    var doc = app.activeDocument;

    var myPDFFilePath = File("~/Desktop/abc.pdf")

    If (myRBRange.value)

    {

    app.pdfExportPreferences.pageRange = myList.text;

    }

    on the other

    {

    app.pdfExportPreferences.pageRange = PageRange.ALL_PAGES;

    }

    doc.exportFile (ExportFormat.PDF_TYPE, myPDFFilePath, false);

  • Is it possible to use the directory path of custom profile? (portable sqldeveloper)

    I want to create a portable set SQL Developer, i.e. which also holds the settings profile and connections in a specified subfolder, not to the default location.

    Is there a setting in sqldeveloper/bin/sqldeveloper.conf for example, or elsewhere to replace the path of the profile directory?

    Thank you, Marcus! ...\sqldeveloper\bin\jdk.conf does not appear to have any effect.

    But put the en...\sqldeveloper\bin\sqldeveloper.conf file using the option below works perfectly.

    AddVMOption - Dide.user.dir =

  • Develop the user interface to CS6 Plugin - which produced required Adobe?

    According to the development of the CS6 Illustrator SDK documentation, the only way to achieve platform-independent UI is the use of the flash or flex.

    I have to develop a plugin for AI CS6 for windows and Mac. Adding native controls is restless and too much time.

    The flex mxml seems relatively simple and fast (taking into account the time of development). That's why I chose flex as the UI component for my plugin.

    1. to use flex UI, I'll need to add all of the user interface in a mxml + actionscript compiled into an Extension of the AI (zxp file).

    2. all my business logic will remain in C++ which I believe will be platform independent.

    The SDK documentation confuses me in that all Adobe products are required to develop the flex user interface extension.

    1 adobe Extension Builder 2.1 (to generate the zxp file)

    2 flash Builder 4.5 stand-alone (is different from flex builder )?

    3 CS Creative Suite SDK (what is different from the THE CS6 SDK)?

    Which are optional and that mandatory for flex UI designig of AI plugin?

    I am a developer C++ and new to flex. So please ignore any declaration of amateaur above.

    DataSet wrote:

    Another question, we cannot use MFC / UI for AI plugin Windows activeX controls? We can at least get some help with the user interface infrastructure standard darg-drop.

    CreateWindow() is real pain.

    Yes, you can use MFC, but it makes your windows plugin only.

    QT and wxWidgets have user interface designers and is cross-platform.

  • How to design the user interface of Indesign plugin cs6?

    Design of UI to the custom help c ++ library (SDK) for pluging is a work very tedious .so when I search on the net I found that we can do to help Adobe Creative Suite Extension Builder but I don't know how to use it to develop the user interface for the plugin and how to enable the management of events in this UI. I read a lot of document about it on the net, but they have all created a lot of confusion in my mind if someone can help me to know the steps I have to follow to develop the plugin using the this or whatever technology (action script, JavaScript etc)

    If you want to develop using Creative Suite Extension builder Extensions so I think that this is not the right forum for you. Thanks for posting your specific queries on the below mentioned link hotel

    http://forums.Adobe.com/community/creativesuites/cs_sdk

    To give a brief of how to develop the interface using JS ScriptUI user allows you to develop your user interface, it's a quick and an OS-independent approach to the development of the user interface. The user interface created using JS comes next. You can see the following link for more help on ScriptUI

    http://www.kahrel.plus.com/InDesign/scriptui.html

    I did not much info about the development of the CS SDK, but I can point you to one direction more than the dev called hybrid plugins that the user interface is created in CS SDK and appropriate methods are exposed plugin C++ (improve the script object model) to be called by the code CS for too and for communication between these two modules of code.

    Hope these pointer help you get started.

    Thank you

    -Manan

  • Is there a c# example to use the event handler ExpressionEdit Custom Button control

    TestStand 4.1

    VISUAL C# 2008

    I've added the event handler for ExpressionEdit events as I would any event handler:

    exprEdit.ButtonClick += new NationalInstruments.TestStand.Interop.UI.Ax._ExpressionEditEvents_ButtonClickEventHandler (_ExpressionEditEvents_ButtonClickEvent);

    Then, I create the event handler using the syntax

    public void _ExpressionEditEvents_ButtonClickEvent(NationalInstruments.TestStand.Interop.UI.ExpressionEditButton btn)

    {

    }

    I get the following error when I compile Isaiah:

    Error 1 no overload for delegate matches '_ExpressionEditEvents_ButtonClickEvent' 'NationalInstruments.TestStand.Interop.UI.Ax._ExpressionEditEvents_ButtonClickEventHandler '.

    I guess that means that I don't have the right parameters or types in my statement of event handler, but it corresponds to the object browser.  Any ideas on what I'm missing?

    See my last edition but I think you want your handler to look like this:

    Public Sub exprEdit_ButtonClick (ByVal sender,
    NationalInstruments.TestStand.Interop.UI.Ax._ExpressionEditEvents_ButtonClickEvent
    (e)

  • A security reason to use the 'user account ' instead of the 'administrator' for your personal PC account?

    I need to perform regular tasks in week and maintenance tasks on the weekends, there is no problem if I login as administrator for the week and the weekend.

    If I create 2 accounts: user (weekdays) and Director (weekends), then I run in question switching between the 2 accounts.

    I would like to know what security advantage using user account during the week instead of the administrator account.

    Does anyone have any suggestions?
    Thanks in advance for your suggestions

    I support of many PC, win7 & win8 they all default admin win and a second account with administrator privileges. By default, they all start on the win by default admin account.

    Touch wood I never had no problems, over several years, (some systems are used by children)

    One piece of malware in several years. No installed family safety, children have been educated.

    Some are enterprise systems running 24/7 as they treat the various procedures "out of hours".

  • Do not advance after incorrect answer quiz (quiz uses the user variables to show the wrong answers)

    Hi all

    Long time lurker, first time poster. I hope someone can help me.

    After watching this excellent video about adobe captivate blog "so what were the right answers in any case" I created a quiz with user variables and conditional early action. It displays a red x next to each question answered correctly at the end of the quiz.

    • I created the variable user for each question to a value of 0. On an incorrect answer, the variable would be set to 1.
    • At the end of the quiz is a blade that question and shows a red cross next to each question with a variable set to 1. uses conditional action that is triggered 'upon entry.

    It works, but my problem is when I saw the quiz (in the browser or SWF), on an incorrect answer, the legend of the failure appears but does not really advance the question when I click anywhere or press o. It works well on the correct answers.

    Can I sovle this by adding a next button, but I'd like to understand what I'm doing wrong.

    • Using captivate 6.0.1.240 (copy in box)
    • Windows 7
    • images on the quiz properties and conditional action below

    Any help appreciated.

    Concerning

    Jacob C

    quiz properties.JPG

    conditional action.JPG

    I tested this workflow on 6.1.319 and it works fine. If a little guess in the wild... No 6.0.1.240 around at the moment. Seems strange, because a simple action like your Assign action should normally release the read head. But of course, it's a question slide and they do not always behave as expected. Could you try to replace the action of the beneficiary by a standard tip with 2 statements, like this action:

    • Assign the var_question_1 with 1
    • Continue

    And please, let me know if it works? This could be a difference between the two versions, but not sure at all.

    Lilybiri

  • Use the user specific setting in reports?

    Hi all!

    I have binders of discoverer of N that given to let say 10 different cities. I have users for all cities (10 users various oracle/Discoverer) and each of them should be able to see only the city related to its own data and not others. The reports have a parameter 'city' on them. Instead of the 10N stuff vesrions binders in order to set the correct value for the parameter (and gives access to each user of the 'proper' reports) is otherwise "smarter" to do?

    Published by: TE4I on 20 Οκτ 2010 03:06 μμ

    I have not been asked, but if you use database 11g then maybe you can use "oracle label security.
    Take a look at:
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e10575/tdpsg_securing_data.htm#CHDBIIGG

    Tamir

Maybe you are looking for