KM Entry Points from Java

Hi friends.
I want to access KM Entry Points from Wbbdynpro Java.Is it Possible??.Please help.

Set your top level RID as /entrypoints
Iterate through its child (resources) and store their link RID's in a List.
Check if the following code works
List folders= null;
try
     ep5User = WPUMFactory.getUserFactory().getEP5User(user);
     IResourceContext context = new ResourceContext(ep5User);
     RID pathRID = RID.getRID("/entrypoints");
     com.sapportals.wcm.repository.IResource resource = com.sapportals.wcm.repository.ResourceFactory.getInstance().getResource(pathRID,context);
     if(resource.isCollection())
          folders = new ArrayList();
          ICollection collection = (ICollection)resource;
          IResourceListIterator it = collection.getChildren().listIterator();
          while(it.hasNext())
               IResource res = (IResource)it.next();
               if(!res.isCollection())
                    folders.add(res.getAccessRID());     
     } catch (Exception e)  {
           e.printStackTrace();
     finally
                      //do something
return folders;

Similar Messages

  • Calling a Configuration Entry Point from a C# code module

    Hi,
    Is it possible to call a configuration entry point from a C# code module?
    I have a custom process model which creates some configuration entry points.
    One of the entry points, calls a C# method in a code module to display a Startup screen for the operator.
    In an Editor User Interface, I have added a toolbar, now I want to execute the previous entry point initiated from my C# code to get the Startup screen again when a button is clicked on the toolbar.
    Best regards

    Hi James,
    Thanks for your suggestion, but unfortunely the code hangs after executing the entrypoint, if have tried it in two ways, but both have the same result. Do you have any idea how to fix this.
    Trial 1:
      Engine engine = new Engine(); ApplicationMgr applicationMgr = (ApplicationMgr)engine.GetInternalOption(InternalOptions.InternalOption_ApplicationManager);EntryPoints entryPoints = applicationMgr.ConfigurationEntryPoints; int intIndex = 0;foreach (EntryPoint entryPoint in entryPoints) {    switch (entryPoint.Name.ToUpper())    {        case "TOGGLE ONLINE <-> OFFLINE":            object objEditArgs = System.Type.Missing;           entryPoint.Run(objEditArgs); // Application hangs after executing this command, the entrypoint does not execute!             break;        default:            break;     }
         intIndex++;
    Trial 2:
      Engine engine = new Engine(); ApplicationMgr applicationMgr = (ApplicationMgr)engine.GetInternalOption(InternalOptions.InternalOption_ApplicationManager);EntryPoints entryPoints = applicationMgr.ConfigurationEntryPoints; int intIndex = 0;foreach (EntryPoint entryPoint in entryPoints) {    switch (entryPoint.Name.ToUpper())    {
            case "TOGGLE ONLINE <-> OFFLINE":           // Application hangs after executing next command, the entrypoint does not execute!           applicationMgr.GetCommand(CommandKinds.CommandKind_ConfigurationEntryPoints_Set, intIndex).Execute(true);              break;        default:            break;     }
         intIndex++;
    Best regards

  • File Menu Entry Point from VC

    Hi,
    I am trying to execute a File Menu entrypoint from VC++ code.
    can anyone please suggest how to do the same.
    I have used below piece of code in my project to execyte the entrypoint.
    Here, "Select Model" is one of the File menu item from my process model.
    i wanted to execute "Select Model" menu item from VC++ code. but the below piece of code is executing operation failed message
    I have doubt at my seqFile ptr. can you please suggest how to give process model seq file reference to seqFile ptr here.
            ExecutionPtr            newExecution = NULL;
            TS:equenceFilePtr        seqFile =GetSequenceFile()    ;
            TS:equenceFilePtr        processModel =     NULL;
            TS::EditArgsPtr            editArgs = NULL;
            TS::EditArgsPtr            seqArgs = NULL;
            _bstr_t                    entryPointName ="Select Model";
            TS::IEnginePtr engine = mApplicationMgr->GetEngine();
            processModel = engine->GetStationModelSequenceFile(NULL);
            editArgs = engine->NewEditArgs();
            editArgs->SetSelectedSequenceFile(seqFile);
            TS:ropertyObjectPtr container = engine->NewPropertyObject(PropValType_Container, FALSE, "", 0);
            container->SetValString("sequence", 0x1, "MainSequence");
            _variant_t vtEditArguments((LPDISPATCH)editArgs, TRUE);
            _variant_t vtSeqArguments((LPDISPATCH)container, TRUE);
            newExecution = engine->NewExecution(seqFile, entryPointName, processModel, 0,
                                                TS::ExecTypeMask_InitiallyHidden, vtSeqArguments, vtEditArguments, vtMissing);
            engine = NULL;
    SequenceFilePtr CTestExecDlg::GetSequenceFile(void)
        RuntimeTrace(" TRACE---------CTestExecDlg::GetSequenceFile(void)        \n");//trace
        return mFile;

    I'm assuming you have a process model configuration entry point placed in the File menu via a menu hint and that it works fine from the File menu. If so, the following code will execute it:
        long numInserted;
        TSUI::CommandsPtr commands = mApplicationMgr->NewCommands();
        commands->InsertKind(CommandKind_ConfigurationEntryPoints_Set, mSequenceFileViewMgr, -1, "File", "File, Edit, Execute, Debug, Configure, Tools, Help", &numInserted);
        commands->GetItem(0)->Execute(VARIANT_TRUE);

  • Programmatically selecting Test UUT as entry point from LabVIEW

    Hi,
    Anne here. I am currently develping a user interface in LabVIEW that call the TestStand sequence. Is there a way for me to programaticallys set the entry point to be Test UUT? I used the Run method from the IseequenceFileViewMgr class but it says there that it runs the sequence without a process model entry point. My sequence will always run as Test UUT mode. Is there a way for me to do this? I saw in the help files that there is a EntryPoint Class in Teststand with a Run Method, but I can't seem to find this method in LabVIEW. 
    How can I automatically execute my sequence to run in Test UUT once I call and run the sequence in LabVIEW? 
    Thanks for the help!
    Cheers! 
    Anne
    Solved!
    Go to Solution.

    Hi Roderic,
    Thanks so much for the help! It worked.
    Cheers!
    Anne

  • GetCommand does not return my configuration entry points?

    If I'm in a client sequence file and I want to dynamically execute my own configuration entry point in the process model what is the best way to accomplish that?
    I am trying to get the application manager through an activex step using Engine.GetInternalOption(InternalOption_ApplicationmManager) and then I choose the GetCommand method with CommandKind_ConfigurationEntryPoints_Set.  It will only use an index for one of the 3 default configuration entry points (Report Options, Model Options or Database Options).  It throws an index out of range if I try to get my own.  This is from James Grey's post here: http://forums.ni.com/t5/NI-TestStand/Calling-a-Configuration-Entry-Point-from-a-C-code-module/td-p/1... (I'm not in .NET though.  I just want to use activex steps in TS).  The 3 default ones work perfectly.  It's only when I try my own that I've added.
    Any thoughts?
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Solved!
    Go to Solution.

    I can call it directly as well but it doesn't exhibit the behavior I want.
    Basically we have a process model with a Configuration Entry point called About Test.  This calls a sub sequence which has 2 steps in it. The first step is a callback and the second is a VI call.  The VI displays a splash screen with our company logo, disclosure and the text (usually a software part number) returned by the callback.
    What I want to do is put the SequenceFileLoad callback in our clients and have a step in there that will invoke the About Test entry point upon sequence load.
    The series would look like this:
    SequenceFileLoad(client)>>About Test Configuration Entry Point(model)>>SubSequence(model)>>About Test Model Callback (client)>>VI Splash Screen(model)
    All of this would be a lot easier with a (ProcessModelFileLoad): http://forums.ni.com/t5/NI-TestStand-Idea-Exchange/ProcessModelFileLoad-Engine-Callback/idi-p/225016...
    So back to my point about it not working correctly.  It doesn't seem to be invoking the model callback when I use New Execution or call the sequence directly.
    Also, what is the explanation for my config entry points not showing up at all in the list?  it seems that function should grab all config entry points in the model..... 
    Thanks a bunch,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Help me in finding the entry points in the source code of java.....

    hi...
    I want to design a compilation server and apply some of the optimization technique's like inlining, SSA and others.
    So i require to find the entry points in source code from where i can include my code and check the performance of the program at level it is performing .
    Please help in this problem....
    and i also like to know what are hot methods in java context?

    BigDaddyLoveHandles wrote:
    Do you even know Java? Why not just let the HotSpot optimization do its thing?Good point, I would try either of two things.
    If you have a good understanding of Java internals and are confident you could optimise code better, I suggest you contribute to the OpenJDK and we can all benefit.
    Otherwise I suggest you try using the optimisation built into the compiler and the JVM.
    Note: the JVM optimises the code dramatically in ways most normal people won't have thought possible.
    The compiler doesn't optimise the code so much as it leaves this job to the JVM.
    Two examples;
    - say you call a small method often. The JVM can inline this method for you. (the same way a compiler would) However say this method can be over-ridden and later your program calls a different implementation, it can inline both methods even if the new method in a new class didn't exist when the first method was inlined.
    - In a 32-bit JVM, 32-bit registers and references are used. In a 64-bit JVM 64-bit registers and references are used without needing to recompile the code. However there is a third option of using 32-bit references in a 64-bit JVM. In this case, it assumes the bottom 3 bits are always 000 so it shifts the reference down 3 bits allowing you to access 32 GB using 32-bit references. Again, you can use this with libraries which were compiled before 64-bit JVMs were available.

  • Reading Registry entry from Java

    Dear experts,
    I need to read the registry entry's value "HKEY_CURRENT_USER\Control Panel\International\sShortDate"
    from Java.
    Will anybody help?
    Thanks for future response
    Unique

    Do you really think it is a good idea to tie a program written in a language whose main
    strong point is being platform-independent to a specific platform just to get a date format ?
    You might want to take a look at http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormat.html
    regards
    Holger

  • Error message when clicking on links from thunderbird: Firefox.exe – Entry Point Not found

    When I click on any link in a Thunderbird email message I get the error message:
    Firefox.exe – Entry Point Not found
    The procedure entry point ?DllBlocklist_Initialize@@YAXXZ could not be located in the dynamic link library T:\PQligP sFuvy (X86)\pJPpSox HneiCFv\GwCMqTQ.Oqt.
    I tried uninstalling Firefox 27 completely and reinstalling it, and the error is still there. When I uninstall V27 and install the older V26 the error disappears. Id there an issue with V27 trying to work with links from Thunderbird?
    I am on a laptop running Windows 8.1 with all current downloads.

    Thanks for the reply - as best as I can tell it seems to be some kind of incompatibility between Thunderbird V24.3.0 and Firefox V27. If I install Firefox V26 then everything works as it should. I haven't tried installing a previous version of Thunderbird to see if that makes a difference.

  • I can't get my emails because I keep getting the message The Procedure entry point PORT_LoadLibery From Origin could not be located in the dynamic link libery ect

    How do I stop getting this message to come up and be able to get my mail. The Procedure entry point PORT_Load Library From Origin could not be located in the dynamic links library
    == This happened ==
    Every time Firefox opened
    == today

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Restart the programme all should be well
    In case that your OS is (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Now paste it in the folder  C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Restart the programme, it should not display that message, it should be clear.
    Good Luck

  • Pass data from configuration entry point

    I have a need to post data from a Configuration Entry Point during a Test UUTs execution. I would like to update a parameter in my test sequence, using the configuration entrypoint if the test sequence is actively running in Test UUts. If it's not active, I would update a .ini file which gets read by the process model when a new Test UUTs entrypoint is started.
    My first guess has been to determine if the TestUUTs sequence is active, and I have tried using the PropertyObject RunState.ProcessModelClient.IsExecuting, but I just realized the Configuration Entry Point is always running in the process model.
    Everything I have read indicates that most Configuration Entry Points just write data to a file. Am I doing something fundamentally wrong?
    How do i determine if my sequence file is being executed with TestUUts?
    Thanks for your help. Woefully confused,
    Brian

    hi bce,
    [ If I used a station global, how would my changes be saved? Can you do this programmatically? Is there a better way? ]
    When Teststand closes, it automatically saves the StationGlobals. You would use PropertyObjectFile.SaveFileIfModified if you needed to force the save. But you shouldn't really need to do this as the latest value is available to all sequences and sequence files.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to create an ODBC entry from Java

    From Java application, how can I create an ODBC entry in Ms Windows client?

    I know of two ways you could do this. One is very dangerous, but I will describe it here. ODBC DSN's are created using a GUI application from within the Windows Control Panel. The GUI application manages a set of files found in the Windows directory. You can find them if you search for the ODBC. You should find odbc.ini and odbcinst.ini. These are text files, and you can view there structure using notepad. A Java program could open a stream and append whatever information you want to into these two files. The danger is that if you do it wrong, you will corrupt ODBC for all applications, so be very careful with this method.
    The 2nd method, as I described above has been discussed (to death) within this forum. Just spend a little time searching, and I know you will find what you need to implement using that method. This is the method I would recommend using.
    Good Luck,
    Joel

  • Transport KM rooms as entry point for broadcasting from Portal 7.01 to Portal 7.4 possible?

    Hallo together,
    is it possible to transport entry points (for broadcasting) from one portal to another?
    For our upgrade BW 7.01 to BW 7.4 we want to transport the KM Content (including the rooms).
    Transporting the rooms and room structures is no problem, but the transported rooms are not visible in ENTRY POINTS -> My Room Folders.
    Only rooms that are newly created in the 7.4 Portal are visible in that folder.
    Is there are way to make the transported rooms also visible there?
    Thanks and best regards!
    Christian

    Hi Ramakrishna!
    I know that WP-PI 6.00 will work fine with R/3 4.6C but my doubt is if I can use WP-PI 6.00 (which is
    EP 6.00 plug-in) to connect the R/3 4.6c with an EP 7.00. 
    I didn´t find anything like WP-PI 7.00 in SAP Marketplace. I´ve already read the note you pointed out but it refers to EP 6.00. It also says you can use WP-PI 6.00 por EP 5.0 or Sap Workplace. But can I also use it with EP 7.00?
    Thanks for your help.
    Fernando

  • Running windows 7 64 I get this error from downloader.exe The procedure entry point ?GetRegisterInfo@@GXPADHOH@Z could not be located in the dynamic link library transport_dll.dll

    I keep getting this message from downloader.exe running Windows 7 64 bit O/S each time I start Firefox 3.6.9. The procedure entry point ?GetRegisterInfo@@GXPADHOH@Z could not be located in the dynamic link library transport_dll.dll. I have uninstalled Firefox and reinstalled it on a number of occasions but this message box persists. I can still use Firefox by just clicking the message away but it is an annoyance when starting the program. Thank you for any info you can provide me on this.

    Entry point errors can often be fixed by deleting the offending dll, then repairing the component it is part of. If that doesn't help read on...
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
    Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

  • OEM: error connecting to database: java.exe - Entry point not found

    Greetings all. I have oracle 11g installed on a system and wanted to also install Enterprise Manager from 10g. The installation went smoothly, but when I try to connect to a database using OEM, I get an error stating "The procedure entry point longjmp could not be located in the dynamic link library orauts.dll.
    I've seen many threads indicating that environment variables are not set correctly, but regardless of which installation I specify for ORACLE_HOME and PATH, I get this error. Any suggestions would be greatly appreciated. Thanks in advance for your responses.
    Roland

    See this thread.
    Re: Error while starting the report server

  • Entry points for integrating Openoffice writer into Java swing application

    I googled the web and also took a look in below 2 web sites, just seems it is very difficult to get an entry point for me to try my frist application with open office writer integrated with my swing application.
    http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OpenOffice.org_Developers_Guide
    http://api.openoffice.org/
    What my question is:
    1. Where can I get the completed jar files for using the open office writer api for my java application?
    2. Is there any step by step practical example for using the api? It seems that the above links are quite messy and difficult to find an entry point to get a start, but just contain many segments separated through out the web site.
    Thanks much for any suggestion.

    Information regarding OOo is not on Sun websites, or in these forums. There may be 3rd-party sites that have some info regarding OOo use.

Maybe you are looking for

  • Header Text in Shopping Cart

    Hi experts! We developped a Webdynpro ABAP for creating shopping carts in a more effective way. This ABAP has a header & item information. With a function module we transfer all data to SRM5.0 standard shopping cart. Now my question:  How can we tran

  • Set output directory for reports10g

    Hello, Is there a way to set the output directory for reports (10g) of REPORT_DESTYPE=FILE run from the web. Currently they all go to ORACLE_HOME\j2ee\home. thanks

  • Pernr change type field

    Hi, Does anybody know if is possible to change type field PERN ?? We need this field were type char, not type numc. Thank you in advance, Marta.

  • Where can i find my files that i transferred from my old computer

    I recently purchased a new mac book pro, and using the migration assistant to transfer over my whole itunes library because i have a lot of songs and dont want to have to add them manually all over again. I transfered the music files and the migratio

  • IDM 11g AD connector OU Placement based on UDF fields

    Good morning everyone! I'm currently using the 11.1.1.3.0 distro of the Oracle Identity Manager and have the need to establish OU placement within our AD based on user data. Our ideal setup is as follows: User 1 has Field 1 = A Field 2 = B So he belo