How to pass set 'Relation' between blocks dynamically..Pls help

Dear all,
Best wishes,
Please help me to find solution for this..
I have two forms A and B. Form A will pass 4 parameter to form B so that B will fetch the details. till this everry thing is fine..
Form A -- > Uses Table A --> col1,col2,col3,col4
Form b ----> Uses Table B ---> col1,col2,col3
table a col1 = table b col1
a col2 = b col2
a col3 = b col3
a col4(already exist) = b.col4(newly added) (no data exist for col4 table B for current records but will have future records)
Form A passes all these 4 col as parameter to form B.
But actual problem is for all new records (will have all the relation records i.e. Table A col1,col2,col3,col4= Table B col1,col2,col3,col4) so existing relation works fine Form B while fetching the data ( I manully edited relation between these two tables by adding Table A.col4=TableB.col4)
How ever this relation is giving problems for EXISTING RECORDS in Table B which does not which is not having corresponding equal value to Col4 in Table A.
so now scenario is if i remove that addition I made , THEN IT ONLY WORKS FOR EXISTING RECORDS
and
if i keep update relation between block (updated one including col4) then IT ONLY WORKS FOR NEW RECORDS since col4 parameter passes as null to form B then since no records in Form B.
what my idea is to pass 'relation' dynamically creating relation for old and new records.
like "telling form B to check -- if Table B.col4 is null where TableA.col1 = TableB.col then -- opt for relation which DOES NOT INCLUDE a.col4=b.col4 in relation statement
or
if Table B.col4 is notnull (Table having correspoiding records) where TableA.col1 = TableB.col then -- opt for relation which INCLUDE a.col4=b.col4 in relation statement
Sorry for long post..hope i am clear on my requirements..
Any suggestions are welcome...
thanks in advance
Prasanth

Prasanth,
Were I in your situation, I would push back on the author of the requirement and inform them that the data in Table 1 must be updated to conform with new requirement. This eliminates any DDL change to the tables and it is not unreasable to require a DML change to the data to support a "New" requirement. If the author of the requirement still will not see reason and wants you to make it work as is, then it could be made to work as is, but it will require a complete redesign of the Form and a complete regression test of the form to ensure the new Form process doesn't break functionality or have unexpected side-affects. Provide development time and cost estimates so the "author" can determine the cost effectiveness of the options.
As to the options, you could make this work using a From Clause Query based block or a Procedure based block. Both options will allow you to use NVL or DECODE, but will require you to handle any Forms DML manually using the On-Ins, On-Upd and On-Del triggers. Both options will also allow you to use the Relationship feature of data blocks.
If you have access to My Oracle Support, take a look at the following documents:
<ul>
<li>How to use Fro m Clause Query in Forms [ID: 69884.1]
<li>Basing a Block on a Stored Procedure - Sample Code [ID: 66887.1]
<li>Master/Detail Relationship Based on Stored Procedures [ID: 124650.1]
</ul>
If you don't have My Oracle Support access, take a look at this URL for some examples:
Oracle Forms 10g release 2 : Demos, Tips and Techniques and scroll to 2.3.2 Block based on stored procedures.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Set relation between list and document library?

    I have a requirement that I want to show pop up/ modal dialog when I click on list item column "upload/Edit" (in EditForm.aspx) . In Modal Dialog I have to show upload button and also existed items if any. Here the attachments will store into document
    library's folder .The list item ID should be the folder name in document library.
    How do I set relation between list and doc lib ?
    Appreciate if suggests any links.
    Thank you.

    Hi Saurav,
    pls check below
    What version of SharePoint 2010 "SP 2010 Foundation or SP 2010 Server" you need to have SP 2010 server and to have the "User Profile service application".
    How do you configure the "User Profile service application" did you add the "Social Tagging Database"
    Create, edit, or delete a User Profile service application (SharePoint Server 2010)" 
    http://technet.microsoft.com/en-us/library/ee721052.aspx
    When you access to "Application Management>Manage service applications>User Profile Service Application>Manage User Permissions" validate if the all authenticated users Group have the "use Social Features" checked.
    Also validate in Central Administration in Farm Features if you have social tags and notes activated.
    http://sharepoint.stackexchange.com/questions/17546/tagging-feature-not-working
    https://social.technet.microsoft.com/Forums/office/en-US/c11cda96-091b-4b96-91bc-ccd8000238f4/tags-and-notes-sharepoint-2010-not-visible?forum=sharepointadminprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • 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

  • In BADi , How to pass the values between two Method

    Hi Experts,
    We have two methods in BADis. How to pass the value  between two Methods. Can you guys explain me out with one example...
    Thanks & Regards,
    Sivakumar S

    Hi Sivakumar!
    Create a function group.
    Define global data (there is a similiar menu point to jump to the top include).
    Create one or two function modules, with which you can read and write the global data.
    In your BADI methods you can access the global data with help of your function modules. It will stay in memory through the whole transaction.
    Regards,
    Christian

  • How to pass XML data between applications

    Hi,
    can any one tell me how to pass XML data between applications
    Thanks in advance
    Sudheer

    Steve,
    I tried the code in the http package in the Appendix A section of your book. Each time i try a POST I get a HTTP/1.1 400 Bad Request error from the server. I can successfully do a GET from URLs. I have pretty much copied your code verbatim. Any ideas?
    Thanks,
    Sunder
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    See the "Working with XML Messages" section starting on page 242 of my Building Oracle XML Applications. It covers how to Send and Receive XML messages over the web through HTTP GET and HTTP POST as well as specifically Example 6-30 that illustrates how to receive a posted XML message in a servlet and process it.
    Hope this helps.<HR></BLOCKQUOTE>
    null

  • How to find the relation between PAY_ELEMENT_TYPES_F and GL_CODE_COMBINATIO

    Hi, could someone tell me how to find the relation between PAY_ELEMENT_TYPES_F and GL_CODE_COMBINATION tables
    that is because as you could know PAY_ELEMENT_TYPES_F holds the definitions of elements in Oracle HRMS and i need to find the accounting code of each element.
    Thanks

    Hi;
    Please check e-trm site for table relation,integration,explanation etc..
    etrm.oracle.com/
    Regard
    Helios

  • Why is my powerpoint not working 10.9? i can't play my existing file and new files that i work..? how to fix that one..? pls help..!

    why is my powerpoint not working 10.9? i can't play my existing file and new files that i work..? how to fix that one..? pls help..!

    R Cubss,
    You might want to read down this thread. There are a lot of tips-n-tricks, and maybe one will be right for you.
    http://www.adobeforums.com/webx/.59b6565c/43
    Good luck,
    Hunt

  • Itunes could not connect to internet.. i have read all your solution but non help, include firewall, restart dns, check IE setting ETC... PLS HELP, my phone can't sync with itune...........

    itunes could not connect to internet.. i have read all your solution but non help, include firewall, restart dns, check IE setting ETC... PLS HELP, my phone can't sync with itune...........

    i could not do anything with itune, check updates, help. etc..
    i am using windows 7.. and the latest itune, (previous itune also can't sync)

  • How to Pass parameter to Custom Scheduler dynamically

    hi ,
    I am new to OIM.
    Need your help in passing parameters dynamically to Custom Scheduler.
    I have created Custom Scheduler by extending Task Support.
    I have registered the plugin through API , using PlatformService.registerPlugin() method.
    As I need to send the parameter(s) to this CustomScheduler, I have defined them in Metadata (CustomScheduleTask.xml) file as below and got it imported into DB
    through weblogicImportMetadata.sh script by providing the path of the file.
    <scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
    <task>
    <name>CustomScheduleTask</name>
    <class>org.schedule.custom.task.CustomScheduleTask</class>
    <description>Fetch details of the given user_id</description>
    <retry>5</retry>
    <parameters>
    <string-param required="true" helpText="Login Name">Login Name</string-param>
    </parameters>
    </task>
    </scheduledTasks>
    Iam able to import this plugin as well as register the plugin successfully. Now I have defined a job to which this Custom SchedulerTask is mapped.
    Now in order to run this job(schedule task) I need to provide Login name( or id) which needs to be send as a parameter for the scheduler to get executed.
    But while defining the job with this Schedule Task on OIM console, I was not able to define or pass parameter to this job. hence parameter is null in
    CustomSchedule 's execute method .
    Kindly help me how to pass parameter dynamically while running the scheduler from OIM console so that the execute method would be able to receive it.
    Thank you in Advance.
    Regards,
    Kumar

    Hi,
    When you have created the schedule job for your custom schedule task, you should see your Login Name textfield in the schedule task. If not, then there verify your schedule task xml.
    In your schedule class code, add:
    public void execute(HashMap arg0) {
              final String METHOD_NAME = "execute :: ";
              logger.debug(CLASS_NAME + METHOD_NAME + "Entering Method - execute");
              try {
                   String LoginName = arg0.get("Login Name");
    Regards,
    Sunny

  • How to pass internal table between views

    Hello Experts,
      How to pass an internal table between views? I have followed some steps but its showing an error.
    i have created a table type of ZTTYPE_VBAP and line type  VBAP.
    I have declared in component controllers attribute  LT_VBAP of associated type ZTTYPE_VBAP .
    But when i am using this in my method in component controller its not taking.

    Venkata123# wrote:
    Hello Experts,
    >
    >   How to pass an internal table between views? I have followed some steps but its showing an error.
    >
    > i have created a table type of ZTTYPE_VBAP and line type  VBAP.
    > I have declared in component controllers attribute  LT_VBAP of associated type ZTTYPE_VBAP .
    > But when i am using this in my method in component controller its not taking.
    you will have to declare a node with the attributes in the context tab of component controller. by doing this you will make this node a global one in your entire application . now copy the value you have in the internal table of yours in this node.
    after doing so you can read this node anywhere in the program and you can retrieve the values.
    regards,
    sahai.s

  • How can we set the Order block for One-Time Billto-address?

    Hi Experts,
    How can we set Order bolck,if user uses one-time bill to address and needs to trigger workflow for releasing process according to order block.
    Please suggest me.
    Thanks and Regards,
    Kiran

    suggest me pls!!!!

  • How to pass tag name and value dynamically in the output of PCo notification?

    Hi,
    I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.
    Thanks in advance.
    Regards,
    Suman

    Hi Suman/Jeedesh,
    As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
    For above issue, My suggestion
    1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
    2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
    3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
    4. And in the mean time, send those Tag details vie mail trigger or as per requirement
    Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
    Hope it might solve your problem
    Regards,
    Praveen Reddy

  • How to create a relation between to tables

    hi all
    i have two oracle database:one is oratest(sourse),the other is orawh(destination).
    i have a table named hr.jobs in oratest,and a table named hr.test in orawh.
    now i want to create a relation between these two tables to make them synchronized.But i have no idea how to deal with such a case.
    somebody help me please,thanks a lot!!
    Best regards!

    You can use DML_HANDLERS at the apply side and manipulate the LCR's so that when data is inserted on TABLEA at source it can inserted in TABLEB at target.
    More information on DML Handlers are available at oracle documentation.

  • How to find the relation between tables

    Hi
    I am working in Oracle R12
    How to find the relationship between these tables INV_MIN_MAX_TEMP,po_requisition_lines_all and Per_all_people_f
    These two table i have joined with po_requisition_lines_all and Per_all_people_f To_person_id from PO and Person from hr table but i cant able to join this table with other tables INV_MIN_MAX_TEMP
    regards
    Srikkanth

    Hi;
    Please check e-trm site for table relation,integration,explanation etc..
    etrm.oracle.com/
    Regard
    Helios

  • How to get the relation between tables.

    Hi all,
             Sorry in my previous message I forgot to include the table CABN.
    I would like to retrieve data from the tables BDCP,and characteristics tables KSS,INOB,AUSP and CABN.
    I am given the values BDCP-TABNAME,BDCP-FLDNAME,BDCP-KEY,BDCP-CRETIME,BDCP-CDOBJCL.
    BDCP-CDOBJID is nothing but Material number.I want to retrieve category(AUSP-ATWRT) and subcategory(AUSP-ATWRT) for that material BDCP-CDOBJID.
    So first of all how to proceed.Can anyone give idea?I heard that there is transaction,where we can find relations between tables.
    Thanks,
    Balaji
    Pages: 1

    U could try with SQVI Tcode. just give table names try to link.
    For your requirement there are several functional modules availalbe.
    Try where used list on AUSP table and find Function modules. Test them first then use in the program.

Maybe you are looking for

  • Suse 9.2: can't open include file stdio.h

    Hi there, I'm just starting with studio express in linux and have strange error, I don't know how to solve. Is easy to see: hello.c: #include <stdio.h> int main(int argc, char **argv) printf("start with studio express for linux\n"); fflush(stdout); r

  • Outlined text to editable text...

    Is there a better way to convert outlined text to editable other than Acrobat Pro OCR?

  • ITunes libraries are using too much space on my HD

    My iMac HD has 250GB; I have two external HD with 1TB each. I'd like to make space on the iMac by putting those files on one of the externals. Is that going to be a problem? If I can do it, will it affect my Time Machine (meaning will the back up I h

  • EDI: Partner profile inbound not available

    Hi All, I am doing File to IDOC Scenario. File got picked up and every where message is successfull, but when i am checking into WE05 of R3 i am getting an error EDI : Partner Profile not available. I have already created partner profile in R3 side a

  • JNDI Provider for wls 5.1 cluster

    hi,           how can I specify a JNDI provider URL for a WLS 5.1 cluster where the           cluster nodes are different machines ? Is there a way to specify the           URL without using a single servers IP address ?           thx           johan