How to get Universe Long Name from DataProvider from BO SDK Web XI R3

In BO 6.5 I was able to query the repository using an Oracle query to get details about the classes, property(s) and property data value(s). I'm using the following query:
SELECT DISTINCT u.uni_longname, c.cls_name, p.prp_name, p.property_id,
                d.prp_datavalue
           FROM unv_universe@PRBA u,
                unv_class@PRBA c,
                unv_property@PRBA p,
                unv_prop_data@PRBA d
          WHERE c.universe_id = u.universe_id
            AND c.universe_id = p.universe_id
            AND c.class_id = p.class_id
            AND p.universe_id = d.universe_id
            AND p.property_id = d.property_id
            AND d.prp_datatype = 'W'
       ORDER BY 1, 2
where PRBA is our BO oracle repository. It would return the following, though I get multiple rows for this query, I am pasting one row only
UNI_LONGNAME          CLS_NAME            PRP_NAME               PROPERTY_ID      PRP_DATAVALUE
Accounting Universe   Account Details     Account Option     15                      ACCT.ACCT_ID  IN  @Prompt('ACCOUNT_OPTION','N', ['Account Details\Account ID'],multi,free)
I'm wondering what is the equivalent methods/objects using BO Java SDK in Webi XI R3 to get the same information. I use the above information to delete the prompts for which user has not provided a value.
Also I need to know, Is it possible to get Univers Long Name from DataProivder, then from Univers Long Name, will I be able to get the above Records Set? Is this possible in BO SDK Webi XI R3?
My requirement is, I have BO Prompts and I need to remove certain prompts which are not supplied by the User, for example if I need to remove ACCOUNT_OPTION, I iterate the record set, as long as ACCOUNT_OPTION is there in PRP_DATAVALUE then I would remove the Filter Condition.Can anyone help me out on this? Rightnow This is a show stopper for me.
Thanks

Thanks for your reply, NO Java SDK means, what is it not possible? and what is possible through COM SDK?
my requirement is, I need to remove certain Filter condition for a DataProvider, for example, ACCOUNT_OPTION is the name of the field, but through JAVA SDK, I am getting Account Option ,
I have been trying the below code, Can anyone help me out what am I doing wrong? I could not go further.
ACTXTRACTCon is my list of arrays, these prompts have to be removed from BO Prompts. Although I wanted to post my entire code, for some reason I could not embed the code. This code may have some compilation errors.
     // Get Providers from DocumentInstance
               DataProviders oProviders = oDoc.getDataProviders();
               int iDataProviderIndex = 0;
               int iQueryCount = 0;
               int iQueryIdx = 0;
               Query oQuery = null;
               // Declare ConditionContainer
               ConditionContainer oCC = null;
               int iCCIndex = 0;
               FilterConditionNode oFCN = null;
               ConditionObject oCO = null;
String ACTXTRACTCon [] ={                    
               "PRINTER_NAME",
               "PARTNER_RANK",
               "PARTNER_DOMICILE",
               "TO_GL_CYCLE_DT",
               "ENTITY_OPTION",
               "LONG_MEMO",
               "SHORT_MEMO",
               "ENTITY_TYPE",
               "POST_END_DT",
               "TCODE_TYPE",
               "ACCOUNT_OPTION",
               "PARTNER_STATUS",
               "ACCT_TYPE",
               "POST_BEGIN_DT",
               "TCODE_OPTION",
               "FROM_GL_CYCLE_DT",
               "PARTNER_TYPE"
while (iDataProviderIndex <= oProviders.getCount()-1){
                    // Get DataProvider from DataProviders
                    DataProvider oProvider = oProviders.getItem(iDataProviderIndex);
                    // Get Query from DataProvider
                    QueryContainer oQuerys = oProvider.getCombinedQueries();
                    System.out.println("oProvider------->"+oProvider);
                    System.out.println("oProvider.getName().."+oProvider.getName());
                    System.out.println("oProvider.getDataSource().getLongName().."+oProvider.getDataSource().getLongName());
                    System.out.println("oProvider.getDataSource().getUniverseID().."+oProvider.getDataSource().getUniverseID());
                    iQueryCount = oQuerys.getChildCount();
                    if (iQueryCount > 0) {                         
                         // Loop through Query to get ConditionObject
                         for (iQueryIdx = 0; iQueryIdx <= iQueryCount - 1; iQueryIdx++) {
                              oQuery = (Query)oQuerys.getChildAt(iQueryIdx);
                              oCC = oQuery.getCondition();
                              if (oCC != null){                              
                                   // Only Leaf object has condition
                                   if (!oCC.isLeaf()){
                                        // Loop through ConditionContainer to get all conditions
                                        int iCCCount = oCC.getChildCount();
                                        int iRevCCIndex = 0;
                                        //Removing universe level conditions
                                        for (iCCIndex = 0; iCCIndex <= iCCCount-1; iCCIndex++){
                                             iRevCCIndex= iCCCount - iCCIndex -1;
                                             oFCN=oCC.getFilterConditionNode(iRevCCIndex);
                                             if (oFCN instanceof ConditionObject) {
                                                  oCO = (ConditionObject)oFCN;
                                                  FilterCondition oOperand=(FilterCondition)oCO.getOperand();
                                                  System.out.println("oOperand.."+oOperand);
                                                  for (int iRow = 0; iRow <= ACTXTRACTCon.length - 1; iRow++){     
                                                       if (oCO.getName().trim().toString().equals(ACTXTRACTCon[iRow])){
                                                            oFCN.remove(oCO);
                                                            break;
                                        // Removing report level conditions
                                        iCCCount = oCC.getChildCount();
                                        for (iCCIndex = 0; iCCIndex <= iCCCount-1; iCCIndex++){
                                             iRevCCIndex= iCCCount - iCCIndex -1;
                                             oFCN=oCC.getFilterConditionNode(iRevCCIndex);
                                             if (oFCN instanceof ConditionObject){
                                                  oCO = (ConditionObject)oFCN;
                                                  FilterCondition oOperand=(FilterCondition)oCO.getOperand();
                                                  if (oOperand != null){
                                                       int iOperandCount = oOperand.getOperandCount();
                                                       int iRevOperandIdx = 0;
                                                       boolean bBreakInd = false;
                                                       for (int iOperandIdx = 0; iOperandIdx <= iOperandCount-1; iOperandIdx++){
                                                            // Removing conditions start with high index
                                                            iRevOperandIdx = iOperandCount - iOperandIdx - 1;
                                                            for (int iRow = 0; iRow <= ACTXTRACTCon.length-1 ; iRow++){                                                                 
                                                                 if (oOperand.getOperand(iRevOperandIdx).toString().equals(ACTXTRACTCon[iRow])){
                                                                      oFCN.remove(oCO);
                                                                      bBreakInd = true;
                                                                      break;
                                                            if (bBreakInd == true){
                                                                 // Exit from loop if condition has been removed
                                                                 break;
                    // fetch the changes
                    oProvider.runQuery();
                    iDataProviderIndex++;
                    System.out.println("Data Provider Index = " + iDataProviderIndex);
Thanks
Gokul.
Edited by: mgggkn on Jul 11, 2011 8:18 PM

Similar Messages

  • How to Get the step name of MainSequence from SequenceFilePreStep / SequenceFilePostStep?

    I'm using SequenceFilePreStep & SequenceFilePostStep to get the test time of every step. Is there any way to get the step name of MainSequence that calls the PreStep & PostStep callbacks? Thanks

    Hi,
    You can get the name of the sequence by NameOf(RunState.Caller.RunState.Sequence).
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to get the long file name from an 8.3 name in Windows.

    Because of a legacy string limitation, I have a list of files in 8.3 format. The actual files are saved with long names. How can I get the long name from the short name?
    In JavaScript, I would get a file system object and get the file object from there with the short name. Then it's no problem to get the full name. But I don't see anything in Java that matches that. ???
    Ideas?
    Frank Perry, MSEE

    Here is what I did.
    String displayName = "somefi~1.txt";
    File fO = new File("c:\\"); // I have a more involved path but that's not important here.
    String stPath = fO.getPath() + displayName;
    File fD = new File(stPath); // get the file using the short name.
    File fDc = new File(fD.getCanonicalPath()); // get another file using the cononical name
    String FulldisplayName = fDc.getName(); // get the long name from there.
    It's roundabout but it works. Since getName() on the file read with the short name only returns the name used to get the file, I open it twice. The alternative is to parse the cononical name for the file name but that's clumbsy too.
    Frank

  • How to get the user name from Single Sign On Process?

    Post Author: sasikumar
    CA Forum: Authentication
    I am loging in Single Sign On Page. Then it goes to one JSP which lists out some links including InfoView link. While clicking InfoView link, I need to pass user name with the url for authentication. How and where can I get the user name?

    Care to be more specific what you mean with single sign-on? There are numerous ways this can be done.
    Just how you get the authenticated o/s user from within an Oracle session, depends on just how the actual authentication to Oracle was done in order to create that Oracle session.
    E.g. dealing in Oracle with a LDAP server is very different than dealing with a NT Primary/Secondary Domain Controller using o/s authentication, than dealing with a Java-based application server that does it own thing, etc.

  • How to get the connection name of a Dataprovider

    Hi,
         I have a report with stored procedure dataprovider.Now I need to write a VBA script to get the connection name of this dataprovider.Is it possible to get the connection name of dataprovider?
    Thanks
    Rakul.

    What product are you using? Are you using Crystal Reports? Business Objects Enterprise? SAP product(s)? You sure you are asking in the correct forum?
    Ludek

  • How to get the Text name to pass in the  parameter header in save_text

    Hi,
      I am trying to change the long text of operation for historical order by using the flat file.I am using the save_text to do this.I would like to know how  to get the text name in order to pass the parameter header in save_text.
      I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates and where is this value updated in the table so that i can link it thru the order no  to get the link and pass it in the text_name.
      can anyone help me out?
    krishnan

    Hi,
    Your query is.
    I went to the tcode iw62 to get the header information of the long text.300100000009200000001
    i would like to know what this 1000000092 indicates
    In above number
    300 - Client
    1000000092 - AUFPL - Routing number of operations in the order (You can fetch this from table HIVG)
    00000001 - APLZL - General counter for order ( You can fetch this from table HIVG).
    BR,
    Vijay

  • How to get carrier company name on windows phone 8.1?

    how to get carrier company name on windows phone 8.1?

    excuse me, i referrer the link http://stackoverflow.com/questions/26973111/get-carrier-name-cellular-mobile-operator-name-using-windows-phone-8-1 to
    modify my universal app.
    but i always get 0 count from the GetNetworkNames() method. 
    if my sim card is for 3G, but i setting 4G in highest connection speed. i got the "the pipe is being closed".
    how can i solve the problem? thank you.

  • How to get an ArrayList Object in servlet from JSP?

    How to get an ArrayList Object in servlet from JSP?
    hi all
    please give the solution for this without using session and application...
    In test1.jsp file
    i am setting values for my setter methods using <jsp:usebean> <jsp:setproperty> tags as shown below.
    After that i am adding the usebean object to array list, then using request.setAttribute("arraylist object")
    ---------Code----------
    <jsp:useBean id="payment" class="com.common.PaymentHandler" scope="request" />
    <jsp:setProperty name="payment" property="strCreditCardNo" param="creditCardNumber" />
    <%-- <jsp:setProperty name="payment" property="iCsc" param="securityCode" /> --%>
    <jsp:setProperty name="payment" property="strDate" param="expirationDate" />
    <jsp:setProperty name="payment" property="strCardType" param="creditCardType" />
    <%--<jsp:setProperty name="payment" property="cDeactivate" param="deactivateBox" />
    <jsp:setProperty name="payment" property="fAmount" param="depositAmt" />
    <jsp:setProperty name="payment" property="fAmount" param="totalAmtDue" /> --%>
    <jsp:useBean id="lis" class="java.util.ArrayList" scope="request">
    <%
    lis.add(payment);
    %>
    </jsp:useBean>
    <%
    request.setAttribute("lis1",lis);
    %>
    -----------Code in JSP-----------------
    In testServlet.java
    i tried to get the arraylist object in servlet using request.getAttribute
    But I unable to get that arrayObject in servlet.....
    So if any one help me out in this, it will be very helpfull to me..
    Thanks in Advance
    Edward

    Hi,
    Im also facing the similar problen
    pls anybody help..
    thax in advance....
    Litty

  • How to get the specific name of the workset which is currently selected by the user in sap portal 7.0

    Dear Expert,
    I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
    But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
    I am using portal 7.0.
    Thanks & Regards,
    Patralekha

    Hi Expert,
    I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
    But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
    But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
    INavigationService is available there.
    But didn't get any proper discussion on this interface for the same requirement.
    Can you please help me.
    Thanks & Regards,
    Patralekha

  • How to get the column names of the table into the Dashboard prompt

    how to get the column names of the table into the Dashboard prompt
    Thanks & Regards
    Kishore P

    Hey john,
    My requirement is as follows
    I have created a Rank for Total sales by Region wise i.e RANK(SUM(Dollars By Region)) in a pivot table.
    My pivot table looks like this
    COLUMN SELECTOR: TOTAL US , REGION , DISTRICT , MARKET
    ---------------------------------------------------- JAN 2009          FEB 2009        MAR 2009
    RANK              REGION                  DOLLARS           DOLLARS        DOLLARS DOLLARS
    1 CENTRAL 10 20 30 40
    2 SOUTHERN 10 30 30 70
    3 EASTERN 20 20 20 60
    4 WESTERN 10 20 30 40
    When i select the District in column selector
    Report has to display rank based on Total Sales by District. i.e
    ------------------------------------------------- JAN 2009         FEB 2009       MAR 2009
    RANK             DISTRICT              DOLLARS           DOLLARS        DOLLARS DOLLARS
    for this i need to change the fx of rank i.e RANK(SUM(Dollars By Region)) to RANK(SUM(Dollars By District)) and fx of Region i.e Markets.Region to Markets.District dynamically.
    so , i need to capture column name of the value selected from the column selector and dynamically i need to update the fx 0f RANK & fx of region.
    do you have any solution for this?
    http://rapidshare.com/files/402337112/Presentation1.jpg.html
    Thanks & Regards
    Edited by: Kishore P on Jun 24, 2010 7:24 PM
    Edited by: Kishore P on Jun 24, 2010 7:28 PM

  • How to get the function name/ID  of the current page

    HI,
    I searched the forum and google, but it is not clear on how to get the function name of the current page.
    I have 4 functions in my self service A ,B,C,D (seeded page links ) they all have to go to a page called hhhPG. Based on which function user is clicks I have to show the data in hhhPG.
    so my question is how to get the function name ? I mean I need to know if user click on link A , B, C or D link and came to this page.
    I found below in one forum and also there is getfunctionID in pageContext , but I do not know what to pass to getfunctionid("???") to get value.
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    Or is there a better way of know where user is coming from ? like geturl....
    Please help, I need this ASAP.
    Thank you.

    Use below to find out how the user came into the page
    FunctionSecurity funcSecurity = pageContext.getFunctionSecurity();
    boolean isFunc1 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME1"));
    boolean isFunc2 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME2"));
    boolean isFunc3 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME3"));
    boolean isFunc4 = funcSecurity.testFunction(funcSecurity.getFunction("YOUR_FUNCTION_SHORT_NAME4"));
    So one of them will be true based on the function the user came in.
    Write your logic based on these flags.
    Regards,
    Peddi.

  • IDM : How to get the Resource name in Exclude Rule during Reconciliation?

    Hi
    Problem Statement => How to get the Resource name in Exclude Rule during Reconciliation.
    Problem Description => Apparently, we use exclude rule for not consider some account during reconciliation.
    I need the resource name in exculde rule during reconciliation. I tried with getResources() method which is an inbuilt method.But it gives all the resources are aviablable in the repository (IDM). I need only the current reconcilied resource name instead of fetching all the resouce.
    Can any one please help how to get the resource name in exclude rule during reconciliation?
    Thanks in advance for you help.
    Thanks,
    Chellappan

    Hi,
    Thanks for your reply.
    I have 50 resouces and these resouces using the same kind of exclude rules. In the exclude rule, i am using resource name to do some work. If i get the resouce name in exclude rule, then i can use the same exculde rule for 50 resources. This will minimise the rule count from 50 to 1. For that, i need resouce name.
    Thanks,
    Chellappan Sampath.

  • How to get Sequence File Name ?

    Hello everybody !!
    I'm using TestStand 3.1 and i would like to get sequence file name. I've tried to use NameOf() function, but without success.
    Of course, I've searched previous posts about the same question, but nothing works.
    Is there someone able to tell me how to get sequence file name ?
    Thanks a lot.
    MrOrange

    MrOrange,
    first of all, the solution i will present only works for saved sequence files.
    you got all information you need within TestStand itself, just browse for RunState.SequenceFile.Path. here you can find the filename. but the path of the file is also included in the string, so this is a part you have to get rid off.
    you can use statements to extract the filename from the path. just search the string for the last occurence of "\\" (searchinreverse!) and then you can retrieve the right() part of the path. beware that right() needs the number of characters you want to extract, not the startindex!!
    hope this helps,
    Norbert B.
    NI Germany
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to get the ACCOUNTING_FLEXFIELD Name  in a Multi Ledger Instance?

    Hi,
    How to get the <ACCOUNTING_FLEXFIELD> Name in a Multi Ledger Instance from logged-in Responsibility? Is there any profile option available?
    SELECT id_flex_num
    INTO l_structure_num
    FROM apps.fnd_id_flex_structures
    WHERE ID_FLEX_CODE = 'GL#'
    AND ID_FLEX_STRUCTURE_CODE=<ACCOUNTING_FLEXFIELD>;
    Tx

    SMOD->SEUED001->Display componens->double click on EXIT_SAPLEDITOR_002->See the source code...
    function exit_sapleditor_002.
    *"*"Lokale Schnittstelle:
    *"       IMPORTING
    *"             VALUE(PROGRAM) LIKE  SY-REPID
    *"       EXCEPTIONS
    *"              CANCELLED
    include zxseuu22 .
    endfunction.
    PROGRAM is the importing parameter for the function module.
    matt

  • How to get mobile model name for different types mobile devices

    Hi,
    I have checked few thread in this forum about getting mobile model name at server. So far, i noticed the mobile name is set manually in the midlet as user-agent .
    HttpConnection connection = null;           connection = (HttpConnection)Connector.open(url);          connection.setRequestMethod(HttpConnection.POST);          connection.setRequestProperty("User-Agent","Nokia7110 Profile/MIDP-1.0 Configuration/CLDC-1.0");
    i retrieve the header information from servlet like below :-
    String userAgent = request.getHeader("User-Agent");
    How to get mobile model name for different model devices , not by manually adding the model name in midlet?
    Thanks in advance :-)

    Hi,
    In J2ME there is no method to get the model number from the device. how ever you can use the APIs provided by the device manufacturer if available. But still the APIs will not work with devices from other manufacturer or sometimes it will not work with the devices of the same manufacturer if the API is not supported. so it is better to send the device model name through the header.

Maybe you are looking for

  • Issue while deleting a row from a table

    Dear friends, i am getting an issue while deleting a row from a table, pls check screen shots , the first screen shot is my table contents when i delete 2 row , the second row is deleting properly like below screen shot but i want like below screen s

  • Will "fusion drive" on mountain lion manage the user-upgraded SSD-HDD como ?

    Hi everyone, I just finished to see the amasing apple keynote and I found the M-lion supported "drive fusion" technology really interesting. I recently (feb/2012) updated my mid2010-MBP13" with and SSD drive, boosting is speed and now I'm wondering i

  • Google visualization charts

    I tried to add minor changes to the google visualization plugins but they were not taken into effect when the charts were rendered. Take, titlePosition and legend.position, for example. <pre> l_legend_position varchar2(30) := 'top'; apex_javascript.a

  • How do you create a brochure for a website that is interactive and opens like a real brochure?

    I've created a brochure in Indesign. I can make it interactive and have the pages turn like a book, but I want it to open like a brochure. How can I do this and with what program?

  • BR0255W Cannot read from standard input during a dbverify

    Hello, I am using: BRBACKUP 7.20 (13) SunOS 5.10 Generic_144488-06 sun4u 701 SAPSR3 Oracle 11.2.0,.2 brbackup -w only_dbv -t online -c -u / -e 16 It generally runs ok, but today I got: BR0280I BRBACKUP time stamp: 2011-04-20 11.20.47 BR0063I 5 of 11