Create relation between two blocks which are based on different procedure

Hiii
How to create relation between two blocks which are based on different stored procedures in Oracle form??
Pradhyumn Sharma

hiii,
I selected the common key deptno in both procedure.
I created a relation between both procedure. but when i compile the form it give an error in ON-CHECK-DELETE-MASTER. My procedure are
==================================
PACKAGE emp_pkg AS
TYPE emprec IS RECORD(
empno asg_emp.empno%type,
ename asg_emp.ename%type,
job asg_emp.job%type,
sal asg_emp.sal%type,
deptno asg_emp.deptno%type);
TYPE emptab IS TABLE OF emprec INDEX BY BINARY_INTEGER;
PROCEDURE empquery(block_data IN OUT emptab, p_deptno IN NUMBER);
end;
====================================
PACKAGE dept_rec IS
type rec is record(dname asg_dept.dname%type,
     loc     asg_dept.loc%type,
     deptno asg_dept.deptno%type);
type deptrec is table of rec index by binary_integer;
PROCEDURE dept_rec1(block1 in out deptrec);
END;
===================================
In ON-CHECK-DELETE-MASTER
CURSOR BLOCK9_cur IS
SELECT 1 FROM dept_rec.dept_rec1 d
WHERE d.DEPTNO = :BLOCK6.DEPTNO;
identifier dept_rec.dept_rec1 must be declared.
Regards
Pradhyumn

Similar Messages

  • How can i use cmr between two EJB which are belong to different database?

     

    Perhaps, on the EJB's Entity tabs, in the Deployment settings dialog, you could make sure each bean references a different DB (Change the JNDI name, under Database settings).
    However, I don't know this for sure - you may have to use bean-managed persistence.

  • Using built-in function in the definition of relation between two blocks...

    Hi ,
    Is it possible to define a relation between two form blocks(db based) ....
    I have a master table such as:
    table : strdet (cols: ms varchar2(10) , det varchar2(10))
    materialized view : mv (cols : det varchar2(10) , sum_a number(5), sum_b number(5))
    and data:
    strdet
    ms                   det
    1                     1.1
    1                     1.2
    1.1                  1.1.1
    1.1                  1.1.2
    1.1.1               1.1.1.1
    e.t.c.
    and for the mv
    det               sum_a     sum_b
    1                   500        300
    1.1                100        200
    1.2                540        150
    e.t.c.
    I have tried some versions of relations so as to create a master-detail relation(in reality , the two blocks are connected via ms.det
    ->mv.det...  but the relation is one-to-one....) . I want a result such as:
    Master block
    1.1
    Detail Block
    1.1.1
    1.1.2
    e.t.c.Is it possible somehow...????
    Note: I use Dev6i and Dev10g ...
    Thanks ,,,
    Sim

    I think you'll have to use a from-clause-query for the detail block. If you join the master table and the mv on the DET column then you can give each row in the detail block a MS column (from the master table) which you can use in the relation.

  • Can Partial Trigger Work between Two Components Which Are in Two Pages?

    Scenario: Some output text components in page one while a SelectOneChoice and a InlineFrame are in page two. At first the resource attribute of inlineFrame was set to point to page one. When changing the value of SelectOneChoice, the values of those output text will be expected to change accordingly. I tried to make SelectOneChoice to be the trigger of those output text components, but found that SelectOneChoice can't be seen when attempt to edit the value of PartialTrigger attribute of those output text components. Then I tried to set the ID of SelectOneChoice as the value of the InlineFrame component, but failed getting the wanted result again.
    Problem: How to get a partial refreshing effect between two components that are in two different pages? Can partial trigger work in this scenario?
    Thanks for your interest!

    Hi,
    Sorry, you can't achieve that the way you're doing it. If you're using 11g, however, you could do that using regions.
    Regards,
    ~ Simon

  • How to create an relation between two block

    Oracle forms 6i
    Hai All
    I have created a form in that i have four button ADD, QUERY, SAVE ,EXIT.
    I have two block named Leader and members.
    Four fields in leader block namely name , codeno, deptcode, unitid.
    When i pressed query button and the cursor goes to name field in leader when i enter the name of leader and click
    enter i gives the codeno, deptcode and unitid of the leader_name.
    so now i have created another block in tabular structure to bring the members in the same deptcode that belongs to Leader_name.
    So pls tell me the steps how to create the relation between these two blocks.
    when i enter the leader_name and gives enter it needs to bring the codeno, deptcode, unitid and
    I also need to gives the members in that deptcode..
    Thanks In Advance
    Srikkanth.M

    If it is possible to create relationship with one table No.
    Or
    I have created a pre-Query in the detali block and my code is
    set_block_property ('block_name', default_where, 'deptcode = (select deptcode from emplmaster where name like :block_in_which_leader_name.leader_name_field');BTW no need of joining here it can be solve by set the block's where clause as u said in ur earlier post above. Just changing the little bit this statement and then try.
    If numeric
    set_block_property ('block_name', default_where, 'deptcode = '||:block_in_which_leader_name.leader_name_field);
    Otherwire
    set_block_property ('block_name', default_where, 'deptcode = '''||:block_in_which_leader_name.leader_name_field||'''');-Ammad

  • Creating a Relation between two Blocks - the Join Condition [SOLVED]

    Hi. I'm trying to create a Relation between my TTMS_Audit table and my Bundle_Exceptions table. This is the join condition:
    ttms_audit.primary_key_values = bundle_exceptions.project_cd||','||bundle_exceptions.bundle||','||bundle_exceptions.exception_cd
    And I get the following error:
    FRM-15004: Error while parsing join condition
    Does anyone know if my concatenated values in the Join Condition are allowed? Can I even do this? Is there a logical work around?

    Got it.
    I first created the concatenated values as a non-base table item on my form:
    :NBT_PRIMARY_KEY_VALUES := :bundle_exceptions.project_cd||','||:bundle_exceptions.bundle||','||:bundle_exceptions.exception_cd;
    Then my join condition simply became:
    ttms_audit.primary_key_values = bundle_exceptions.nbt_primary_key_values

  • Number weeks between two dates which are in same year or different year

    Hi,
    how to calculate the number of weeks between two dates?
    eg. '17-mar-2013' and '27-jun-2013' or '15-jun-2013' and '25-mar-2014'
    Thanks in advance.
    lukx

    A not tested "integer arithmetic" example (to be adjusted to your conceptions if feasible) covering only both dates in the same year and dates in successive years examples.
    consider Setting Up a Globalization Support Environment
    select case when substr(:start_date,1,4) = substr(:end_date,1,4)
                then to_number(to_char(to_date(:end_date,'yyyymmdd'),'iw')) -
                     to_number(to_char(to_date(:start_date,'yyyymmdd'),'iw'))
                when to_number(substr(:end_date,1,4)) - to_number(substr(:start_date,1,4)) = 1
                then to_number(to_char(trunc(to_date(:end_date,'yyyymmdd'),'yyyy') - 1,'iw')) -
                     to_number(to_char(to_date(:start_date,'yyyymmdd'),'iw')) +
                     to_number(to_char(to_date(:end_date,'yyyymmdd'),'iw')) + 1
           end iso_weeks_between
      from dual
    Regards
    Etbin
    the following seems to work for iso weeks treated as buckets
    with
    t as
    (select date '2013-03-17' d1,date '2013-06-17' d2 from dual union all
    select date '2003-12-31',date '2004-01-01' from dual union all
    select date '2004-12-31',date '2005-01-01' from dual union all
    select date '2005-12-31',date '2006-01-01' from dual union all
    select date '2013-12-29',date '2013-12-30' from dual union all
    select date '2016-01-03',date '2016-01-04' from dual union all
    select date '2013-06-15',date '2014-03-25' from dual
    select d1,
           to_number(to_char(d1,'iw')) low_iso_week,
           d2,
           to_number(to_char(d2,'iw')) high_iso_week,
           to_number(to_char(d2,'iw')) - to_number(to_char(d1,'iw')) iso_week_diff,
           case when to_number(to_char(d2,'iw')) - to_number(to_char(d1,'iw')) < 0
                then to_number(to_char(d2,'iw')) - to_number(to_char(d1,'iw')) +
                     case when to_char(trunc(d2,'yyyy'),'iw') = '01'
                          then 52
                          else to_number(to_char(trunc(d2,'yyyy'),'iw'))
                     end
                else to_number(to_char(d2,'iw')) - to_number(to_char(d1,'iw'))
           end iso_weeks_apart
      from t
    Message was edited by: Etbin
    with no Database at hand pencil and paper is too error prone to figure out iso week changes for varioud december - january periods

  • Passing parameter between two portlets which are in two diffrent pages

    hi,
    This is query regaring passing the parameters from one java portlets to another. Or Receiving parameter from Portlets.
    The Secanrio is like :
    I have two portlets shown in the two different pages. Now while running the application i want to send the all the data is entered by user in the next page.
    1. How to pass the value of all the parameter in the second portlet ?
    2. how to name the url of the second page in action of first page

    We need to use portlet events for sending parameters across different pages.
    Following documents can give you insight on this :
    1. http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/PRIMER.PORTLET.PARAMETERS.EVENTS.HTML
    2. http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/DESIGNING.PAGES.USING.PDKJAVA.SAMPLE.EVENT.WEB.PROVIDER.HTML
    -AMJAD.

  • In How Many ways or Techinques used to have relation beween two factables which dont have common dimesions

    Hi folks,
     In How Many ways or Techinques used to have relation beween two factables which dont have common dimesions
    or 
    how to establish relation beween two factables.
    Thanks
    Ravindra KAvali

    Hi kavali1985,
    According to your description, you want to build relationship between two fact tables without common dimension. Right?
    In Analysis Services, to build relationship between two fact tables, at least you need to have "common" column in both tables which can link these two tables. If so, we can create a fact dimension based on one fact table, then build the relationship
    with the other fact table. Please refer to link below:
    Defining a Fact Relationship
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Relation between Responsibility and Business Area

    Hi,
    I have a requirement wherein i have to make a particular workbook available in specific responsibilities.
    Now when i have to create a folder then how do i know in which Business Area should i create the folder.
    Basically i need to know the relation between Responsibility and Business Area i.e which Business Area i should create the folder so that it is visible in desired responsibilities.
    Is there any way possible i can know this.
    Regards,
    Shruti

    Hi,
    You can do that in two ways:
    1. Go to the administrator and check the sharing BA for each responsibility you require.
    2. Query the database to retrieve the sharing.
    Do whatever you find easier.
    For the database option you can run the following (change it to your own schema name):
    select distinct
    t.ba_name,
    t.ba_id,
    t.ba_description,
    case when substr(t.ba_created_by,1,1)='#' then fu.user_name else t.ba_created_by end as CREATED_BY,
    disco_users.eu_username,
    case when instr(disco_users.eu_username,'#')=0 then disco_users.eu_username
    when instr(disco_users.eu_username,'#')>0 and instr(disco_users.eu_username,'#',2)=0 then (select fu.user_name from fnd_user fu where fu.user_id=substr(disco_users.eu_username,2,5))
    else (select resp.responsibility_name from fnd_responsibility_tl resp where resp.responsibility_id=substr(disco_users.eu_username,2,5))
    end as "Shared Name / Responsibility"
    from eul_us.eul5_bas t,
    apps.fnd_user fu,
    eul_us.eul5_access_privs disco_shares,
    eul_us.eul5_eul_users disco_users
    where substr(t.ba_created_by,2,10)=to_char(fu.user_id(+))
    and t.ba_id=disco_shares.gba_ba_id
    and disco_users.eu_username(+) NOT IN ('EUL5', 'PUBLIC')
    AND disco_users.eu_id(+) = disco_shares.ap_eu_id
    Hope it helps
    Tamir

  • How to create Trust between two domain

    How to create Trust between two domain:
    please help

    Hi,
    By default, two-way, transitive trusts are automatically created when a new domain is added to a domain tree or forest root domain using the Active Directory Installation
    Wizard. The two default trust types are defined in the following table. However there have others many types of the AD trust, please refer the following KB to determine which type you need:
    Trust types
    http://technet.microsoft.com/en-us/library/cc775736%28v=ws.10%29.aspx
    More relate KB:
    Creating Domain and Forest Trusts
    http://technet.microsoft.com/en-us/library/cc740018(WS.10).aspx
    The related third party article:
    How to configure Forest Level Trust in Windows Server
    http://blogs.interfacett.com/how-to-configure-forest-level-trust-in-windows-server
    *** This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control
    these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the
    use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. ***
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Urgent :Relation between vendor and business area

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. >
    Hi ,
    Is there any table or transaction which will give an one-to-one relation between vendor and business area?
    Thnks and Regards,
    Anand

    hi
    in this situation u have to creat new  Z table and Z transaction with link of this both . it will solve ur problem . better to take abaper help other wise u can use T-CODE se11 to creat table.
    se93 for transaction code .

  • 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"?

  • Managed bean/Data exchange between two ADF Rich Faces based applications

    Hi,
    I have been trying to research what seems to be a small issue. My requirements are as follows.
    1. I need to be able to pass managed bean information from one ADF Rich Faces based application to another (in two separate ears) at runtime (e.g. from Ear1: SenderApp/Sender.jspx -> Ear2: ReceiverApp/Receiver.jspx).
    2. I do not want to use the database as my applications need to be performant.
    3. Serialization/de-serialization would fall pretty much under the database category. In other words, I like to avoid Serialization/de-serialization of the managed bean.
    4. I cannot use query string due to security issues.
    My question is as follows:
    1. Is there any standard/architecture/best practices for data exchange of backing beans or other forms between two ADF Rich Faces based apps (in two separate ears)?
    2. Has someone found anything similar to an applicationScope that works across applications?
    I would appreciate any ideas.
    Thanks very much,
    Edited by: user11219846 on Jul 23, 2009 2:38 PM
    Edited by: user11219846 on Jul 23, 2009 2:42 PM

    Hi,
    its not an ADF Faces problem, but not possible in Java EE. You can however fallback to vendor specific implementations like in WLS. From the WebLogic documentation : http://e-docs.bea.com/wls/docs103/webapp/sessions.html
    Enabling Web applications to share the same session*
    By default, Web applications do not share the same session. If you would like Web applications to share the same session, you can configure the session descriptor at the application level in the weblogic-application.xml deployment descriptor. To enable Web applications to share the same session, set the sharing-enabled attribute in the session descriptor to true in the weblogic-application.xml deployment descriptor. See “sharing-enabled” in session-descriptor.
    The session descriptor configuration that you specify at the application level overrides any session descriptor configuration that you specify at the Web application level for all of the Web applications in the application. If you set the sharing-enabled attribute to true at the Web application level, it will be ignored.
    All Web applications in an application are automatically started using the same session instance if you specify the session descriptor in the weblogic-application.xml deployment descriptor and set the sharing-enabled attribute to true as in the following example:
    +<?xml version="1.0" encoding="ISO-8859-1"?>+
    +<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90";;>+
    +...+
    <session-descriptor>     
    +<persistent-store-type>memory</persistent-store-type>+
    +<sharing-enabled>true</sharing-enabled>+
    +...+
    +</session-descriptor>+
    +...+
    +</weblogic-application>+
    Frank

  • How to link between 2 servlets which are in 2 diferent servers

    I tried to move between 2 servlets which are residing in 2 different servers using the response.Redirect("myurl") method but when i try to return from the second servlet it gave me an error saying the response has been committed. I also tried using the request.getRequestDispatcher("myurl") method but this method does not seem to work as the servlets are in different servers. Anyone who have encountered this problem before please help. Thanks

    A RequestDispatcher only works within one JVM so cannot be used in your case. sendRedirect() causes the client to request the second servlet. To return to the first servlet, you need to sendRedirect() again. Basically, there is no link between the two servlets and you are communicating via the client (presumably a browser). You cannot pass session or servlet context attributes between the two servlets because they ruin in separate JVMs.
    If you're already using sendRedirect() in boht places and the second servlet is giving an error, then there's a problem with that servlet. Perhaps you could post the code and the error.
    If you want direct communication between the servlets, you need to custom build a link using HTTP, RMI or other protocols. There are many examples on this forum.

Maybe you are looking for

  • Photoshop cs4 crashing when using certain width of a brush

    Hi, my 2 year old  photoshop cs4 has been always inexplicably crashing the moment I would try to use a 70 pxl brush... I learnt to work aroud it, but just yesterday another similar problem kicked in, when using the short keys to widen or narrow the w

  • XI message id in inbound proxy

    Hello,   Is it possible to retreive the xi message id in a proxy. Regards, Michel

  • Setting up emails between HP Desktop & Ipad

    I have been helping a couple sort out their new ipad.  They have also recently purchased a HP Desktop and I can't get the emails to sync between each.  What do I need to do to correctly set up - and also bring across contacts? 

  • The Apps on the second page wont open on my Ipad

    Why wont any apps on my second page open up?

  • Layer palette icons

    Hi I just started with PS CC. I used to be able scan up and down my shape layers and see helpful icons that were the shape and colour of the shape I was looking for, and quickly locate them. Now all my shape layer icons are just featureless, colourle