Recommended best practice to fetch detail block based on procedure

HI
I am creating a detail block (Dept)based on procedure which will be populated from the value from master block 'Emp'.
For example,
Detail block 'Dept' will be populated by calling procedure populate_detail(:emp.empno in number,dept.deptno out number) .
But what are the triggers I need to call to populate detail block and at which level?
I was thinking to call a WHEN-MOUSE-DOUBLECLICK on master block 'Emp' level to populate the detail block 'Dept' by calling the procedure and passing emp.empno as the parameter whenever the user moves from one master record to another.
Please advise.
Thanks in advance.

Download the forms 6i examples CD from the OTN website

Similar Messages

  • Calculation in a detail block based on condition

    Hi guys,
    Well I want to calculate the SUM of some records in a detail block based on a condition.
    Like my block that is based on a table consist these fields,
    FUND_ID, NOMINEE_ID, FUND_PERCENTAGE
    Now I want to validate record the percentage user enter for each fund must not exceed 100%.
    Like for FUND_ID = 1 the number of records user enter for this FUND_ID 1 in the detail block in the percentage field must not increase 100% - like user can enter multiple record and any ratio of percentage. Like for rec1 FUND_PERCENTAGE can be 50% for rec2 its again 50%.
    In the same Block user can also enter percentage of the FUND_ID = 2 but I have to calculate for each FUND_ID.
    How can I calculate the fields based on a condition in a detail block.
    Pliz help,
    Imran

    referesing my question....

  • Looking for best practice white paper on Internet Based Client Management

    Looking for best practice white paper on Internet Based Client Management for SCCM 2012 R2.
    Has anyone implemented this in a medium sized corporate environment? 10k+ workstations.  We have a single primary site, SQL server and 85 DP's. 

    How about the TechNet docs: http://technet.microsoft.com/en-us/library/gg712701.aspx#Support_Internet_Clients ?
    Or one of the many blog posts on the subject shown from a web search: http://www.bing.com/search?q=configuration+manager+2012+internet+based+client+management&go=Submit+Query&qs=bs&form=QBRE ?
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Needed: system requirements, recommendations & best practices

    I realize that this is just a beta release but I think it'd be nice if the system requirements for this VS.NET add-in were clearly defined in a single post/page.
    For example, Christian Shay's reply to "Oracle Release Requirements" by [170516] indicates that "For the beta release you should be able to use Oracle Database version 8.1.7 or later." However, Christian's reply in the "Oracle DB 8.1.7 connection problems" thread started by [151631] indicates that "you'd need to upgrade to at least 8.1.7.4.1 for it to work."
    Which is it??? I'm using Oracle8i Enterprise Edition Release 8.1.7.2.0 and I don't want to install this add-in if it's not going to work with my current environment. I realize I can download 10g but my employer is using 8.1.7.2 and that's my target DB for now.
    In browsing this forum, I've read a number of posts with suggestions (such as installing the version 10 client in a new Oracle Home, etc.) and I think it'd be nice to see a basic set of requirements/recommendations/best practices in a single place for all to read.

    Hi
    Can you also include the following in the FAQ?
    1) ODP.NET if installed prior to this beta version - what is the best practice ? De-install it prior to getting this installed etc ..
    2) As multiple Oracle home's have become the NORM these days - this being a Client only should probably be non-intrusive and non-invasive.. Hope that is getting addressed.
    3) Is this a pre-cursor to the future happenings like some of the App-Server evolving to support .NET natively and so on??
    4) Where is BPEL in this scheme of things? Is that getting added to this also so that Eclipse and .NET VS 2003 developers can use some common Webservice framework??
    Regards
    Sundar
    It was interesting to see options for changing the spelling of Webservice [ the first one was WEBSTER]..

  • Need to create a block based on procedure

    We can create a block based on procedure...but whats the need to do so...please can anybody explain.

    There are several recent posts on the topic with a lot of good help & documentation.
    The Metalink note: 66887.1
    Re: Form on a procedure
    If you can't access Metalink, search here on that note. Someone posted the full text a couple days ago.
    This is also very good reference:
    Block based on procedure
    Essentially, you have a procedure, returning a table-of-records type variable, called by the block "Query Data Source..." properties.
    Name = procedure name
    Arguments = procedure parameters (IN parameter(s) Value is :block.item)
    Source Columns = the record type columns for your table-of-records
    Datatypes & sizes must match all around.
    Start very simple & get it to work first, then expand.
    You must follow the documentation very carefully. If it doesn't work at first, go through everything to verify. Also, read the Tip & Issues at the end of the Metalink note.
    Have fun. It works awsome once you get the hang of it.

  • Record Who information for a block based on procedure

    Hi All,
    I have a block whose query data source type property is set to procedure and query data source name is a procedure. When I hit Ctrl F11 on this block it shows me all the records. When I see the record who information , I see all the record who information except the Table Name. I understand that the table name is not coming as the query data source name is a procedure for this block. Is there a way to dynamically set this query data source name to a table or a view while still retaining the procedure based functionality. I tried set_block_property for this property but form won't allow.
    Thanks

    There are several recent posts on the topic with a lot of good help & documentation.
    The Metalink note: 66887.1
    Re: Form on a procedure
    If you can't access Metalink, search here on that note. Someone posted the full text a couple days ago.
    This is also very good reference:
    Block based on procedure
    Essentially, you have a procedure, returning a table-of-records type variable, called by the block "Query Data Source..." properties.
    Name = procedure name
    Arguments = procedure parameters (IN parameter(s) Value is :block.item)
    Source Columns = the record type columns for your table-of-records
    Datatypes & sizes must match all around.
    Start very simple & get it to work first, then expand.
    You must follow the documentation very carefully. If it doesn't work at first, go through everything to verify. Also, read the Tip & Issues at the end of the Metalink note.
    Have fun. It works awsome once you get the hang of it.

  • Update detail block based on FROM QUERY

    I have 2 blocks in master-detail relation. The master is based on a table, the detail on from query. The Insert works fine... but whenever i want to update any field from the detail block, the items (text, lists, whatever) don't allow any updating.
    Is there some workaround?
    Thank you for the help
    NR

    RTM on blocks based on from-query.
    If I recall well, it says that you shoud write the DML code in on-insert, on-update and on-delete triggers - and, anyway, if I do not remember well the manual, that's what I do.
    So, the on-insert trigger should have an insert into <my_dml_table>...
    The on-update trigger sould have an update <my_dml_table>... where ... And there's a thing: you may have the rowid of <my_dml_query> fetched - which would be the best - or use some primary key for that table for update (not so good performance).
    The on-delete trigger somewhat like the on-update trigger.
    Moreover, I believe it would be better to have procedures for on-insert, on-update and on-delete grouped in one package in the database - again, this is what I use to do.

  • Best practice on handling a datacontrol based on a changing webservice

    Is there any best practice on how to handle changes to a datacontrol, when a webservice changes ?, it seems the information on
    portnumbers, servernames etc. is placed in a number of files, an optimal solution seems to be that Jdeveloper would have functionality
    to regenerate all relevant files based on changes to the WSDL, but this does not seem to be supported in Jdeveloper 11g
    Regards
    Ole Spielberg

    Hi,
    I think in this case you would better use a WS proxy, wrap this in a POJO and create a data control from this. This allows you to set the port and host programmatically. I agree that there should be a better option to do the same in the WS data control
    Frank

  • Best Practice - existence of details

    There are many ways to manage the question of existence of details. All will work. What I am interested in is Best Practice.
    Example. There is a Customer table in the source, and there are Sales tables (order and detail). However, some people are recorded as Customers but there are no Sales associated with them. I am only interested in passing forward into the mapping a) customers signed-up in a recent date range and b) customers with an associated sales record i.e. an order. Obviously Sales are in a zero-to-one-or-many relationship with Customer.
    In this scenario, I do not want any Sales data. I merely want to select Customers if Sales exist, and the Customers fit a category in Customer.
    So, I am asking what the OWB experts here consider Best Practice to perform an IF EXISTS test on a related record. What would the mapping look like?
    Regards,
    Donna

    Your solution should work, but test it against
    expected results, as I am not familiar in detail with
    your requirements. I did, and I get sub-second times. It is really fast.
    >
    a) To create a bitmap index (non unique) in Oracle it
    is sufficient to issue a "create index INDEX_NAME on
    TABLE_NAME (COLUMN_NAME). You can achieve this with
    OWB by specifying NO_INDEX as index type in the
    configuration properties of the table (where you
    define indices).Umm. I do not want a bitmap index. I want a b-tree. Is that what you meant?
    >
    b) To create a index-organized table, you have to add
    the "ORGANIZATION INDEX" clause to the create table
    command.Splendid. Thank you.
    Best regards,
    Donna

  • Autofill detail block based on query

    Hi experts/Gurus
    I have 3 tables
    1-pr_mst
    2-pr_trn
    3-hr_mst
    Em_code is a common key between theses tables.
    on my form table 1 and 2 are the base main tables, due to the relationship, when i enter em_code on table 1 and query it, it shows data on both the table. Its a normal behavior in Master Detail block in forms.
    When user enter em_code at form and there is no data found in table 2, obviously it show blank data block related to the table 2 and shows data in table 1 block, now i want an em_code details which stores in the table 3 automatically load in memory and populated in detail block.
    Is it possible ? and how can i do this. suggest me a best or anybody can give example on emp/dept
    regards
    Anwer

    I'm not sure if i understand you correctly. You want to have an additional relation between block 1 and block 3? If so, just create it, each block can have more than one relation as master.

  • Best Practice to fetch SQL Server data and Insert into Oracle Tables

    Hello,
    I want to read sqlserver data everry half an hour and write into oracle tables ( in two different databases). What is the best practice for doing this?
    We do not have any database dblinks from oracle to sqlserver and vice versa.
    Any help is highly appreciable?
    Thanks

    Well, that's easy:
    use a TimerTask to do the following every half an hour:
    - open a connection to sql server
    - open two connections to the oracle databases
    - for each row you read from the sql server, do the inserts into the oracle databases
    - commit
    - close all connections

  • Best way to create detail records based on data in the master record..

    Hi,
    I am using 11gr1p1 and ADF stack.
    I have a master detail relation between 2 records. I have EO and entity associations. I want to create a number detail records based on the data on the master record.
    For example
    I have a Stay Record which has begin and end date I need to create the DailyStay Record for each day for the range of begin and end date of StayRecord.
    Where should I do this? In EO implementation or in VO implementation.?
    Thanks

    Where should I do this? In EO implementation or in VO implementation.?If your child record should in no case be created without those default values, then EO.
    Otherwise, to increase reusability of your EO, then in the VO over the view link (i.e. other VO's would still be able to use your EO without having the child VO created with these defaults).
    This way your ViewObjects can also be used in a context where you don't want to copy from the masterFrank, If there's another UI flow that is so drastically different that it does not want things defaulted, then it probably needs a different VO altogether (on the same underlying EO though)

  • Best Practice for PDF print forms based on SAP standard

    Hi,
    I have copied the SAP standard PDF form F_D_INT_SCALE_00 to a Z form, and am using it in conjunction with the standard print program RFDZIS01_PDF.  However I need to output some additional fields that are not supplied by the print program / interface (for example Customer VAT number).
    What is the best practice for achieving this?  As far as I can see the only way is to take a copy of the standard print program and modify it to select the extra data, and modify the interface.  I never like taking copies of standard programs though for obvious reasons.
    If I had this requirement with a smartform it would be a simple case of embedding ABAP code into the Z smartform and leaving the print program alone, but unfortunately there is no provision for the non-PDF version of the Interest Letter to be sent by email.
    Thanks in advance,
    Vindaloo

    Thanks for your reply Robert.
    However I think you are referring to Smartforms when you mention Code Initialization and Global Data declarations.  I need to know the best way to modify copies of standard Adobe Print Forms.
    Regards,
    Vindaloo

  • Set enabled in detail block based on record's data

    Hi,
    I have a detail block in tabular form(4.5).There is only one column "Hobby" which is disabled at design time and 4 records are displayed like as shown:
    - Hobby -
    Soccer
    Baseball
    Icehockey
    Basketball
    At run time I want to enable the records so that users can update it only if the hobby starts with letter 'B'.
    I tried using set_item_property in post query but this will enable all records as the last record starts with "B" and the code will enable the column.

    Try putting same trigger coding in WHEN-RECORD-INSTANCE
    Message was edited by:
    rajs

  • Error: FRM-40657, Block based on Procedure

    Hi,
    I have a detail block, its Qry Data Source is Procedure, and the DML is to a table,
    The data is loading from two table say A and B, but the DML is to table B only.
    The pblm is when editing the data from A(if the data loaded from the Table A satisfy certain condition then I have to store that data into Table B along with other data selected from table B, i am getting the error FRM - 40657.
    Thanks in advance

    Hi,
    You are running into the error because you are trying to change or delete a record when you have already 'locked' it by viewing it in your form.
    If you do need to do it this way, you will have to clear data from table B and then do the updates/inserts and then requery the data.
    Hope I've understood what you mean!
    L :-)

Maybe you are looking for

  • ERROR: Failed to update prerequisite results into the registry; error = 1 for sccm 2012 secondary site installation

    Hi, We try to install sccm 2012 serondary site in server 2012. It always failed. I used the rereqchek tools to check system enviroment locally. All passed. The primary site installed in server 2012.  Both server had granted the administrator permissi

  • What's New in Adobe Edge Reflow CC | Adobe Edge Reflow | Adobe TV

    Learn about the major enhancements in Edge Reflow CC. We're introducing several new layout and styling methods as well as tons of bug fixes to help you more easily create responsive web designs. http://adobe.ly/14JhBR0

  • JDBC to Mail Adapter

    Hi All, i need some help regarding my scenario with JDBC to Mail adapter.I have to read a table and <b>then sent the values in it to a email.i have finished design and configuring ,but still i am getting  this mapping error. <b>"com.sap.aii.utilxi.mi

  • Authorization check by user

    I need to do determine if a user is authorized to execute a certain transaction. What is the easiest way to implement this. I have been looking at ABAP statement AUTHORITY-CHECK but am not sure if it will work for me.

  • Problem linking to a third party application

    Hi I wrote a link with SAP and a document management system. They have just upgraded their software so it is .net compliant. I have recoded my link but the problem I have is that when I call a routine to search and display a document it just shows a