API / method Java call to check if the page is placed in the fact

Hi all

Will there be any appeal of the STANDARD API to check if the page is already placed in the site tree? Ran a search on documentation and could not find. Quick entries will be really useful.

Thank you.

Hello Mohan,

See this other thread where someone asked the same question recently:

Re: get a page with java ncode

See Phil recommending using TreeManager footnote.

-Mark

Tags: Fusion Middleware

Similar Questions

  • vCD API - how to call updateDisks to resize the disks of a virtual machine?

    Had to think about where to post this question; vCD forums or here. I chose here because it's the API specific vCO for vCD and not versions of Java/.NET working team of vCD.

    I'm going to build a workflow to allow my team to change the size of a disk. This disk is part of a virtual machine that vCloud Director 'property '. I heard several times to not only change the size of the disk in vCenter as then vCD runs a risk of being confused. I have reviewed the vCO API for the vCD and found that the VclVM object contains the set of disks (VclVM.disks) as a property. This returns an array of VclVirtualDisk. There is a method VclVM.updateDisks (VclVirtualDisk []), which seems to do exactly what I want. Update disk sizes (could be used to add new facilities). I have a bit of a problem to find how to call it from my point of departure.

    // selectedDisk: a string selected by the user
    // selectedDiskSize: a number input by the user
    
    var disks = virtualMachine.disks;
    
    for (var i = 0; i < disks.length; i++)
    {
    
         if (selectedDisk == disks[i].itemResource.elementName.value)
         {
              if (selectedDiskSize <= disks[i].hardDiskSize)
              {
                   throw "New disk size (" + selectedDiskSize + ") must be larger than original disk size (" +
                        disks[i].hardDiskSize + ")";
              }
     
              disks[i].hardDiskSize = selectedDiskSize;
         }
    }
     
    virtualMachine.updateDisks(disks);
    


    'HardDiskSize' the call throws an error. It is a property read-only and is not a method. The API documentation don't do a good job to define all the methods where I can build a new VclVirtualDisk object. or clone an existing one.

    My thought was to update the existing structures of the disc and then pass them to the updateDisks (...) method. Yes, change an internal structure of an object from the outside is not something I should be doing.

    Any suggestions on how to "clone" this VclVirtualDisk object to change?

    If someone of the vCD of the vCO API team is looking, even updateDisks (...) method will do what I want? Or I have to watch fall down to Java to achieve?


    Thank you!

    If I remember correctly the ability to change the size of an existing drive is not available in API vCD 1.01.

    Christophe.

  • Enable Java script is checked, but the site says that it is not authorized

    After getting the following message when you try to log in my Bank I checked FireFox\Tools\Options\Content and found that the box to enable java script has BEEN verified. FireFox is acting as if she is not allowed. How to solve this?

    Well, it is finally resolved. Thank you all for the help. A technician from one of my brokerage sites, which had a link blackened think there might be an announcement on. He clearly had me on history and cookies. then led me to a link to reset FireFox. After resetting everything works AND I have not lost all bookmarks or log in information. It's a relief to have FireFox again.

    I especially thank Cor - el and the great search engine in the FireFox support site. I'm pretty sure I'm going to need you all again some time; but for now I can just go on my work.

  • The Java Exception: java.lang.reflect.InvocationTargetException: during the java.lang.reflect.Method .invoke call.

    Local channel & xquery = 'Test Apache';

    Local chain & xquery1 = "test map";

    Local JavaObject & XSSFWorkbook = CreateJavaObject ("org.apache.poi.xssf.usermodel.XSSFWorkbook");

    Local JavaObject & jClass = GetJavaClass ("java.lang.Class");

    Local JavaObject & jCompileArgTypes = CreateJavaObject ("java.lang.Class []" & jClass.forName ("java.lang.String"));

    Local JavaObject & jCompileMethod = & XSSFWorkbook.getClass () .getDeclaredMethod ("createSheet", & jCompileArgTypes);

    Local JavaObject & sheet1 = jCompileMethod.invoke (& XSSFWorkbook, CreateJavaObject ("java.lang.Object [] ' and xquery"));

    Local JavaObject & Sheet2 = & jCompileMethod.invoke (& XSSFWorkbook, CreateJavaObject ("java.lang.Object []", & xquery1));

    Local JavaObject & int = GetJavaClass ("java.lang.Integer");

    Local JavaObject & IntType = GetJavaClass ("java.lang.Integer"). TYPE;

    Local JavaObject & jIntArgTypes = CreateJavaObject ("java.lang.Class []", & IntType);

    Local JavaObject & jcreateRow = & sheet1.getClass () .getDeclaredMethod ("createRow", & jIntArgTypes);

    Local number I & k;

    & k = 1;

    For & i = 1 to 40000

    Local JavaObject & rank = & jcreateRow.invoke (& sheet1, CreateJavaObject ("java.lang.Object []" & i));

    Local JavaObject & jcreatecell = & Row.getClass () .getDeclaredMethod ("createCell", & jIntArgTypes);

    Local JavaObject & cell = jcreatecell.invoke (& Row, CreateJavaObject ("java.lang.Object []" and k));

    Local JavaObject & setCellValue = cell.getClass () .getDeclaredMethod ("setCellValue", & jCompileArgTypes);

    Local JavaObject & cellvalue = setCellValue.invoke (& cell, CreateJavaObject ("java.lang.Object []", "interesting it's nice"));

    -End;

    REM JavaObject Local & autoSizeColumn = & sheet1.getClass () .getDeclaredMethod ("autoSizeColumn", & jIntArgTypes);

    REM JavaObject Local & autoSize = autoSizeColumn.invoke (& sheet1, CreateJavaObject ("java.lang.Object []", 0));

    Local JavaObject & out = CreateJavaObject ("java.io.FileOutputStream", "/ psoft/fs9devt/UserUpload/ap/comments12.xlsx", True);

    & XSSFWorkbook.write(&out);

    & out.close ();

    get error below when running the code above through driving the demand, but he worked for 1 print the line, but when it's on a loop, it throws this error.

    The Java Exception: java.lang.reflect.InvocationTargetException: during the java.lang.reflect.Method .invoke call.

    I came across the same thing as you. I did a lot of experimenting and found it works:

    var result = (function() {
        var ReflectiveArray = java.lang.reflect.Array;
        var CreateSQL = Packages.PeopleSoft.PeopleCode.Func.CreateSQL;
        var columns = ReflectiveArray.newInstance(java.lang.Object, 1 /* number of selected columns */);
        var results = [];
    
        SQL = CreateSQL("SELECT OPRDEFNDESC FROM PSOPRDEFN WHERE ROWNUM < 10");
        while (SQL.Fetch(columns)) {
            results.push(columns[0]);
        }
    
        return results.join();
    
    }());
    

    He seems to have been a problem with translation between the JavaScript array and the Java array Object []. I solved this by using java.lang.reflect.Array.newInstance to create a new instance of the object [1].

    Next issue to deal with is your memory problem. In the error message, it seems to have something to do with the Garbage Collection and a lot of temporary objects. You declare you line and cell by using the var =... line and cell var =...? If not, then they are in the global namespace and properties of the global object. At the end of each iteration of the loop, use delete line and delete cells. If you declare the var, then set their value null at the end of each iteration. Based on your code, I expect each time through the loop would decrease the number of references, but I saw where setting explicitly using null. The only other temporary object I see is the value in the table. Just for fun, I added this at the end of each loop, and he ran very well:

    columns[0] = null;
    
  • How to check if the API can connect to the FM band?

    Hi in my FMClient I the following method to check if the API is alive: bool::IsConnected() {return F_ApiAlive() > 0 ;} FMClient Once I connect to FM with F_ApiStartUp the IsConnected method returns true. However, if the user closes the application FM then continue this method always returns true. How can I check if the FM application is alive and the FMClient is connected with it? Should I run and test an API call? for example try to get active in the current document, or something else?

    Yes, the single thread is the normal state. There could be some tricks around it, however. You need to ask someone with the expertise of programming a little more. I would like to ask the question here:

    Yahoo! groups

    Russ

  • the menu item run method not called

    Eclipse SDK Version: 3.4.1

    BlackBerry JDE plugin for Eclipse Version: 1.0.0.50

    BlackBerry JDE component package Version: 4.5.0.14

    I added a menu item to the contacts list. I would like to get the context when the user clicks the menu item, but the run method is not entered. When the user clicks the item in the menu the main routine is entered with correct arguments. Should not called run with the context method? No exception is thrown.

     

    Import net.rim.blackberry.api.menuitem.ApplicationMenuItem;
    Import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;
    Import net.rim.device.api.system.Application;
    Import net.rim.device.api.system.ApplicationDescriptor;

    SerializableAttribute public class BwMain extends Application {}
    private static final long APP_ID = 0xf46f5a7867d69ff0L;
    private static final String ARG_LAUNCH_BW = "1";

    public BwMain() {}
    long menuItemLocation = ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST;
    ContactsBwMenuItem menuItem = new ContactsBwMenuItem();
    ToolBarMenuButton.AddMenuItem (menuItemLocation, ARG_LAUNCH_BW, menuItem);
    System.Exit (0);
    }

    Public Shared Sub main (String [] args) {}
    If (args == null | args.length == 0) {}
    BwMain bwMain = new BwMain();
    bwMain.enterEventDispatcher ();
    }
    else {}
    System.out.println ("App launched from the menu");
    }
    }

    private public static Sub ToolBarMenuButton.AddMenuItem (long location, String argOfAppl, ApplicationMenuItem appMenuItem) {}
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor ();
    app = new ApplicationDescriptor (app, new String [] {ARG_LAUNCH_BW});
    amir.addMenuItem (location, appMenuItem, app);
    }

    private static class ContactsBwMenuItem extends ApplicationMenuItem {}
    {ContactsBwMenuItem()}
    Super (20);
    }

    public String toString() {}
    return "PC connection";
    }

    public Object execute (object context) {}
    try {}
    System.out.println ("input run method");
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    Returns a null value.
    }
    }
    }

    You call system.exit() in the Builder before entering the EventDispatcher. I'm guessing that you add the menu item, but leave the application, and when the menu item is called it is more a reference to the context of the application and decides not to continue. The menu item will not remove itself when the application closes.

  • How to call the method of bean of support on the component date. MinValue

    Hello

    I have a method in bean

    {} public void sample()

    Set the entry code

    }

    I want to call the sample method when I click the date component. MinValue in .jsff

    Right now using the < af:clientListener method = 'onClick' type = "click on" / > inside the < af:inputDate > element

    < af:resource type = "javascript" >

    function onClick (clickEvent) {}

    Alert ("hiii");

    Here, I want to call the sample method by clicking on date. MinValue

    }

    < / af:resource >

    Any Solution would be Appreciable

    Try to follow this:

    -Inside af: inputDate add clientListener and serverListener

    
         
         
    
    

    The serverListener method must map to a function in backbean

    -in java script method write this

    function onClick(event)
    {
      var source = event.getSource();
      AdfCustomEvent.queue(source,"serverListenerOperations", {}, false);
    }
    
  • Y at - it no vCloud API Java, who can give me the pool of the external IP address list for a particular network of org. ?

    Hello

    I've implemented vCloud Director on my network, when I create an organization network that is NAT-Routed I give him a pool of external IP addresses.

    My Question is that when an organization network is deleted what is happening with this pool of IP, how can retrieve us these IP address.

    Y at - it no vCloud API Java, who can give me the pool of the external IP address list for a particular network of org. ?

    Kind regards

    SachinJ

    Check the examples 6-10 and 6-11 in the vCloud API Programming Guide ("' an Administrative organization network overview").

    Although the 6-11 is abbreviated, 6-10 seems to suggest that the AllocatedIpAddresses element may contain what you are looking for.

    http://pubs.VMware.com/vCloud-API-1/vCloud_API_Guide_Admin.8.7.html#1039433

    I don't know how the Java SDK surfaces this information.

  • Is there a public api Api to check that the cursor is open or close for blackberry 6.0?

    Hi all

    is there an api to check the slider is open or close for Blackberry JDE 6.0.

    Thank you

    Navneet Gupta.

    Hi you

    First of all "accept the solution please...." »

    See this link for more information...

    http://www.BlackBerry.com/developers/docs/4.6.0api/NET/rim/device/API/system/sensor.html

    Net.rim.device.api.system import. *;
    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.RichTextField;
    Import net.rim.device.api.ui.container.MainScreen;

    SerializableAttribute public class SensorDemo extends UiApplication
    {
    public SensorDemo()
    {
    Screen SensorDemoScreen = new SensorDemoScreen();
    pushScreen (screen);
    }
    Public Shared Sub main (String [] args)
    {
    SensorDemo app = new SensorDemo();
    app.enterEventDispatcher ();
    }
    class SensorDemoScreen extends screen implements the SensorListener
    {
    private RichTextField statusField1;
    private RichTextField statusField2;

    public SensorDemoScreen()
    {
    setTitle ("sensor Demo");
    statusField1 = new RichTextField();
    statusField2 = new RichTextField();
    Add (statusField1);
    Add (statusField2);

    Check for the presence of a sensor
    Boolean hasFlipSensor, hasHolsterSensor, hasSliderSensor;
    hasFlipSensor = Sensor.isSupported (Sensor.FLIP);
    hasHolsterSensor = Sensor.isSupported (Sensor.HOLSTER);
    hasSliderSensor = Sensor.isSupported (Sensor.SLIDE);
    statusField1.setText ("Flip:" + hasFlipSensor + "\nHolster:")
    + hasHolsterSensor + "\nSlider:" + hasSliderSensor + "\n"); "."
    Check the status of a sensor
    If (Sensor.isSupported (Sensor.SLIDE))
    {
    int sliderState = Sensor.getState (Sensor.SLIDE);
    Switch (sliderState)
    {
    case Sensor.STATE_SLIDE_CLOSED:
    do something if the cursor is closed
    statusField2.setText ("cursor is closed.");
    break;
    case Sensor.STATE_SLIDE_IN_TRANSITION:
    do something about cursor in transition
    statusField2.setText ("Slider is between open and closed.");
    break;
    case Sensor.STATE_SLIDE_OPEN:
    do something if the cursor is open
    statusField2.setText ("slider is open.");
    break;
    by default:
    statusField2.setText ("cannot determine the State of the cursor from.");
    }
    }
    Listening to changes to a sensor
    Sensor.addListener (Application.getApplication (),)
    Sensor.SLIDE);
    }

    implementation of the SensorListener.onSensorUpdate)
    change cursor only checks
    ' public void onSensorUpdate (int sensorID, int update)
    {
    If (sensorID is Sensor.SLIDE)
    {
    If (update is Sensor.STATE_SLIDE_OPEN)
    {
    do something if the cursor is now open
    statusField2.setText ("Slider is now open.");
    }
    ElseIf (update == Sensor.STATE_SLIDE_IN_TRANSITION)
    {
    do something if the cursor is now transitioning
    statusField2.setText ("Slider condition changes.");
    }
    ElseIf (update == Sensor.STATE_SLIDE_CLOSED)
    {
    do something if the cursor is now closed
    statusField2.setText ("Slider is now closed.");
    }
    }
    }
    }
    }

    .................

    Manoj Kumar bakkar

  • which method is called when the screen has lost focus but stays on blackberry?

    Hello

    I want to know in which method is called when the screen has lost focus, but always visible BlackBerry?

    For example, a screen is in the foreground and we disply dialog box so that the screen is visible but not to focus, therefore, at this time that methos called when we close this dialog box?

    Please, help me please please

    Override the following methods in your class to screen according to your needs

    1. when the screen button to the stack

    Call

    onDisplay() or

    onUiEngineAttached(boolean attached) - so attached is true then your screen is at the top of the screen

    2. When you are in a backlight and the lcd screen turns off to your state of rest and turns on again when you actively use this form

    call

    onVisibilityChange(boolean visible) - if visible is set to true, then you get the focus when the lcd display turns

    3. when your application moves to the background by clicking the red end button (i.e. without quiting the app, yet yours is active in the background)

    call

    onExposed() - when your application comes to the foreground of the background or during any type of screen that is in the top get popped

    & call

    onObscured() - when your application moves to the background, or when a screen pushed above your current screen more

  • How to check if the device is in a call

    How can I check if the device is currently in a call? as is a call active?

    Thank you.

    Try this:

    PhoneCall call = Phone.getActiveCall ();

    If call! = null, there is a call in progress.

  • [ADF, JDev12.1.3] Passage of a called taskflow val: "FacesCtrlAttrsBinding cannot be cast java.lang.Long" triggers during the passage (a SetPropertyListener) a bind var. why...?

    Hallo,

    in my page, I have a table based on VO istance.

    I open a workflow in the dialog box when the user clicks a button.

    I spend a whole param through the SetPropertyListener in the button configured this way...

    In the called workflow, I read the param in a bean managed through this code...

    Long protocol = (Long) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("protToOpen");
    
    

    And everything works fine.

    The is problematic if I change the From the SetPropertyListener property set with a bind var....

    ... I have also display in an inputText.

    (runtime)

    (designtime)

    The framework throws this exception...

    oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast in java.lang.Long

    I don't understand why it only works when the From of the SetPropertyListener property is configured with a fixed value, but not when I use the link vars.

    You could you kindly help me find the error?


    Thank you

    Federico

    If your value not be #{bindings.prot.inputValue} instead of #{bindings.prot}?

  • java.sql.SQLException: problems with the native/lack of loading methods library

    Hi all

    Please let me know how to fix the exception "java.sql.SQLException: problems with the native/lack of loading methods library: no ttJdbc in java.library.path".

    Thank you
    Prabhu

    Published by: Nina Prabhu on November 20, 2012 02:12

    Hi Prabhu,

    Probably, you must specify the LD_LIBRARY_PATH variable. Like the following:

    export LD_LIBRARY_PATH=$TIMESTEN_HOME/ttoracle_home/instantclient_11_1
    

    Best regards
    Gennady

  • How to check if a link located in a folder called links next to the document?

    How to check if a link located in a folder called links next to the document?

    myDocument var = app.activeDocument;

    for (var myCounter = 0; myCounter < myDocument.allGraphics.length; ++ myCounter)

    {

    var myGraphic = myDocument.allGraphics [myCounter];

    If (myGraphic.itemLink.status! = LinkStatus.linkMissing)

    {

    If (myGraphic.itemLink.filePath is outside the folder 'Links' which lie next to this document)

    {

    }

    }

    }

    Main();
    
    function Main() {
        var i, link,
        doc = app.activeDocument,
        linksPath = doc.filePath.fsName + "\\Links",
        links = doc.links;
    
        for (var i = 0; i < links.length; i++) {
            link = links[i];
            if(link.status != LinkStatus.linkMissing) {
                if (File(link.filePath).parent.fsName === linksPath) {
                    $.writeln(i + " - " + link.name + " - is inside 'Links' folder");
                }
                else {
                    $.writeln(i + " - " + link.name + " - is outside 'Links' folder");
                }
            }
        }
    }
    
  • What api / methods exist to emulate the portal administration console?

    What api / methods allow to imitate the portal administration console and create a folder under the Community_Repository and allow it?

    Thank you

    http://download.Oracle.com/docs/CD/E13155_01/WLP/docs103/Javadoc/com/BEA/content/package-summary.html

Maybe you are looking for

  • Satellite M70 works corsair DDR2-667 of Pentecost?

    Hello... I have a Satellite M70-244. I find a big offer for two corsair DDR2 - 667 2 * 1 GB module. I won't know if they are working my laptop whit... I know the manual say works only whit DDR2-533 but I think 667 works too unless the laptop see the

  • LaserJet CP1025NW: Power paper LaserJet CP1025NW problem

    I installed a new LaserJet CP1025NW yesterday and it was working fine. This morning the user was printing and paper began to go through the printer, he proved on the side and stuck. The user removed the book and found a small piece of black plastic t

  • How to print to a file

    I printed a document and select 'print to file '. Now, I want to send the file to the printer which is attached locally. How can I do? I tried dragging the file to the print queue of the printer, but was told that I could not do that. I tried to use

  • ITunes cannot run because some of its required files are missing.

    I have been using itunes on my pc for at least 5 years, but now when I try to open it I get the above message and tells me to reinstall itunes. How this happened and what I do?

  • hard disk1 failure error ID-Q0DXS8-6HM6S4-XD7X0K-60TC03

    Hi there help me please, I have laptop HP M6. ENVY. At startup, it shows, your pc ran into a problem then the auto repair starts and he's never going to. I tried system tune up and tune up fails and the failure ID is Q0DXS8-6HM6S4-XD7X0K-60TC03 pleas