Need to create a block based on view

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

create the block with the data block wizard. Use your View as Data-Source.
After that set all items to QUERY-ONLY, when they are not updateable. E.g. if you create a view from EMP to DEPT. Then it is not allowed to update DNAME. DNAME is set to QUERY-ONLY.

Similar Messages

  • 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.

  • Inserting/updating data in control block based on view

    Hi!
    I`ve created a block based on a view to display data.
    I want this block to be insertable and updateable, that is I will use a on-insert/update trigger to call an insert/update procedure located in the database.
    When trying to change/insert a value in the block, the error message "Error: Can not insert into or update data in a view" pops up. I`ve tried to get rid of this error, without success.
    How can I make a data block based on a view insertable and updateable?
    My guess is that this have something to do with locking the records(there is no rowid in the view)... but I'm not sure.
    Pls advise!!

    Morten
    As well as on-update, on-insert, on-delete triggers you also need an on-lock,
    (even though it might just contain null;) otherwise the form will try to lock the view and fail.
    Actually your terminology is wrong, the block being based on a table or view is not a control block. A control block is not based on anything and has no default functionality for communicating with the database. If it was a control block, the on- triggers would not fire.

  • Need to Create AD LDAP based Address Book

    We need to Create AD LDAP based Address Book. Following is the scenario.
    Our Existing Network
    SMTP Domain Name1  is xyz.net hosted on O365 Exchange online with E3, E1 and KIOSK Plan for different users.
    SMTP Domain Name2 is abc.com hosted on onpremise Linux box
    Windows 2008R2 based AD Domain named abc.com
    Linux POP users get central/global address list by using AD Domain for
    abc.com LDAP address list
    Solution required for
    Exchange KIOSK user with POP connectivity need to have access to some Central/Global Address list for
    xyz.net
    We wish to
    Setup a seperate domain joined or workgroup server and use the Windows AD LDAP/ADAM service to build a Address List for
    xyz.net domain
    we DO NOT wish to replicate AD LDAP Instance from our existing Domain Controller.
    configure Exchange Kiosk pop users to use LDAP addres list by connecting it to the AD LDAP server.
    We are looking for
    steps to setup a ADLDAP/ADAM service on Win2008R2 or 2012 with a fresh AD LDAP Instance.
    The step to create a Application Directory Partition
    Populate the Application Directory Partition with users, groups, contact for the xyz.net domain either manually as well as by importing
    allow users to be able to access this application directory partition on AD LDAP server and
    allow the users to configure their pop email client [outlook 2010] to use the LDAP address book on the AD Ldap server

    Hi,
    Here i found some articles for you refering:
    How Active Directory Application Mode Works
    http://technet.microsoft.com/en-us/library/cc755705(WS.10).aspx
    AD LDS Getting Started Step-by-Step Guide
    http://technet.microsoft.com/en-us/library/cc770639(WS.10).aspx
    Active Directory Lightweight Directory Services
    http://technet.microsoft.com/en-us/library/cc731868%28WS.10%29.aspx
    Active Directory Lightweight Directory Services Operations Guide
    http://technet.microsoft.com/en-us/library/cc816635(WS.10).aspx
    Thanks.

  • Help needed in creating a narative or title view

    Experts,
    I need some input in creating a narative or title view as header information for a report
    I am creating employee level reports in obiee 10g.
    Table Data (My table view is something like this)
    Emp ID     Emp Name                 Biz Area
    100121     Matson, Glenda     Local Corporate
    100121     Matson, Glenda     SME
    Header required to be displayed as a narative or Title view (all Fields are from my client dimension)
    Employee Information                         
    Employee ID               :     100121     
    Name                    :     Matson, Glenda     
    Role                    :     Local Corporate and SME (Both the roles played by the employee)     
    I tried even pivot, but it did not work
    Edited by: sarvan on Sep 24, 2012 11:53 AM
    Edited by: sarvan on Sep 24, 2012 11:55 AM
    Edited by: sarvan on Sep 24, 2012 11:55 AM

    Thanks for your response. I tried the same way earlier, but since same employee is playing more than one role, my narrative output is like the below.
    1282999
    Nathan, Astle
    Tech Lead
    1282999
    Nathan, Astle
    SME
    But I want the Role to appear in the same line. Something like this
    1282999
    Nathan, Astle
    Tech Lead and SME

  • Need to create a transformation based on Update Rules Logic

    Hi,
    I have an existing complex Update Rule. I need to manually create a Transformation based on this Update Rule logic. The Start Routine of the Update Rule comprises of:
    1) All data declarations in the Global Area
    2) The local coding area consists of various select statements from various r/3 tables used later for mapping. It also calculates and stores values in the Data Package final internal table for few infoobjects that are not present in the Source object but and are used to populated data in the target.
    3) then we have the various one to one individual Infoobject mappings/constants and many individual infoobject routines that pick result from the comm_structure
    I am not very clear as to where each of the above coding logic should be put in the transformation coding area...... I can see four main coding areas in the transformation....global area, 2nd Global Area, Method Start_Routine and Method Inverse_Start_Routine........... I think the global data declarations(point 1 above) should be put in the Global declaration area of the start routine. The local area of the update rule logic (point 2 above) that contains select statements should be put in 2nd Global part or should it be put in Method Start_routine????? Point 3 above for individual filed mappings will be done through Rule groups. Also can anyone let me know what is the methos inverse_start_routine used for?????
    Thanks.

    Hi,
    Point 1 you mentioned should be put under2nd Global declaration part of start routine.
    Point 2 should be put under Method Start_routine.
    Point 3 as you only mentioned can be done by individual field rule mappings.
    Method inverse_start_routine
          This subroutine needs to be implemented only for direct access
          (for better performance) and for the Report/Report Interface
          (drill through)
    Not very clear though about Inverse routine. But definetly not being used for the case you mentioned.
    Hope it helps.

  • Block based on view ,enter query

    Hi,
    I have a block based on a view.One column of the view is
    substr(f_gt_marks(tcs23.idu_nr_dossr),1,128).
    When I enter 'PAPER%' for the above column and press execute query i get:
    PAPER
    PAPER1PAPER2
    When the form is in enter query mode and when I enter 'PAPER' and press execute query I get FRM 40301 query caused no rows to be retrieved.
    I want only paper to be retrieved.The form works only if I append % to the search criteria.
    Can you please advise me.
    I am working on forms 9i.
    Thanks and Regards

    Try to debug for form, and get the SQL Statement that is being executed, see if it's doing anything out of the ordinary and try to run in SQL*Plus and see the result.
    I think your SQL is trying use the SUBSTR function on the value you enter in ENTER-QUERY mode.
    SUBSTR(f_gt_marks('PAPER'),1,128)Anyway, best for you to see what the form's SQL statement is when issuing the query.
    Tony

  • Need to create two nodes based on one condition in message mapping.

    Hi Experts,
                    In my mapping I have two different nodes. If my condition is true then only one node should be created otherwise both the nodes should be created.
    requirement is I need to print. one header before first item record and after every 200 item records.
    i.e I need to create header node if (item recordno) is 1 or (item recordno % 200) is 1. I have tried using this condition. But Iam getting all the header records( 3 headers for 600 items) in sequece and then all  item records (600).
    i want 1 header then 200 items , then again header followed by 200 items. so on.
    Can any body help.
    Thanks&Regards,
    REYAZ HUSSAIN

    Hi REYAZ HUSSAIN,
    as graphical mapping is "target field mapping" this is not possible. The parser for graphical mapping traverses the taget message from the first element to the last!
    You need another kind (ABAP, XSLT, JAVA) of mapping.
    Regards Mario

  • Query on Data Block based on View

    Hi,
    I am new to forms and am trying to modify an existing form which currently works in the following way :
    The same form is used for insert/updates/queries.
    The data block is based on a table and a post query trigger is written which updates the other text items on the canvas(which come from different tables) based on the values returned by the data block. Since the query functionality is based only on the table, you cannot query on the other items that are on the canvas. I need to make the query work on the other items that come from different tables.
    I created a view which joins all the tables but when I query although it returns the right record I get an error message " Cannot insert into or update view"
    I'm not sure what the best way to resolve this is ?
    Any suggestions ?
    Thanks
    Preeti

    Thanks for the replies.
    I created an updateable view and an instead of trigger. The Form is now queryable on all fields and the insert to the table works beautifully.
    However, now I'm getting an error on Update. Updating any column on the form results in a
    ORA-01733: virtual column not allowed here
    FRM-40501: ORACLE error: unable to reserve record for update or delete.
    The code for the view is :
    select a.*,
    B.vendor_name as Supplier_name,
         'PRE' AS TO_OWNER,
         C.vendor_site_code as supplier_site,
         ARCH.vendor_name AS Architect,
         p.segment1 as Project,
         ph.segment1 as PO_number,
         decode(a.interface_status,'I','Interfaced', 'U', 'UnInterfaced',
         'P', 'Partial',null) Interface_display_status,
         decode(a.approval_status,'A','Approved', 'P', 'Partial',
         'R', 'Rejected', 'U','Unapproved',null) Approval_display_status
    from idc_aia_g702 a, po_vendors b,
    po_vendor_sites_all C,
    PO_VENDORS ARCH,
    pa_projects_all p,
    po_headers_all ph
    where b.vendor_id = a.vendor_id
    AND A.vendor_site_Id (+) = C.vendor_site_id
    AND A.VIA_ARCHITECT_VENDOR_ID = ARCH.VENDOR_ID (+)
    and a.project_id = p.project_id
    and a.po_header_id = ph.po_header_id;
    I know I have to do something on either the data block property palette or the individual item property palette and clicking on any field within the form in order to update it results in the error mentioned above.
    Shd I have all the item props as Query Only set to Yes ? or the ones for Table A as Query Only set to N and the other table columns as Y ?
    Thanks
    Preeti

  • Updating record in a data block based on view in oracle forms

    hi all ,
    We have two data blocks in our custom oracle form.The first data block is for search criteria provided with buttons 'GO' and 'ADD ROW' and the second data block is based on a view that fetches record when user clicks on GO based on the the criteria specified in the above block. The Below block contains one SAVE button too.
    We have a requirement when GO button is pressed and corresponding records are shown in the below block, user should be able to edit the record. Want to know how to make it editable?
    Help appreciated....!!!

    Your view is based on how many tables and does it include all NOT NULL fields from all tables?

  • Unable to create ADF Table based on view object

    Hi
    I am using Jdeveloper 11.1.1.5
    I have created a view object based on the entity object. I am trying to drag and drop view object from data controls in to a blank page and choosing table -> ADF Table. The table is not getting created and at the same time I am not seeing any error message.
    Please help me
    Thanks
    Edited by: 880409 on Aug 19, 2011 5:58 AM

    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ria_application/developriaapplication_long.htm
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/adfbc_new_features/adfbc.html

  • Create edit form based on view with multiple column key

    Hi
    I have a requirement to create a form to update some tables columns based on a view.
    The problem is that the view has a primary key of 4 columns.
    I have tried to create a rowid key based on one underlying table but this does not work.
    I am calling the form from an interactive report but can only pass 3 keys to the form, so only get 3 fields populated.
    Is there some way i can create the form manually as the wizards cannot cope with this requirement?
    My view is here:
    CREATE OR REPLACE FORCE VIEW "DMOADMIN"."MO_STATUS_LOG_VIEW" ("MONEY_ORD_NO", "STATUS_CODE", "DESCRIP", "STATUS_DATE_TIME", "TXN_DATE_TIME", "LLOG_ID", "LINE_SEQ_NO", "CANCEL_IND", "PROCESS_ID", "PBU_ID", "TXN_SEQ_NO", "CANCEL_REASON", "CONDITION_ID", "ADMIN_DATE_TIME", "ADMIN_LLOG_ID") AS
    SELECT a.money_ord_no,
    b.status_code,
    b.descrip,
    a.status_date_time,
    c.txn_date_time,
    c.llog_id,
    c.line_seq_no,
    c.cancel_ind,
    c.process_id,
    c.pbu_id,
    c.txn_seq_no,
    c.cancel_reason,
    c.condition_id,
    d.txn_date_time admin_date_time,
    d.llog_id admin_llog_id
    FROM mo_status a,
    mo_status_desc b,
    host_txn_log c,
    host_admin_log d
    WHERE a.status_desc_id = b.id
    AND a.money_ord_no = c.money_ord_no(+)
    AND a.status_date_time = c.txn_date_time(+)
    AND a.money_ord_no = d.money_ord_no(+)
    AND a.status_date_time = d.txn_date_time(+)
    WITH CHECK OPTION;
    I have tried to populate the data using with an on load process using a plsql query but it is not working. I get no data found error message. Help!

    Hi Erwin,
    I have a similar situation.
    Tabular form based on a view. The view contains a table in a another instance via dblink and everything works fine.
    The only one difference between my and your view is that my "instead of" view is only for UPDATE. You must to have "intead of" trigger only for UPDATE. Insert and delete works fine withoust "instead of" trigger.
    So, try to delete INSERT and DELETE words from your "INSTEADOFBUBA" trigger.
    hope it helps,
    Mzz

  • Should ADT create module components based on views?

    I have a function (representing a report) with Read usage on two entities, and one entity is implemented by a table and the other implemented by a view. When I run the Application Design Transformer, the resulting module has a module component based on the table, but no component based on the view. This happens in our new configuration (9iDS/10g Database), as well as in our old one (Designer 2.1/8i Database). Is this expected behavior for the ADT, or should I see a component based on the view?

    Peter,
    Thanks for your feedback. I have posted an enhancement request
    for the next release of Headstart.
    Regards,
    Lauri

  • Need to Create Search Help Based on Condtions from one table to another tab

    Hi All,
    I have a table like ZGROUP Which contains the data below
    Filed name Filed Name Filed Name
    ZGROUP ZTYPE ZTEXT
    Entries
    ABC P TEXT FOR
    C P SDFNSDFKLN
    DDDD PSG TEPRTPERERTWERT
    DEF P TEST
    FFFFF PSG
    SEF PS SDFSDFLASLDFNASDLFN
    XYZ PS TESTING
    Whree P is Product , PS- Point of Sales, PSG-Sales Group
    Now i am going to crate another ZPROUDCT TABLE
    FIELDNAME FIELDDESCRITPON
    PRODUCT PROD_DESC
    Entry
    abc pRELATED ENTRY
    My Questions
    1) ZGROUPS table has 3 kinds of data P, PSG, PS type records,
    1) In Table ZPROUDCT , I want to create search help only P records for Table Zproduct of the field Product FROM zGROUPS table
    2) In Table Zsales , I want to create search help only PS records from ZGROUPS table
    3) In Table ZPSG, I want to create search help only PSG records from table ZGROUPS
    is it possible to create search help from One Master Table(ZGROUPS) table to other tables based on conditions.
    Please help me.
    very urgent
    Regards,
    Raju

    if  <condition>
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
    SELECT <field>
             FROM <table>
             INTO TABLE i_tab
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'                  "function module to provide f4 help to sold-to-party
        EXPORTING
          retfield        = "XXXX"
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = '<field name>'
          value_org       = 'S'
        TABLES
          value_tab       = i_tab
    endif.
    lkike this u can check the condition and selec the data from table and assign it into one internal table and then call the FM it will give the f4 help to particular field
    reward if helpful
    regards,
    Khan.

  • Help needed to create 3D block

    import java.applet.*;
    import java.awt.BorderLayout;
    import java.awt.event.*;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.universe.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    public class Shape1 extends Applet{
         public BranchGroup createSceneGraph(){
              BranchGroup obj1 = new BranchGroup();
              TransformGroup objTrans = new TransformGroup();
              objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              obj1.addChild(objTrans);
    /* set Color to the object */
              Appearance app = new Appearance();
              Color3f rgreen = new Color3f(0.0f, 0.80f, 0.2f);
              Color3f ambientgreen = new Color3f(0.0f, 0.3f, 0.1f);
              Color3f medgreen = new Color3f(0.0f, 0.5f, 0.1f);
              Color3f bgColor = new Color3f(0.0f, 0.0f, 0.0f);
              Color3f white = new Color3f(1.0f, 1.0f, 1.0f);
              Color3f green = new Color3f(0.0f, 0.80f, 0.2f);
              ColoringAttributes ca = new ColoringAttributes();
              ca.setColor(green);
    /* set Scale */
              Transform3D boxScale = new Transform3D();
              boxScale.setScale(0.5);
              objTrans.setTransform(boxScale);
    /* create a bounds for the background and lights */
              BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0),100.0);
    /* set the background color */
              Background bg = new Background(bgColor);
              bg.setApplicationBounds(bounds);
              objTrans.addChild(bg);
    /* set the vector for directional light */
              Vector3f 1Dir1 = new Vector3f(-1.0f, -1.0f, -1.0f);
    /* create two light */
              AmbientLight g1 = new AmbientLight(white);
              g1.setInfluencingBounds(bounds);
              DirectionalLight g2 = new DirectionalLight(medgreen, 1Dir1);
              g2.setInfluencingBounds(bounds);
              objTrans.addChild(g1);
              objTrans.addChild(g2);
    /* create box with color */
              app.setColoringAttributes(ca);
              Primitive box1 = new Box(0.2f, 0.5f, 0.05f, app);     
              objTrans.addChild(box1);
              obj1.compile();
              return obj1;
         public Shape1(){
              setLayout(new BorderLayout());
              Canvas3D c = new Canvas3D(null);
              add("Center", c);
              BranchGroup scene = createSceneGraph();
              SimpleUniverse u = new SimpleUniverse(c);
              u.getViewingPlatform().setNominalViewingTransform();
              u.addBranchGraph(scene);
         public static void main(String[] args){
              new MainFrame(new Shape1(), 212,212);
    I'm a new user in Java 3D. Actually, I just create a very simple 3D block, however it still shows in 2D. Also, after I added Vector3f and compiled, it got an error "java:44: not a statement". Does anybody can help me? Thanks.

    From the looks of it, you've got a 3D-cube alright, you're just looking at it frontally, which means you only see the front rectangle. Try adding a rotation Transformgroup that rotates over a small angle between the TG and the Cube.
    Alex

Maybe you are looking for