Level Attributes using DML

Is there a way to list the attributes that are applied to a particular level using DML?

This program will produce a formatted listing of all dimensions, hierarchies, attributes, and levels, and show whether or not the attribute is defined within a given level.
Define a program named SHOW_ATTRIB_LEVELS with this program code:
"Program: Show_Attrib_Levels
"Purpose: Display level/attribute associations
"Author: Mark Thompson - Vlamis Software Solutions - July, 2008
vrb _dim text
vrb _hier text
vrb _lvl text
vrb _attr text
vrb _dimcolwid int
vrb _hiercolwid int
vrb _lvlcolwid int
vrb _attrcolwid int
trap on haderror
pushlevel 'SHOW_ATTRIB_LEVELS'
push all_dimensions all_attributes all_levels all_hierarchies
limit all_dimensions to all
limit all_hierarchies to all
_dimcolwid = largest(numchars(all_dimensions))-10
_hiercolwid = largest(numchars(all_hierarchies))-10-_dimcolwid
_lvlcolwid = largest(numchars(all_levels))-6-_dimcolwid
_attrcolwid = largest(numchars(all_attributes))-10-_dimcolwid
row under '-' < w _dimcolwid 'DIMENSION' -
w _hiercolwid 'HIERARCHY' -
w _attrcolwid 'ATTRIBUTE' -
w _lvlcolwid 'LEVELS' -
w 7 'InHier?'>
sort all_dimensions a convert(all_dimensions,text)
for all_dimensions
do
_dim = extchars(all_dimensions 1 findchars(all_dimensions,'.DIMENSION')-1)
limit all_attributes to dim_attributes
limit all_levels to dim_levels
limit all_levels remove findchars(all_levels,'AW$NONE') ne 0
limit all_hierarchies to dim_hierarchies
limit all_hierarchies remove findchars(all_hierarchies,'AW$NONE') ne 0
for all_hierarchies
do
_hier = extchars(all_hierarchies findchars(all_hierarchies '.')+1)
_hier = extchars(_hier 1 numchars(_hier)-10)
for all_attributes
do
_attr = extchars(all_attributes findchars(all_attributes '.')+1)
_attr = extchars(_attr 1 numchars(_attr)-10)
for all_levels
do
_lvl = extchars(all_levels findchars(all_levels '.')+1)
_lvl = extchars(_lvl 1 numchars(_lvl)-6)
row w _dimcolwid _dim -
w _hiercolwid _hier -
w _attrcolwid _attr -
w _lvlcolwid _lvl -
w 7 r across all_levels: nafill(convert(attr_visible,text) '-')
doend
blank
doend
doend
doend
haderror:
poplevel 'SHOW_ATTRIB_LEVELS'

Similar Messages

  • Multi level attribute form LDAP

    multi level attribute form LDAP
    I am trying to write an custom mapping to use to retrieve a value from a multialued field in LDAP (nsRole). Has anyone done this before?
    Rigth now all my mappings are 1:1. However the goal is to get a 1 : M and parse thru it till i get the desied value (1:1)

    Darwin Hammons - Assurant 
    2:44pm, May 17 
    Great conversation. I have a very similar question about the use of the custom JAVA mappings with the LDAP Login process. I want to include an additional (event) step in the login process. Does anyone have an example or experience with a custom Java Class mapping that can use an LDAP attribute (location)  queriing the data to execute an event that populates an RequestCenter OU or Group if the person login location equal say " Argentina" ? Looking for a way to manage / build catalog entitlements during login. Suggestions ?
    Great conversation. I have a very similar question about the use of the custom JAVA mappings with the LDAP Login process. I want to include an additional (event) step in the login process. Does anyone have an example or experience with a custom Java Class mapping that can use an LDAP attribute (location)  queriing the data to execute an event that populates an RequestCenter OU or Group if the person login location equal say " Argentina" ? Looking for a way to manage / build catalog entitlements during login. Suggestions ?
    Anthony Erickson
    2:52pm, May 18  
    Hi Darwin,
    We're about to embark on a piece of work with newScale which would be similar to this to support our Multilingual catalogue.  I'll provide any updates I'm able. 
    Thanks,
    Ant 
    Darwin Hammons - Assurant 
    3:25pm, May 18 
    Great, Thanks Anthony ! I hope our bringing up this topic will spark a bit of interest. The Custom Java Mapping  / Directory integration is documented more with RC 9.1. It will be good to hear more about your project and use of Java mappings with LDAP Directories. 

  • OWB 10.2.0.1: Level attribute prefix

    Hi all,
    I am currently working on a project to convert an existing OWB 9.2 project to OWB 10.2.
    In 9.2 (and 10.2), when you create a dimension, the underlying table has columns with the level of the dimension as a prefix. In 10.2, OWB only does this when a dimension attribute is used in more than one level. To minimize impact, I would like to have the prefix at all times in my new environment as well.
    What can I do to achieve that? Is there a way (setting) in OWB 10.2 to always prefix level attributes with the level name? Or should I edit all the level attribute names manually? Or should I edit them in the Table object?
    Thanks
    Paul

    Hi Paul,
    I think it is "standard" behavior of dimension wizard and autobinding operation.
    I don't know how to change this behavior but you can modify column name (rename column) of table object without any impact (in this case level attribute still binded to this column).
    Regards,
    Oleg

  • Is there possibility to add dimension value into hierarchy using dml or spl

    1 Is there possibility to add dimension value into hierarchy using dml or spl?
    If such possibility exists how to do that.
    2 Is it possible to sort dimension values inside one branch of the hierarchy?

    What version of OLAP are you using and how did you create your AW (e.g., AWM)?
    Assuming that you're used either AWM or the Java API for AWs in 10g, there isn't an OLAP DML for adding a dimension member to a dimension (and have all the meta data kept in sync); you must load dimension members using AWM the Java API for AWs.
    So, make your changes in the the dimension table and process that table.
    For sorting, you can add a sort attribute to the dimension. Add the sort attribute to the model, indicate that it's used for sorting, add the sort attribute to your dimension table and maintain the dimension.

  • Dimension's levels and level attributes

    Hi guys,
    Let's say I have following situation:
    Creating dimension CUSTOMERS with unique key CUS_ID.
    Levels: L_CUSTOMER and L_COUNTRY.
    One hierarchi: H_CUSTOMER_REGIONAL with levels L_COUNTRY -> L_CUSTOMER.
    Now the question: What level attributes should I create?
    For level L_CUSTOMER obviously CUS_ID, which is a key level attribute, and CUS_NAME.
    For level L_COUNTRY what attributes should I create?
    I see two variants:
    1. COUN_ID (key level attribute) and COUN_NAME
    2. just one COUN_NAME and this will be my key level attribute.
    What guidelines should I follow here? I intend to use model in Discoverer later if it influences the design here.
    Please advice.
    Thanks,
    Alex

    Alexandre,
    It depends whether you plan to use the COUN_ID in a join with a summarized fact table - if yes, I would suggest to have the ID, if not (pure star schema), there might not be a great use for it.
    Regards:
    Igor
    Hi guys,
    Let's say I have following situation:
    Creating dimension CUSTOMERS with unique key CUS_ID.
    Levels: L_CUSTOMER and L_COUNTRY.
    One hierarchi: H_CUSTOMER_REGIONAL with levels L_COUNTRY -> L_CUSTOMER.
    Now the question: What level attributes should I create?
    For level L_CUSTOMER obviously CUS_ID, which is a key level attribute, and CUS_NAME.
    For level L_COUNTRY what attributes should I create?
    I see two variants:
    1. COUN_ID (key level attribute) and COUN_NAME
    2. just one COUN_NAME and this will be my key level attribute.
    What guidelines should I follow here? I intend to use model in Discoverer later if it influences the design here.
    Please advice.
    Thanks,
    Alex

  • Reordering Leaf member attributes using the Front end

    I am trying to reorder leaf level attributes of an entity using the MDS Webpage. Whenever I try to reorder, I get an "Unknown Error Occured" message. After I close IE and open the MDS Webpage again, the attribute is re-ordered.  Has anyone
    else faced this issue?
    Thanks

    This an obscure tag I've not thought about for a while.
    If memory serves me well, the <frontend> tag works with OC4J standalone only.
    If you have Oracle HTTP Server in front of OC4J and requests being routed via mod_oc4j, then the servername and port values will be set to the value of the Oracle HTTP Server.
    You don't say what version you are using, but I just tried it with an OC4J 10.1.3.1 standalone and it works as described.
    Putting the following in default-web-site.xml:
    <frontend host="foo.bar" port="80"/>
    And then displaying the values using:
    <pre>
    <%=request.getServerName()%>
    <%=request.getServerPort()%>
    </pre>
    Returned:
    foo.bar
    80
    Stripping the <frontend> tag from default-web-site and restarting the server showed the output as:
    localhost
    8888
    Interestingly accesing the Application Server Control home page with the <frontend> set results in an error since the first thing ASC does it to a redirect -- and it tries to redirect the client to http://foo.bar which doesn't exist.
    If you are using Oracle HTTP Server, then you may need to use some virtual-directory magic to set up the virtual host entries to pass along from OHS to the OC4J instance.
    cheers
    -steve-

  • LEVEL attribute for the NavigationPane in ADF11g

    Hi All,
    I am working in ADF11g. I have a requirement to develop page hierarchy using NavigationPanes and NavigationCommanditems. I have to show/nottoshow few navigationpanes.
    Can anyone give me an example for LEVEL attribute for the NavigationPane and how it can be used.
    Thanks in Advance,
    Melissa
    Edited by: user10942366 on Mar 31, 2009 1:56 PM

    Please follow cuecards at:
    http://www.oracle.com/technology/products/jdev/11/cuecards/adf_set_43/ccset43_ALL.html

  • Displaying Entity Level Attributes on Summary screen

    Hi
    Is there a way to show the value of an entity level attribute on the summary screen?
    I need the attribute values for all entity instances to be listed on the summary screen.
    For example, I have a household member entity and I need to display on the summary screen the names of all
    the household members who are above 18 years of age.Is this possible?
    Thanks,
    Lokesh

    Out-of-the-box in version 10, no, you can't attach entity level attributes to the summary screen.
    The new InstanceValueIf function in 10.1 can be used to partially address the issue of wanting to display entity level information on the summary screen. Basically, you can use this function to move a text value from an entity level to the Global level, and that new Global attribute can then be attached to the summary screen.
    Rule syntax:
    InstanceValueIf(<the relationship>, <the value expression>, <the condition expression>)
    Example rule:
    the name of the oldest child = InstanceValueIf(the children, the child's name, the child's age = the age of the oldest child)
    InstanceValueIf: http://www.oracle.com/technology/products/applications/policy-automation/help/opm10_1/Content/Reference/Rule%20syntax%20reference/Entity_and_relationship_functions.htm
    However, this function only works where there is only one entity instance which satisfies the conditional expression. Therefore it wouldn't work for your example as presumably there could be multiple household members who are above 18 years of age.
    You could consider attaching a Global level attribute on the summary screen ("there are household members who are above 18 years") which has a decision report listing the people who satisfy the criteria, e.g.
    there are household members who are above 18 years if
    …..ForAll(the household members, the household member's age is known) and [invisible]
    …..Exists(the household members, the household member is above 18 years of age) [silent]
    the household member is above 18 years of age if
    .....the household member's age > 18
    (Note that I've used the silent and invisible parameters in the first rule to trim the decision report.)
    Imagine the following 4 household members:
    Homer, aged 38
    Marge, aged 36
    Bart, aged 10
    Lisa, aged 8
    Assuming you've set up name substitution in the rule project, the decision report will say "Homer is above 18 years of age" and "Marge is above 18 years of age". As this is the decision report, it won't be displayed directly on the summary screen, but will be accessible via the [Why?] link. This might be as close as you'll get using only out-of-the-box functionality and no customisation.

  • Load Text and Attribute using same DataSource

    Hi,
    Is it possible to load text and attributes using same datasource? If yes than how can this be done?
    Thank you,
    CD

    Yes you are right in that case it will be an attribute , and in the report show it as display attribute. If you want to apply the text at Infoobject level,
    (1) In the change mode of Iinfoobject , check both with Master data and Text boxes , in the Master data /text tab
    (2) Make Flexible or direct update
    (3) Create 2 Infopackages one loading from ATTR data source and the other from TEXT data source respectively.
    hope it helps,

  • If we use DML statement in function then that function can be used inside s

    if we use DML statement in function then that function can be used inside select query or any DML query?

    select f from t2;I think you meant to query t1.
    It works if the function is an autonomous transaction:
    create or replace function f return number
    is
    PRAGMA AUTONOMOUS_TRANSACTION;
    begin
        update t1 set c=2;
        commit;
        return 1;
    end;
    select f from t1But as Billy said why would you want to do DML this way. And this is not the way autonomous procedures should be used either.
    An an answer to an interview question though nothing wrong with it.

  • Populating CRM marketing attributes using the APD

    Hi Experts
    We are having problems with populating CRM marketing attributes using the APD. When we run our process we get the error message:
    CRMBW_ATTR_WRITE005: Error when processing function module CRMBW_UPDATE_BPMKT_5. Message no. RSAN_MDL024
    As you can see, we are using the new function module CRMBW_UPDATE_BPMKT_5 since the old CRMBW_UPDATE_BPMKT did not work either.
    Do we have to add a reference to a infoobject in transaction CRMBWTARGETS? We have not done this because the marketing attribute in CRM doesn’t have decimals and all the objects in BI have. Could this be the cause of the error?
    Kind regards
    Erik

    Hi Ramesh,
    Thanks for quick reply.
    I have already followed the procedure you have described. Since there is not common objects between ODS and Bpatner infoobject, i am not able to do mapping.
    for eg. my ZBPARTNER infoobject has attributes like zfooty, ztennis and zrugby but my ODS has char name , char value, counter for multiple values infoobjects.
    I am following the example in the demo content to work out the process but could not understand how the data is getting uploaded from ODS to Business partner.
    http://help.sap.com/saphelp_nw70/helpdata/en/bf/5df63bf9deaf09e10000000a114084/frameset.htm
    Thanks,
    Sandeep Jogde

  • Implement row-level security using Oracleu2019s Virtual Private Databases (VPD)

    Environment: Business Objects XI R2; Oracle 10g
    Functional Requirement:
    Implement row-level security using Oracleu2019s Virtual Private Databases (VPD) technology. The restriction is that the Business Objects Universe connection should use a generic/u201Capplicationu201D database user account. This will allow the organization to avoid the situation where the Business Objects password and the Oracle password need to be kept in synch.
    What do we need from the Business Objects support team?
    1.     Review the 2 attempted solutions that we have tried to implement
    2.     Propose solutions/answers to open questions for each of the attempted solutions
    3.     Propose any alternate solution that will help us implement the Function Requirement stated above
    Attempted Solution 1: Connection String uses Oracle Proxy User
    The connection string that is specified in the Universe is the following:
    app_user[end_user]/app_user_pwdarrobaDatabase.WORLD
    app_user = generic application user
    end_user = the oracle account of the end user which is set using arrobaVariable('BOUSER') app_user_pwd = password of the generic application user
    We have tried and implemented this in our test environment. However, we have some questions and concerns around how the connections are reused in a connection pool environment.
    Open Question for Solution 1:
    i. What happens when multiple proxy users try to connect on at the same time?  Business Objects shares the generic app_user connect string.  However, every user that logs on will have their own unique proxy user credentials.  Will there be any contention involved?  If so, what kind of errors can we expect?
    ii. If a user logs on using his credentials (proxy user), and business objects opens up a connection to the database using that user's credentials (as the proxy user but logging in through the generic app user). Then the user exits out --> based on our test today, it seems like the database connection remains open.  In that case, if another user logs on similarly with their credentials, will business objects simply assign the first users connection to that second user?  If so, then our security will not work.  Is there a way that Business Objects can somehow ensure that everytime we close a report, the connection is also terminated both at the BO and DB levels?
    iii. Our 3rd question is general high level -> How connection pooling works in general and how it is implemented in BO, i.e. how are new connections assigned, how are they recycled, how are they closed, etc.
    Attempted Solution 2: Using the ConnectInit parameter
    Reading through a couple of the Business Objects documents, it states that u201CUsing the ConnectInit parameter it is possible to send commands to the database when opening the session which can be used to set database specific parameters used for optimization.u201D
    Therefore, we tried to set the parameter in the Universe using several different options:
    ConnectInit = BEGIN SYSTEM.prc_logon('arrobaVARIABLE('BOUSER')'); COMMIT; END; ConnectInit = BEGIN DBMS_SESSION.SET_IDENTIFIER('arrobaVariable('BOUSER')'); COMMIT; END;
    Neither of the above iterations or any variation of that seemed to work. It seems that the variable is not being set or being u201Cexecutedu201D on the database.
    One of the Business Objects documents had stated that Patch ID 38, 977, 350 must be installed in our BO environments. We have verified that this patch has been applied on our system.
    Open Questions for Solution 2:
    How do we get the parameter ConnectInit to work? i.e. what is the proper syntax to enter and what other things do we need to check to get this to work.
    Note: Arroba word is being used instead of the symbol in order to avoid following error message:
    We are sorry but your message can not be posted since you have included an email address. Please remove the email address and re-post.

    the connectinit setting should look something like this:
    declare a date; begin vpd_setup('@VARIABLE('BOUSER')'); Commit; end;
    The vpd_setup procedure (in Oracle) should look like this:
    CREATE OR REPLACE procedure vpd_setup (p_user varchar)IS
    BEGIN
      DBMS_SESSION.set_vpd( 'SESSION_VALUES', 'USERID', p_user );
    END vpd_setup;
    Then you can retrieve the value of the context variable in your vpd functions
    and set the vpd.

  • How to implement row level security using external tables

    Hi All Gurus/ Masters,
    I want to implement row level security using external tables, as I'm not sure how to implement that. and I'm aware of using it by RPD level authentication.
    I can use a filter condition in my user level so that he can access his data only.
    But when i have 4 tables in external tables
    users
    groups
    usergroups
    webgrups
    Then in which table I need to give the filter conditions..
    Pl let me know this ...

    You pull the Group into a repository variable using a session variable init block, then reference that variable in the data filters either in the LTS directly or in the security management as Filters. You reference it with the syntax VALUEOF("NQ_SESSION.Variable Name")
    Hope this helps

  • Loading to Parent level Period using multiload template

    Hi Experts,
    Is it possible to load data to Parent level period using the FDM multiload template to HFM? Does multiload template allow loading of only the leaf level period?
    Thanks
    Kannan.

    FDM does not impose any rstrictions on what you can load into HFM it just respects the load constraints of the target system i.e. if you can't do something directly in HFM you won't be able to do it via FDM. In HFM data can only be loaded to base level members not parents, parents are calculated and are not stored i the HFM database. Therefore you will not be able to load to parent level members in HFM. You can sometimes have excptoions to this but only if the HFM developer has written specific rules to allow this.

  • Universe level creation using IDT 4.0.

    Hi All
    I need one clarification regarding Universe level creation using IDT 4.0.
    I have created small Universe based on 5 tables and I have one alias on this and I have given necessary joins and Created business layer.
    When try to create report using only 2 tables for the report and as we have given join so its taking equal join for others tables which we dnt need for this report, for that we are not getting correct results.
    User is requesting that whenever they select any tables it should link each other table and if they want to add any field from other table universe should automatically link each other and provide desired results.
    Is there any possible to bulid the universe based on the requirement
    Thanks & Regards
    Murali

    Hi,
    could you qualify/quantify what you mean by "wrong results"?
    It doesn't sound like the universe is finished, or are these changing requirements you need to implement?
    with regards to incorrect results, there must still be joins, cardinalities, loops ,  contexts missing, or other integrity issues to be finalized first?
    Regards,
    H

Maybe you are looking for

  • Adding Records Using Stored Procedure (or Cursor?)

    Also, I would like to have a second example of a stored procedure that will add random rows to a table (that is, create duplicates of information already in the table). For example, IF p_value1 = 'FIRST_VALUE' then add this record (incl. seq_no for k

  • Camera connexion - Firewire / USB

    I have a Canon HV30 which has firewire out for getting stuff to a PC or Mac. I need a new laptop, but it seems difficult to find one with Firewire, they all seem to be USB connected. I can get a Firewire to USB converter easily, but will Premiere be

  • Unable to start Photoshop

    NOW WHAT? I already tried uninstall / reinstall.

  • DRM protected program stopped working

    I produce a travel guide made with Flash and protected the Flash app with the Software Passport Mac protection system that assigns a key when a person registers the software. The key is hardware based. It worked fine in Mountain Lion but does not wor

  • Nzos_handshake errors 29039

    Have a clean installation on Microsoft Windows Server 2008 32bit of Oracle Weblogic 10.3.4 32 bit using Java JDK 1.6.0_29-b11 and have successfuly created a Wallet and switched to SSL in Fusion Middleware 11g. Responsivenes is slow at times and clien