Forms Builder Master Child relationship --- column datas gets hided.

Hi All,
I have a screen which have 5 columns. Out of which first 3 columns belong to Table A and 4th column belong to say Table B and the 5th column belong to Table C. There is a master Child relationship between Table A and Table B also between Table A and Table C.
The issue is, i enter the data for these columns in row wise. I enter all 5 columns with value and when i switch to next row, the 4th and 5th column's value gets hided.
Please suggest.
Thanks and Regards,
KirthiRavi

KirthiRavi wrote:
Hi All,
I have a screen which have 5 columns. Out of which first 3 columns belong to Table A and 4th column belong to say Table B and the 5th column belong to Table C. There is a master Child relationship between Table A and Table B also between Table A and Table C.
The issue is, i enter the data for these columns in row wise. I enter all 5 columns with value and when i switch to next row, the 4th and 5th column's value gets hided.
Please suggest.
Thanks and Regards,hI KirthiRavi
You have relation with
Table A with Table B
Table A with Table Cwhen you switch a record to another record at bloc/table A, it's normal forms behavior it's will hide value of block/table B and C. when your click on associate row of block/table A it will show.
It's the form normal behavior for relationship.Hope you understand.
Hamid
Mark correct/helpful to help others to get right answer(s).*

Similar Messages

  • Maintaining Master-Child relationship during ODI transformation

    ODI Gurus
    For following requirement, we need the best approach to transform data from Source to Target instance(Both Source and Target instances are running on Oracle Database)
    Tables in Source Instance
    a) Source_Master
    b) Source_Detail (One to many relationship with Source_Master)
    Tables in Target Instance
    a) Target_Master
    b) Target_Detail (One to many relationship with Target_Master)
    In ODI need to create interfaces to transform data from
    a) SOUCE_MASTER table to TARGET_MASTER table and
    b) SOUCE_DETAIL table to TARGET_DETAIL table
    NOTE: Value for Primary Key column in Target Instance tables Target_Master and Target_Detail are generated from Database Sequence.
    Once the transformation is completed using ODI, the master-child relationship should be maintained in Target Instance between Target_Master and Target_Detail table. How do we achieve this in ODI ?
    Thanks
    Uma Shankar

    For this, create the first interface for MASTER, in the mapping for the primary key you should map the database sequence, something like: MYSCHEMA.MYSEQUENCE_NEXTVAL.
    Create the second interface for DETAIL, and on the sources pane of the interface, drag the SOURCE_DETAIL and TARGET_MASTER datastores. Make the joing between the two using the keys from the source. In the Primary key mapping of the DETAIL_TARGET make sure you select the new PRIMARY KEY of the TARGET_MASTER, mapping in staging area. This "lookup" will be done in the target data server.
    If you are going to be doing updates and inserts in the target, you should make sure you set the Update Key selected for each of the targets to the same keys as on the source (obviously you won't have the target values!)
    If you are not going to do any updates, then use the IKM SQL Control Append rather than the incremental update IKM.
    You can optionally set the COMMIT option of the first interface to NO, and only commit on completion on the second interface if you want to ensure the full 'all or nothing' transactionality - but bear in mind, large volumes of uncommitted changes use resources....

  • Doubt about  Master-Child relationships.

    Hello,
    I've a doubt about master-child relationships.
    Any row in the master table need to has at least one row in the child table. What do I guarantee that?
    Please, any ideas.
    Thnx.

    If im correct you are asking that any row in master table should have a corresponding child record in detail
    (transaction) table.
    WELL , There is no compulsion that the child table should have a record linking to record in master table.
    Master table is not depended on child table. Child table is dependent on data reference on master table.
    Pls note that Master table is independent of the child table ( in terms of data reference only) .
    This doesnt mean that if you want to delete the master records when child records exists. it gives an error in that case.
    check the following example
    SQL> create table master(n number primary key);
    Table created.
    SQL> insert into master values(1);
    1 row created.
    SQL> create table child(t number references master(n));
    Table created.
    Hello,
    I've a doubt about master-child relationships.
    Any row in the master table need to has at least one row in the child table. What do I guarantee that?
    Please, any ideas.
    Thnx.

  • Master Child tables how to get the latest rows from both

    Hi,
    Need some help with the sql. I have two tables Master & Child. In my Master table I have multiple rows for the same record and in the child table also multiple rows for the same master row how can I get the latest one's from both.
    For example Data in my Master table looks like
    CONT_ID                  SEQ_NUM        DESCRIPTION
    1                         189             Update 2
    1                         188             Update 1
    1                         187              NewNow in the child table for the same CONT_ID I may have the following rows
    CONT_ID                   UPDATED_DATE                                     STATUS
    1                        3/16/2010 2:19:01.552700 PM                          P
    1                        3/16/2010 12:29:01.552700 PM                         A
    1                        3/16/2010 12:29:01.552700 PM                         P
    1                        3/16/2010 12:19:01.552700 PM                         NIn my final query how can I get the row with seq_num 189 as it's the latest in Master table and from child table the row with status of P as it's the latest one based on the time. Here is the query i have but it returns the latest row from the child table only and basically repeats the master table rows as opposed to one row that is latest from both:
    Thanks

    Hi,
    You can use the analytic ROW_NUMKBER function to find the latest row for each cont_id in each table:
    WITH     got_m_rnum     AS
         SELECT     cont_id,     seq_num,     description
         ,     ROW_NUMBER () OVER ( PARTITION BY  cont_id
                                   ORDER BY          seq_num     DESC
                           ) AS m_rnum
         FROM    master_table
    --     WHERE     ...     -- any filtering goes here
    ,     got_c_rnum     AS
         SELECT     cont_id, updated_date,     status
         ,     ROW_NUMBER () OVER ( PARTITION BY  cont_id
                                   ORDER BY          updated_date     DESC
                           ) AS c_rnum
         FROM    child_table
    --     WHERE     ...     -- any filtering goes here
    SELECT     m.cont_id,     m.seq_num,     m.description
    ,     c.updated_date,     c.status
    FROM     got_m_rnum     m
    JOIN     got_c_rnum     c     ON     m.cont_id     = c.cont_id
                        AND     m.m_rnum     = c.c_rnum
                        AND     m.m_rnum     = 1
    ;If you'd like to post CREATE TABLE and INSERT statements for the sample data, then I could test this.
    If there happens to be a tie for the latest row (say, there are only two rows in the child_table with a certain cont_id, and both have exactly the same updated_date), then this query will arbitrarily choose one of them as the latest.

  • TreeTable with inputText column data gets lost in adf 10g

    Hello All. I have a TreeTable in my page with two columns for user inputs. After a node is expanded, the data gets lost... The TreeTable was created using ViewObjects, here is one example of the sql query of one of the ViewObjects:
    select distinct det.cliente id_cliente
    , cust.customer_name descripcion
    , city.id_simcot
    , to_number(null) horas_normales
    , to_number(null) horas_recargo
    , 'CLIENTE' tipo
    from grc_dist_factura dist
    , grc_det_simcot_v city
    , grc_det_dist_factura det
    , ra_customers cust
    where det.id_dist_fact = dist.id_dist_fact
    and cust.party_id = det.cliente
    and dist.id_det_simcot = city.id_det_simcot
    and city.tipo = 'CIUDAD'
    The inputText are mapped to the attributes HorasNormales and HorasRecargo. Those columns does not existe in DataBase, that's why I create them in the View Object in that way.
    This is my TreeTable:
    <af:treeTable value="#{bindings.GrcConfTarifaRaizView.treeModel}"
    var="node"
    binding="#{ConfiguracionTarifas.treeTable1}"
    id="treeTable1" width="100%"
    emptyText="No hay un Arbol Disponible.">
    <f:facet name="nodeStamp">
    <af:column binding="#{ConfiguracionTarifas.column1}"
    id="column1" noWrap="true" headerNoWrap="true"
    headerText="Descripcion">
    <af:outputText value="#{node.Descripcion}"
    binding="#{ConfiguracionTarifas.outputText2}"
    id="outputText2"/>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp">
    <af:outputText value="#{node.Descripcion}"
    binding="#{ConfiguracionTarifas.outputText3}"
    id="outputText3"/>
    </f:facet>
    <af:column sortable="false" headerText="Tarifa Hora Normal"
    formatType="number"
    binding="#{ConfiguracionTarifas.column2}" id="column2">
    <af:inputText binding="#{ConfiguracionTarifas.txtHoraNormal}"
    id="txtHoraNormal" rendered="#{node.Tipo ne 'RAIZ'}"
    value="#{node.HorasNormales}">
    </af:inputText>
    </af:column>
    <af:column sortable="false" headerText="Tarifa Hora Recargo"
    formatType="number"
    binding="#{ConfiguracionTarifas.column3}" id="column3">
    <af:inputText binding="#{ConfiguracionTarifas.txtHoraRecargo}"
    id="txtHoraRecargo" rendered="#{node.Tipo ne 'RAIZ'}"
    value="#{node.HorasRecargo}"/>
    </af:column>
    </af:treeTable>
    And this is the page Def:
    <tree id="GrcConfTarifaRaizView"
    IterBinding="GrcConfTarifaRaizViewIterator">
    <AttrNames>
    <Item Value="IdSimcot"/>
    <Item Value="Descripcion"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    <nodeDefinition DefName="gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaRaizView"
    id="GrcConfTarifaRaizViewNode">
    <AttrNames>
    <Item Value="IdSimcot"/>
    <Item Value="Descripcion"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    <Accessors>
    <Item Value="ClientesView"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaClientesView"
    id="GrcConfTarifaClientesViewNode">
    <AttrNames>
    <Item Value="IdCliente"/>
    <Item Value="Descripcion"/>
    <Item Value="IdSimcot"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    <Accessors>
    <Item Value="RegionalesView"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaRegionalesView"
    id="GrcConfTarifaRegionalesViewNode">
    <AttrNames>
    <Item Value="CodRegional"/>
    <Item Value="Descripcion"/>
    <Item Value="IdSimcot"/>
    <Item Value="IdCliente"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    <Accessors>
    <Item Value="CiudadesView"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaCiudadesView"
    id="GrcConfTarifaCiudadesViewNode">
    <AttrNames>
    <Item Value="CodCiudad"/>
    <Item Value="Descripcion"/>
    <Item Value="CodRegional"/>
    <Item Value="IdSimcot"/>
    <Item Value="IdCliente"/>
    <Item Value="Tipo"/>
    <Item Value="HorasNormales"/>
    <Item Value="HorasRecargo"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    Note the Node Definition for gsgappl.grc.datamodel.view.confTarifa.GrcConfTarifaClientesView, it correspond to the View Object showed at the beginning of the post.
    Can any one help me please?
    bye

    Thanks for the links.
    I checked them up, but first, I noticed they apply to adf 11g, and second none of them use inputText in columns. I really couldn't find a any idea to solve my issue.
    Any other suggestions?
    My problem is that when I expand/collapse a node, the values in the inputTexts are lost. I don't know if I need something else on my page Definition...
    thank you.

  • Kick off SSIS master package once new data gets into a transactional table

    hello
    I have a SSIS master package.. I also have an UI which the user uses to configure up some date ranges (that I need to use to load the data from the package). After date configuration, when user clicks on RUN SSIS button in UI, that configured data gets loaded
    up in a transactional db table. Once new data is entered into that table, i need to kick off this master SSIS package.
    Question is , is there any other method besides using table triggers?
    Please advice.
    Thanks

    Another method is to have a automated job created in SQL Agent which keeps on polling the transactional table. you can configure it to run periodically (may be every 30 mins etc). Each time it starts it needs to check the status of a table which captures
    details of whether user has pressed RUN SSIS button (you need to include that logic in UI to set a bit in a status table when button is pressed). If status is set, it will check if transactional table has data (IF EXISTS(SELECT 1 FROM Table)). Once these two
    are truw it will go to next step where it calls master package. At the end it needs to log somewhere that data transfer is completed and also need to reset the bit field as well.
    So job will have three steps
    Step1: check bit is set and table has data
    ie
    IF (SELECT bitField FROM StatusTable)=1 AND EXISTS(SELECT 1 FROM TTable)
    SELECT 1
    ELSE
    RAISERROR 'Table not ready',16,1
    and set job advanced option as
    quit job reporting success for failure condition and go to next step for success condition
    Step2: Execute master package
    Step3: rest status bit and update daya transfer status in a log table with date of run,record count etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Displaying master child relationship using datatable??

    Hello,
    I want to display master child data using a datatable or a datalist or any other component ( if can be used for this purpose )....I mean i have a particular role and the nominees in that particular role to be displayed...how can this be achieved....any suggestions....thanks in advance.
    thanks & regards,
    Gaurav.

    For this, create the first interface for MASTER, in the mapping for the primary key you should map the database sequence, something like: MYSCHEMA.MYSEQUENCE_NEXTVAL.
    Create the second interface for DETAIL, and on the sources pane of the interface, drag the SOURCE_DETAIL and TARGET_MASTER datastores. Make the joing between the two using the keys from the source. In the Primary key mapping of the DETAIL_TARGET make sure you select the new PRIMARY KEY of the TARGET_MASTER, mapping in staging area. This "lookup" will be done in the target data server.
    If you are going to be doing updates and inserts in the target, you should make sure you set the Update Key selected for each of the targets to the same keys as on the source (obviously you won't have the target values!)
    If you are not going to do any updates, then use the IKM SQL Control Append rather than the incremental update IKM.
    You can optionally set the COMMIT option of the first interface to NO, and only commit on completion on the second interface if you want to ensure the full 'all or nothing' transactionality - but bear in mind, large volumes of uncommitted changes use resources....

  • Procedure Based Form with master details Relationships

    Helo All
    Here i m having some problem in making one form which is having 2 tables one is master and other is detail table and i already made relationship between them but still i make both forms at that moment form didn't make the auto relationship.even after taht when at the form level i made the relationship between 2 tables it made but at teh compilation time it gives error.
    Actually one table was there at that time it worked but with relation it creates problem.
    Can anybody give me any idea how to sort out this problem.

    Helo Frankin
    Actualy the error came when i made the master detail relation manualy.but as per me if both tables have relationship with each other then no need to create it manualy isn't it?
    even after that i created teh relation manaualy but at the on clear block details trigger it showed compile time error.
    If possible can u give me any live example for this
    TQ
    Vivek

  • Issue with Master and child relationship,viewlink

    Hi Frnds,
    In one of our custom pages we have Master child relationship between Invoice lines and their distributions.
    Things work absolutely fine when total no of distributions(say 10) are equal to max no of distributions that can be shown on 1st page(i.e equal to advancetable property value 'Records displayed'..say set as 10)
    What happens is when in advance table I click on next button to navigate to next set of records and then edit some field that have any event..ppr or lov my control by default gets transferred to very first set of records.
    !!!!!!!!!!!!!! Also this happens only when no of invoice lines are more than 1.
    I not sure whether the issue is with VL,VO,AO or the advance table property.
    One simple solution that I have tried is...getting back the focus to the row that is updated but it causes some other problem.
    Any pointers will be very helpful
    Thanks in advance.

    Hi any help???

  • Find parent/child relationships At More Than 2 Levels

    Hello,
    Does anyone have a solution to find parent/child relationship for data more than 2 levels deep?
    I have a solution when there's a simple parent-child relationship but not when there's a grandparent-parent-child relationship or deeper.
    Ex. I have a table company_parent_child that stores the relationship betwen a company and it's direct parent.
    create table TEMP_COMPANY_PARENT_CHILD
    PARENT_ID NUMBER(10),
    COMPANY_ID NUMBER(10)
    insert into TEMP_COMPANY_PARENT_CHILD values (1, 10);
    insert into TEMP_COMPANY_PARENT_CHILD values (1, 11);
    insert into TEMP_COMPANY_PARENT_CHILD values (1, 12);
    insert into TEMP_COMPANY_PARENT_CHILD values (2, 13);
    insert into TEMP_COMPANY_PARENT_CHILD values (10, 100);
    insert into TEMP_COMPANY_PARENT_CHILD values (10, 101);
    insert into TEMP_COMPANY_PARENT_CHILD values (10, 102);
    insert into TEMP_COMPANY_PARENT_CHILD values (11, 103);
    1->
    ___10->
    ______100,101,102,
    ___11->103
    Companies 100, 101 and 102 are under parent 10 and grandparent 1.
    I need to create such a view or another temp table so that when I pass the parent ID, I will pull all the children on all levels. In addition, and this is the tricky part, when I join this new temp table or view to another data table without any parameters, the data should not be duplicate, ie. each company ID should appear only once.
    create table TEMP_JOIN
    company_id number(10),
    order_id varchar2(10)
    insert into TEMP_JOIN values (100, 'a');
    insert into TEMP_JOIN values (101, 'b');
    insert into TEMP_JOIN values (102, 'c');
    insert into TEMP_JOIN values (103, 'd');
    insert into TEMP_JOIN values (10, 'e');
    insert into TEMP_JOIN values (11, 'f');
    insert into TEMP_JOIN values (12, 'e');
    insert into TEMP_JOIN values (13, 'f');
    Thanks.

    start by learning CONNECT BY/START WITH. once you've
    written a query to read the grandparent-parent-child
    relationship, then come back with more questionsYes. we did look heavily into connect by/start with, in fact along with "connect_by_iscycle","connect_by_isleaf","connect_by_root" as well.
    Our dilemma is that when a joint is made between those two tables mentioned above TEMP_COMPANY_PARENT_CHILD and TEMP_JOIN, we are not able to create a view that would contain distinct company_ids, each mapped to a unique order id.
    The problem is we cannot have this type of joint when there are "n" level relationship between companies (or company_id). Basically, I think we should have our unique order id mapped to a unique key. This unique key should be a specialized key that we can know at anytime the entire path of the ancestry which we can know by sys_connect_by_path(company_id,'/') path.
    How do we know which path to take. The best bet is to "connect_by_isleaf" and just have the distinct "deep" path which form the specialized unique key. If you need help on this let me know. (A hint, sort by LEVEL and then do a rank after partitioning by company id and then filter the records by rank = 1, try this one!!!)
    So, we will eventually have a joint (say Table X) like
    PATH ORDER_ID
    /1/10/100 a
    /1/10/101 b
    /1/10/102 c
    /1/10 e
    /1
    /1/11/103 d
    /1/11 f
    I think this is the best view we can have to maintain a joint with no repetition along PATH as well as ORDER_ID. If you have any other thoughts, let me know.
    Then you query by path using INSTR to pull records by company_id.
    for example, if you want to get all the children for company_id "10" you would just say
    select * from X where INSTR(PATH,10,1,1) <> 0
    or if you want to get all the children for company_id "11" you would just say
    select * from X where INSTR(PATH,11,1,1) <> 0
    What do you think? Has anyone used the path information for traversing the tree? Or is there any article that tells us how to make effective use of sys_connect_by_path(company_id,'/') path.
    Thank you. Hope it made sense!

  • How to execute the second data block in master child form using lov

    Hi All,
    i am developed a new custom master child form using stacked canvas.Here i am taking two frames with diffrent data blocks.my point is i am enter the value from the lov in first frame automatically execute the second frame data block without button.
    example:
    fisrtdatablock:dept no(dept table).
    second datablock:employee information(emp table).
    select the dept value from lov automatically execute the second data block emp information.
    can help me any one.
    Regards,
    sekhar.
    Edited by: 994418 on 17 Mar, 2013 10:40 PM

    994418 wrote:
    Hi All,
    i am developed a new custom master child form using stacked canvas.Here i am taking two frames with diffrent data blocks.my point is i am enter the value from the lov in first frame automatically execute the second frame data block without button.
    example:
    fisrtdatablock:dept no(dept table).
    second datablock:employee information(emp table).
    select the dept value from lov automatically execute the second data block emp information.
    can help me any one.
    Hi, sekhar.
    Welcome to the Oracle Forums. Please take a few minutes to review the following:
    <ul>
    <li>Oracle Forums FAQ
    <li>Before posting on this forum please read
    <li>10 Commandments for the OTN Forums Member
    <li>How to ask questions the smart way
    </ul>
    Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
    >
    Your forms mode isn't clear. Is it in enter-query mode or insert mode.
    what can you do ?
    use a timer in post-change or when-validate-item trigger at deptno item at first data block. because go_block isn't supported by p-c or w-v-t trigger.
    and at when timer expire, write your code to go second block and insert/query the associate date from emp table.
    Hope you understand.
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.*

  • Master Detail - Detail parent child relationship

    Hello All,
    I have a setup where I have 3 tables. Call them A, B, and C. Table A is the parent table to the child table B. Also table B is the parent table to the Child table C. Is there a way to represent this in Apex? So far I have created two Master Detail forms: Master Detail form one has the relationship A+B and Master Detail form two has the relationship B+C. Can Apex support a Master Detail Detail form.
    Also, is there a way to have my detail page editable without linking to another page to save and update?
    Please let me know what everyone thinks.
    Thanks
    Ryan

    Hi,
    You can google it - so much information is available online. Any how
    Parent Child relationship
    PK FKBasic example - Parent and Child in real life -similarly the Table_A is having relation with some other Table_B.
    Example
    Table_A
    columns :-
    Student_No, Student Name, Student_address
    Now the Table_B store the assignment details
    Student_No, Subject_1,subject_2, subject_3
    Now relation of join is Table_A.Student_No = Table_B.Student_No
    With out the TAble_A details -can be identified the Sudent details etc., No - It's Master data - which is not dependent on any other table and Column Student_No- Acts Primary Key which is Unique -through which we can identify a specific details of particular student. Now comes to Table_B - with out the student_No - we can't say whose details of assignments belongs to whom - now the student_No in Table_B is dependent on some other table - now this table acts a child and Primary Key of Table_A acts Foreign Key - that column helps to identify the record.
    Master Detail
    Reference tablesconcept of understanding is same when - when comes c,c++, java and c sharp - acts the same but inheritance, interfaces, polymorphisms and overloading code of language differs. If you go further j2ee differs
    HTH
    - Pavan Kumar N
    Oracle 9i/10g - OCP
    http://oracleinternals.blogspot.com/

  • Function to get the path using a parent-child relationship

    Hello,
    I have a table which uses parent-child relationship to store the options available. I need a function to give me the full path given the id of a particular option.
    I have two different functions. One of them uses the Oracle built in function and the other uses simple queries with a loop.The code of the functions are given below.
    Now, the problem is with their "performance". The difference in their performance is significant. The function using the Oracle function takes more than 2 hours to run a query whereas the other function takes less than 2 minutes.
    I am having trouble trusting the other function. No matter how many tests I perform on the output of both the functions, it always comes out to be the same.
    Any thoughts to help me understand this ??
    Function 1
    =====================
    FUNCTION Gettree (opt_id IN NUMBER,i_app_id IN NUMBER)
    RETURN VARCHAR2
    IS
    path VARCHAR2(32767);
    application_no NUMBER;
    BEGIN
    SELECT ABC.APP_OPT_ID INTO application_no FROM ABC
    WHERE ABC.APP_ID = i_app_id AND ABC.PARENT_ID IS NULL;
    SELECT LPAD(' ', 2*LEVEL-1)||SYS_CONNECT_BY_PATH(app_opt_name, '=>') "Path" INTO path
    FROM ABC
    WHERE app_opt_id = opt_id
    START WITH parent_id =application_no
    CONNECT BY PRIOR app_opt_id =parent_id;
    path := SUBSTR(path,INSTR(path,'>')+1,LENGTH(path));
    RETURN path;
    END Gettree ;
    Function 2
    ======================
    FUNCTION GetOptPath(opt_id NUMBER,app_id NUMBER)
    RETURN VARCHAR2
    IS
    string VARCHAR2(900);
    opt VARCHAR2(100);
    pid NUMBER(38);
    BEGIN
    SELECT ABC.parent_id,ABC.app_opt_name INTO pid,string FROM ABC WHERE ABC.app_opt_id = opt_id;
    IF pid IS NULL
    THEN
    RETURN 'root';
    ELSIF pid IS NOT NULL
    THEN
    LOOP
    SELECT ABC.app_opt_name,ABC.parent_id INTO opt, pid FROM ABC WHERE ABC.app_opt_id = pid;
    EXIT WHEN pid IS NULL;
    string := opt || '=>'|| string;
    END LOOP;
    RETURN string;
    END IF;
    END;

    Hi,
    user8653480 wrote:
    Hello Frank,
    The parameters taken by gettree & getoptpath are app_opt_id and app_id and both the functions return only one string i.e. the path of that particular option (app_opt_id) starting from its root and not all the descendants of that option/root node of that option.
    So, does that mean that gettree first fetches all the descendants of the root node of the given option and then returns the required one ??Yes. It's a little like the situation where you need to meet with your co-worker Amy, so you send an e-mail to everyone in the department telling them to come to your office, and then, when they arrive, tell everyone except Amy that they can leave.
    >
    And if that is the case, then won't it be better to use the bottom-up approach to fetch the required path just for that particular option ?? 'coz my requirement is that only.. given an option_id get the full path starting from the root.Exactly!
    I have used explain plan also for both the functions.. but since I did not know how to anlayze the output from plan_table so I just compared the value in the fields and they were exactly the same for both the queries.If you'd like help analyzing the plans, post them, as Centinul said.
    I am attaching a sample data with the outputs of both the functions for the reference.
    (tried attaching the file but could not find the option, so pasting the data here)
    App_opt_ID     App_ID     Parent_ID     App_opt_name     "gettree(app_opt_id,app_id)"     "getoptpath(app_opt_id,app_id)"
    1          1     NULL          application          NULL                    root
    2          1     1          module1               module1                    module1
    3          1     1          module2               module2                    module2
    4          1     2          submod1               module1=>submod1          module1=>submod1
    5          1     3          submod1               module2=>submod1          module2=>submod1
    6          1     5          opt1               module2=>submod1=>opt1          module2=>submod1=>opt1
    7          2     NULL          app2               NULL                    root
    8          2     7          scr1               scr1                    scr1
    9          2     8          opt1               scr1=>opt1               scr1=>opt1
    10          2     7          scr2               scr2                    scr2Please help.The best solution is to do a bottom-up query, and write a function like reverse_path (described in my first message) to manipulate the string returned by SYS_CONNECT_BY_PATH. You seem to have all the PL/SQL skills needed for this.
    Another approach is a revised form of gettree, like I posted earlier. Does it do what you want or not?
    If you'd help, then post a little sample data in a form people can actually use, such as CREATE TABLE and INSERT statements. Post a few sets of parameters, and the results you need from each set, given the sample data posted.

  • Forms Builder - form not pulling the data from the DB into the datablock

    I'm working on a school project, and I'm not sure if I'm doing something wrong, or if something is wrong with my setup.
    I created a basic form, 3 fields, and ID, firstname and lastname
    the wizard connected fine, pulled the three fields into forms builder
    I setup a canvas - type content with the a form format layout of the three fields.
    saved the form.
    When I run the form and it's displayed, nothing gets pulled into the fields (all blank).
    Shouldn't it pull at least the first row from the table?
    it says it's on record 1/1
    XP, Oracle 10g, Form builder 10.1.2,
    I'm not getting any errors
    I want to get this basic form working first, before I start adding to it, and it doesn't seem to want to cooperate.
    I've done the same steps as in the tutorials....

    I did find that, if I put data in the ID, first and lastname on the form, and click Execute & Save on the Menu, it does add it to the database.
    Maybe what I'm missing, is how do I get the form to read from the database when it starts up?

  • In XML form builder data schema not clickable

    Hi ,
    I have installed JRE version 1.6.0_07. When i click on xml foms builder ,it gets opened but when i click on data schema it's not clickable but icon is displayed next to data schema.I am not able to create any node in data schema.
    Regards.
    Adity.

    Hi,
    my problem is simular to Aditys: My Java Version is JRE 1.6.0_15. When I go to Content Managment --> Formbuilder, the XML Forms Builder starts automatically but it is not possible to open Data Schema. After downgrade to Java 1.4 I can not start the Form Builder, that means, after clicking on "Form Builder" in the Portal, a pop-up opens, but the XML Form Builder does not load.
    Can you help me?
    Jannis

Maybe you are looking for

  • Intermittent : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have developed a batch harness whereby all scheduled tasks (W2012) invoke a common powershell script that acts as a wrapper to all our housekeeping jobs. The first step in the wrapper is to create a Transcript file using following code if ($Host.na

  • Coreaudiod not responding

    Hello All, I happenned to look at my activity monitor, coreaudiod (owned by root) was in red. I remember this happenning a couple of times earlier (last 6 months?). When I restart my computer it is OK again, but probably goes red some time again. Do

  • Arrangement of marketing attributes

    Hi, we import marketing attributes with elm. There are 4 types of attributes which are very important. The customer wants to have this important one at the top of the list, in the assignment block. The other attributes should stand in the bottom of t

  • Need Vista 64-bit drivers for Geforce Go 7900 gs for Satellite P100-437

    Hi, I just installed Vista 64 and the vista driver on the site is not recognised by windows and Nvidia doesn't have a driver available on their site either. It is for a Toshiba P100-437 satellite laptop, running a Nvidia GeForce Go 7900 GS graphics c

  • Issue with User Creation in AS ABAP

    Hi Experts, We are implementing IDM 7.2 SP8. We have successfully performed initial load from CRM systems and also created Business Roles in CRM containing privelleges from CRM system. We can successfully assign roles from IDM to users in CRM for use