Relation between non-database data blocks?

Hi all,
I'm using Oracle Forms Builder 10GR2. I have two data blocks and i want to create a relation between them. They aren't database blocks and when i tried to create a relation between them based on a join condition/joining 2 display items/ i received the error :
FRM-15004: Error while parsing join condition.Any ideas?
Thanks in advance,
Bahchevanov.

Andreas Weiden wrote:
As far as i know you cannot create relationships between non-db-blocks (or maybe you can create them, but they will not work).Hi
Oh yes u can for query purposes only e.g. suppose i have dept table and emp table created Master Block as non-db dept_no & Dept_name and a Detail_block with emp tabel and a dept_no as a foreign key ...
1. we either set up a form relation ship between the two blocks - if we want the user to retrieve data only -
2. or we use copy value property in the dept_no item in the detail block to get the copied value from the dept_no of the master to the dept_no of the detail
3.While the user entered or select the dept_no in the Master Block then Press Entered here comes the role of the WHEN-BLOCK-INSTANCE Trigger
GO_BLOCK('DEATIL_BLOCK_NAME');
EXECUTE_QUERY;Here the data will be displayed in the detail block accordingly ...
So the relation here played the role of the Where Statment or the default where to filter the displaing of data in the Detail Block according to the Master Block
Regards,
Amatu Allah.

Similar Messages

  • How to insert multiple data to non database data block?

    Hi all,
    I'm new in using form builder. I have a question about insert multiple data to non database data block.
    I want to upload a csv file that content the attendance transaction of all of employees. If the employee in that
    file doesn't exist in that company,so I must record the employee number into non database data block.
    If I just upload one employee data, I can record it to that data block. But, if more than one, it didn't works.
    May you help me?
    Thanks..
    Tika

    you might need a NEXT_RECORD or CREATE_RECORD to go to the next reord in that block. It would be easier to help if we knew your code.

  • Using a second table in a Database Data Block ??

    In a Form, I have a Data Block which is a Database Data Block. The Items are associated with columns in a table.
    I want the items in this repeating block to show in a different order. To do this, I need to use a second table and say where table1.key = table2.key ....
    I keep getting problems at runtime with
    ORA-00918: column ambiguously defined
    I tried to qualify everywhere a column name is used. When I do show error it shows
    SELECT ROWID, ....
    And then the "column ambiguously defined".
    I do not have an item in my Form for ROWID. Maybe it is automatic. (This form DOES do update).
    Is it possible to use two tables in a Data Block like this?
    Thanks

    If you only need to order the records in the block, why not defining the "ORDER BY" clause in the block's property??
    Set the "ORDER BY" clause at design time from the property palette of the block or runtime with column of your choice.
    at runtime your can use:
    SET_BLOCK_PROPERTY('your_block', ORDER_BY, 'your_column');If you need to join to tables in one block read the [Block Based on Join|http://www.oracle.com/technology/products/forms/pdf/BlockOnAJoin.pdf] Documentation.
    Tony

  • Disabling save message when leaving a database data block

    Hi all,
    im using Forms 6i
    I have two data blocks that are database blocks, then the user opens an excel file and a function starts filling the forms with data obtained form the file.
    If i only fill one block there is no problem, but if i start filling the two when i leave one block with go_block it asks me to save the changes.... is it possible to disable that message and then when the procedure finish filling the two blocks the user can commit changues with F10?
    Best Regards,

    try POST before going to next block !

  • Relation between psa and data source

    Hi everyone,
    What is the relation between DataSource and PSA.

    PSA tables get created when u activate datasource in BW...replication is just required for purpose of Meta data loading for that data source....PSA will store data temporarily when u will load data from R/3....just u can manage PSA request datasource wise....by right clicking datasource...selecting manage tab u can see all the PSA req corresponding to that particular datasource.

  • Display description, but non-updatable data block

    To display my Item_Description, I've created a post-query trigger to lookup Item_Description based on Item_Num, which works fine, except if the user does not have update priveledge. By default the data block is non-updatable. If the user has update, then the block is set updatable at run-time.
    Problem is, for a non-update priveledge user, the form errors when the trigger attempts to set the description field. [Even though the field is set updatable by default.]
    What am I missing? Thanks.

    I'm confused. You say:
    "By default the data block is non-updatable."
    but then you say:
    "...the field is set updatable by default."
    If the data block is not updateable, then you can't make the item updateable.
    Assuming the default is non-updateable, and a user does not have update privilege, then the error message you are getting is correct because the trigger is trying to do an update when the item is non-updateable.
    If you need the trigger to do an update, then you need to make the item updateable. If you don't want the trigger to do an update for this user, then first check if the item is updateable (use the get_item_property), and if it is updateable, then let the trigger do the update.
    Message was edited by:
    Mark Roberts

  • Relation Between Service Rendered date and Pricing

    Hi All,
         I have a sale order for both sevice item and product.and it is order related billing.I have already billed the service line item.Now when i change the service rendered date in the sale order header,the net price for that service item becomes zero.
    Can any one pl help me out in this.

    Hi
    The service rendered date is the date the system uses to calculate the price for the item.
    if u change the date subsequently , if the price is zero , you may check the codnition records validty end
    if the validity of the condition record has expired
    thanks
    akasha

  • Relation between Application and Data Group

    Hello All,
    Can someone please help me to get a query which tells me which Application is associated with which Data Group?
    Thanks,
    Moore

    Moore,
    Query FND_DATA_GROUP_UNITS_V -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_DATA_GROUP_UNITS_V&c_owner=APPS&c_type=VIEW
    If the view doesn't satisfy your requirements, then write your own query using the following tables:
    APPLSYS.FND_DATA_GROUPS
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_DATA_GROUPS&c_owner=APPLSYS&c_type=TABLE
    APPLSYS.FND_DATA_GROUP_UNITS
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_DATA_GROUP_UNITS&c_owner=APPLSYS&c_type=TABLE
    APPLSYS.FND_APPLICATION
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_APPLICATION&c_owner=APPLSYS&c_type=TABLE
    Thanks,
    Hussein

  • Co-relation between oracle blocks and OS blocks ??

    how is the database data-block co-related withe the OS data-block ??

    Akshay,<br>
    <br>
    Ca va, merci. ;-)<br>
    In the doc above, we can read "Each operating system has a block size. Oracle requests data in multiples of Oracle data blocks, not operating system blocks.".<br>
    <br>
    Anyway, you can search into Oracle doc, and find DB_BLOCK_SIZE Initialization Parameter : If a database's block size is different from the operating system block size, make the database block size a multiple of the operating system's block size.<br>
    <br>
    Nicolas.

  • Relation between two View

    Hello,
    I have many blocks that based on some views. first every thing is ok when i insert record on them, but when i do an execute query i'm able to navigate between blocks in on way like (next, next) but when do previous i missed the sync between the blocks. So i decided to make some relations between these blocks. i have a main block that i take for my master and i constructed the relations master-details between my main block and others.
    now when i run form i received that error ''FRM-30415 the details block of the relation is a control block'', and it give me the relation's name. I have to mention that the QUERY_DATA_SOURCE_NAME is from clause for every blocks.
    as i said the blocks are based on views.
    could someone help me?

    Is the "Database Data Block" property of the detail block "Yes"?

  • Oracle 10g FRM-41051 on a non-database text item with a LOV

    Hi all,
    I'm struggling with a problem I'm convinced must have a really simple solution, but for the life of me I can't figure it out!
    I have a data block called query. It is a non-DB block with a number of items, with either LOVs or drop down lists. It is used to choose values, which are them programatically 'translated' into values in two other database data blocks (which are populated in the WHEN-BUTTON-PRESSED trigger of a button in the non-DB block).
    This is necessary as I have a slightly complex query which takes values from many different tables and displays bits of information from all the different tables.
    My problem is that, on my text item (which has a LOV attached to it with Automatic Display set to Yes); when I click on it, I expect the LOV to show and I am able to choose a value from it. Instead I get the error 'FRM-41051 You cannot create records here' and the LOV does not display.
    I don't understand this. Everything on the block is a non-DB item, including the block itself, and I don't want to 'create' any records, all I want to do is choose values into my text items which I can then use in a DB query (written in my trigger).
    What am I doing wrong?
    Abigail

    Probably this other item or block has got property insert allowed to FALSE.
    I have suggested you to use a push button in order to check that everything in the LOV is OK.
    Lov can also return value to item in another block; probably in your case there is something that fires the error.
    Normally when I develop my form I disable on-error and on-message trigger in order to follow every step at runtime...
    I'm happy that you have resolved your problem :D
    Fabrizio

  • Creating a master-detail relation between a view and a table

    Hi all,
    I have a problem with creating a master-detail relation between a database-view with lots of customer data and a small table with per customer a list of entities of our companies who may work for that customer.
    Somehow I seem to be unable to create a relation between these two. I can't find where I can make a foreign key using Toplink to implement the relationship. And neither can I get a Viewlink object doing the job using ADF Business Components.
    Somebody any suggestions on this problems?
    Regards,
    Birgit

    There is a key relationship between two fields which form the primary key in the main table of the view and two fields in the second table.
    I created a viewlink manually, but I still couldn't get the data correct i.e. a form with one record of a customer from the main view and a small table with all entities of our company who can make performances for that customer.
    I tried to find a manual or a how-to on this topic but I didn't find anything helpfull yet.
    Regards,
    Birgit
    After a couple more tries, I got the master-detail working. With all the fiddling I am not sure what caused the problem but I think the finally action was checking which fields of the view were marked as primary keys.
    Now everthing is up and running.
    Birgit
    Message was edited by:
    user492355

  • Relation between oracle 8i and oracle7

    hi everybody
    i need to relation between two databases
    one of its is oracle8i(8.1.6) on nt
    and other is oracle7 on novell.
    i try to create a database link but i have got a fail,
    so try to find that database (on novell)
    by enterprise manager of oracle8i,but nothing,
    i dont know what is problem,
    only i guess,exist no way for relation between
    sqlnet ver 2 with net8,
    would you pease help me.
    regards
    mehran
    null

    Check your application(s), why so many connections are open. Is it possible connections are opened again and again ,but never closed by the application? That's not a fault of the database. I don't think it will help you ,when you simply reduce the PROCESSES parameter. You remedy the symptoms,but not the cause of the problem. Most likely users will now start to complain about unsuccessful connection requests.
    Werner

  • JDBC Result Set from Non-Database Source

    In Java, is it possible to create a result set from a non-database data source?, for example an XML file, text file, vectors, java beans
    We have a Swing application that currently makes direct JDBC calls to the DB2 database for creating result sets. We want to replace JDBC calls with calls to web service, but want to still create result sets on the client, so the replacement of the datasource from database to web service call is transparent to the rest of the code.

    In Java, is it possible to create a result set from a
    non-database data source?, Yes.
    for example an XML file,
    text file, vectors, java beans
    We have a Swing application that currently makes
    direct JDBC calls to the DB2 database for creating
    result sets. We want to replace JDBC calls with calls
    to web service, but want to still create result sets
    on the client, so the replacement of the datasource
    from database to web service call is transparent to
    the rest of the code.You might want to think carefully about what you are doing.
    It is fairly easy, although somewhat tedious (many methods,) to create a new type of ResultSet.
    But if the above application is doing SQL via statements and expecting the result via a ResultSet then you are not just creating a ResultSet but an entire driver and one that will have to deal with SQL as well. And if you have to handle the SQL itself that means you will probably need a parser and interpreter.

  • Form blows up when clicked in data block using a FROM clause query

    Hi,
    I have a form that has two blocks. The detail block is based on a "FROM query clause" in the 'Query Data Source Type' in the block Properties.
    I have a simple select in the 'Query Data Source Name'.
    I made sure the select is enclosed in parenthesis and the alias names in the SELECT are the same as the ITEMS defined in the block
    The data needs to be displayed in a tabular fashion.
    When I run the form, the data is displayed correctly..but when I click the mouse on any item of this block or try to scroll down, everything just blows up and it closes my form.
    I have made sure both blocks have the same properties. But, this seems to happen no matter what.
    Any help in regard is greatly appreciated.
    Thanks much,
    Vijji

    This is how I set the relationship for the detail block say BLOCK2.
    1. I first do this:
    Database Data Block = YES
    Query Allowed = YES
    Query Data Source Type = FROM clause query Query Data Source Name = ( select jio.order_header_id order_header_id, jii.item_code item_code, SUM(jii.item_qty) item_qty from joe_indv_items jii, joe_indv_orders jio where jii.indv_order_id = jio.indv_order_id group by jio.order_header_id, jii.item_code )
    The master and detail need to be tied by the order_header_id which I can get from the header block.
    2. In the WHEN-NEW_BLOCK-INSTANCE trigger for BLOCK2, I wrote the following where I dynamically pass the order_header_id:
    DECLARE
    q varchar2(1000);
    BEGIN
         q := '(SELECT jio.order_header_id order_header_id,
         jii.item_code item_code,
         SUM(jii.item_qty) item_qty
         FROM joe_indv_items jii, joe_indv_orders jio
         WHERE jio.order_header_id = ' || :HEADERS.order_header_id||'
         AND jii.indv_order_id = jio.indv_order_id
         GROUP BY jio.order_header_id, jii.item_code )';
         CLEAR_BLOCK;
    SET_BLOCK_PROPERTY('BLOCK1', QUERY_DATA_SOURCE_NAME, q);
    EXECUTE_QUERY;
    END;
    I am not sure if I should write the exact select statement in the Query Data Source Name or not.
    Please advice.
    Thanks much,
    Vijji

Maybe you are looking for

  • Remove credit card from Apple Account

    How do I remove my debit card from my Grandson's Iphone account? the phone is under my plan and also the Itunes and I am being hit with up to $40.00 daily in charges he says he is not making.

  • Error when Adding a segment to an IDOC

    Hi I have added one segment to an IDOC through one user exit and it is giving the error with status 26. Here I am pasting the error details, The segment E1IDT02 does not occur at the current level of the basic type PEXR2001 (extension ). This error c

  • What are my options for opening EPS files in Elements 13? What is the best way to convert these to another type of vector file?

    I "upgraded" from Photoshop Elements... uh... mad old... to Elements 13 when my work computer got "upgraded" to Win8. Now I can't open EPS files which is how I receive collateral from our ad agency. What other vector files will work, and how can I co

  • Installing serial number

    I cannot install my serial number I received with purchase and download of Acrobat X! Pro. I keep getting this error message "Serial number provided is valid but a qualifing productcould not be found on this computer" Select a Product does not have A

  • Problem with Webdynpro Tables and Scatter-chart

    I have a Webservice who returns two one-dimensional arrays. I want to know how to fill one table with these arrays. And how to get this data displayed in an two dimensional scatter-chart as x and y Values.