Recursive tables (grouping items)

I have a requirement to allow Users to create groups of items and groups of groups of items( via web interface). [Any item can fall under any number of groups and any group can fall within any number of groups]
I planned to use 2 recursive tables, but I want to see if there are alternative solutions. [This also has to be flexible enough to work with Oracle and mysql]
Also, if anyone has examples for the interface(using jsp), those are greatly appreciated.
Any comments are welcome.
Thanks in advance!

I meant a table that has a foreign key which points to itself, but I would use 1 table (not 2 as I mentioned earlier).
Another way of looking at it using Roles/Users vs. Groups/Item:
(Probably making it muddier, but here it goes)
For Example:
Role Table
role_id parent_id(references role_id)
A          null
B          null
C          A
D          C
D          B [note Group D is child of group C and B]
E          null
RoleUserMap Table
role_id          user_id
A          1
A          2
A          3
B          4
B          5
C          6
C          7
C          8
D          9
D          10
D          11
E          1
E          2
E          3
E          4
E          5
E          11
User Table
user_id          name
1          John
2          Jane     
3          Mary
4          Bob
5          Stephanie
6          Bill
7          Liz
8          Kim
9          David
10          Ann
11          Susan

Similar Messages

  • WAD: Add variable to a called javascript function on button group item

    Hi All,
    I need your expertise regarding the following problem:
    To increase performance, I've decided to hide all analysis tables. To set these tables to visible, there is a button to switch the state for each table.
    Because this function is needed for each table, the function has two parameters for the analysis item name and the new state.
    Unfortunately, I get an useless error message after calling the function.
    The function in script item looks like
    function switchTable(itemName, newState)
    The function is started by a button of a button group item as javascript and the following script function
    switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    If I enter a without parameters, that will call the function with these parameters, it works.
    But if i try this directly from the script function in the button parameters, the function will be called correctly, but an error occurs and the analysis item wasn't displayed or the sendCommand wasn't processed completely.
    I hope there is a way to call javascripts by a button with variables, otherwise I would have to create many functions with only an other item_ref.
    Many thanks in advance and points of course for any help.
    Regards,
    Tobias

    One short note:
    It's possible to trigger the same function by an html input form button with onlick switchTable('ANALYSIS_ITEM_1', 'VISIBLE')
    and this works.
    Has anyone an idea what's the problem with a normal button item of the button group item?
    Another possibility is a menu item. The functions were called, but errors were shown.

  • Discount Groups - Items.  How to get the Buy One Get One Free discount in the Marketing Document

    Hi Experts,
    Can anyone help on this one please?...
    Under Stock Management -> Price Lists -> Special Prices -> Discount Groups -> Items -> I have selected a specific BP and then have selected a specific Item Code.  I have stated the Paid Qty as '4' and the Free Qty as '1'.
    The option 'Do Not Apply Discount Groups' is not ticked on the BP or the Item Master Data.
    There are no Special Prices for this Item for the BP.  Nor are there any period and volume discounts.
    Can anyone think of a reason why in the Sales Order I can never get the discount when putting in '3' in the Qty column on the SO please?
    Many thanks,
    Caroline

    Hi Gordon,
    Thanks for your email, and sorry for the confusion!
    I believe that when I enter '5' into the sales order the discount should come up as the Paid Qty is '4' and the Free Qty is '1'.
    Either way I can never get the discount into the Sales Order...
    Can you help please?  I was wondering if I had missed a setting somewhere or something...
    Thanks,
    Caroline

  • Problem with parameters and non table based items

    Hi,
    I have a situation where I have some not table based items on a page (shuttles and select lists). It is parameters that the end user inputs. I have another page with the same items just here they are Display Only and also not table based. When the user press a button I branch from page 1 to page 2 and set the items on page 2. My problem is that the input the user keys in are not copied to the items on page 2. I can see the data in the session state.
    I assume that this is a silly question and I have just set Source Used or Source Type wrong one one of the items but I can not get it working. Can anybody help?
    It works fine if I use a Application Item and creates a process on page 1 where I copy the item value from the session state but that should be needed right?
    Regards Pete

    Thanks Scott,
    I think I got it working. If I remove all the colons from the data it works. I select several entries in a Shuttle and the result is a colon delimited string of values. If I remove these in a process it works fine. Is there a way of escaping the output from a Shuttle?
    Regards Pete

  • One tray for multiple button group items

    Hi,
    I have 3 button group items in my templaate ,in the propoerties of these button grps the tray is on .NOw I can see 3 trays when I execute my template instead I want to have one tray for these 3 button group items . How is this possible?
    THanks
    Sany

    OK, I'm having trouble again. I need multiple items to drag
    to one target. I'm putting all my actionscript in the same frame,
    and here's how it looks:
    stop();
    name_mc.onPress = function():Void {
    this.startDrag(true);
    name_mc.onRelease = function():Void {
    this.stopDrag();
    if (eval(this._droptarget) == safe_mc) {
    this.swapDepths(this._parent.getNextHighestDepth());
    this.removeMovieClip();
    address_mc.onPress = function():Void {
    this.startDrag(true);
    address_mc.onRelease = function():Void {
    this.stopDrag();
    if (eval(this._droptarget) == safe_mc) {
    this.swapDepths(this._parent.getNextHighestDepth());
    this.removeMovieClip();
    And I'm getting the following error message:
    **Error** Scene=Recap, layer=actions, frame=1:Line 21:
    Statement block must be terminated by '}'
    address_mc.onRelease = function():Void {
    **Error** Scene=Recap, layer=actions, frame=1:Line 27: Syntax
    error.
    Total ActionScript Errors: 2 Reported Errors: 2
    Do you know what I'm doing wrong?

  • Populate the URL for popupURL from a Table/Page Item?

    Dear all,
    Would someone please tell me if the URL to run a BIP report can be populated from a table/page item when using popupURL and if so, how?
    Background:
    I have a Table called TBL_LETTERS with a varchar2 column REPORT_URL
    I have a Page (Pg 303) which populates a Text Page Item (P303_REPORT_URL) with an appropriate URL string from the table.
    Here is my problem:
    I would like to replace my working javascript function (see below):
    run myLetter_40()
    popupURL('&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=&P303_CASE_ID.&P_PERSON_ID=&P303_PERSON_ID.&_xt=MM_40_xf=rtf');
    with something like:
    run myLetter_40()
    popupURL($x("P303_REPORT_URL").value);
    ...but this doesn't work.
    With my limited javascript knowledge I can only guess that the variables successfully assigned values in my first function example are not successful in my second, I am probably just passing the whole thing as a simple string (like this: +&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=&P303_CASE_ID.&P_PERSON_ID=&P303_PERSON_ID.&_xt=MM_40_xf=rtf+), but would very much welcome any advice.
    Do I need to
    a. Create the REPORT_URL string differently in the table so that when passed to the Page Item it includes the required variable data?
    b. Something completely different?
    c. Forget it, it's not possible!
    ps. I am using Apex 3.2.1
    Thank you in advance.
    Sue
    Edited by: smp245 on Aug 21, 2012 2:19 PM

    Thank you Erik-jan
    when I look at the parameter in de popupURL function I notice that you use substitution variables &P303_CASE_ID. and &P303_PERSON_ID.
    The value for these variables are filled in by Apex on page rendering.
    If you use this same URL in your column REPORT_URL Apex will not fill in the values for these substitution variables.
    Yes, this is exactly what is happening.
    I would suggest you use option A to build your URL with the desired values.
    If the values for &P303_CASE_ID. and &P303_PERSON_ID. are in the same table TBL_LETTERS you could use them to make a pseudo column for the URL string.
    &P303_CASE_ID. and &P303_PERSON_ID. are not in the same table. How would it be possible to build the string (to store in the table) so that when it is run javascript identifies the variables?
    I have tried building the string in various ways using syntax similar to below but nothing is working:
    '&BI_URL.Guest/DEV/TEST/FRM_40/MM_40/MM_40.xdo?_xpf=&_xpt=1&P_CASE_ID=' + &P303_CASE_ID. + '&P_PERSON_ID=' + &P303_PERSON_ID.' &_xt=MM_40_xf=rtf'
    Do you have any ideas?
    Thanks
    Sue

  • How not to suppress printing grouping items

    In group by reports, the printing of group items is suppressed until the values change. How can I get the report to not suppress printing the duplicates values?

    In the select query , specify the group columns once more with alias names and make its frequncy below the grouped items..
    Now your report will work as though you have not grouped it and also will return the group values..
    For eg :
    Select emp_code,emp_Dept ,emp_name, emp_dept dept_wise_emp
    From employee_master
    First group is emp_dept
    Below level has rest of the columns..
    Select the sum /count of the desired columns from the report wizard...

  • Report Writer for ICR process (table group FBICRC002)

    Hello Gurus,
    I have implemented the new ICR process 002. It is working fine and I now want to create reports based on tables FBICRC002A & FBICRC002T.
    When I try to create a library based on table FBICRC002T the system block me saying that "Table FBICRC002T is not installed in Report Writer" (message GR493).
    Should I install the table group FBICRC002 to be able to use these data into report writer?
    Do you know why this table group already exists and cannot be displayed?
    Thank you in advance,
    Regards,
    Pascal.
    Edited by: Sylvie EHM on Aug 13, 2008 5:24 PM

    Hello Pascal,
    Note 1162287 should help you with that issue: https://service.sap.com/sap/support/notes/1162287
    Best regards,
    Ralph

  • Securing table group SS / transaction SCC1 and table CCCFLOW

    Hello all,
    I'm relatively new to this forum, please be kind.
    Situation sketch:
    In an SAP landscape, in Development environment, I have 3 clients, in which 500 is the ECC golden client, 510 is for sandboxing and 520 is for testing.
    Problem:
    Developers use tcode SCC1 to transport customizations to another client to be tested again and put on transports eventually.
    For changes they make using SCC1 they require Change (02) authorization on table CCCFLOW (client-copy report logs).
    However this CCCFLOW table is classed under the SS table group, in which all my other important security tables are as well
    (AGR_* etc).
    Question:
    How have you guys secured the SS table group when you still want to provide developers the use of SCC1?
    Regards,

    How about this idea?  Your thoughts and suggestions are appreciated.
    1.  Clone SCC1 to ZSCC1 (SE93)
    2.  For ZSCC1 Remove S_TABU_DIS Auth Check on ACTVT 02(SU24)
    3.  For ZSCC1 Insert S_TABU_NAM Auth Check on CCCFLOW  ACTVT 02(SU24)
    4.  test with a role that allows S_TABU_NAM to CCCFLOW and does not allow S_TABU_DIS to auth grp SS
    This should separate out CCCFLOW from the rest of the SS Auth Group tables.
    Has anyone tried this approach?
    Optionally, Do steps 2 and 3 directly on SCC1, depending on your SAP shop's policy for modifying auth checks on SAP-delivered tcodes.
    BSnow

  • Can't apply fills to grouped items

    Just switched to MX from 10. Applying fills or strokes to
    grouped items was very simple in 10 - now when I try to recolour
    groups of objects (or text converted to paths) I'm being
    continually frustrated. I add a fill to a group of objects and they
    don't change colour, so I have to ungroup them to apply the fill.
    Why oh why is it so?

    Nang-a-nator wrote:
    > Double click contents. This
    > will expand to tell you how many objects are in the
    group. if all objects have
    > the same fill and stroke properties this will be
    displayed here.
    This is good advice, but requires one more step. Uncheck
    Preferences>Object>'Changing object changes defaults'.
    For some reason, this
    preference interferes with the display of attributes of
    groups of identical
    objects. This is another FHMX pain if you're used to working
    with this
    preference enabled.
    Here's how I super- and sub-select on a Mac/English keyboard.
    Modify keyboard shortcuts to
    Subselect: F1.
    Superselect: tilde key (`) is already hard-coded into FH.
    These two keys are close together on the keyboard, so
    alternating between
    them allows you to dive down or swim up to group level.
    If, for example, you have a line of text converted to paths,
    with pointer
    too, option-click to subselect one path, then hit Tilde to
    superselect to
    group level, then hit F1 to subselect. You should now see the
    fill and
    stroke attributes in the object inspector. Change them there.
    Judy Arndt

  • HOW TO GROUP ITEM BY department (MaNganh)/ Category(MaNhom) in XtraReport from Stored Procedure result ?

    I have stored procedure result, i have succeeded bind it to xtrareport. But how can I group item by department (MaNganh) and category (MaNhom) in XTRA REPORT ? Please help me how to solve it ! (SQL SERVER 2008 R2) (DevExpress 10.2.8)

    I've made ​​it, and successful.By add GroupField: 
    GroupField groupField = new GroupField("MaNhom");
               GroupHeader1.GroupFields.Add(groupField);
               tblCell_Group_MaNhom.DataBindings.Add("Text", DataSource, "MaNhom");
    Thank you for HELP! 
    Master Can

  • How to handle Multile Table Group in InDesign

    my XML file having multiple table group tables content but InDesign not supporting while importing xml files?.. could please help and suggest any buddy how to handle multiple table group in InDesign.... because i received many jobs xml workflow with multiple table group.

    its urgent

  • Group Items - Pick List PLD

    Hi Guys,
    Is it possible to change the standard 2007A PLD Pick List document so that it can group items together?
    For example a pick list is created for 5 orders. In 3 of the orders is the same product, item AAA.
    Instead of the standard report grouping the documents so that AAA appears 3 times, is there a way to group items so that it will appear only once?
    Thanks,
    Liam.

    Hi Liam,
    Crystal would be easy to get this.
    Here's a link to how to do this in PLD (I've tried it - it takes some testing):  http://www.sdn.sap.com/irj/scn/businessone-elearning
    Part 3 - Depencies covers grouping & sorting.
    Hope that helps,
    Heather

  • IDCS2 Win: How to iterate all items in a group item?

    I want to access each item in a page group item, How to do that? Any guide or code snippet will help. Thanks in advance.
    Haikun

    you can use InterfacePtr<IHierarchy> hier(group, UseDefaultIID()); <br /><br />and then hier->GetChildCount() & hier->GetChildUID(n) or hier->QueryChild(n) to visit all its direct children.  Hier->GetDescendents gets a list of all items in the group (including items in a group that are in the group).<br /><br />Ian

  • Reporting of recursive tables with Business Objects 6.1

    Post Author: pk7
    CA Forum: Publishing
    Can anyone tell us how to traverse recursive tables with Business Objects 6.1?  For example, let's say you have an Employee table with Emp_ID, Name, Manager_ID.  Like so:
    Emp_ID  Name   Manager_ID
    1           Jeff           4
    2          Grace        3
    3           Stacey      1
    4           Wayne      null
    The task is to report the hierarchy of employees starting with one employee (e.g. Grace) and showing who ALL of her superiors are.  Desired result would be:
    Grace
          Stacey
                Jeff
                       Wayne
    We have seen the expanation the seems to require the duplication of a table but we prefer not to have the same data stored in multiple tables.
    Thx!

    Hi Dan,
    Thanks for your response. However, what I meant by client installation is exactly as what you have said below.
    I start the BusinessObjects Enterprise XI 3.1 Setup, go to custom install, which shows up the following options-
    Client Components
    Web Tier Components
    Server Components
    Database Access
    etc. etc.
    Initially I unselected all, drilled down Client Components and just installed the Developer Components. But the code used to fail with an InvalidCast exception when we used to cast an InfoObject to a Report as following-
    Report report = (Report)infoObjects[1];
    This code used to work fine with earlier installations of business objects.
    This happened with all 3 of us who installed just the Dev components. To get over this we installed the whole Client Components and the above problem got resolved.
    And now we realize that even the whole Client Comp is not enough because it gives the casting problem while doing the destination stuff.

Maybe you are looking for