OLS and data tree structure

Hi,
I've a table containing data that are hierarchycally organized and display in an
application as folder and documents.
table listgerm(
id number(5) primary key
lname varchar2(50),
ltype varchar2(10),
pid number(5));
ltype equals to FOLDER or DOC corresponding to folder or document entry.
pid is the parent/ancestor of an id.
it have null if root node.
Here is a "graphical representation" of the folder
B&PD
|-->SEASIA
----|-->VIETNAM
--------|-->BREEDING
------------|-->Doc1
------------|-->Doc2
----|-->PHILIPPINES
--------|-->TRIALS
------------|-->Doc5
------------|-->Doc6
|-->SASIA
|-->INDIA
|-->BREEDING
------------|-->Doc3
------------|-->Doc4
B&PD, SEASIA, SASIA, INDIA, VIETNAM and PHILIPPINES are folders.
B&PD is my root node.
Doc1 to Doc6 are documents.
My goal is to apply OLS on such structure without completely loosing the hierarchical structure.
For OLS, I determined
- one level: Public,
- two compartments: BREEDING and TRIAL,
- and groups based on the location hierarchy.
Here is how I organized label according data structure.
Data | Label
B&PD | Public
|-->SEASIA | Public::SEASIA
----|-->VIETNAM | Public::VIETNAM
--------|-->BREEDING | Public:BREEDING:VIETNAM
------------|-->Doc1 | Public:BREEDING:VIETNAM
------------|-->Doc2 | Public:BREEDING:VIETNAM
----|-->PHILIPPINES | Public::PHILIPPINES
--------|-->TRIALS | Public:TRIAL:PHILIPPINES
------------|-->Doc5 | Public:TRIAL:PHILIPPINES
------------|-->Doc6 | Public:TRIAL:PHILIPPINES
|-->SASIA | Public::SASIA
----|-->INDIA | Public::INDIA
--------|-->BREEDING | Public:BREEDING:INDIA
------------|-->Doc3 | Public:BREEDING:INDIA
------------|-->Doc4 | Public:BREEDING:INDIA
My problem comes when I apply user label.
Suppose I have a user called Paul who need to access all BREEDING data (VIETNAM and INDIA).
So I will give him the following label
Public:BREEDING:VIETNAM,INDIA
He will be able to see everything except the folder SEASIA and SASIA ; breaking the hierarchy.
How can I solve this?
Cheers,
Sebastien

Hi,
I may be miss a trick on how to handle my problem.
May someone help me to solve it, please ?
Cheers,
Sebastien

Similar Messages

  • How should I set up my csv data file and data load structure?

    I'm a little lost on the best way a) format my data for csv and b) what type should it be loaded as. It is for a spaceship battle game.
    InternalItems = some data type that can be from 0 to 20 items like computers, engine boosters, etc.
    ExternalItems = some data type that can be from 0 to 20 items like weapons, sensors, etc.
    Format for InternalItems and ExternalItems "Database ID / Item ID,"
    Multiple items would look like "2/1, 1/2, 2/1"
    // database id 1
    ship.csv
    ID, Name, ExternalItems, InternalItems
    1, "Enterprise","2/1, 2/1", "3/1"
    2, "Galactia", "2/1","3/1"
    // database id 2
    weapon.csv
    ID, Name, Damage
    1, "Phaser", 5
    // database id 3
    engineboost.csv
    ID, Name, Boost
    1, "Super Fuel", 4
    LoadCSV parses External items and loads them into the ship class.
    1) Is there a better way to set up the External/internal lists? "2/1, 2/1, 2/2" etc..
    2) Once parsed, how should these be loaded into a ship class? ArrayList? Array? Hashtable? Basically in battle, the app should loop through weapons to shoot them. For a ship editor, an arraylist seems best, but for optimized combat it seems like an array or hashtable.

    1) Is there a better way to set up the External/internal lists? "2/1, 2/1, 2/2" etc..That's the best way to store an array of an array into a 2D grid.
    2) Once parsed, how should these be loaded into a ship class? ArrayList? Array? Hashtable? Basically in battle, the app should loop through weapons to shoot them. For a ship editor, an arraylist seems best, but for optimized combat it seems like an array or hashtable.If you think the searching is going to slow you down, hash table and array lookup is the way to go. If your indexing range is small, array lookup is the fastest. Hashing requires running hashCode() and does unoptimized searches during collision.

  • What's the easiest way to move app data and data structures to a server?

    Hi guys,
    I've been developing my app locally with Apex 4.2 and Oracle 11g XE on Windows 7. It's getting close to the time to move the app to an Oracle Apex server. I imagine Export/Import is the way to move the app. But what about the app tables and data (those tables/data like "customer" and "account" created specifically for the app)? I've been using a data modeling tool, so I can run a DDL script to create the data structures on the server. What is the easiest way to move the app data to the server? Is there a way to move both structures and data in one process?
    Thanks,
    Kim

    There's probably another way to get here, but, in SQL Developer, on the tree navigation, expand the objects down to your table, right click, then click EXPORT.. there you will see all the options. This is a tedious process and it sucks IMO, but yeah, it works. It sucks mostly because 1) it's one table at a time, 2) if your data model is robust and has constraints, and sequences and triggers, then you'll have to disable them all for the insert, and hope that you can re-enable constraints, etc without a glitch (good luck, unless you have only a handful of tables)
    I prefer using the oracle command line EXP to export an entire schema, then on the target server I use IMP to import the schema. That way, it's near exact. This makes life messy if you develop more than one application in a single schema, and I've felt that pain -- however -- it's a whole lot easier to drop tables and other objects than it is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. just blow away what you don't want on the target after the fact..)
    You could use oracle's datapump method too.
    Alternatively, what can be done, IF you have access to both servers from your SQL developer instance (or if you can tnsping them both already from the command line, you can use SQL*PLUS), is run a script that will identify your apex apps' objects (usually by prefix to object names, like EBA_PROJ_%, etc) and do all the manual work for you. I've created a script that does exactly this so that I can move data from dev to prod servers over a dblink. It's tricky because of the order that must be executed to disable constraints and then re-enable them, and of course, trickier if you don't consistently prefix ALL of your "application objects"... (tables, views, triggers, sequences, functions, procs, indexes, etc)

  • How to persist parent  and child tree node data through JSF and Hibernate

    Dear dudes,
    I'm a novice to JSF and Hibernate
    Actually i want to create a tree structure where for each child node, i should have the parent node reference in my form and then when i save, i need to save the corresponding child node data in the database.
    node-1
      node 1-1
         node 1-11a
      node 1-2
    node-2
       node 2-1
       node2-2Whenever i click node 1-1 the corresponding parent node ( node-1) reference should appear in my form and when i save this data this data should be saved under parent node and the tree should be re-rendered.
    How this can be accomplished and if there are any URL's please refer.

    Everybody need not face the same problem you faced. And moreover, everyone out here have their own issues to solve. If people are helping out here, its cause of their passion. Please try to be polite.
    First of all, what is that you have tried on the issue? Could you please share your work so that we can try to fill the gaps?

  • Save tree structure to text file and load textfile to another tree control

    I'm able to save the structure and data to a text file, thanks to the "save tree structure to textfile" info found on this msg board, but can't seem to load the complete tree structure data from the text file into another tree. I've only been able to load parent data but can't get the hierarchy of the tree with the indents and child data to work.
    Thanks

    Thanks Tanya,
    However, I'm still stumped on how to copy (from text file) to other columns in the tree (from one tree to another).  I can only get the first column to load.
    I've attached my working VI and a textfile that I use to load into the "User list" tree.
    Rick
    Attachments:
    Text File to Tree V2.2.vi ‏58 KB
    test file save16.txt ‏1 KB

  • How to  create Tree Structure for given data?

    Hi,
    I have to create a tree structure of Folders and the contents in the Folder.
    I have a XML, it contains data for the tree structure to display. How can I create a tree structure which would look like below
    Parent
       Child
         Supporting Views
            Raw eInfotree Table Views
            Background Calculations
            QC Data Views
         Calculation Views
         Unit Operation Views
            Cell Culture Views
            Purification Views
            MFR Views
         Personal Views
    All the nodes should have folder Icon.
    Please find the XML as
    <?xml version="1.0" encoding="UTF-8"?><Rowsets DateCreated="2007-05-02T07:37:37" EndDate="2007-05-02T16:59:53" StartDate="2007-05-02T16:59:53" Version="11.5.3"><Rowset><Columns><Column Description="" MaxRange="1" MinRange="0" Name="TK" SQLDataType="4" SourceColumn="TK"/><Column Description="" MaxRange="1" MinRange="0" Name="NAME" SQLDataType="1" SourceColumn="NAME"/><Column Description="" MaxRange="1" MinRange="0" Name="TYPE" SQLDataType="1" SourceColumn="TYPE"/><Column Description="" MaxRange="1" MinRange="0" Name="PK" SQLDataType="4" SourceColumn="PK"/></Columns>
    <Row><TK>1</TK><NAME>Parent</NAME><TYPE>F</TYPE><PK>0</PK></Row>
    <Row><TK>2</TK><NAME>Child</NAME><TYPE>F</TYPE><PK>1</PK></Row>
    <Row><TK>3</TK><NAME>Supporting Views</NAME><TYPE>F</TYPE><PK>2</PK></Row>
    <Row><TK>4</TK><NAME>Raw eInfotree Table Views</NAME><TYPE>F</TYPE><PK>3</PK></Row>
    <Row><TK>5</TK><NAME>Background Calculations</NAME><TYPE>F</TYPE><PK>3</PK></Row>
    <Row><TK>6</TK><NAME>QC Data Views</NAME><TYPE>F</TYPE><PK>3</PK></Row>
    <Row><TK>7</TK><NAME>Calculation Views</NAME><TYPE>F</TYPE><PK>2</PK></Row>
    <Row><TK>8</TK><NAME>Unit Operation Views</NAME><TYPE>F</TYPE><PK>2</PK></Row>
    <Row><TK>9</TK><NAME>Cell Culture Views</NAME><TYPE>F</TYPE><PK>8</PK></Row>
    <Row><TK>10</TK><NAME>Purification Views</NAME><TYPE>F</TYPE><PK>8</PK></Row>
    <Row><TK>11</TK><NAME>MFR Views</NAME><TYPE>F</TYPE><PK>8</PK></Row>
    <Row><TK>12</TK><NAME>Personal Views</NAME><TYPE>F</TYPE><PK>2</PK></Row>
    </Rowset>
    </Rowsets>

    Vishal,
    If you structure your data with two columns, the first being the Node name and the second being the Parent node name (see your information below), the iBrowser applet will make a nice data driven tree with all of the SelectionEvent or navigational capabilities you want.
    <?xml version="1.0" encoding="UTF-8"?>
    <Rowsets DateCreated="2007-05-02T07:37:37" EndDate="2007-05-02T16:59:53" StartDate="2007-05-02T16:59:53" Version="11.5.3">
    <Rowset><Columns><Column Description="" MaxRange="1" MinRange="0" Name="NAME" SQLDataType="1" SourceColumn="NAME"/><Column Description="" MaxRange="1" MinRange="0" Name="PARENT" SQLDataType="1" SourceColumn="PARENT"/></Columns>
    <Row><NAME>Parent</NAME><PARENT></PARENT></Row>
    <Row><NAME>Child</NAME><PARENT>Parent</PARENT></Row>
    <Row><NAME>Supporting Views</NAME><PARENT>Child</PARENT></Row>
    <Row><NAME>Calculation Views</NAME><PARENT>Child</PARENT></Row>
    <Row><NAME>Unit Operation Views</NAME><PARENT>Child</PARENT></Row>
    <Row><NAME>Personal Views</NAME><PARENT>Child</PARENT></Row>
    <Row><NAME>Raw eInfotree Table Views</NAME><PARENT>Supporting Views</PARENT></Row>
    <Row><NAME>Background Calculations</NAME><PARENT>Supporting Views</PARENT></Row>
    <Row><NAME>QC Data Views</NAME><PARENT>Supporting Views</PARENT></Row>
    <Row><NAME>Cell Culture Views</NAME><PARENT>Unit Operation Views</PARENT></Row>
    <Row><NAME>Purification Views</NAME><PARENT>Unit Operation Views</PARENT></Row>
    <Row><NAME>MFR Views</NAME><PARENT>Unit Operation Views</PARENT></Row>
    </Rowset>
    </Rowsets>
    Regards,
    Jeremy

  • WebLogic missing data on JNDI Tree Structure

    I need to work with Tuxedo through WebLogic, but I am having a bad time trying to figure what is going wrong in here. I have installed WebLogic 10.3 twice and still can't make it right.
    In the JNDI Tree Structure many data is missing (among them tuxedo) and can't find a way to fix it.
    Please, if anyone can give me a light I'll appreciate it.
    Regards.
    Pablo Bustos.
    EDIT: I am running WebLogic 10.3 on Windows XP 32bits.

    Hi,
    Check this debug in ur environment.
    -Dweblogic.jndi.retainenvironment=true
    this should show you the path.
    Regards,
    Kal.

  • Updating data using a tree structure?

    Hi,
    I need to change some hierarchical data and wondered the best way to do it.
    Basically I have a menu table which I query as a tree structure:
    select menu_name, level, option_text, displayed
    from menu_option
    start with menu_name = 'CONTROL' and option_number >= 0
    connect by prior command_line = menu_name
    command line has the next menu in the level, unless its a leaf!
    What I want to do is, if a 'parent' has the displayed flag set to N, change all the children underneath to N as well. Whats the neatest way to do this in PL/SQL or SQL statements?
    Thanks,
    Tracey.

    How about
    update menu_option m1
    set displayed = 'N'
    where exists
    (select 1
    from menu_option m2
    where m2.displayed = 'N'
    start with m2.menu_name = m1.menu_name
    connect by prior m2.menu_name = m2.command_line)

  • I would like to know where the forum tree structure is so I can see what I'm doing and not be led around to irrelevant information.

    I'm having trouble '''Finding''' the forum where I can look for the information I need. I keep ending up in '''endless menus of non-helpful information. '''
    I got a popup message, I needed to upgrade to 3.6.17. After allowing it and rebooting, I couldn't start FF anymore, just got a crash report. I tried going to the restore point I had set with no luck and I tried creating a new profile. I lost all my bookmarks (only the Cache remained). And I sat in live chat for an hour waiting for help. German live chat had one helper and English live chat was closed.
    So I gave up on help, uninstalled FF 3.6.17 and downloaded FF 3.6.15 and installed it. It loads but all bookmarks are gone. More importantly, now when I load the bookmarks, I can't '''retrieve''' them except by storing a new one. '''Only''' when I create a new bookmark can I see the folders I've created. I can't get to the organizer so I can't use the bookmarks to retrieve websites.
    I'm disturbed that I can't get to the tree-structure forum where I can get the help I need. This "lead me around" labyrinth from one question to another, without being able to look through the forum for the information I need, is not helpful.
    Thank you.
    Foxhunt

    I believe you just are able to delete them from iTunes.
    Hope it will be helpful

  • What is difference between data base structure and stucure  in program

    what is difference between data base structure and stucure  declared in program  level . can  explain cleary if knows

    Hi,
    Data base structure is global decalaration you can reffer this structure in any of your developments, when ever you cahange this structure the changes automatically will get updated in all the programs.
    coming to structures in program it is local to your program only, if you want to change the structure again you have to open the program and do the necessary changes.
    Reward if useful.
    Thanks,
    Sreeram.

  • Problem to transform Flat file to Data Type Structurated and map to IDOC

    Hi all,
    I have a file to idoc scenario.
    The information is like this:
    1#!445#!AI12#!1#!20070214#!DVXXXXR#!201#!31GINHG876#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    where 1, 2, ... = key segments for the file adapter and #! are the field separator.
    this must go to a Data Type with substructures like this:
    (xml)
    .1
    ......2
    .3
    ......4
    ......5
    where 2 is inside 1 and 4-5 inside 3.
    The reason of this is we can get unbounded replays of 3/4/5 for one header.
    But XI reads the information like if all segments are headers.
    .1
    .2
    .3
    .4
    .5
    So the IDOC is bad created.
    Where is the issue?  At Message Mapping all substructures are mapped with his default and at TEST option it works fine.
    Thanks in advance for your help.
    best regards
    Message was edited by:
            Federico Martin
    Message was edited by:
            Federico Martin

    Dear people,
    according to license problems at client, it's impossible to get the convert agent.
    so now we come back to try to solve with normal mapping.
    the next step is try to convert it using 2 message mappings: dt (flat xml) to dt (structurated) and this one to the idoc.
    i suppose it can be done adding program at interface mapping.
    I created the no hiereachical Data Type for load the information and it's fine. But i am unable to get the first mapping OK, because XI has problems with unbounded segments.
    If you agreed and has time, i copy here the information and his structure.
    I receive (#! defines separation and key segment fields are 1,2,3,4,5):
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    5#!pos5
    5#!pos5
    The destination must be:
    CHASE A
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    3 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    5 (1..unbounded)
    5 (1..unbounded)
    5 (1..unbounded)
    CHASE B
    Or, in another case with 5 as child of 3 (like example in last mail)
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    Questions:
    How i do for map Data Type (no hierachical) -to-> Data Type (hierachical) and  Data Type (hierachical) -to-> IDOC? Is any loop or context object required?
    Thank you in advance for your help and sorry the long thread.

  • How to find all the Master data extract structures and Extractors

    I intend to create Master data dimensions closely similar to SAP BI in a 3rd party system. I would like to use SAP's standard extractors for populating the master data structures in SAP BI and then use a proprietary technology to create similar structures in a 3rd party database.
    Question: How to get a complete list of all Master data extract structures and corresponding extractors?
    Example: In ECC if I do SE80 and give 'Package' and 'MDX' and then press the 'display' spectacles, I get a list of structures and views under "dictionary objects" covering Material, Customer, Vendor, Plant Texts and attributes.
    How do I get the remainder of the Master data extract structures viz. Purchase Info Records, Address, Org Unit etc?
    Regards
    Sasanka

    Hi,
    try the table ROOSOURCE and search the data source with string in astrick attr  for master data and for text with text
    This will give you the list of all the master data source in the system and it contains a column which tells about the extract structure and function module used by each.
    Thanks
    Ajeet

  • How to Show floders and documents as a tree structure from path only

    sir,
    I am doing system side project using Java..
    so i want to know how to show folders and documents as tree structure format..
    plz give your idea regarding this?

    See for example Tree taglib in Coldtags suite:
    http://www.servletsuite.com/jsp.htm

  • How to grant protection to data and not to structures containing the data?

    Dear All,
    I have a question regarding authorizations in BW. Maybe someone can give me a good advice.
    We have the following situation: a group of developers in BW should be able to develop and to "move" within BW without any limit or constriction. Another group of developers is not allowed to see some specific data, since they are sensible data from some external system regarding third party business. These data are contained in structures (Infocubes, DSOs, Multiproviders, ecc) all having the same naming convention, let´s say ZNVS*. Apart from that, they have exactly the same authorizations as the first group.
    I am able to restrict access to infoareas (and underlying objects) by means of authorization objects like S_RS_ICUBE, S_RS_ODSO, ecc. This was easy and it does work fine: the user is not able to see any of tha data contained in the protected objects.
    But, what if they tipp the DSO active data table name in SE11? They are able to get to the data. I know that i could link a table name to an authorization group and through the authorization group restrict the access to the table, but it is not realistic to think that it can be done for every new structure created in BW. 
    Now the question:: how can I avoid that? Is there any solution granting protection not to the data warehousing structure (dso, infocube, ecc) but to the data within the structure itself, no matter how i try to get to them?
    Hope, my question is clear.
    Thanks in advance
    Best regards
    Enrico
    Edited by: Dottblabla on Jun 3, 2010 2:42 PM

    Hi Brian,
    thanks for your answer.
    According to my knowledge and to my understanding analysis authorizationrefers to another issue. I am not talking about authorizing or not authorizing some user for some values or data when executing a query. I am talking about not authorizing those user to get access tho those protected data when developing in the BW system (i.e. by executing SE11 for DSO active table)
    Is my understanding of analysis authorization wrong?
    Thanks
    Best regards
    Enrico

  • Dynamic loading tree and data grid

    Hi All,
    I new to java as well as JSF. I am very impressed with the jsf and Sun Java Creator IDE. I made a sample project.
    Now I want to load tree and data grid with dynamic values how can I achieve this.
    Please help to find out some examples.
    Also I need to know who I can use SOAP call using JSF.
    Thanks
    CSCS

    To dynamically load a Basic Table (ui:table) from a database, see http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/databoundcomponents.html
    To dynamically load a Basic Table from other sources of data that are loaded into an array or such, see http://blogs.sun.com/roller/page/divas?entry=table_component_sample_project
    To dynamically CREATE a Basic Table, see http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/createTableDynamically.html and http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/add_component_to_table.html
    To dynamically create an HTML table on the fly, see section 7.5 in Chapter 7 of the Field Guide at http://developers.sun.com/prodtech/javatools/jscreator/learning/bookshelf/index.html
    To dynamically create a tree, see Dynamic Tree example at http://developers.sun.com/prodtech/javatools/jscreator/reference/index.jsp.
    A tutorial for dynamically creating a tree from a database is work in progress.
    Hope this helps,
    Chris

Maybe you are looking for

  • Runtime error while executing SE30 Tcode as CREATE_DATA_ILLEGAL_LENGTH

    Hi Guys, when I am executing a TCode SE30 I am getting following Runtime error . Runtime Errors         CREATE_DATA_ILLEGAL_LENGTH Except.                CX_SY_CREATE_DATA_ERROR Date and Time          23.07.2010 12:28:30 Short text      CREATE DATA:

  • Mac Book Pro OS X 10.9.1 - Master Suite CS6 Photoshop won't open

    I installed Master Suite on new Mac Book Pro OSX 10.9.1. All programs will open fine except for PS which has an "unexpected and unrecoverable error" and won't open. I can open it when logged in as guest or another user. I have tried trashing preferen

  • Extracting a csv file into a Z directory in AL11 via Open Hub

    Hi All, After reviewing alot of treads  I am able to etracte a .csv file via Open Hub Destination into DIR_HOME in AL11. But, My requirement is to create the file in AL11 directory "ZBIWCOPA" and this directory is available in all systems in the land

  • What happened to my Acrobat and what do I do now?

    I'd like some clarification on what happened to my Adobe Acrobat application. I have a Mac OS 10.6.8 and am now getting prompted to do the 2.0.0.0 to 2.3.0.0 mandatory update (I guess I'm about a year behind everyone else, haven't run Acrobat in a lo

  • Batch Reverse Telecine - Cannot Select Fields?

    Hi, I'm trying to reverse telecine some footage and I've run into a problem where the only way to do it correctly is to it manually, one clip at a time. When I run a reverse telecine on individual cips, I have the option of selecting the field order