Variable Groups in OWB

In the Expression Operator, we have two groups, the input group and the output group. But if there is a need to have some attibutes for storing temporary calculations as well, before assigning them to the attributes of the output group, then under which group should these be made? I am asking for something like a variable group where the attibutes for storing temporary calculations will be made and these attributes can be used by the output group for sending the values to the next transformation.
Please help ..
Regards
Arnab

Hi,
The way I do it is, use two EXPRESSION operators in series, do any temporary calculations in the first and use them in the second operator, to assign it to output attributes with additional calculations.
Hope this helps.
Harsha

Similar Messages

  • System session variable ':GROUP'

    Dear Friends,
    I am having an issue with retrieving a value for the reserved system session variable :GROUP IN OBIEE 11.1.1.5
    From what I’ve read in the other posts I should be able to use :GROUP variable after where clause, and if there is more than one group assigned to a user INSTR should take care of this case. However I can’t get this to work.
    I am using row-wise variable, here is the code
    select 'ORGANIZATIONS' , s.ORGANIZATION_ID
    from T_VZA_SECURITY s
    where
    INSTR(':GROUP', trim(s.group_id)) > 0
    --INSTR('MyGroup', trim(s.group_id)) > 0
    I also tried to replace ':GROUP' session variable with 'VALUEOF(NQ_SESSION.GROUP)'
    my security table
    create table T_VZA_SECURITY
    (GROUP_ID VARCHAR(20),
    ORGANIZATION_ID VARCHAR (20),
    OWNING_DEPARTMENT_ID VARCHAR (20),
    ASSIGNED_DEPARTMENT_ID VARCHAR (20)
    Thank you

    I can't test my statement, it comes back with the error if i specify system session variable. If i replace a group variable with the string it works.
    I don't see how i can set the execution order - i only have one init block with row-wise initialization enabled. Basically followed
    http://www.rittmanmead.com/2012/03/obiee-11g-security-week-row-level-security/
    guide, and it does work for :USER but doesn't for :GROUP.
    Thank you for spending time to look at the issue!

  • Load more than one user groups to system session variable GROUP from table

    hi, I found that the value of the system session variable GROUP can be assigned by setting a sql in initialization blocks.
    however, if there are some users with more than one user group.
    can this be done by table driven (using sql in initialization blocks) ?
    thanks !!

    Referencing GROUP session variable in initialization blocks for different types of authentication
    http://108obiee.blogspot.com/2009/10/referencing-group-session-variable-in.html
    Users are assigned to multiple groups from external table with semicolons, see example two and three from the post.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Global Variable Access in OWB.

    Hi All,
    OWB Client 9.0.2.56.0
    OWB Repository 9.0.2.0.0
    Is it possble to have variables whose values can be accessed and updated across mappings?
    eg global variables which can be referred/modified in any mappings
    Thanks in Advance.
    Regards,
    Vidyanand

    To implement this, you could persist a value in a temporary table from a certain mapping and then read the value from another mapping that uses that value as an input parameter (if they run sequentially from a process flow, for example).
    Regards:
    Igor

  • Validation of variable groups

    hi any1 pls help...
    how do i validate a jsp form which has example "x" textboxes with same name of choice<%=i%> and when i increase "i" i have another group of choices with another set of same names called
    choice<%=i+1%>
    i try using the code below but it doesnt work
    var d=0;
    for(var d=0;d< <%=i%>; d++){
    for (var h= 0; h < document.example.choices(d+1).length; h++) {
    var val2 = eval("document.example.choices[h]" +(d+1) + ".value");
    if (val2 == ""){
    alert("please fill in all the blanks.");
    return false; }
    }

    Hi..
    Im having doubt in jsp & its urgent need for me..help out...
    Im having multiple html textbox of same name. Onclicking that textbox
    i have to call one JS page that creates calendar window which returns date
    to same textbox after selection.
    For single textbox, the values returns corretly..for multiple it doesnt return
    the value..coz of same name i think..
    Code:
    <script language="JavaScript" src="CmJavaScript.JS" ></script>
    <td class="table-text-tab"><input type=text name=a_date onClick=javascript:showcal('testForm.this.value'); value=<%=rs0.getString(5)%> size=13>
    <td class="table-text-tab"><input type=text name=f_date onClick=javascript:showcal('testForm.this.value'); value=<%=rs0.getString(7)%> size=13>
    Here showcal is the functionname & testform is the form name.
    here this two table data will be looped till the end of record selection.
    for example if i select 2 records in previous page..this code will be executed twice & will display textbox twice with same name..
    ie
    a_date ------------ f_date -----------
    a_date ------------ f_date -----------
    if i click first a_date textbox it populates calendar thru JS which returns date.
    bcoz of same textbox name..it doesnt returns the value...
    i mean its confused where to return whether in 1st (r) 2nd textbox?

  • Using row-wise multi-value GROUP system session variable in report filter

    The title says it all except I am using 10g OBIEE.
    What I want to do is filter on the dynamic system session variable GROUP created in a row-wise initialization block.
    The GROUP vriable is being set up correctly and it shows the user dynamically put into the correct groups in Answers.
    (Using the admin tool and looking at the user session, only the initial authentication block variables show up.)
    But if I want to filter using the value of GROUP it doesn't work.
    The obvious way is to choose the filter icon, then choose Add -> Variable -> Session, enter GROUP, and then display results.
    It comes back with no rows.
    Any idea how to do this? I've tried lots of things but none of them work either producing no rows or an error.
    This is the kind of Answers SQL this report is resulting in, which makes sense to me, but produces no rows.
    SELECT "Package Virtual Group (Dim)"."Package Virtual Group" saw_0, "Contact (Fact)"."Contacts All Count" saw_1 FROM "Case/Transaction/ABC" WHERE "Package Virtual Group (Dim)"."Package Virtual Group" = VALUEOF(NQ_SESSION."GROUP") ORDER BY saw_0

    866038 wrote:
    Errors come from trying things that don't work.
    For example, instead of =, using IN VALUEOF(NQ_SESSION.GROUP) or @{session.GROUP} or lots of other things.
    The question is this:
    how can I filter a column in Answers using the GROUP session variable which had been initialized in a row-wise initialization block?
    I can find no way to do it. Mostly it returns no rows.Hi,
    we had a similar requirement, where we have an external name that has project number values. We used row wise initialization to capture all the projects that a user belongs to. Then, we applied the filters at the RPD level, instead of doing it at the report level. From you requirement I see that you are trying to filter the groups based on user login. When a user logs in, he will see the information about the groups that he only belongs to. Correct me if I am wrong here.
    Assuming I am right about your requirement, providing the filter that you need apply in RPD.
    On all the fact tables are joined to the Package Virtual Group dimension, apply the below filter.
    case when 1=1 then (Dim)"."Package Virtual Group" END = VALUEOF(NQ_SESSION."GROUP");
    The reason for use of case statement here is, it converts the logical sql to IN Clause, helping us acheive the exact query that we would want.
    Please Award points if this helps.
    Thanks,
    -Amith.

  • Session variable using :GROUP variable in init block

    I'd like to filter using session variable.
    This session variaible should be build using :GROUP special session variable
    I'd like do something like this (init block):
    select  case when instr(upper(':GROUP'), 'ADMINISTRATOR')>0 then 'Yes' else 'No' end from dual
    but it seems to doesn't work properly (It means I have always 'No' value)
    After investigation i did some simple test
    initialization block like this:
    select  upper(':USER'),upper(':GROUP') from dual
    set variables using above init block: UPP_USER and UPP_GROUP
    next i did simple reques with 4 columns:
    *1. VALUEOF(NQ_SESSION.USER)*
    *2. VALUEOF(NQ_SESSION.GROUP)*
    *3. VALUEOF(NQ_SESSION.UPP_USER)*
    *4. VALUEOF(NQ_SESSION.UPP_GROUP)*
    and my result is:
    1. Administrator
    2. Administrators;IT_Deparment ....
    3. ADMINISTRATOR
    4. _:GROUP_
    Why in 4th column I didn't get: ADMINISTRATOR;IT_DEPARTMENTS ....
    Can I use special variable GROUP in initialization block?
    Could someone explain it?

    Hi,
    Only :USER and :PASSWORD are available
    try (select 'VALUEOF(NQ_SESSION.USER)', 'VALUEOF(NQ_SESSION.GROUP)' from dual instead.
    (You migth have to force a fill of the group variable first)
    Regards
    John
    http://obiee101.blogspot.com/

  • Error in OWB deployment Scripts

    My OWB deployment scripts (the SQL PACKAGES created post deployment) are having errors.
    When my source table, target table are in the same warehouse target schema which is owned by the Runtime Repository, the deployment scripts are working fine. But if the source or target table is moved to a different schema then the deployment scripts are giving errors saying - "PL/SQL: ORA-00942: table or view does not exist".
    Please let me know how to rectify this error when my source and/or target tables are in separate schema....
    -arnab

    The problem is solved. One more question I have, in the Expression Operator, we have two groups, the input group and the output group. But if there is a need to have some attibutes for storing temporary calculations as well, before assigning them to the attributes of the output group, then under which group should these be made? I am asking for something like a variable group where the attibutes for storing temporary calculations will be made and these attributes can be used by the output group for sending the values to the next transformation.
    Please help ..
    Regards
    Arnab

  • Problem while incrementing a variable in Jasper Reports

    Hi
    I am using Jasper Reports for designing reports. These reports will be used by my Java application.
    But there is problem while I am trying to increment a variable depending on some condition.
    Requirement: I have to display information about all the residents in a hospital in a single report. Resident information will be fetched from the XML file. When a resident ID is found in the XML, then the variable(resno) shoud be incremented. I have set the initial value to 1.
    Problem: Only for the first resident, resno is showing as 1. For all the remaining residents, its showing as 0 (zero).The variable 'resno' is not incrementing for each resident.
    Even the ResidentID is not null. All the ResidentID's exists in the XML file.
    Please find the code below.
    <variable name="resno" class="java.lang.Integer" incrementType="Group" incrementGroup="residentbrk" calculation="Count">
    <initialValueExpression><![CDATA[new Integer(1)]]></initialValueExpression>
    </variable>
    <group name="residentbrk" isStartNewPage="true">
    <groupExpression><![CDATA[$F{ResidentID}]]></groupExpression>
    <groupHeader>
    <band height="16">
    <textField hyperlinkType="None">
    <reportElement positionType="Float" x="0" y="-1" width="96" height="17"/>
    <textElement>
    <font isBold="true"/>
    </textElement>
    <textFieldExpression class="java.lang.String"><![CDATA[$R{residentno}]]></textFieldExpression>
    </textField>
    <textField hyperlinkType="None">
    <reportElement positionType="Float" x="96" y="-2" width="64" height="18"/>
    <textElement/>
    <textFieldExpression class="java.lang.Integer"><![CDATA[$V{resno}]]></textFieldExpression>
    </textField>
    </band>
    </groupHeader>
    </group>
    Could you please provide a solution for this.

    Not clear at all. May be like this
    declare
    v_temp varchar2(100);
    v_final number;
    begin
    --loop
    v_temp:='sun';
    v_temp:=translate(lower(v_temp), '1abcdefghijklmnopqrstuvwxyz', '1');
    dbms_output.put_line('Temp:'||v_temp);
    v_temp := v_temp || 'Mon5.1';
    v_temp:=translate(lower(v_temp), '1abcdefghijklmnopqrstuvwxyz', '1');
    dbms_output.put_line('Temp:'||v_temp);
    v_temp:= v_temp || 'Tue';
    v_temp:=translate(lower(v_temp), '1abcdefghijklmnopqrstuvwxyz', '1');
    dbms_output.put_line('Temp:'||v_temp);
    v_final:=to_number(v_temp);
    dbms_output.put_line('v_final'||v_final);
    --coalesce
    --end loop;
    end;
    /

  • SEM BPS locking even after user switches to a new variable value

    Hi,
    This is locking related question & appreciate any kind of suggestion.
    Users are locking previously planned variable value even after changing to a new value which is causing another user with a  locking issue.
    I've a variable GROUP defined at planning level & included in the planning folder.
    let's say USER1 is planning for GROUP1 & saved the data after planning.
    same user has changed the variable to GROUP2 & is planning now without leaving UPSPL session.
    at this point, when USER2 tries to plan for GROUP1 & is faced with a message "USER1 is currently processing the data".
    currently, USER1 is planning for GROUP2 right? so, why it's still giving locking message (locking GROUP1).
    I even followed SAP note 635244 & created a DB table & included GROUP characteristic in to the table but of not much help.
    even after this, I still see that USER1 is locking both GROUP1 & GROUP2 in report UPC_ENQUEUE_READ.
    Appreciate if any one can share your ideas to deal this kind of issue.

    Hi Hari,
    You indicated in your 1st post, that User 1 is able to access both Group 1 and Group 2. I am assuming in your configuration, multiple users share the same values in the Group variable and they are making selections on execution of your planning application.
    If this is the case, User 1 switching to Group 2 using, e.g., a drop-down menu does not remove the lock on Group 1. Hence User 2 will get the lock message.
    You defining a table in DDIC only specifies Group as a lock relevant characteristic. It will not prevent locking in this fashion.
    The probable options could be:
    1. Consider dividing Groups amongst users, and use user-specific values for your variable;
    2. Consider additional characteristic that will separate data sets.
    The central question I would ask about this planning process, is why would different users be editing the same group at the same time? Is there a way to differentiate their planning needs? That might help in your modeling.
    Hope this helps.
    William Lee

  • Error in OWB installation in Fedora 7

    I tries to install OWB9.2 in Fedora 7 . While installing I got the error
    /media/OWB_9.2_Linux/Disk1/stage/Components/oracle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
    I checked libstdc++ in /usr/lib directory I got following link file as
    libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.2-2.so.3
    How I resolve the problem Please help

    The problem is solved. One more question I have, in the Expression Operator, we have two groups, the input group and the output group. But if there is a need to have some attibutes for storing temporary calculations as well, before assigning them to the attributes of the output group, then under which group should these be made? I am asking for something like a variable group where the attibutes for storing temporary calculations will be made and these attributes can be used by the output group for sending the values to the next transformation.
    Please help ..
    Regards
    Arnab

  • OWB 9i Features.

    Hi All,
    I am planing to prepare a comparison document for feature provided by Oracle Warehouse Builder & Ab initio ver 1.11.15 as ETL.
    OWB config details
    Oracle Warehouse Builder Client 9i Ver 9.2.0.2.8
    Oracle Warehouse Builder Repository Ver 9.2.0.2.0.
    Windows XP OS.
    I believe following features are not avaialable in OWB 9i Release.
    1> OWB doesn't support Array, Union, Vector handling.
    2> OWB can read only ASCII Serial files & not Binary, Multifiles.
    3> Global Library feature is not available in OWB. To make it clear in Abinitio there is concept of Project Parameter file which can hold Global Variables can be referred in Ab initio graph, also these variables value can be assigned by execution of Unix Shell script.
    4> OWB doesn't support dynamic execution in a mapping. E.g. If a mapping consist of 5 flow operators at run time based on certain criteria certain flow operators can be disabled & will not get executed. This feature is available in Abinitio.
    5> Change Manager in OWB provides limited feature for Config Management.
    6> Optimization can be achieved by setting Set Based or Row Based option in configuration of OWB mapping.
    7> No flow operator is available for Cumulative summary records.
    8> Plug in component is required for Name & Address flow operator.
    I am aware that Oracle is planing to launch a new release OWB 10 G & it may be possible that some of above features will be available in the new release.
    Can someone please confirm my understanding is correct?
    Thanks in Advance.
    Regards,
    Vidyanand

    Hi Vidyanand,
    I will try to address some of your concerns/questions, but may need some more information on some of them:
    1> OWB doesn't support Array, Union, Vector handling.
    JPD: Array's are supported in the next release (end of the year). I'm not sure what you mean with Union (I'm guessing this NOT as SQL union) and vector handling. Can you elaborate a bit on those terms?
    2> OWB can read only ASCII Serial files & not Binary, Multifiles.
    JPD: OWB supports the capabilities of SQL Loader and External Tables. SQL Loader should be able to handle multiple files...
    3> Global Library feature is not available in OWB. To make it clear in Abinitio there is concept of Project Parameter file which can hold Global Variables can be referred in Ab initio graph, also these variables value can be assigned by execution of Unix Shell script.
    JPD: We are adding both global and local variable support in OWB (end of the year). You will be able to store the variables on the platform, which of course is in the database (secure and easy to access).
    4> OWB doesn't support dynamic execution in a mapping. E.g. If a mapping consist of 5 flow operators at run time based on certain criteria certain flow operators can be disabled & will not get executed. This feature is available in Abinitio.
    JPD: While this sounds very interesting, I'm struggling a bit with when you would want to use this, and even more with how the flow would be linked together if I randomly switch of operators...
    One of the things to keep in mind is that OWB generates code (I believe Ab Initio does not and interprets metadata at runtime). So this feature is harder to implement in a code generator. However I'm not convinced this is a crucial feature for ETL... Any thoughts?
    5> Change Manager in OWB provides limited feature for Config Management.
    JPD: Change Manager is intended for version management. We are adding full multi-configuration support in the next release where you can attach physical characteristic to objects. That combined with Change Manager will give you a much better configuration management tool.
    6> Optimization can be achieved by setting Set Based or Row Based option in configuration of OWB mapping.
    JPD: This is actually not correct. Set based vs row based will influence performance but is not intended for just that! It gives you different ways of interpreting a graph. In Row based you can do if-then code and row-by-row evaluations. Setbased has only SQL language as implementation.
    You can influence performance with various parameters:
    - Oracle DB Hints on both extract and load operators (in mapping that is)
    - Set the parallel degree on the objects (invokes database parallelism)
    - Influence the various code flavors with:
    > Bulk Processing and Bulk Size for processing multiple rows in one go (for rowbased settings)
    > Parallel row code (for rowbased settings)
    The latter allows you run PL/SQL row based sections in parallel within the DB (transparently).
    7> No flow operator is available for Cumulative summary records.
    JPD: I'm not sure what this means, is this covered by the aggregator?
    8> Plug in component is required for Name & Address flow operator.
    JPD: OWB supports this natively. What you do need is to purchase the library files that the operator runs on and you can do that from First Logic, Trillium and Data Flux allowing you to use OWB with the market leading data libraries (or with localized ones if desired). We think this is a much stronger story than a closed box vendor specific solution. OWB is intended to work globally and we open up this interface as some vendors have better support in some regions as others.
    But just to state this again, you do NOT need any plug-ins into the client tool and it is all there natively. You just have a choice of data libraries.
    Match/Merge is of course also supported and this is completely native (and free of charge).
    I sincerely think that OWB has the strongest data quality story in the ETL business!

  • Setting LDAP group to user

    Hi all.
    I have user in AD, who is member of 2 groups, like
    CN=GROUP1,CN=Users,DC=local
    CN=GROUP2,CN=Users,DC=localIn Administration tool I bind to session variable GROUP LDAP variable "memberOf" (see picture 1).
    In this variable BI sets values of only one first group:
    CN=GROUP1,CN=Users,DC=localHow to get all groups from LDAP, in format that?
    CN=GROUP1,CN=Users,DC=local;CN=GROUP2,CN=Users,DC=local

    OBIEE 10.x doesnt support LDAP for multi group assignments, I'd suggest you create a database pl/sql package to return the groups as either rows (and use a row-wise init block to assign these to a GROUP variable) or simply return them as a delimited list, using ';' to delimit the groups.
    Plenty of example LDAP pl/sql packages out there using OID as the LDAP server.

  • Variable type

    Dear All
    I tried to set a path of field as below Code.
    in case of case1, i can set a presence property to extPath.
    but in case of case2, i can't set a presence property to extPath.
    is there any function to change type of variable such as toString().
    case 1
         var extPath = Test_Report.Test_Result2;
    case 2
         var extPath = "Test_Report.Test_Result2";
    ------------------------------------------ Code ------------------------------------------
    var extPath = Test_Report.Test_Result2;
    var typeOfdevice = Test_Report.Test_Cover.sub_Cover_info.Cover_info.info_Device.D_Drop.rawValue;
    var changeEvent = xfa.event.change;
         if(typeOfdevice == "범용"){
              Init.setPresence(extPath, "visible");
    // In the Init variable group
    //Set Presence of Field or subform
    function setPresence(obj, block){
    obj.presence = block;

    var extPath = Test_Report.Test_Result2.rawValue;
    If est_Report.Test_Result2 is a text field extPath should be a string. If you are suspicious of type coercion and run-time errors you can use standard JavaScript methods, for example
    var str = Test_Report.Test_Result2.rawValue;
    var extPath = str.toString();
    or
    var str = Test_Report.Test_Result2.rawValue;
    var extPath = parseInt(str);
    or
    var str = Test_Report.Test_Result2.rawValue;
    var extPath = parseFloat(str);
    etcetera.
    Steve

  • Programtically how to read groups for given role

    Hi,
    I have scenario like this.
    1. Create a group called "officeAdmin"
    2. Create a group called "users" under group "officeAdmin"
    3. Create a user called "companyadministrator" under "everyone" tree structure
    of admin portal
    4. create delegated administrator role called "companyrole" for a user "companyadministrator"
    5. assign "companyrole" to group "officeAdmin".
    so user "companyadministrator" will be administrator for "officeadmin" group
    and its child.
    Now my requirements is when "companyadministrator" login i should get only groups
    which he can administer i.e in this case i should get only "officeadmin" and "users"
    groups.
    Please help me how i should programatically get the groups "officeadmin" and "users"
    when "companyadministrator" logs in.
    test the scenaio : create the above scenario using admin portal and then login
    as "companyAdministrator" and you can see only "officeAdmin" and its child groups.
    thanks,
    shashi

    I found this to be true as well. We solved the problem by populating a session variable "GROUP" then initilizing the values at login, which requires you to connect to LDAP everytime a session is created. If you are assisgning privs to the groups they need to be manually created in the repository so that the priv/Subject Area assignments can be made. Venkat BLOG'd about this at http://oraclebizint.wordpress.com/2007/10/10/oracle-bi-ee-101332-using-ldapoid-authentication/

Maybe you are looking for

  • SQL Report query ORA-06502: PL/SQL: numeric or value error: character strin

    Hello, I have saved below query in the sql scripts, which executes good under SQL Developer, select     "RVV"."RLNUM" as "RLNUM",      "GVREB"."RLNUM" as "RLNUM",      "TVV"."RLNUM" as "RLNUM_1",      "Regulation"."CODE" as "CODE",      "Regulation".

  • Stacked Column Report bug when one series has zero for data

    Hi, I'm encountering an issue with the stacked charts. In my chart, I want to show the total of active and expired records for each year. I created a series for each, and the SQL for them is below: Active (1st series created): select '' link,to_char(

  • My time capsule works with my laptop but not my iphones and states it has no internet connection even though it is working on my laptop.

    I purchased a time capsule when I upgraded my iphone to the iphone 5 in November of 12.  The time capsule was very easy to set up and both phones and the laptop worked great. In March of this year, the iphones would no longer connect to the time caps

  • How do you back up?

    Hello, Here is what I have: a dual 1.8 with a Granite Digital 1.6TB RAID 5 tower. This acts as the server. Connecting to it is a Dual 2.7 via giga-bit and a laptop wirelessly. All RAW files are on the RAID 5. We shoot primarily weddings with two phot

  • BBM Group Chat Question

    BBM group chat question - from time to time, additional chats show up in our group that have no messages in them. When someone posts in one, the whole group sees it and the admins can delete it, but otherwise they tend to be localized to one or two m