Get the settings using API

Hi all

I can't get the settings of resource by using APIs. Please find the below code snippet.

tcITResourceInstanceOperationsIntf itOptf = (tcITResourceInstanceOperationsIntf) Platform.getService (tcITResourceInstanceOperationsIntf .class);
Long ITResourceKey = null;
HashMap ITResource = new HashMap();
ITResource.put ("TI Resources.Name", "EBS-HRMS-APPS12");
Logger.Debug ("IT resource parameters set");
String usr = null;
String password = null;
String url = null;
resourceSet tcResultSet = itOptf.findITResourceInstances (ITResource);
for (int i = 0; i < resourceSet.getRowCount (); i ++) {}
resourceSet.goToRow (i);
ITResourceKey = resourceSet.getLongValue ("TI Resources.Key");
}
Logger.Debug ("IT Resource Key:" + ITResourceKey);
tcResultSet resourceParameters = (ITResourceKey) itOptf.getITResourceInstanceParameters;

for (int i = 0; i < resourceParameters.getRowCount (); i ++) {}
resourceParameters.goToRow (i);
If (resourceParameters.getStringValue("IT_Resource_Type_Definition.IT_Resource_Type_Parametr.Field_Name").equals ("JDBC URL")) {}
URL = resourceParameters.getStringValue ("TI Resource.Parameter.Value");
}
ElseIf (resourceParameters.getStringValue("IT_Resource_Type_Definition.IT_Resource_Type_Parametr.Field_Name").equals ("password of Admin")) {}
password = resourceParameters.getStringValue ("TI Resource.Parameter.Value");
} else if (resourceParameters.getStringValue("IT_Resource_Type_Definition.IT_Resource_Type_Parametr.Field_Name").equals ("Admin ID")) {}
usr = resourceParameters.getStringValue ("TI Resource.Parameter.Value");
}
}


Please let me know if something is missing.

Thank you
Bhavana

Use:

Computer SCIENCE resources kind Parameter.Name

Instead of

Contact name the resource Type Definition.IT Type TI Parametr.Field

Tags: Fusion Middleware

Similar Questions

  • I can't get the settings that fit my monitor

    Original title:! 6:9 screen resolution

    I have a 20 inch screen wide screen that, once past that says the best option because it is 16:9. But when I go into "Customize" then "display settings" on my computer, I can't get the settings that are appropriate for the monitor. The image looks stretched when on other parameters, what should I do?

    You can see if your graphics driver needs to be updated.
    Verify that your computer manufacturer, they must have a Web site for various topics. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • How can I get the 'handles' using the Radial filter in Lightroom 6

    How can I get the 'handles' using the Radial filter in Lightroom 6

    Please press 'H' as advised by dj_paige.

  • How do I get the settings of the source to go after effects

    Hi all

    Premiere Pro last CC - video editing raw R3D (RED). I applied a quick look in the settings of source code in first (basically just a few curves and desaturation) and when I send to After Effects, it gives me the raw file, but with no applied look. When I jump to first of the clip is more the look asked.

    Anyway to get the settings from the source to transfer to AE or be re-aplied when she returns?

    Thank you!

    RS

    www.robertoserrini.com

    Before you send the clip to the AE, click Save for MDM in the Source settings.

  • How to get the path (using &lt; input type = "file" / &gt;)

    Hello world

    I create a HTML form that has an entry of type = "file".  This will give you a dialog box browse for your user to search for a file on the operating system.

    And my code:

    function handleFileSelectForMyShop (evt)
    {
    var blnFileReaderSupported = false;

    Try
    {

    Debug.log ("handleFileSelect", "start handleFileSelect");
    reader of var = new FileReader();
    blnFileReaderSupported = true;
    var files = evt.target.files;
    var size = files.length;

    Debug.log ("handleFileSelect", "handleFileSelect # selected files:" + size, debug.info);

    for (var i = 0; i)< size;="">
    {
    Debug.log ("handleFileSelect", "in the handleFileSelect analysis the index file" + i, debug.info ");
    var f = files [i];
    Reader.OnLoad = (function (theFile)
    {
    Debug.log ("handleFileSelect", "start reader.onload", debug.info);
    return Function
    {
    Debug.log ("handleFileSelect", "start Function", debug.info);

    Debug.log ("handleFileSelect", "reading file" + theFile.name + "(" + theFile.size + "") "" + theFile.type, debug.info);

    If (theFile.type.match ('image.*')) {}
    var path = e.target.result;
    alert (path);
    create the path

    } else {}
    jAlert ("Please select photo!', 'Error'");
    }
    };
    })(f);

    If ((f.type.match ('image.*')) |) (f.type.match ('audio.*')) | (f.type.match ('video.*')))
    {
    Debug.log ("handleFileSelect", "in handleFileSelect call reader.readAsDataURL for type" + f.type, debug.info);
    Read in the media file in the form of a data URL.
    reader.readAsDataURL (f);
    }
    }

    Debug.log ("handleFileSelect", "Complete", debug.info);
    }
    {} catch (e)
    Debug.log ("handleFileSelect", e, debug.exception);
    If (! blnFileReaderSupported)
    {
    Alert('Error.) The FileReader API is not supported. ") ;
    }
    }
    }

    function doPageLoad()
    {
    Try
    {
    ELE var = document.getElementById ('txtFile_staffInfo');
    If (ele)
    {
    ele.addEventListener ('change', handleFileSelectForMyShop, false);
    }
    imgSelectPictureClick = 0;
    }
    {} catch (e)
    Debug.log ("doPageLoad", e, debug.exception);
    }
    }

    window.addEventListener ("load", doPageLoad, false);

    Note: And alert (path) leads to a Base64 string! It is not a path of the image that I browse a Spain file on the operating system.

    I want to have a full path of the file. For example: file:///accounts/1000/appdata/WebWorksAppTemplate.testa3NBcHBUZW1wbGF0ZSAgICA/shared/camera/image01.jpg

    I hope to see your reply soon!

    Thank you and best regards,

    A Pham

    A Pham

    I think that you can not get the absolute path of a file due to browser security, when you use the

    It's something that you need probably a PlayBook extension for.

  • How to get the version using the Acrobat SDK

    I have a plug-in for Adobe Reader and Adobe Acrobat.
    Depending on the product and the version, the plug-in should perform few features.
    I use ASGetConfiguration() to get the name of the product.

    Is there an API to get the version of Reader and Acrobat?

    Thanks in advance,
    Vatsapal

    AVAppGetVersion()

  • How to get the nodename using GetVersionEx

    My current code uses call unix ' uname ' to get the "struct utsname" nodename string. " I want to replace this call with equivalent windows. I discovered GetVersionEx in windows, but it does not give me the string nodename. Can anyone suggest me the replacement of exact windows for uname.

    Hello

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums

    Link to the MSDN Forums is provided below.

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • How to get the message that API to a new version were supported once it is released?

    Hi all

    For my work, I do my Intigration of based on the API of the latest version. So I need to be reminded, when a new version is available.

    How could I get the message that a new version APIs were supported as soon as it is released?

    Thank you

    Biao

    All the ads around API will be done through Code it.  Going forward, if/when a new API (or the version of the existing API) is released in the form of GA, it will be announced the Code it along with appropriate documentation.

  • See the grouping using API BC recovery products

    How can I retrieve products by the group using recovery API BC?

    Thanks for the quick response.

    It solves the problem by defining condition where 'GroupingDefault': 'true '.

  • Unable to get the search using query RIDC idc on Protocol

    Hi all

    I'm having a strange problem when querying ucm using CRMI.

    When I use the connection of client for the idc as protocol below

    IdcClient idcClient = manager.createClient ("idc://abc.xyz.com: < port >");

    result is null.

    but when I use the connection of client for HTTP as below

    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    game is not null. I get the content

    I use the weblogic user to create the connection that my code is as below

    IdcClientManager Manager = new IdcClientManager ();
    try {}

    Create a new connection to IdcClient idc on Protocol (i.e. connection socket for content server)
    IdcClient idcClient = manager.createClient ("idc://hostname:intradocserverport"); It does not work

    to use the connection through the web - start
    IdcClient idcClient = manager.createClient ("http://abc.xyz.com:16200/cs/idcplg"); ")
    UserContext IdcContext = new IdcContext ("weblogic", "weblogic1");
    DataBinder dataBinder = idcClient.createBinder ();
    dataBinder.putLocal ("IdcService", "GET_SEARCH_RESULTS");
    dataBinder.putLocal ("QueryText", "xRegionDefinition < match > 'NEWS_RD' < AND > xWebsiteObjectType < match >"Data file"");
    ServiceResponse response =
    idcClient.sendRequest (dataBinder, userContext);
    DataBinder responsed = response.getResponseAsBinder ();
    DataResultSet = myDataResultSet
    responsed.getResultSet ("SearchResults");
    int i = myDataResultSet.getRows () .size ();
    If (i == 0) {}

    System.out.println ("found content no.");
    } else {}
    System.out.println ("content is present");
    }

    } catch (IdcClientException e) {}
    System.out.println ("inside the exception" + e.getStackTrace ());
    }
    }

    I cannot understand why its happening.
    I spent we I could search using idc also, but then many use same AAU so someone might have changed some configurations that I can't understand

    Is your WLS server running and available to the managed server admin? Or you run the server managed mode the independence? If the server administrator is not available, applications via the Protocol of idc using "external" (like weblogic) users will fail. However the http requests will continue to work.

    One way to test this is to use "sysadmin" as the user when it connects using the Protocol of the idc. If it works, then this probably means that WLS server admin is unavailable.

  • need help to get the value using the REGEXP_REPLACE function.

    I am trying to extract the value placed between "< listitems >... < / listitems >" but I am unable to get these value using the REGEXP_REPLACE function.
    select REGEXP_REPLACE('<InputParameters></ParamSet><listitems>14545454</listitems></ParamSet></InputParameters>'
    ,'(<InputParameters>.*<listitems>)(.*)(</listitems>.*<InputParameters>)'
    ,'\2') from dual;
    required output:
     1454554
    Can someone please help me achieve this goal.

    Hello

    You forgot the / before the last InputParameters. If fix you that, your code will work.

    Here is a slightly different way:

    SELECT  REGEXP_REPLACE ( '14545454'
                     , '^.*?(.*?).*$'
                     , '\1'
                     )     AS listitems
    FROM    dual
    ;
    

    Least to type, the less likely you will have to make typos.
    If there are 2 (or more) elements of listitmes, 1 will be returned.

    From Oracle 11.1, you can also use REGEXP_SUBSTR. I have Oracle 10.2 avaialable now, so I can test the following, but I think you'd say:

    SELECT  REGEXP_SUBSTR ( '14545454'
                     , '(.*?)'
                     , 1
                     , 1
                     , NULL
                     , 1
                     )     AS listitems
    FROM    dual;
    

    When it comes with the text that is or looks to, XML, consider using XML functions.

  • Getting the IP using a DDL trigger

    I created a DDL trigger that is triggered AFTER the DDL on SCHEMA.
    The unique attribute that seems to not work is the ORA_CLIENT_IP_ADDRESS
    If I try to create the following:

    CREATE OR REPLACE TRIGGER control_ddl
    AFTER the DDL ON SCHEMA
    BEGIN
    RAISE_APPLICATION_ERROR (-20000, 'Id' |) ORA_CLIENT_IP_ADDRESS | "conducted a DDL");
    END;

    and then I try to create a table, I get:

    ID made a DDL

    Could the reason because I do not have the ip address? A problem of grant? A network configuration issue? What else?
    I would like to get the IP address of the PC a person has made the DOF since and not the connection (by using the ORA_LOGIN_USER attribute), because all my colleagues use the same login to access DB
    Thank you!

    This construction in funciton gives the ip address of the machine, you can save it into a varchar2 variable and use it in your trigger.

    select sys_context('USERENV','IP_ADDRESS') from dual;
    
  • Is it possible to get the settings app to be part of the Panel settings device (iOS)?

    I would like to include some of my application settings outside the applicability for the parameters of the device, so that these could be changed without opening the actual application. Is there anyway to achieve this?

    You can add dialog boxes of individual parameters of AIR iOS applications that appear in the iOS system application. It is difficult the same process as you would for a native application of developed iOS Xcode - simply create you a settings.bundle file and in particular with the application when compiling via ADT.jar or directly from the Flash IDE and then its available. Then use file of AIR operations to read the results of the interaction with the settings.bundle through its .plist file which is stored/updated.

    For any consultation on the creation of the settings.bundle files:

    http://developer.Apple.com/library/iOS/#documentation/cocoa/conceptual/UserDefaults/prefer ences/Preferences.html

    Julian Dolce wrote also an iOS development of book with Flash for the label Visual Blueprint - ISBN: 978-0-470-62204-9 and it covers this extensivley in several sections starting on page 260, including the creation of settings.bundles and all their options in the UI even if you don't have a Mac and xcode to work with (sinces its basically XML files which are a settings.bundle file) ,

    Julian also put in place some classes for the book for reading in the preferences, and which is available on google here:

    http://code.Google.com/p/as3iphone/source/browse/#SVN%2Ftrunk%2FClasses%2Fcom%2Fflashiphon edevelopment % 2Fsettings

    His book, well that almost 2 years at this point and somewhat outdated in places because AIR has evolved so much, is still a fantastic reference full of nuggets of good information like this. I would also recommend bool Véronique Brossier to OReilly - development of Android Applications with Adobe AIR - if you AIR/Android work also.

    Also refer to the following other threads:

    http://help.Adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffe.html

    http://forums.Adobe.com/thread/928952

    I hope this helps!

    Rob

  • Get the GPS location API error - provider is not available

    Hello

    I am trying to access the information of location using Android location API (via LocationManager.GPS_PROVIDER), but without success. I get error "provider not available."

    AndroidManifest.xml has lines related to the relevant permissions:


    But I do not get prompt the same security to grant these permissions to my request.

    OS version 2.0.0.3894

    Build 73070

    Thank you.

    I solved this problem by restarting and place the device near a window.

    What I was wondering now is why Android player never asked security permission to access the location of the GPS. What is a function of development?

  • Get the image using getBinary

    Hello.. I try to extract the photo of a particular contact. I can see the built application in which this image is there but not able to fetch it. His donations illegal Argument Exception. I don't get what the problem... Here's the code... Please suggest where I m wrong?

    public static byte[] getPic(Contact contact) // This is the function for fetching byte data in the Picture class
        {
            byte[] pic = null;
            if(contact == null)
            {
                return null;
            }
            if((contact.countValues(Contact.PHOTO) > 0))
            {
                pic = new byte[(int)(contact.getBinary(Contact.PHOTO,0).length)];
                pic = contact.getBinary(Contact.PHOTO, 0);
            }
            return pic;
        }
    
    if(Picture.getPic(item)!=null) // item is the contact
    {
    EncodedImage image = EncodedImage.createEncodedImage(Picture.getPic(item), 0,
                            Login.getPic(item).length);
    }
    

    The createEncodedImage function does not work. I tried createBitmapFromBytes also. But who does not work too.

    Please suggest a solution.

    Thanx

    Drom the API documentation:

    "Note that the javadocs for addBinary(), setBinary(), getBinary() , and all say that binary data must be coded"into a string of 'B' binary code as defined by [IETF RFC 2047]". This means that the photo data returned by getBinary() will be coded in Base64. Also, the data can be specified to setBinary() and addBinary() in two bytes raw or encoded in base 64; If the raw bytes are specified then they are converted to Base64. To encode or decode Base64 data you can use Base64OutputStream or Base64InputStream, respectively. »

    In others, you will need to cancel first Base64 encoding.

Maybe you are looking for

  • EliteBook 8460p: BIOS password problem

    I wanted to make my starting the computer from a USB/CD/DVD key, but there is no option to do so. There is a BIOS password on the computer It is entered incorrectly 3 times. No 'CNUxxxx' code is seen, only "system locked, please restart" or something

  • Automatic Windows Update is no longer install microsoft security updates

    What to do about windows vista sp2 operating system is no longer install microsoft security updates? Post proposed by the facilitator for the appropriate forum placed

  • "Fan error" on Thinkpad X201s

    Hello My surprisingly overheated X201s and soft-shutdown. After reset of the interrupted BIOS startup just to say "Fan Error" and stop again. Has anyone seen this problem before? So far, the fan worked! I removed the keyboard and as soon as I press t

  • Download windows 7

    I need to download windows 7 home edition 64-bit I find here a place to do this but when I get to where you select your language, the only one he is Korean... so how do I use it? This is the site I'm going... I don't have a disc... but I have my prod

  • A default gateway is not available internet question

    My internet is disconnected frequently at irregular intervals. However, when I solve the problem, he always gets fixed. Here's my ipconfig/all Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation.  All rights reserved. C:\Use